diff --git a/data/data/coreos/marketplace-rhcos.json b/data/data/coreos/marketplace-rhcos.json
new file mode 100644
index 0000000000..5d94bd6b2c
--- /dev/null
+++ b/data/data/coreos/marketplace-rhcos.json
@@ -0,0 +1,116 @@
+{
+ "aarch64": {
+ "azure": {
+ "no-purchase-plan": {
+ "hyperVGen2": {
+ "publisher": "azureopenshift",
+ "offer": "aro4",
+ "sku": "419-arm",
+ "version": "419.6.20250523"
+ }
+ }
+ }
+ },
+ "x86_64": {
+ "azure": {
+ "no-purchase-plan": {
+ "hyperVGen1": {
+ "publisher": "azureopenshift",
+ "offer": "aro4",
+ "sku": "aro_419",
+ "version": "419.6.20250523"
+ },
+ "hyperVGen2": {
+ "publisher": "azureopenshift",
+ "offer": "aro4",
+ "sku": "419-v2",
+ "version": "419.6.20250523"
+ }
+ },
+ "ocp": {
+ "hyperVGen1": {
+ "publisher": "redhat",
+ "offer": "rh-ocp-worker",
+ "sku": "rh-ocp-worker-gen1",
+ "version": "4.18.2025031114"
+ },
+ "hyperVGen2": {
+ "publisher": "redhat",
+ "offer": "rh-ocp-worker",
+ "sku": "rh-ocp-worker",
+ "version": "4.18.2025031114"
+ }
+ },
+ "opp": {
+ "hyperVGen1": {
+ "publisher": "redhat",
+ "offer": "rh-opp-worker",
+ "sku": "rh-opp-worker-gen1",
+ "version": "4.18.2025031114"
+ },
+ "hyperVGen2": {
+ "publisher": "redhat",
+ "offer": "rh-opp-worker",
+ "sku": "rh-opp-worker",
+ "version": "4.18.2025031114"
+ }
+ },
+ "oke": {
+ "hyperVGen1": {
+ "publisher": "redhat",
+ "offer": "rh-oke-worker",
+ "sku": "rh-oke-worker-gen1",
+ "version": "4.18.2025031114"
+ },
+ "hyperVGen2": {
+ "publisher": "redhat",
+ "offer": "rh-oke-worker",
+ "sku": "rh-oke-worker",
+ "version": "4.18.2025031114"
+ }
+ },
+ "ocp-emea": {
+ "hyperVGen1": {
+ "publisher": "redhat-limited",
+ "offer": "rh-ocp-worker",
+ "sku": "rh-ocp-worker-gen1",
+ "version": "4.18.2025031114"
+ },
+ "hyperVGen2": {
+ "publisher": "redhat-limited",
+ "offer": "rh-ocp-worker",
+ "sku": "rh-ocp-worker",
+ "version": "4.18.2025031114"
+ }
+ },
+ "opp-emea": {
+ "hyperVGen1": {
+ "publisher": "redhat-limited",
+ "offer": "rh-opp-worker",
+ "sku": "rh-opp-worker-gen1",
+ "version": "4.18.2025031114"
+ },
+ "hyperVGen2": {
+ "publisher": "redhat-limited",
+ "offer": "rh-opp-worker",
+ "sku": "rh-opp-worker",
+ "version": "4.18.2025031114"
+ }
+ },
+ "oke-emea": {
+ "hyperVGen1": {
+ "publisher": "redhat-limited",
+ "offer": "rh-oke-worker",
+ "sku": "rh-oke-worker-gen1",
+ "version": "4.18.2025031114"
+ },
+ "hyperVGen2": {
+ "publisher": "redhat-limited",
+ "offer": "rh-oke-worker",
+ "sku": "rh-oke-worker",
+ "version": "4.18.2025031114"
+ }
+ }
+ }
+ }
+}
diff --git a/go.mod b/go.mod
index 7495546bf8..1ee1079784 100644
--- a/go.mod
+++ b/go.mod
@@ -10,8 +10,8 @@ require (
cloud.google.com/go/storage v1.43.0
github.com/AlecAivazis/survey/v2 v2.3.5
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
- github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0
- github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2
+ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.0
+ github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3 v3.0.0-beta.2
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4 v4.2.1
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0
@@ -52,7 +52,7 @@ require (
github.com/clarketm/json v1.14.1
github.com/containers/image/v5 v5.31.0
github.com/coreos/ignition/v2 v2.20.0
- github.com/coreos/stream-metadata-go v0.1.8
+ github.com/coreos/stream-metadata-go v0.4.10-0.20250806142651-4a7d280a6c7b
github.com/daixiang0/gci v0.13.4
github.com/digitalocean/go-libvirt v0.0.0-20240220204746-fcabe97a6eed
github.com/diskfs/go-diskfs v1.4.0
@@ -117,12 +117,12 @@ require (
github.com/vincent-petithory/dataurl v1.0.0
github.com/vmware/govmomi v0.47.1
go.uber.org/mock v0.5.0
- golang.org/x/crypto v0.36.0
+ golang.org/x/crypto v0.38.0
golang.org/x/oauth2 v0.28.0
- golang.org/x/sync v0.12.0
- golang.org/x/sys v0.32.0
- golang.org/x/term v0.30.0
- golang.org/x/text v0.23.0
+ golang.org/x/sync v0.14.0
+ golang.org/x/sys v0.33.0
+ golang.org/x/term v0.32.0
+ golang.org/x/text v0.25.0
google.golang.org/api v0.214.0
google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a
google.golang.org/grpc v1.71.0
@@ -150,7 +150,10 @@ require (
sigs.k8s.io/yaml v1.4.0
)
-require github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.29.0
+require (
+ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0
+ github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.29.0
+)
require github.com/aws/aws-sdk-go-v2/service/servicequotas v1.31.0
@@ -161,7 +164,7 @@ require (
cloud.google.com/go/compute/metadata v0.6.0 // indirect
cloud.google.com/go/iam v1.2.2 // indirect
cloud.google.com/go/longrunning v0.6.2 // indirect
- github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
+ github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1 // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.24 // indirect
@@ -169,7 +172,7 @@ require (
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
- github.com/AzureAD/microsoft-authentication-library-for-go v1.3.3 // indirect
+ github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/MakeNowJust/heredoc v1.0.0 // indirect
github.com/PaesslerAG/gval v1.0.0 // indirect
@@ -304,16 +307,16 @@ require (
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 // indirect
- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
- go.opentelemetry.io/otel v1.35.0 // indirect
- go.opentelemetry.io/otel/metric v1.35.0 // indirect
- go.opentelemetry.io/otel/trace v1.35.0 // indirect
+ go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
+ go.opentelemetry.io/otel v1.36.0 // indirect
+ go.opentelemetry.io/otel/metric v1.36.0 // indirect
+ go.opentelemetry.io/otel/trace v1.36.0 // indirect
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac // indirect
- golang.org/x/mod v0.24.0 // indirect
- golang.org/x/net v0.38.0 // indirect
+ golang.org/x/mod v0.24.0
+ golang.org/x/net v0.40.0 // indirect
golang.org/x/time v0.9.0 // indirect
golang.org/x/tools v0.31.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
diff --git a/go.sum b/go.sum
index 58a8307f63..b9294167e8 100644
--- a/go.sum
+++ b/go.sum
@@ -25,16 +25,18 @@ github.com/AlecAivazis/survey/v2 v2.3.5 h1:A8cYupsAZkjaUmhtTYv3sSqc7LO5mp1XDfqe5
github.com/AlecAivazis/survey/v2 v2.3.5/go.mod h1:4AuI9b7RjAR+G7v9+C4YSlX/YL3K3cWNXgWXOhllqvI=
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible h1:fcYLmCpyNYRnvJbPerq7U0hS+6+I79yEDJBqVNcqUzU=
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
-github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 h1:g0EZJwz7xkXQiZAI5xi9f3WWFYBlX1CPTrR+NDToRkQ=
-github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0/go.mod h1:XCW7KnZet0Opnr7HccfUw1PLc4CjHqpcaxW8DHklNkQ=
-github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2 h1:F0gBpfdPLGsw+nsgk6aqqkZS1jiixa5WwFe3fk/T3Ys=
-github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2/go.mod h1:SqINnQ9lVVdRlyC8cd1lCI0SdX4n2paeABd2K8ggfnE=
+github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.0 h1:Gt0j3wceWMwPmiazCa8MzMA0MfhmPIz0Qp0FJ6qcM0U=
+github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.0/go.mod h1:Ot/6aikWnKWi4l9QB7qVSwa8iMphQNqkWALMoNT3rzM=
+github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1 h1:B+blDbyVIG3WaikNxPnhPiJ1MThR03b3vKGtER95TP4=
+github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1/go.mod h1:JdM5psgjfBf5fo2uWOZhflPWyDBZ/O/CNAH9CtsuZE4=
github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2 h1:yz1bePFlP5Vws5+8ez6T3HWXPmwOK7Yvq8QxDBD3SKY=
github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2/go.mod h1:Pa9ZNPuoNu/GztvBSKk9J1cDJW6vk/n0zLtV4mgd8N8=
-github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY=
-github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY=
+github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1 h1:FPKJS1T+clwv+OLGt13a8UjqeRuh0O4SJ3lUriThc+4=
+github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1/go.mod h1:j2chePtV91HrC22tGoRX3sGY42uF13WzmmV80/OdVAA=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3 v3.0.0-beta.2 h1:qiir/pptnHqp6hV8QwV+IExYIf6cPsXBfUDUXQ27t2Y=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3 v3.0.0-beta.2/go.mod h1:jVRrRDLCOuif95HDYC23ADTMlvahB7tMdl519m9Iyjc=
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0 h1:/Di3vB4sNeQ+7A8efjUVENvyB945Wruvstucqp7ZArg=
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0/go.mod h1:gM3K25LQlsET3QR+4V74zxCsFAy0r6xMNN9n80SZn+4=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4 v4.2.1 h1:UPeCRD+XY7QlaGQte2EVI2iOcWvUYA2XY8w5T/8v0NQ=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4 v4.2.1/go.mod h1:oGV6NlB0cvi1ZbYRR2UN44QHxWFyGk+iylgD0qaMXjA=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0 h1:LkHbJbgF3YyvC53aqYGR+wWQDn2Rdp9AQdGndf9QvY4=
@@ -93,8 +95,8 @@ github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUM
github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM=
github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE=
-github.com/AzureAD/microsoft-authentication-library-for-go v1.3.3 h1:H5xDQaE3XowWfhZRUpnfC+rGZMEVoSiji+b+/HFAPU4=
-github.com/AzureAD/microsoft-authentication-library-for-go v1.3.3/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=
+github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 h1:oygO0locgZJe7PpYPXT5A29ZkwJaPqcva7BVeemZOZs=
+github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
@@ -260,8 +262,8 @@ github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/coreos/ignition/v2 v2.20.0 h1:xQjrxhCbcSKpqrN2hOQavAc1rx0GOf6qh2QCauScwPU=
github.com/coreos/ignition/v2 v2.20.0/go.mod h1:l7EpXNWA7jBXmjUMvnVBlrrj+LX2wA/PAyD9kstwFDQ=
-github.com/coreos/stream-metadata-go v0.1.8 h1:EbLlLia+Ekuqgh8nF4NNFs0jUqmhUbN4mWd1O8u8TQE=
-github.com/coreos/stream-metadata-go v0.1.8/go.mod h1:RTjQyHgO/G37oJ3qnqYK6Z4TPZ5EsaabOtfMjVXmgko=
+github.com/coreos/stream-metadata-go v0.4.10-0.20250806142651-4a7d280a6c7b h1:CT6nMx5Ap/K6MT8zMqByrWz+RZV7O6pBGW5LhB/pwvY=
+github.com/coreos/stream-metadata-go v0.4.10-0.20250806142651-4a7d280a6c7b/go.mod h1:dTE8UEFgyUcrbdUg7vGT3uIP7S8a1IwUlmWLKlOp8G8=
github.com/coreos/vcontext v0.0.0-20230201181013-d72178a18687 h1:uSmlDgJGbUB0bwQBcZomBTottKwEDF5fF8UjSwKSzWM=
github.com/coreos/vcontext v0.0.0-20230201181013-d72178a18687/go.mod h1:Salmysdw7DAVuobBW/LwsKKgpyCPHUhjyJoMJD+ZJiI=
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
@@ -615,8 +617,8 @@ github.com/keploy/go-sdk v0.9.0 h1:kpSNcCTDdELsa1gWyhoD9oV57SgSMbG/wq6Cjp4y7cY=
github.com/keploy/go-sdk v0.9.0/go.mod h1:vNKXoFd2MaK+Gly/K6XeP1Hs9dP834C74szH+vtBPwg=
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 h1:DowS9hvgyYSX4TO5NpyC606/Z4SxnNYbT+WX27or6Ck=
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
-github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6 h1:IsMZxCuZqKuao2vNdfD82fjjgPLfyHLpR41Z88viRWs=
-github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6/go.mod h1:3VeWNIJaW+O5xpRQbPp0Ybqu1vJd/pm7s2F473HRrkw=
+github.com/keybase/go-keychain v0.0.1 h1:way+bWYa6lDppZoZcgMbYsvC7GxljxrskdNInRtuthU=
+github.com/keybase/go-keychain v0.0.1/go.mod h1:PdEILRW3i9D8JcdM+FmY6RwkHGnhHxXwkPPMeUgOK1k=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/klauspost/compress v1.9.5/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
@@ -873,8 +875,8 @@ github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ
github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I=
github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
-github.com/redis/go-redis/v9 v9.7.0 h1:HhLSs+B6O021gwzl+locl0zEDnyNkxMtf/Z3NNBMa9E=
-github.com/redis/go-redis/v9 v9.7.0/go.mod h1:f6zhXITC7JUJIlPEiBOTXxJgPLdZcA93GewI7inzyWw=
+github.com/redis/go-redis/v9 v9.8.0 h1:q3nRvjrlge/6UD7eTu/DSg2uYiU2mCL0G/uzBWqhicI=
+github.com/redis/go-redis/v9 v9.8.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
@@ -982,23 +984,23 @@ go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJyS
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 h1:r6I7RJCN86bpD/FQwedZ0vSixDpwuWREjW9oRMsmqDc=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0/go.mod h1:B9yO6b04uB80CzjedvewuqDhxJxi11s7/GtiGa8bAjI=
-go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk=
-go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8=
-go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ=
-go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y=
+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus=
+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q=
+go.opentelemetry.io/otel v1.36.0 h1:UumtzIklRBY6cI/lllNZlALOF5nNIzJVb16APdvgTXg=
+go.opentelemetry.io/otel v1.36.0/go.mod h1:/TcFMXYjyRNh8khOAO9ybYkqaDBb/70aVwkNML4pP8E=
go.opentelemetry.io/otel/exporters/otlp v0.20.0 h1:PTNgq9MRmQqqJY0REVbZFvwkYOA85vbdQU/nVfxDyqg=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 h1:1fTNlAIJZGWLP5FVu0fikVry1IsiUnXjf7QFvoNN3Xw=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0/go.mod h1:zjPK58DtkqQFn+YUMbx0M2XV3QgKU0gS9LeGohREyK4=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 h1:m639+BofXTvcY1q8CGs4ItwQarYtJPOWmVobfM1HpVI=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0/go.mod h1:LjReUci/F4BUyv+y4dwnq3h/26iNOeC3wAIqgvTIZVo=
-go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M=
-go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE=
-go.opentelemetry.io/otel/sdk v1.35.0 h1:iPctf8iprVySXSKJffSS79eOjl9pvxV9ZqOWT0QejKY=
-go.opentelemetry.io/otel/sdk v1.35.0/go.mod h1:+ga1bZliga3DxJ3CQGg3updiaAJoNECOgJREo9KHGQg=
-go.opentelemetry.io/otel/sdk/metric v1.35.0 h1:1RriWBmCKgkeHEhM7a2uMjMUfP7MsOF5JpUCaEqEI9o=
-go.opentelemetry.io/otel/sdk/metric v1.35.0/go.mod h1:is6XYCUMpcKi+ZsOvfluY5YstFnhW0BidkR+gL+qN+w=
-go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs=
-go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc=
+go.opentelemetry.io/otel/metric v1.36.0 h1:MoWPKVhQvJ+eeXWHFBOPoBOi20jh6Iq2CcCREuTYufE=
+go.opentelemetry.io/otel/metric v1.36.0/go.mod h1:zC7Ks+yeyJt4xig9DEw9kuUFe5C3zLbVjV2PzT6qzbs=
+go.opentelemetry.io/otel/sdk v1.36.0 h1:b6SYIuLRs88ztox4EyrvRti80uXIFy+Sqzoh9kFULbs=
+go.opentelemetry.io/otel/sdk v1.36.0/go.mod h1:+lC+mTgD+MUWfjJubi2vvXWcVxyr9rmlshZni72pXeY=
+go.opentelemetry.io/otel/sdk/metric v1.36.0 h1:r0ntwwGosWGaa0CrSt8cuNuTcccMXERFwHX4dThiPis=
+go.opentelemetry.io/otel/sdk/metric v1.36.0/go.mod h1:qTNOhFDfKRwX0yXOqJYegL5WRaW376QbB7P4Pb0qva4=
+go.opentelemetry.io/otel/trace v1.36.0 h1:ahxWNuqZjpdiFAyrIoQ4GIiAIhxAunQR6MUoKrsNd4w=
+go.opentelemetry.io/otel/trace v1.36.0/go.mod h1:gQ+OnDZzrybY4k4seLzPAWNwVBBVlF2szhehOBB/tGA=
go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4=
go.opentelemetry.io/proto/otlp v1.5.0/go.mod h1:keN8WnHxOy8PG0rQZjJJ5A2ebUoafqWp0eVQ4yIXvJ4=
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca h1:VdD38733bfYv5tUZwEIskMM93VanwNIi5bIKnDrJdEY=
@@ -1036,8 +1038,8 @@ golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54=
golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U=
-golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=
-golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
+golang.org/x/crypto v0.38.0 h1:jt+WWG8IZlBnVbomuhg2Mdq0+BBQaHbtqHEFEigjUV8=
+golang.org/x/crypto v0.38.0/go.mod h1:MvrbAqul58NNYPKnOra203SB9vpuZW0e+RRZV+Ggqjw=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac h1:l5+whBCLH3iH2ZNHYLbAe58bo7yrN4mVcnkHDYz5vvs=
@@ -1115,8 +1117,8 @@ golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg=
golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU=
-golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
-golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
+golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY=
+golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc=
golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
@@ -1136,8 +1138,8 @@ golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
-golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
-golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
+golang.org/x/sync v0.14.0 h1:woo0S4Yywslg6hp4eUFjTVOyKt0RookbpAHG4c1HmhQ=
+golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -1199,8 +1201,8 @@ golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
-golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
+golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
+golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
golang.org/x/telemetry v0.0.0-20240521205824-bda55230c457/go.mod h1:pRgIJT+bRLFKnoM1ldnzKoxTIn14Yxz928LQRYYgIN0=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
@@ -1227,8 +1229,8 @@ golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4=
golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk=
golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M=
-golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y=
-golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
+golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg=
+golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
@@ -1249,8 +1251,8 @@ golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
-golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
-golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
+golang.org/x/text v0.25.0 h1:qVyWApTSYLk/drJRO5mDlNYskwQznZmkpV2c8q9zls4=
+golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA=
golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY=
golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
diff --git a/hack/build-coreos-manifest.go b/hack/build-coreos-manifest.go
index e8ed9dec10..6411144b42 100644
--- a/hack/build-coreos-manifest.go
+++ b/hack/build-coreos-manifest.go
@@ -7,37 +7,31 @@
package main
import (
+ "encoding/json"
"fmt"
"os"
"path/filepath"
"strings"
+ "github.com/coreos/stream-metadata-go/stream"
+ "github.com/coreos/stream-metadata-go/stream/rhcos"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/yaml"
)
const (
- streamRHCOSJSON = "data/data/coreos/rhcos.json"
- streamFCOSJSON = "data/data/coreos/fcos.json"
- streamSCOSJSON = "data/data/coreos/scos.json"
- fcosTAG = "okd"
- scosTAG = "scos"
- dest = "bin/manifests/coreos-bootimages.yaml"
+ streamRHCOSJSON = "data/data/coreos/rhcos.json"
+ streamFCOSJSON = "data/data/coreos/fcos.json"
+ streamSCOSJSON = "data/data/coreos/scos.json"
+ streamMarketplaceRHCOSJSON = "data/data/coreos/marketplace-rhcos.json"
+ fcosTAG = "okd"
+ scosTAG = "scos"
+ dest = "bin/manifests/coreos-bootimages.yaml"
)
func run() error {
- var streamJSON string
- tags, _ := os.LookupEnv("TAGS")
- switch {
- case strings.Contains(tags, fcosTAG):
- streamJSON = streamFCOSJSON
- case strings.Contains(tags, scosTAG):
- streamJSON = streamSCOSJSON
- default:
- streamJSON = streamRHCOSJSON
- }
- bootimages, err := os.ReadFile(streamJSON)
+ bootimages, err := getBootImages()
if err != nil {
return err
}
@@ -79,6 +73,67 @@ func run() error {
return nil
}
+func getBootImages() ([]byte, error) {
+ var okd bool
+ var streamJSON string
+ tags, _ := os.LookupEnv("TAGS")
+ switch {
+ case strings.Contains(tags, fcosTAG):
+ streamJSON = streamFCOSJSON
+ okd = true
+ case strings.Contains(tags, scosTAG):
+ streamJSON = streamSCOSJSON
+ okd = true
+ default:
+ streamJSON = streamRHCOSJSON
+ }
+
+ bootimages, err := os.ReadFile(streamJSON)
+ if err != nil {
+ return nil, err
+ }
+
+ if okd {
+ // okd does not yet have marketplace images, so we are done
+ return bootimages, nil
+ }
+
+ return mergeMarketplaceStream(bootimages)
+}
+
+type marketplaceStream map[string]*rhcos.Marketplace
+
+func mergeMarketplaceStream(streamJSON []byte) ([]byte, error) {
+ mktStream := marketplaceStream{}
+ mktJSON, err := os.ReadFile(streamMarketplaceRHCOSJSON)
+ if err != nil {
+ return nil, fmt.Errorf("failed to open marketplace file: %w", err)
+ }
+ if err := json.Unmarshal(mktJSON, &mktStream); err != nil {
+ return nil, fmt.Errorf("failed to unmarshal market stream: %w", err)
+ }
+
+ stream := stream.Stream{}
+ if err := json.Unmarshal(streamJSON, &stream); err != nil {
+ return nil, fmt.Errorf("failed to unmarshal boot image stream: %w", err)
+ }
+
+ for name, arch := range stream.Architectures {
+ if mkt, ok := mktStream[name]; ok {
+ if arch.RHELCoreOSExtensions == nil {
+ arch.RHELCoreOSExtensions = &rhcos.Extensions{}
+ }
+ arch.RHELCoreOSExtensions.Marketplace = mkt
+ }
+ }
+
+ bootImgs, err := json.Marshal(stream)
+ if err != nil {
+ return nil, fmt.Errorf("failed to marshal merged boot image stream: %w", err)
+ }
+ return bootImgs, nil
+}
+
func main() {
if err := run(); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err)
diff --git a/hack/rhcos/README.md b/hack/rhcos/README.md
new file mode 100644
index 0000000000..0e95203748
--- /dev/null
+++ b/hack/rhcos/README.md
@@ -0,0 +1,25 @@
+# Populating the RHCOS Stream Marketplace Extension
+
+This tool is used to reach out to cloud sdks and populate the
+data/data/coreos/marketplace-rhcos.json file. That file represents
+the mareketplace extension to the rhcos stream and is merged into
+the stream.
+
+To run the program:
+
+```shell
+go run -mod=vendor ./hack/rhcos/populate-marketplace-imagestream.go
+```
+
+The program will find marketplace images based on the version of the
+RHCOS stream. The version can be overriden with the
+`STREAM_RELEASE_OVERRIDE` variable. This is useful if you are working
+on the main branch, where up-to-date images are not available. For
+example, looking up Azure images requires knowing the X.Y version
+to populate the offer, so when working on the main branch (4.20),
+it is necessary to run the following command to correctly populate
+the stream:
+
+```shell
+STREAM_RELEASE_OVERRIDE=4.19 go run -mod=vendor ./hack/rhcos/populate-marketplace-imagestream.go
+```
\ No newline at end of file
diff --git a/hack/rhcos/populate-marketplace-imagestream.go b/hack/rhcos/populate-marketplace-imagestream.go
new file mode 100644
index 0000000000..e3b5e4799a
--- /dev/null
+++ b/hack/rhcos/populate-marketplace-imagestream.go
@@ -0,0 +1,116 @@
+package main
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "log"
+ "os"
+ "strings"
+
+ "github.com/coreos/stream-metadata-go/stream"
+ "github.com/coreos/stream-metadata-go/stream/rhcos"
+
+ "github.com/openshift/installer/pkg/rhcos/marketplace/azure"
+)
+
+const (
+ streamRHCOSJSON = "data/data/coreos/rhcos.json"
+ streamMarketplaceRHCOSJSON = "data/data/coreos/marketplace-rhcos.json"
+
+ x86 = "x86_64"
+ arm64 = "aarch64"
+)
+
+// arch -> marketplace
+type marketplaceStream map[string]*rhcos.Marketplace
+
+func main() {
+ ctx := context.Background()
+ stream := marketplaceStream{}
+
+ if err := stream.populate(ctx); err != nil {
+ log.Fatalln("Failed to populate marketplace stream:", err)
+ }
+
+ if err := stream.write(); err != nil {
+ log.Fatalln("Failed to write marketplace stream:", err)
+ }
+ log.Printf("Successfully wrote marketplace stream to %s", streamMarketplaceRHCOSJSON)
+}
+
+// populate gathers the marketplace images for each cloud
+// and adds them to the marketplace stream data structure.
+func (s marketplaceStream) populate(ctx context.Context) error {
+ clouds := []func(ctx context.Context, arch string) error{
+ s.azure,
+ }
+
+ for _, supportedArch := range []string{arm64, x86} {
+ s[supportedArch] = &rhcos.Marketplace{}
+ for _, populateCloud := range clouds {
+ if err := populateCloud(ctx, supportedArch); err != nil {
+ return err
+ }
+ }
+ }
+ return nil
+}
+
+// write serializes the marketplace stream to disk.
+func (s marketplaceStream) write() error {
+ contents, err := json.MarshalIndent(s, "", " ")
+ if err != nil {
+ return fmt.Errorf("error marshaling stream: %w", err)
+ }
+
+ // TODO(padillon): dumb question time, git is still complaining \ No newline at end of file
+ // what am I doing wrong?
+ contents = append(contents, []byte("\n")...)
+
+ if err := os.WriteFile(streamMarketplaceRHCOSJSON, contents, 0644); err != nil {
+ return fmt.Errorf("error writing stream: %w", err)
+ }
+ return nil
+}
+
+func (s marketplaceStream) azure(ctx context.Context, arch string) error {
+ var err error
+
+ s[arch].Azure = &rhcos.AzureMarketplace{}
+
+ rel, err := getReleaseFromStream()
+ if err != nil {
+ return fmt.Errorf("failed to get release from rhcos stream: %w", err)
+ }
+
+ azClient, err := azure.NewStreamClient()
+ if err != nil {
+ return fmt.Errorf("failed to initialize azure client: %w", err)
+ }
+
+ if s[arch].Azure, err = azClient.Populate(ctx, arch, rel); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// getXYFromStream obtains the X.Y version from rhcos.json.
+func getReleaseFromStream() (string, error) {
+ if rel, ok := os.LookupEnv("STREAM_RELEASE_OVERRIDE"); ok {
+ log.Printf("Found STREAM_RELEASE_OVERRIDE %s", rel)
+ return rel, nil
+ }
+ fileContents, err := os.ReadFile(streamRHCOSJSON)
+ if err != nil {
+ return "", err
+ }
+
+ st := &stream.Stream{}
+ if err := json.Unmarshal(fileContents, st); err != nil {
+ return "", fmt.Errorf("failed to unmarshal RHCOS stream: %w", err)
+ }
+
+ return strings.Split(st.Stream, "-")[1], nil
+}
diff --git a/pkg/rhcos/builds.go b/pkg/rhcos/builds.go
index b0c26c476f..6169b763a4 100644
--- a/pkg/rhcos/builds.go
+++ b/pkg/rhcos/builds.go
@@ -7,43 +7,69 @@ package rhcos
import (
"context"
"encoding/json"
+ "errors"
"fmt"
"io"
+ "io/fs"
"net/url"
"github.com/coreos/stream-metadata-go/stream"
- "github.com/pkg/errors"
+ "github.com/coreos/stream-metadata-go/stream/rhcos"
+ "github.com/sirupsen/logrus"
"github.com/openshift/installer/data"
)
+type marketplaceStream map[string]*rhcos.Marketplace
+
// FetchRawCoreOSStream returns the raw stream metadata for the
// bootimages embedded in the installer.
func FetchRawCoreOSStream(ctx context.Context) ([]byte, error) {
- file, err := data.Assets.Open(getStreamFileName())
+ st, err := FetchCoreOSBuild(ctx)
if err != nil {
- return nil, errors.Wrapf(err, "failed to read embedded CoreOS stream metadata")
+ return nil, fmt.Errorf("failed to get combined CoreOS build: %w", err)
}
- defer file.Close()
-
- body, err := io.ReadAll(file)
+ rawStream, err := json.Marshal(st)
if err != nil {
- return nil, errors.Wrap(err, "failed to read CoreOS stream metadata")
+ return nil, fmt.Errorf("failed to marshal combined CoreOS stream: %w", err)
}
- return body, nil
+ return rawStream, nil
}
// FetchCoreOSBuild returns the pinned version of RHEL/Fedora CoreOS used
// by the installer to provision the bootstrap node and control plane currently.
// For more information, see e.g. https://github.com/openshift/enhancements/pull/201
func FetchCoreOSBuild(ctx context.Context) (*stream.Stream, error) {
- body, err := FetchRawCoreOSStream(ctx)
+ body, err := fetchRawCoreOSStream(ctx)
if err != nil {
return nil, err
}
var st stream.Stream
if err := json.Unmarshal(body, &st); err != nil {
- return nil, errors.Wrap(err, "failed to parse CoreOS stream metadata")
+ return nil, fmt.Errorf("failed to parse CoreOS stream metadata: %w", err)
+ }
+
+ // Merge marketplace json file into stream json file
+ mktBody, err := fetchRawMarketplaceStream()
+ if err != nil {
+ if errors.Is(err, fs.ErrNotExist) {
+ logrus.Debug("No marketplace json file found: skipping merge.")
+ return &st, nil
+ }
+ return nil, err
+ }
+ var mktSt marketplaceStream
+ if err := json.Unmarshal(mktBody, &mktSt); err != nil {
+ return nil, fmt.Errorf("failed to parse marketplace stream: %w", err)
+ }
+
+ for name, arch := range st.Architectures {
+ if mkt, ok := mktSt[name]; ok {
+ if arch.RHELCoreOSExtensions == nil {
+ arch.RHELCoreOSExtensions = &rhcos.Extensions{}
+ }
+ arch.RHELCoreOSExtensions.Marketplace = mkt
+ }
}
return &st, nil
}
@@ -87,3 +113,31 @@ func FindArtifactURL(artifacts stream.PlatformArtifacts) (string, error) {
}
return "", fmt.Errorf("no \"disk\" artifact found")
}
+
+func fetchRawCoreOSStream(ctx context.Context) ([]byte, error) {
+ file, err := data.Assets.Open(getStreamFileName())
+ if err != nil {
+ return nil, fmt.Errorf("failed to read embedded CoreOS stream metadata: %w", err)
+ }
+ defer file.Close()
+
+ body, err := io.ReadAll(file)
+ if err != nil {
+ return nil, fmt.Errorf("failed to read CoreOS stream metadata: %w", err)
+ }
+ return body, nil
+}
+
+func fetchRawMarketplaceStream() ([]byte, error) {
+ file, err := data.Assets.Open(getMarketplaceStreamFileName())
+ if err != nil {
+ return nil, err
+ }
+ defer file.Close()
+
+ body, err := io.ReadAll(file)
+ if err != nil {
+ return nil, err
+ }
+ return body, nil
+}
diff --git a/pkg/rhcos/marketplace/azure/azure.go b/pkg/rhcos/marketplace/azure/azure.go
new file mode 100644
index 0000000000..a7f5658247
--- /dev/null
+++ b/pkg/rhcos/marketplace/azure/azure.go
@@ -0,0 +1,288 @@
+package azure
+
+import (
+ "context"
+ "fmt"
+ "strconv"
+ "strings"
+
+ "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
+ "github.com/coreos/stream-metadata-go/stream/rhcos"
+ "github.com/sirupsen/logrus"
+ "golang.org/x/mod/semver"
+
+ azuresession "github.com/openshift/installer/pkg/asset/installconfig/azure"
+ "github.com/openshift/installer/pkg/types/azure"
+)
+
+const (
+ // region is an arbitrarily chosen region. Marketplace
+ // images are published globally, we just need to verify
+ // the image exists, so we can use any region.
+
+ region = "centralus"
+
+ // image attributes for the NoPurchasePlan image,
+ // published by ARO.
+ pubARO = "azureopenshift"
+ offerARO = "aro4"
+
+ // image attributes for paid marketplace images.
+ pubRH = "redhat"
+ pubEMEA = "redhat-limited"
+ offerOCP = "rh-ocp-worker"
+ offerOPP = "rh-opp-worker"
+ offerOKE = "rh-oke-worker"
+
+ // supported architectures.
+ x86 = "x86_64"
+ arm64 = "aarch64"
+)
+
+// MarketplaceStream connects to the Azure SDK to populate the RHCOS stream.
+type MarketplaceStream struct {
+ client *armcompute.VirtualMachineImagesClient
+}
+
+type imgsQuery struct {
+ gen1, gen2 *imgQuery
+}
+
+type imgQuery struct {
+ publisher, offer, sku, xyVersion string
+}
+
+// NewStreamClient instantiates a MarketplaceStream.
+func NewStreamClient() (*MarketplaceStream, error) {
+ cl, err := getClient()
+ if err != nil {
+ return nil, fmt.Errorf("failed to create azure marketplace stream client: %w", err)
+ }
+ return &MarketplaceStream{cl}, nil
+}
+
+// Populate finds the marketplace images for a given architecture and release.
+func (az *MarketplaceStream) Populate(ctx context.Context, arch, rel string) (*rhcos.AzureMarketplace, error) {
+ s := &rhcos.AzureMarketplace{}
+
+ var err error
+ if s.NoPurchasePlan, err = az.noPurchasePlan(ctx, arch, rel); err != nil {
+ return nil, fmt.Errorf("failed getting Azure non-paid images: %w", err)
+ }
+
+ if s.OCP, err = az.getImages(ctx, paidImageQuery(pubRH, rel, offerOCP), arch); err != nil {
+ return nil, fmt.Errorf("failed getting Azure OCP marketplace images: %w", err)
+ }
+
+ if s.OPP, err = az.getImages(ctx, paidImageQuery(pubRH, rel, offerOPP), arch); err != nil {
+ return nil, fmt.Errorf("failed getting Azure OPP marketplace images: %w", err)
+ }
+
+ if s.OKE, err = az.getImages(ctx, paidImageQuery(pubRH, rel, offerOKE), arch); err != nil {
+ return nil, fmt.Errorf("failed getting Azure OKE marketplace images: %w", err)
+ }
+
+ if s.OCPEMEA, err = az.getImages(ctx, paidImageQuery(pubEMEA, rel, offerOCP), arch); err != nil {
+ return nil, fmt.Errorf("failed getting Azure OCP EMEA marketplace images: %w", err)
+ }
+
+ if s.OPPEMEA, err = az.getImages(ctx, paidImageQuery(pubEMEA, rel, offerOPP), arch); err != nil {
+ return nil, fmt.Errorf("failed getting Azure OPP EMEA marketplace images: %w", err)
+ }
+
+ if s.OKEEMEA, err = az.getImages(ctx, paidImageQuery(pubEMEA, rel, offerOKE), arch); err != nil {
+ return nil, fmt.Errorf("failed getting Azure OKE EMEA marketplace images: %w", err)
+ }
+
+ return s, nil
+}
+
+func (az *MarketplaceStream) noPurchasePlan(ctx context.Context, arch, release string) (*rhcos.AzureMarketplaceImages, error) {
+ logrus.Info("Retrieving NoPurchase Plan Images for release: ", release)
+ gen1SKU, gen2SKU := parseAROSKUs(release, arch)
+ q := imgsQuery{
+ gen1: &imgQuery{
+ publisher: pubARO,
+ offer: offerARO,
+ sku: gen1SKU,
+ xyVersion: release,
+ },
+ gen2: &imgQuery{
+ publisher: pubARO,
+ offer: offerARO,
+ sku: gen2SKU,
+ xyVersion: release,
+ },
+ }
+ return az.getImages(ctx, q, arch)
+}
+
+func paidImageQuery(pub, release, offer string) imgsQuery {
+ return imgsQuery{
+ gen1: &imgQuery{
+ publisher: pub,
+ offer: offer,
+ sku: fmt.Sprintf("%s-gen1", offer),
+ xyVersion: release,
+ },
+ gen2: &imgQuery{
+ publisher: pub,
+ offer: offer,
+ sku: offer,
+ xyVersion: release,
+ },
+ }
+}
+
+func (az *MarketplaceStream) getImages(ctx context.Context, query imgsQuery, arch string) (*rhcos.AzureMarketplaceImages, error) {
+ imgs := &rhcos.AzureMarketplaceImages{}
+ if gen1 := query.gen1; gen1 != nil && gen1.sku != "" {
+ logrus.Infof("Searching for image with publisher: %s, offer %s, sku %s architecture %s in release %s", gen1.publisher, gen1.offer, gen1.sku, arch, gen1.xyVersion)
+ img, err := az.getImage(ctx, gen1.publisher, gen1.offer, gen1.sku, gen1.xyVersion, arch)
+ if err != nil {
+ logrus.Error(err)
+ }
+ imgs.Gen1 = img
+ }
+ if gen2 := query.gen2; gen2 != nil && gen2.sku != "" {
+ logrus.Infof("Searching for image with publisher: %s, offer %s, sku %s architecture %s in release %s", gen2.publisher, gen2.offer, gen2.sku, arch, gen2.xyVersion)
+ img, err := az.getImage(ctx, gen2.publisher, gen2.offer, gen2.sku, gen2.xyVersion, arch)
+ if err != nil {
+ logrus.Error(err)
+ }
+ imgs.Gen2 = img
+ }
+ if imgs.Gen1 == nil && imgs.Gen2 == nil {
+ return nil, nil
+ }
+ return imgs, nil
+}
+
+// getImage finds the latest version matching the x.y version of the release.
+func (az *MarketplaceStream) getImage(ctx context.Context, pub, offer, sku, xyVersion, arch string) (*rhcos.AzureMarketplaceImage, error) {
+ resp, err := az.client.List(ctx, region, pub, offer, sku, nil)
+ if err != nil {
+ return nil, fmt.Errorf("failed to list images: %w", err)
+ }
+
+ if len(resp.VirtualMachineImageResourceArray) == 0 {
+ logrus.Infof("Found no images for publisher: %s, offer: %s, sku %s for the architecture %s in the release %s", pub, offer, sku, arch, xyVersion)
+ return nil, nil
+ }
+
+ var foundVersion string
+ var greatestSemver string
+ for _, v := range resp.VirtualMachineImageResourceArray {
+ v := *v.Name
+ semVer := convertToSemver(v)
+ logrus.Infof("Found potential image match, version: %s", v)
+
+ // Ensure that the image is not from a later Y stream,
+ // e.g. if we are populating a 4.19 stream, we don't want 4.20 images,
+ // but 4.18 would be ok if 4.19 is not available yet.
+ if checkIfNewer(semVer, xyVersion) {
+ logrus.Infof("Skipping version %s as it is released after %s", v, xyVersion)
+ continue
+ }
+
+ if semver.Compare(greatestSemver, semVer) < 0 {
+ greatestSemver = semVer
+ foundVersion = v
+ }
+ }
+
+ // Now that we've found the version, check the architecture and the plan.
+ img, err := az.client.Get(ctx, region, pub, offer, sku, foundVersion, nil)
+ if err != nil {
+ return nil, fmt.Errorf("could not get the image for the found version, urn: %s:%s:%s:%s in region %s: %w", pub, offer, sku, foundVersion, region, err)
+ }
+
+ // This way of checking architecture is works,
+ // but may be unnecessary. We would only need to do something
+ // like this if the URN for different architectures can be the same;
+ // otherwise we know before generating the query which architecture we are looking for.
+ azureArch := map[string]armcompute.ArchitectureTypes{
+ x86: armcompute.ArchitectureTypesX64,
+ arm64: armcompute.ArchitectureTypesArm64,
+ }
+
+ if *img.Properties.Architecture != azureArch[arch] {
+ return nil, nil
+ }
+
+ logrus.Infof("Using image %s:%s:%s:%s", pub, offer, sku, foundVersion)
+ return &rhcos.AzureMarketplaceImage{
+ Publisher: pub,
+ Offer: offer,
+ SKU: sku,
+ Version: foundVersion,
+ }, nil
+}
+
+// parseARO takes the release from coreos stream and
+// uses conventions to generate the SKU (gen1 & gen2) and version.
+// For instance, with a coreos release of "4.19"
+// gen1SKU: "aro_418"
+// gen2SKU: "418-v2"
+// version: "418.94.20241009" (removes timestamp & build number)
+func parseAROSKUs(release, arch string) (string, string) {
+ xyVersion := strings.ReplaceAll(release, ".", "")
+ var gen1SKU, gen2SKU string
+ switch arch {
+ case x86:
+ gen1SKU = fmt.Sprintf("aro_%s", xyVersion)
+ gen2SKU = fmt.Sprintf("%s-v2", xyVersion)
+ case arm64:
+ gen1SKU = ""
+ gen2SKU = fmt.Sprintf("%s-arm", xyVersion)
+ }
+ return gen1SKU, gen2SKU
+}
+
+func getClient() (*armcompute.VirtualMachineImagesClient, error) {
+ ssn, err := azuresession.GetSession(azure.PublicCloud, "")
+ if err != nil {
+ return nil, fmt.Errorf("failed to get session: %w", err)
+ }
+
+ client, err := armcompute.NewVirtualMachineImagesClient(ssn.Credentials.SubscriptionID, ssn.TokenCreds, nil)
+ if err != nil {
+ return nil, fmt.Errorf("failed to create client: %w", err)
+ }
+ return client, nil
+}
+
+// ARO & the paid marketplace images format their version strings differently.
+// This function takes either one, and converts it to a go semantic version string.
+// ARO combines xy into what should be the x, and includes the RHEL version in y; e.g. 418.94.20250122.
+// Paid marketplace images use a correct semantic version (well, they use a timestamp for z, but good enough): 4.17.2024101109.
+func convertToSemver(ver string) string {
+ // Using RHEL versioning
+ if major := strings.Split(ver, ".")[0]; major == "9" || major == "10" {
+ return fmt.Sprintf("v%s", ver)
+ }
+
+ if segments := strings.Split(ver, "."); len(segments[0]) == 1 {
+ semV := fmt.Sprintf("v%s", ver)
+ return semV
+ } else if len(segments[0]) == 3 {
+ combinedXY := segments[0]
+ semV := fmt.Sprintf("v%s", strings.Join([]string{combinedXY[:1], combinedXY[1:], segments[2]}, "."))
+ return semV
+ }
+ return ""
+}
+
+func checkIfNewer(candidate, release string) bool {
+ img, err := strconv.Atoi(strings.Split(semver.MajorMinor(candidate), ".")[1])
+ if err != nil {
+ logrus.Infof("Error converting minor version to int with version %s", candidate)
+ return true
+ }
+ rel, err := strconv.Atoi(strings.Split(release, ".")[1])
+ if err != nil {
+ logrus.Infof("Error converting minor version to int with version %s", release)
+ return true
+ }
+ return img > rel
+}
diff --git a/pkg/rhcos/stream.go b/pkg/rhcos/stream.go
index 078b0e8d37..f4c62bab6d 100644
--- a/pkg/rhcos/stream.go
+++ b/pkg/rhcos/stream.go
@@ -5,3 +5,7 @@ package rhcos
func getStreamFileName() string {
return "coreos/rhcos.json"
}
+
+func getMarketplaceStreamFileName() string {
+ return "coreos/marketplace-rhcos.json"
+}
diff --git a/pkg/rhcos/stream_fcos.go b/pkg/rhcos/stream_fcos.go
index 6325fd97a1..37bf6250dd 100644
--- a/pkg/rhcos/stream_fcos.go
+++ b/pkg/rhcos/stream_fcos.go
@@ -5,3 +5,9 @@ package rhcos
func getStreamFileName() string {
return "coreos/fcos.json"
}
+
+func getMarketplaceStreamFileName() string {
+ // There is no need for OKD marketplace images at this time
+ // so we can skip reading a marketplace stream file.
+ return ""
+}
diff --git a/pkg/rhcos/stream_scos.go b/pkg/rhcos/stream_scos.go
index 121e971a3d..d5db6b94a6 100644
--- a/pkg/rhcos/stream_scos.go
+++ b/pkg/rhcos/stream_scos.go
@@ -5,3 +5,10 @@ package rhcos
func getStreamFileName() string {
return "coreos/scos.json"
}
+
+func getMarketplaceStreamFileName() string {
+ // There is no current need for scos marketplace images,
+ // so this file does not currently exist. The calling
+ // functions will gracefully handle the missing file.
+ return "coreos/marketplace-scos.json"
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md
index cf422304e7..926ed3882c 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.md
@@ -1,5 +1,19 @@
# Release History
+## 1.18.0 (2025-04-03)
+
+### Features Added
+
+* Added `AccessToken.RefreshOn` and updated `BearerTokenPolicy` to consider nonzero values of it when deciding whether to request a new token
+
+
+## 1.17.1 (2025-03-20)
+
+### Other Changes
+
+* Upgraded to Go 1.23
+* Upgraded dependencies
+
## 1.17.0 (2025-01-07)
### Features Added
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/exported.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/exported.go
index f2b296b6dc..460170034a 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/exported.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/exported.go
@@ -47,8 +47,13 @@ func HasStatusCode(resp *http.Response, statusCodes ...int) bool {
// AccessToken represents an Azure service bearer access token with expiry information.
// Exported as azcore.AccessToken.
type AccessToken struct {
- Token string
+ // Token is the access token
+ Token string
+ // ExpiresOn indicates when the token expires
ExpiresOn time.Time
+ // RefreshOn is a suggested time to refresh the token.
+ // Clients should ignore this value when it's zero.
+ RefreshOn time.Time
}
// TokenRequestOptions contain specific parameter that may be used by credentials types when attempting to get a token.
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go
index 44ab00d400..85514db3b8 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.go
@@ -40,5 +40,5 @@ const (
Module = "azcore"
// Version is the semantic version (see http://semver.org) of this module.
- Version = "v1.17.0"
+ Version = "v1.18.0"
)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_bearer_token.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_bearer_token.go
index b26db920b0..1950a2e5b3 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_bearer_token.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/policy_bearer_token.go
@@ -51,6 +51,15 @@ func acquire(state acquiringResourceState) (newResource exported.AccessToken, ne
return tk, tk.ExpiresOn, nil
}
+// shouldRefresh determines whether the token should be refreshed. It's a variable so tests can replace it.
+var shouldRefresh = func(tk exported.AccessToken, _ acquiringResourceState) bool {
+ if tk.RefreshOn.IsZero() {
+ return tk.ExpiresOn.Add(-5 * time.Minute).Before(time.Now())
+ }
+ // no offset in this case because the authority suggested a refresh window--between RefreshOn and ExpiresOn
+ return tk.RefreshOn.Before(time.Now())
+}
+
// NewBearerTokenPolicy creates a policy object that authorizes requests with bearer tokens.
// cred: an azcore.TokenCredential implementation such as a credential object from azidentity
// scopes: the list of permission scopes required for the token.
@@ -69,11 +78,14 @@ func NewBearerTokenPolicy(cred exported.TokenCredential, scopes []string, opts *
return authNZ(policy.TokenRequestOptions{Scopes: scopes})
}
}
+ mr := temporal.NewResourceWithOptions(acquire, temporal.ResourceOptions[exported.AccessToken, acquiringResourceState]{
+ ShouldRefresh: shouldRefresh,
+ })
return &BearerTokenPolicy{
authzHandler: ah,
cred: cred,
scopes: scopes,
- mainResource: temporal.NewResource(acquire),
+ mainResource: mr,
allowHTTP: opts.InsecureAllowCredentialWithHTTP,
}
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md
index 11c64eb294..84e7941e4f 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md
@@ -1,5 +1,29 @@
# Release History
+## 1.10.1 (2025-06-10)
+
+### Bugs Fixed
+- `AzureCLICredential` and `AzureDeveloperCLICredential` could wait indefinitely for subprocess output
+
+## 1.10.0 (2025-05-14)
+
+### Features Added
+- `DefaultAzureCredential` reads environment variable `AZURE_TOKEN_CREDENTIALS` to enable a subset of its credentials:
+ - `dev` selects `AzureCLICredential` and `AzureDeveloperCLICredential`
+ - `prod` selects `EnvironmentCredential`, `WorkloadIdentityCredential` and `ManagedIdentityCredential`
+
+## 1.9.0 (2025-04-08)
+
+### Features Added
+* `GetToken()` sets `AccessToken.RefreshOn` when the token provider specifies a value
+
+### Other Changes
+* `NewManagedIdentityCredential` logs the configured user-assigned identity, if any
+* Deprecated `UsernamePasswordCredential` because it can't support multifactor
+ authentication (MFA), which Microsoft Entra ID requires for most tenants. See
+ https://aka.ms/azsdk/identity/mfa for migration guidance.
+* Updated dependencies
+
## 1.8.2 (2025-02-12)
### Other Changes
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md
index 5cc64c08f2..069bc688d5 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md
@@ -21,7 +21,7 @@ go get -u github.com/Azure/azure-sdk-for-go/sdk/azidentity
## Prerequisites
- an [Azure subscription](https://azure.microsoft.com/free/)
-- Go 1.18
+- [Supported](https://aka.ms/azsdk/go/supported-versions) version of Go
### Authenticating during local development
@@ -146,7 +146,6 @@ client := armresources.NewResourceGroupsClient("subscription ID", chain, nil)
|-|-
|[InteractiveBrowserCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#InteractiveBrowserCredential)|Interactively authenticate a user with the default web browser
|[DeviceCodeCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#DeviceCodeCredential)|Interactively authenticate a user on a device with limited UI
-|[UsernamePasswordCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#UsernamePasswordCredential)|Authenticate a user with a username and password
### Authenticating via Development Tools
@@ -159,7 +158,7 @@ client := armresources.NewResourceGroupsClient("subscription ID", chain, nil)
`DefaultAzureCredential` and `EnvironmentCredential` can be configured with environment variables. Each type of authentication requires values for specific variables:
-#### Service principal with secret
+### Service principal with secret
|variable name|value
|-|-
@@ -167,7 +166,7 @@ client := armresources.NewResourceGroupsClient("subscription ID", chain, nil)
|`AZURE_TENANT_ID`|ID of the application's Microsoft Entra tenant
|`AZURE_CLIENT_SECRET`|one of the application's client secrets
-#### Service principal with certificate
+### Service principal with certificate
|variable name|value
|-|-
@@ -176,16 +175,7 @@ client := armresources.NewResourceGroupsClient("subscription ID", chain, nil)
|`AZURE_CLIENT_CERTIFICATE_PATH`|path to a certificate file including private key
|`AZURE_CLIENT_CERTIFICATE_PASSWORD`|password of the certificate file, if any
-#### Username and password
-
-|variable name|value
-|-|-
-|`AZURE_CLIENT_ID`|ID of a Microsoft Entra application
-|`AZURE_USERNAME`|a username (usually an email address)
-|`AZURE_PASSWORD`|that user's password
-
-Configuration is attempted in the above order. For example, if values for a
-client secret and certificate are both present, the client secret will be used.
+Configuration is attempted in the above order. For example, if values for a client secret and certificate are both present, the client secret will be used.
## Token caching
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD
index 8fc7c64aa3..da2094e36b 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD
@@ -22,11 +22,11 @@ Some credential types support opt-in persistent token caching (see [the below ta
Persistent caches are encrypted at rest using a mechanism that depends on the operating system:
-| Operating system | Encryption facility |
-| ---------------- | ---------------------------------------------- |
-| Linux | kernel key retention service (keyctl) |
-| macOS | Keychain (requires cgo and native build tools) |
-| Windows | Data Protection API (DPAPI) |
+| Operating system | Encryption facility | Limitations |
+| ---------------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| Linux | kernel key retention service (keyctl) | Cache data is lost on system shutdown because kernel keys are stored in memory. Depending on kernel compile options, data may also be lost on logout, or storage may be impossible because the key retention service isn't available. |
+| macOS | Keychain | Building requires cgo and native build tools. Keychain access requires a graphical session, so persistent caching isn't possible in a headless environment such as an SSH session (macOS as host). |
+| Windows | Data Protection API (DPAPI) | No specific limitations. |
Persistent caching requires encryption. When the required encryption facility is unuseable, or the application is running on an unsupported OS, the persistent cache constructor returns an error. This doesn't mean that authentication is impossible, only that credentials can't persist authentication data and the application will need to reauthenticate the next time it runs. See the package documentation for examples showing how to configure persistent caching and access cached data for [users][user_example] and [service principals][sp_example].
@@ -50,7 +50,6 @@ The following table indicates the state of in-memory and persistent caching in e
| `InteractiveBrowserCredential` | Supported | Supported |
| `ManagedIdentityCredential` | Supported | Not Supported |
| `OnBehalfOfCredential` | Supported | Not Supported |
-| `UsernamePasswordCredential` | Supported | Supported |
| `WorkloadIdentityCredential` | Supported | Supported |
[sp_example]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#example-package-PersistentServicePrincipalAuthentication
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md
index 9c4b1cd71c..91f4f05cc0 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md
@@ -20,7 +20,6 @@ This troubleshooting guide covers failure investigation techniques, common error
- [Azure App Service and Azure Functions managed identity](#azure-app-service-and-azure-functions-managed-identity)
- [Azure Kubernetes Service managed identity](#azure-kubernetes-service-managed-identity)
- [Azure Virtual Machine managed identity](#azure-virtual-machine-managed-identity)
-- [Troubleshoot UsernamePasswordCredential authentication issues](#troubleshoot-usernamepasswordcredential-authentication-issues)
- [Troubleshoot WorkloadIdentityCredential authentication issues](#troubleshoot-workloadidentitycredential-authentication-issues)
- [Get additional help](#get-additional-help)
@@ -111,13 +110,6 @@ azlog.SetEvents(azidentity.EventAuthentication)
|AADSTS700027|Client assertion contains an invalid signature.|Ensure the specified certificate has been uploaded to the application registration as described in [Microsoft Entra ID documentation](https://learn.microsoft.com/entra/identity-platform/howto-create-service-principal-portal#option-1-upload-a-certificate).|
|AADSTS700016|The specified application wasn't found in the specified tenant.|Ensure the client and tenant IDs provided to the credential constructor are correct for your application registration. For multi-tenant apps, ensure the application has been added to the desired tenant by a tenant admin. To add a new application in the desired tenant, follow the [Microsoft Entra ID instructions](https://learn.microsoft.com/entra/identity-platform/howto-create-service-principal-portal).|
-
-## Troubleshoot UsernamePasswordCredential authentication issues
-
-| Error Code | Issue | Mitigation |
-|---|---|---|
-|AADSTS50126|The provided username or password is invalid.|Ensure the username and password provided to the credential constructor are valid.|
-
## Troubleshoot ManagedIdentityCredential authentication issues
@@ -181,6 +173,7 @@ curl "$IDENTITY_ENDPOINT?resource=https://management.core.windows.net&api-versio
|---|---|---|
|Azure CLI not found on path|The Azure CLI isn’t installed or isn't on the application's path.|
- Ensure the Azure CLI is installed as described in [Azure CLI documentation](https://learn.microsoft.com/cli/azure/install-azure-cli).
- Validate the installation location is in the application's `PATH` environment variable.
|
|Please run 'az login' to set up account|No account is currently logged into the Azure CLI, or the login has expired.|- Run `az login` to log into the Azure CLI. More information about Azure CLI authentication is available in the [Azure CLI documentation](https://learn.microsoft.com/cli/azure/authenticate-azure-cli).
- Verify that the Azure CLI can obtain tokens. See [below](#verify-the-azure-cli-can-obtain-tokens) for instructions.
|
+|Subscription "[your subscription]" contains invalid characters. If this is the name of a subscription, use its ID instead|The subscription name contains a character that may not be safe in a command line.|Use the subscription's ID instead of its name. You can get this from the Azure CLI: `az account show --name "[your subscription]" --query "id"`
#### Verify the Azure CLI can obtain tokens
@@ -226,7 +219,7 @@ azd auth token --output json --scope https://management.core.windows.net/.defaul
| Error Message |Description| Mitigation |
|---|---|---|
-|no client ID/tenant ID/token file specified|Incomplete configuration|In most cases these values are provided via environment variables set by Azure Workload Identity.- If your application runs on Azure Kubernetes Servide (AKS) or a cluster that has deployed the Azure Workload Identity admission webhook, check pod labels and service account configuration. See the [AKS documentation](https://learn.microsoft.com/azure/aks/workload-identity-deploy-cluster#disable-workload-identity) and [Azure Workload Identity troubleshooting guide](https://azure.github.io/azure-workload-identity/docs/troubleshooting.html) for more details.
- If your application isn't running on AKS or your cluster hasn't deployed the Workload Identity admission webhook, set these values in `WorkloadIdentityCredentialOptions`
+|no client ID/tenant ID/token file specified|Incomplete configuration|In most cases these values are provided via environment variables set by Azure Workload Identity.
- If your application runs on Azure Kubernetes Service (AKS) or a cluster that has deployed the Azure Workload Identity admission webhook, check pod labels and service account configuration. See the [AKS documentation](https://learn.microsoft.com/azure/aks/workload-identity-deploy-cluster#disable-workload-identity) and [Azure Workload Identity troubleshooting guide](https://azure.github.io/azure-workload-identity/docs/troubleshooting.html) for more details.
- If your application isn't running on AKS or your cluster hasn't deployed the Workload Identity admission webhook, set these values in `WorkloadIdentityCredentialOptions`
## Troubleshoot AzurePipelinesCredential authentication issues
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/assets.json b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/assets.json
index 045f87acd5..4118f99ef2 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/assets.json
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "go",
"TagPrefix": "go/azidentity",
- "Tag": "go/azidentity_c55452bbf6"
+ "Tag": "go/azidentity_191110b0dd"
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azidentity.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azidentity.go
index 40a94154c6..bd196ddd32 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azidentity.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azidentity.go
@@ -22,6 +22,7 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity/internal"
"github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity"
"github.com/AzureAD/microsoft-authentication-library-for-go/apps/public"
)
@@ -208,6 +209,10 @@ type msalConfidentialClient interface {
AcquireTokenOnBehalfOf(ctx context.Context, userAssertion string, scopes []string, options ...confidential.AcquireOnBehalfOfOption) (confidential.AuthResult, error)
}
+type msalManagedIdentityClient interface {
+ AcquireToken(context.Context, string, ...managedidentity.AcquireTokenOption) (managedidentity.AuthResult, error)
+}
+
// enables fakes for test scenarios
type msalPublicClient interface {
AcquireTokenSilent(ctx context.Context, scopes []string, options ...public.AcquireSilentOption) (public.AuthResult, error)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_cli_credential.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_cli_credential.go
index 36e359a099..0fd03f4563 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_cli_credential.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_cli_credential.go
@@ -148,8 +148,14 @@ var defaultAzTokenProvider azTokenProvider = func(ctx context.Context, scopes []
cliCmd.Env = os.Environ()
var stderr bytes.Buffer
cliCmd.Stderr = &stderr
+ cliCmd.WaitDelay = 100 * time.Millisecond
- output, err := cliCmd.Output()
+ stdout, err := cliCmd.Output()
+ if errors.Is(err, exec.ErrWaitDelay) && len(stdout) > 0 {
+ // The child process wrote to stdout and exited without closing it.
+ // Swallow this error and return stdout because it may contain a token.
+ return stdout, nil
+ }
if err != nil {
msg := stderr.String()
var exErr *exec.ExitError
@@ -162,7 +168,7 @@ var defaultAzTokenProvider azTokenProvider = func(ctx context.Context, scopes []
return nil, newCredentialUnavailableError(credNameAzureCLI, msg)
}
- return output, nil
+ return stdout, nil
}
func (c *AzureCLICredential) createAccessToken(tk []byte) (azcore.AccessToken, error) {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_developer_cli_credential.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_developer_cli_credential.go
index 46d0b55192..1bd3720b64 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_developer_cli_credential.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_developer_cli_credential.go
@@ -130,7 +130,14 @@ var defaultAzdTokenProvider azdTokenProvider = func(ctx context.Context, scopes
cliCmd.Env = os.Environ()
var stderr bytes.Buffer
cliCmd.Stderr = &stderr
- output, err := cliCmd.Output()
+ cliCmd.WaitDelay = 100 * time.Millisecond
+
+ stdout, err := cliCmd.Output()
+ if errors.Is(err, exec.ErrWaitDelay) && len(stdout) > 0 {
+ // The child process wrote to stdout and exited without closing it.
+ // Swallow this error and return stdout because it may contain a token.
+ return stdout, nil
+ }
if err != nil {
msg := stderr.String()
var exErr *exec.ExitError
@@ -144,7 +151,7 @@ var defaultAzdTokenProvider azdTokenProvider = func(ctx context.Context, scopes
}
return nil, newCredentialUnavailableError(credNameAzureDeveloperCLI, msg)
}
- return output, nil
+ return stdout, nil
}
func (c *AzureDeveloperCLICredential) createAccessToken(tk []byte) (azcore.AccessToken, error) {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/confidential_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/confidential_client.go
index 92f508094d..58c4b585c1 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/confidential_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/confidential_client.go
@@ -118,7 +118,7 @@ func (c *confidentialClient) GetToken(ctx context.Context, tro policy.TokenReque
msg := fmt.Sprintf(scopeLogFmt, c.name, strings.Join(ar.GrantedScopes, ", "))
log.Write(EventAuthentication, msg)
}
- return azcore.AccessToken{Token: ar.AccessToken, ExpiresOn: ar.ExpiresOn.UTC()}, err
+ return azcore.AccessToken{Token: ar.AccessToken, ExpiresOn: ar.ExpiresOn.UTC(), RefreshOn: ar.Metadata.RefreshOn.UTC()}, err
}
func (c *confidentialClient) client(tro policy.TokenRequestOptions) (msalConfidentialClient, *sync.Mutex, error) {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/default_azure_credential.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/default_azure_credential.go
index 14af271f6a..f2a31ee6ac 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/default_azure_credential.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/default_azure_credential.go
@@ -8,6 +8,7 @@ package azidentity
import (
"context"
+ "fmt"
"os"
"strings"
@@ -16,6 +17,8 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/internal/log"
)
+const azureTokenCredentials = "AZURE_TOKEN_CREDENTIALS"
+
// DefaultAzureCredentialOptions contains optional parameters for DefaultAzureCredential.
// These options may not apply to all credentials in the chain.
type DefaultAzureCredentialOptions struct {
@@ -36,7 +39,7 @@ type DefaultAzureCredentialOptions struct {
// the application responsible for ensuring the configured authority is valid and trustworthy.
DisableInstanceDiscovery bool
- // TenantID sets the default tenant for authentication via the Azure CLI and workload identity.
+ // TenantID sets the default tenant for authentication via the Azure CLI, Azure Developer CLI, and workload identity.
TenantID string
}
@@ -67,8 +70,22 @@ type DefaultAzureCredential struct {
// NewDefaultAzureCredential creates a DefaultAzureCredential. Pass nil for options to accept defaults.
func NewDefaultAzureCredential(options *DefaultAzureCredentialOptions) (*DefaultAzureCredential, error) {
- var creds []azcore.TokenCredential
- var errorMessages []string
+ var (
+ creds []azcore.TokenCredential
+ errorMessages []string
+ includeDev, includeProd = true, true
+ )
+
+ if c, ok := os.LookupEnv(azureTokenCredentials); ok {
+ switch c {
+ case "dev":
+ includeProd = false
+ case "prod":
+ includeDev = false
+ default:
+ return nil, fmt.Errorf(`invalid %s value %q. Valid values are "dev" and "prod"`, azureTokenCredentials, c)
+ }
+ }
if options == nil {
options = &DefaultAzureCredentialOptions{}
@@ -80,60 +97,63 @@ func NewDefaultAzureCredential(options *DefaultAzureCredentialOptions) (*Default
}
}
- envCred, err := NewEnvironmentCredential(&EnvironmentCredentialOptions{
- ClientOptions: options.ClientOptions,
- DisableInstanceDiscovery: options.DisableInstanceDiscovery,
- additionallyAllowedTenants: additionalTenants,
- })
- if err == nil {
- creds = append(creds, envCred)
- } else {
- errorMessages = append(errorMessages, "EnvironmentCredential: "+err.Error())
- creds = append(creds, &defaultCredentialErrorReporter{credType: "EnvironmentCredential", err: err})
- }
+ if includeProd {
+ envCred, err := NewEnvironmentCredential(&EnvironmentCredentialOptions{
+ ClientOptions: options.ClientOptions,
+ DisableInstanceDiscovery: options.DisableInstanceDiscovery,
+ additionallyAllowedTenants: additionalTenants,
+ })
+ if err == nil {
+ creds = append(creds, envCred)
+ } else {
+ errorMessages = append(errorMessages, "EnvironmentCredential: "+err.Error())
+ creds = append(creds, &defaultCredentialErrorReporter{credType: "EnvironmentCredential", err: err})
+ }
- wic, err := NewWorkloadIdentityCredential(&WorkloadIdentityCredentialOptions{
- AdditionallyAllowedTenants: additionalTenants,
- ClientOptions: options.ClientOptions,
- DisableInstanceDiscovery: options.DisableInstanceDiscovery,
- TenantID: options.TenantID,
- })
- if err == nil {
- creds = append(creds, wic)
- } else {
- errorMessages = append(errorMessages, credNameWorkloadIdentity+": "+err.Error())
- creds = append(creds, &defaultCredentialErrorReporter{credType: credNameWorkloadIdentity, err: err})
- }
+ wic, err := NewWorkloadIdentityCredential(&WorkloadIdentityCredentialOptions{
+ AdditionallyAllowedTenants: additionalTenants,
+ ClientOptions: options.ClientOptions,
+ DisableInstanceDiscovery: options.DisableInstanceDiscovery,
+ TenantID: options.TenantID,
+ })
+ if err == nil {
+ creds = append(creds, wic)
+ } else {
+ errorMessages = append(errorMessages, credNameWorkloadIdentity+": "+err.Error())
+ creds = append(creds, &defaultCredentialErrorReporter{credType: credNameWorkloadIdentity, err: err})
+ }
- o := &ManagedIdentityCredentialOptions{ClientOptions: options.ClientOptions, dac: true}
- if ID, ok := os.LookupEnv(azureClientID); ok {
- o.ID = ClientID(ID)
- }
- miCred, err := NewManagedIdentityCredential(o)
- if err == nil {
- creds = append(creds, miCred)
- } else {
- errorMessages = append(errorMessages, credNameManagedIdentity+": "+err.Error())
- creds = append(creds, &defaultCredentialErrorReporter{credType: credNameManagedIdentity, err: err})
+ o := &ManagedIdentityCredentialOptions{ClientOptions: options.ClientOptions, dac: true}
+ if ID, ok := os.LookupEnv(azureClientID); ok {
+ o.ID = ClientID(ID)
+ }
+ miCred, err := NewManagedIdentityCredential(o)
+ if err == nil {
+ creds = append(creds, miCred)
+ } else {
+ errorMessages = append(errorMessages, credNameManagedIdentity+": "+err.Error())
+ creds = append(creds, &defaultCredentialErrorReporter{credType: credNameManagedIdentity, err: err})
+ }
}
+ if includeDev {
+ azCred, err := NewAzureCLICredential(&AzureCLICredentialOptions{AdditionallyAllowedTenants: additionalTenants, TenantID: options.TenantID})
+ if err == nil {
+ creds = append(creds, azCred)
+ } else {
+ errorMessages = append(errorMessages, credNameAzureCLI+": "+err.Error())
+ creds = append(creds, &defaultCredentialErrorReporter{credType: credNameAzureCLI, err: err})
+ }
- cliCred, err := NewAzureCLICredential(&AzureCLICredentialOptions{AdditionallyAllowedTenants: additionalTenants, TenantID: options.TenantID})
- if err == nil {
- creds = append(creds, cliCred)
- } else {
- errorMessages = append(errorMessages, credNameAzureCLI+": "+err.Error())
- creds = append(creds, &defaultCredentialErrorReporter{credType: credNameAzureCLI, err: err})
- }
-
- azdCred, err := NewAzureDeveloperCLICredential(&AzureDeveloperCLICredentialOptions{
- AdditionallyAllowedTenants: additionalTenants,
- TenantID: options.TenantID,
- })
- if err == nil {
- creds = append(creds, azdCred)
- } else {
- errorMessages = append(errorMessages, credNameAzureDeveloperCLI+": "+err.Error())
- creds = append(creds, &defaultCredentialErrorReporter{credType: credNameAzureDeveloperCLI, err: err})
+ azdCred, err := NewAzureDeveloperCLICredential(&AzureDeveloperCLICredentialOptions{
+ AdditionallyAllowedTenants: additionalTenants,
+ TenantID: options.TenantID,
+ })
+ if err == nil {
+ creds = append(creds, azdCred)
+ } else {
+ errorMessages = append(errorMessages, credNameAzureDeveloperCLI+": "+err.Error())
+ creds = append(creds, &defaultCredentialErrorReporter{credType: credNameAzureDeveloperCLI, err: err})
+ }
}
if len(errorMessages) > 0 {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/environment_credential.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/environment_credential.go
index b30f5474f5..9b5e17dcde 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/environment_credential.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/environment_credential.go
@@ -60,21 +60,13 @@ type EnvironmentCredentialOptions struct {
// Note that this credential uses [ParseCertificates] to load the certificate and key from the file. If this
// function isn't able to parse your certificate, use [ClientCertificateCredential] instead.
//
-// # User with username and password
-//
-// AZURE_TENANT_ID: (optional) tenant to authenticate in. Defaults to "organizations".
-//
-// AZURE_CLIENT_ID: client ID of the application the user will authenticate to
-//
-// AZURE_USERNAME: a username (usually an email address)
-//
-// AZURE_PASSWORD: the user's password
-//
// # Configuration for multitenant applications
//
// To enable multitenant authentication, set AZURE_ADDITIONALLY_ALLOWED_TENANTS with a semicolon delimited list of tenants
// the credential may request tokens from in addition to the tenant specified by AZURE_TENANT_ID. Set
// AZURE_ADDITIONALLY_ALLOWED_TENANTS to "*" to enable the credential to request a token from any tenant.
+//
+// [Entra ID documentation]: https://aka.ms/azsdk/identity/mfa
type EnvironmentCredential struct {
cred azcore.TokenCredential
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go
index b05cb035a8..a6d7c6cbc7 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go
@@ -103,8 +103,6 @@ func (e *AuthenticationFailedError) Error() string {
anchor = "client-secret"
case credNameManagedIdentity:
anchor = "managed-id"
- case credNameUserPassword:
- anchor = "username-password"
case credNameWorkloadIdentity:
anchor = "workload"
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/go.work b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/go.work
index 04ea962b42..6dd5b3d64d 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/go.work
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/go.work
@@ -1,4 +1,4 @@
-go 1.18
+go 1.23.0
use (
.
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed-identity-matrix.json b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed-identity-matrix.json
index 1c3791777a..edd56f9d57 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed-identity-matrix.json
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed-identity-matrix.json
@@ -9,7 +9,7 @@
}
},
"GoVersion": [
- "1.22.1"
+ "env:GO_VERSION_PREVIOUS"
],
"IDENTITY_IMDS_AVAILABLE": "1"
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed_identity_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed_identity_client.go
index cc07fd7015..b3a0f85883 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed_identity_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed_identity_client.go
@@ -8,24 +8,18 @@ package azidentity
import (
"context"
- "encoding/json"
"errors"
"fmt"
"net/http"
- "net/url"
- "os"
- "path/filepath"
- "runtime"
- "strconv"
"strings"
"time"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
azruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming"
"github.com/Azure/azure-sdk-for-go/sdk/internal/log"
- "github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential"
+ msalerrors "github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity"
)
const (
@@ -41,59 +35,20 @@ const (
msiResID = "msi_res_id"
msiSecret = "MSI_SECRET"
imdsAPIVersion = "2018-02-01"
- azureArcAPIVersion = "2019-08-15"
+ azureArcAPIVersion = "2020-06-01"
qpClientID = "client_id"
serviceFabricAPIVersion = "2019-07-01-preview"
)
var imdsProbeTimeout = time.Second
-type msiType int
-
-const (
- msiTypeAppService msiType = iota
- msiTypeAzureArc
- msiTypeAzureML
- msiTypeCloudShell
- msiTypeIMDS
- msiTypeServiceFabric
-)
-
type managedIdentityClient struct {
- azClient *azcore.Client
- endpoint string
- id ManagedIDKind
- msiType msiType
- probeIMDS bool
+ azClient *azcore.Client
+ imds, probeIMDS, userAssigned bool
// chained indicates whether the client is part of a credential chain. If true, the client will return
// a credentialUnavailableError instead of an AuthenticationFailedError for an unexpected IMDS response.
- chained bool
-}
-
-// arcKeyDirectory returns the directory expected to contain Azure Arc keys
-var arcKeyDirectory = func() (string, error) {
- switch runtime.GOOS {
- case "linux":
- return "/var/opt/azcmagent/tokens", nil
- case "windows":
- pd := os.Getenv("ProgramData")
- if pd == "" {
- return "", errors.New("environment variable ProgramData has no value")
- }
- return filepath.Join(pd, "AzureConnectedMachineAgent", "Tokens"), nil
- default:
- return "", fmt.Errorf("unsupported OS %q", runtime.GOOS)
- }
-}
-
-type wrappedNumber json.Number
-
-func (n *wrappedNumber) UnmarshalJSON(b []byte) error {
- c := string(b)
- if c == "\"\"" {
- return nil
- }
- return json.Unmarshal(b, (*json.Number)(n))
+ chained bool
+ msalClient msalManagedIdentityClient
}
// setIMDSRetryOptionDefaults sets zero-valued fields to default values appropriate for IMDS
@@ -141,51 +96,20 @@ func newManagedIdentityClient(options *ManagedIdentityCredentialOptions) (*manag
options = &ManagedIdentityCredentialOptions{}
}
cp := options.ClientOptions
- c := managedIdentityClient{id: options.ID, endpoint: imdsEndpoint, msiType: msiTypeIMDS}
- env := "IMDS"
- if endpoint, ok := os.LookupEnv(identityEndpoint); ok {
- if _, ok := os.LookupEnv(identityHeader); ok {
- if _, ok := os.LookupEnv(identityServerThumbprint); ok {
- if options.ID != nil {
- return nil, errors.New("the Service Fabric API doesn't support specifying a user-assigned identity at runtime. The identity is determined by cluster resource configuration. See https://aka.ms/servicefabricmi")
- }
- env = "Service Fabric"
- c.endpoint = endpoint
- c.msiType = msiTypeServiceFabric
- } else {
- env = "App Service"
- c.endpoint = endpoint
- c.msiType = msiTypeAppService
- }
- } else if _, ok := os.LookupEnv(arcIMDSEndpoint); ok {
- if options.ID != nil {
- return nil, errors.New("the Azure Arc API doesn't support specifying a user-assigned managed identity at runtime")
- }
- env = "Azure Arc"
- c.endpoint = endpoint
- c.msiType = msiTypeAzureArc
- }
- } else if endpoint, ok := os.LookupEnv(msiEndpoint); ok {
- c.endpoint = endpoint
- if _, ok := os.LookupEnv(msiSecret); ok {
- if options.ID != nil && options.ID.idKind() != miClientID {
- return nil, errors.New("the Azure ML API supports specifying a user-assigned managed identity by client ID only")
- }
- env = "Azure ML"
- c.msiType = msiTypeAzureML
- } else {
- if options.ID != nil {
- return nil, errors.New("the Cloud Shell API doesn't support user-assigned managed identities")
- }
- env = "Cloud Shell"
- c.msiType = msiTypeCloudShell
- }
- } else {
+ c := managedIdentityClient{}
+ source, err := managedidentity.GetSource()
+ if err != nil {
+ return nil, err
+ }
+ env := string(source)
+ if source == managedidentity.DefaultToIMDS {
+ env = "IMDS"
+ c.imds = true
c.probeIMDS = options.dac
setIMDSRetryOptionDefaults(&cp.Retry)
}
- client, err := azcore.NewClient(module, version, azruntime.PipelineOptions{
+ c.azClient, err = azcore.NewClient(module, version, azruntime.PipelineOptions{
Tracing: azruntime.TracingOptions{
Namespace: traceNamespace,
},
@@ -193,28 +117,53 @@ func newManagedIdentityClient(options *ManagedIdentityCredentialOptions) (*manag
if err != nil {
return nil, err
}
- c.azClient = client
+
+ id := managedidentity.SystemAssigned()
+ if options.ID != nil {
+ c.userAssigned = true
+ switch s := options.ID.String(); options.ID.idKind() {
+ case miClientID:
+ id = managedidentity.UserAssignedClientID(s)
+ case miObjectID:
+ id = managedidentity.UserAssignedObjectID(s)
+ case miResourceID:
+ id = managedidentity.UserAssignedResourceID(s)
+ }
+ }
+ msalClient, err := managedidentity.New(id, managedidentity.WithHTTPClient(&c), managedidentity.WithRetryPolicyDisabled())
+ if err != nil {
+ return nil, err
+ }
+ c.msalClient = &msalClient
if log.Should(EventAuthentication) {
- log.Writef(EventAuthentication, "Managed Identity Credential will use %s managed identity", env)
+ msg := fmt.Sprintf("%s will use %s managed identity", credNameManagedIdentity, env)
+ if options.ID != nil {
+ kind := "client"
+ switch options.ID.(type) {
+ case ObjectID:
+ kind = "object"
+ case ResourceID:
+ kind = "resource"
+ }
+ msg += fmt.Sprintf(" with %s ID %q", kind, options.ID.String())
+ }
+ log.Write(EventAuthentication, msg)
}
return &c, nil
}
-// provideToken acquires a token for MSAL's confidential.Client, which caches the token
-func (c *managedIdentityClient) provideToken(ctx context.Context, params confidential.TokenProviderParameters) (confidential.TokenProviderResult, error) {
- result := confidential.TokenProviderResult{}
- tk, err := c.authenticate(ctx, c.id, params.Scopes)
- if err == nil {
- result.AccessToken = tk.Token
- result.ExpiresInSeconds = int(time.Until(tk.ExpiresOn).Seconds())
- }
- return result, err
+func (*managedIdentityClient) CloseIdleConnections() {
+ // do nothing
+}
+
+func (c *managedIdentityClient) Do(r *http.Request) (*http.Response, error) {
+ return doForClient(c.azClient, r)
}
// authenticate acquires an access token
-func (c *managedIdentityClient) authenticate(ctx context.Context, id ManagedIDKind, scopes []string) (azcore.AccessToken, error) {
+func (c *managedIdentityClient) GetToken(ctx context.Context, tro policy.TokenRequestOptions) (azcore.AccessToken, error) {
// no need to synchronize around this value because it's true only when DefaultAzureCredential constructed the client,
// and in that case ChainedTokenCredential.GetToken synchronizes goroutines that would execute this block
if c.probeIMDS {
@@ -222,7 +171,7 @@ func (c *managedIdentityClient) authenticate(ctx context.Context, id ManagedIDKi
cx, cancel := context.WithTimeout(ctx, imdsProbeTimeout)
defer cancel()
cx = policy.WithRetryOptions(cx, policy.RetryOptions{MaxRetries: -1})
- req, err := azruntime.NewRequest(cx, http.MethodGet, c.endpoint)
+ req, err := azruntime.NewRequest(cx, http.MethodGet, imdsEndpoint)
if err != nil {
return azcore.AccessToken{}, fmt.Errorf("failed to create IMDS probe request: %s", err)
}
@@ -237,32 +186,26 @@ func (c *managedIdentityClient) authenticate(ctx context.Context, id ManagedIDKi
c.probeIMDS = false
}
- msg, err := c.createAuthRequest(ctx, id, scopes)
- if err != nil {
- return azcore.AccessToken{}, err
+ ar, err := c.msalClient.AcquireToken(ctx, tro.Scopes[0], managedidentity.WithClaims(tro.Claims))
+ if err == nil {
+ msg := fmt.Sprintf(scopeLogFmt, credNameManagedIdentity, strings.Join(ar.GrantedScopes, ", "))
+ log.Write(EventAuthentication, msg)
+ return azcore.AccessToken{Token: ar.AccessToken, ExpiresOn: ar.ExpiresOn.UTC(), RefreshOn: ar.Metadata.RefreshOn.UTC()}, err
}
-
- resp, err := c.azClient.Pipeline().Do(msg)
- if err != nil {
- return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, err.Error(), nil)
- }
-
- if azruntime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
- tk, err := c.createAccessToken(resp)
- if err != nil && c.chained && c.msiType == msiTypeIMDS {
- // failure to unmarshal a 2xx implies the response is from something other than IMDS such as a proxy listening at
+ if c.imds {
+ var ije msalerrors.InvalidJsonErr
+ if c.chained && errors.As(err, &ije) {
+ // an unmarshaling error implies the response is from something other than IMDS such as a proxy listening at
// the same address. Return a credentialUnavailableError so credential chains continue to their next credential
- err = newCredentialUnavailableError(credNameManagedIdentity, err.Error())
+ return azcore.AccessToken{}, newCredentialUnavailableError(credNameManagedIdentity, err.Error())
+ }
+ resp := getResponseFromError(err)
+ if resp == nil {
+ return azcore.AccessToken{}, newAuthenticationFailedErrorFromMSAL(credNameManagedIdentity, err)
}
- return tk, err
- }
-
- if c.msiType == msiTypeIMDS {
switch resp.StatusCode {
case http.StatusBadRequest:
- if id != nil {
- // return authenticationFailedError, halting any encompassing credential chain,
- // because the explicit user-assigned identity implies the developer expected this to work
+ if c.userAssigned {
return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "the requested identity isn't assigned to this resource", resp)
}
msg := "failed to authenticate a system assigned identity"
@@ -278,237 +221,7 @@ func (c *managedIdentityClient) authenticate(ctx context.Context, id ManagedIDKi
return azcore.AccessToken{}, newCredentialUnavailableError(credNameManagedIdentity, fmt.Sprintf("unexpected response %q", string(body)))
}
}
- if c.chained {
- // the response may be from something other than IMDS, for example a proxy returning
- // 404. Return credentialUnavailableError so credential chains continue to their
- // next credential, include the response in the error message to help debugging
- err = newAuthenticationFailedError(credNameManagedIdentity, "", resp)
- return azcore.AccessToken{}, newCredentialUnavailableError(credNameManagedIdentity, err.Error())
- }
}
-
- return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "", resp)
-}
-
-func (c *managedIdentityClient) createAccessToken(res *http.Response) (azcore.AccessToken, error) {
- value := struct {
- // these are the only fields that we use
- Token string `json:"access_token,omitempty"`
- RefreshToken string `json:"refresh_token,omitempty"`
- ExpiresIn wrappedNumber `json:"expires_in,omitempty"` // this field should always return the number of seconds for which a token is valid
- ExpiresOn interface{} `json:"expires_on,omitempty"` // the value returned in this field varies between a number and a date string
- }{}
- if err := azruntime.UnmarshalAsJSON(res, &value); err != nil {
- return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "Unexpected response content", res)
- }
- if value.ExpiresIn != "" {
- expiresIn, err := json.Number(value.ExpiresIn).Int64()
- if err != nil {
- return azcore.AccessToken{}, err
- }
- return azcore.AccessToken{Token: value.Token, ExpiresOn: time.Now().Add(time.Second * time.Duration(expiresIn)).UTC()}, nil
- }
- switch v := value.ExpiresOn.(type) {
- case float64:
- return azcore.AccessToken{Token: value.Token, ExpiresOn: time.Unix(int64(v), 0).UTC()}, nil
- case string:
- if expiresOn, err := strconv.Atoi(v); err == nil {
- return azcore.AccessToken{Token: value.Token, ExpiresOn: time.Unix(int64(expiresOn), 0).UTC()}, nil
- }
- return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "unexpected expires_on value: "+v, res)
- default:
- msg := fmt.Sprintf("unsupported type received in expires_on: %T, %v", v, v)
- return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, msg, res)
- }
-}
-
-func (c *managedIdentityClient) createAuthRequest(ctx context.Context, id ManagedIDKind, scopes []string) (*policy.Request, error) {
- switch c.msiType {
- case msiTypeIMDS:
- return c.createIMDSAuthRequest(ctx, id, scopes)
- case msiTypeAppService:
- return c.createAppServiceAuthRequest(ctx, id, scopes)
- case msiTypeAzureArc:
- // need to perform preliminary request to retreive the secret key challenge provided by the HIMDS service
- key, err := c.getAzureArcSecretKey(ctx, scopes)
- if err != nil {
- msg := fmt.Sprintf("failed to retreive secret key from the identity endpoint: %v", err)
- return nil, newAuthenticationFailedError(credNameManagedIdentity, msg, nil)
- }
- return c.createAzureArcAuthRequest(ctx, scopes, key)
- case msiTypeAzureML:
- return c.createAzureMLAuthRequest(ctx, id, scopes)
- case msiTypeServiceFabric:
- return c.createServiceFabricAuthRequest(ctx, scopes)
- case msiTypeCloudShell:
- return c.createCloudShellAuthRequest(ctx, scopes)
- default:
- return nil, newCredentialUnavailableError(credNameManagedIdentity, "managed identity isn't supported in this environment")
- }
-}
-
-func (c *managedIdentityClient) createIMDSAuthRequest(ctx context.Context, id ManagedIDKind, scopes []string) (*policy.Request, error) {
- request, err := azruntime.NewRequest(ctx, http.MethodGet, c.endpoint)
- if err != nil {
- return nil, err
- }
- request.Raw().Header.Set(headerMetadata, "true")
- q := request.Raw().URL.Query()
- q.Set("api-version", imdsAPIVersion)
- q.Set("resource", strings.Join(scopes, " "))
- if id != nil {
- switch id.idKind() {
- case miClientID:
- q.Set(qpClientID, id.String())
- case miObjectID:
- q.Set("object_id", id.String())
- case miResourceID:
- q.Set(msiResID, id.String())
- }
- }
- request.Raw().URL.RawQuery = q.Encode()
- return request, nil
-}
-
-func (c *managedIdentityClient) createAppServiceAuthRequest(ctx context.Context, id ManagedIDKind, scopes []string) (*policy.Request, error) {
- request, err := azruntime.NewRequest(ctx, http.MethodGet, c.endpoint)
- if err != nil {
- return nil, err
- }
- request.Raw().Header.Set("X-IDENTITY-HEADER", os.Getenv(identityHeader))
- q := request.Raw().URL.Query()
- q.Set("api-version", "2019-08-01")
- q.Set("resource", scopes[0])
- if id != nil {
- switch id.idKind() {
- case miClientID:
- q.Set(qpClientID, id.String())
- case miObjectID:
- q.Set("principal_id", id.String())
- case miResourceID:
- q.Set(miResID, id.String())
- }
- }
- request.Raw().URL.RawQuery = q.Encode()
- return request, nil
-}
-
-func (c *managedIdentityClient) createAzureMLAuthRequest(ctx context.Context, id ManagedIDKind, scopes []string) (*policy.Request, error) {
- request, err := azruntime.NewRequest(ctx, http.MethodGet, c.endpoint)
- if err != nil {
- return nil, err
- }
- request.Raw().Header.Set("secret", os.Getenv(msiSecret))
- q := request.Raw().URL.Query()
- q.Set("api-version", "2017-09-01")
- q.Set("resource", strings.Join(scopes, " "))
- q.Set("clientid", os.Getenv(defaultIdentityClientID))
- if id != nil {
- switch id.idKind() {
- case miClientID:
- q.Set("clientid", id.String())
- case miObjectID:
- return nil, newAuthenticationFailedError(credNameManagedIdentity, "Azure ML doesn't support specifying a managed identity by object ID", nil)
- case miResourceID:
- return nil, newAuthenticationFailedError(credNameManagedIdentity, "Azure ML doesn't support specifying a managed identity by resource ID", nil)
- }
- }
- request.Raw().URL.RawQuery = q.Encode()
- return request, nil
-}
-
-func (c *managedIdentityClient) createServiceFabricAuthRequest(ctx context.Context, scopes []string) (*policy.Request, error) {
- request, err := azruntime.NewRequest(ctx, http.MethodGet, c.endpoint)
- if err != nil {
- return nil, err
- }
- q := request.Raw().URL.Query()
- request.Raw().Header.Set("Accept", "application/json")
- request.Raw().Header.Set("Secret", os.Getenv(identityHeader))
- q.Set("api-version", serviceFabricAPIVersion)
- q.Set("resource", strings.Join(scopes, " "))
- request.Raw().URL.RawQuery = q.Encode()
- return request, nil
-}
-
-func (c *managedIdentityClient) getAzureArcSecretKey(ctx context.Context, resources []string) (string, error) {
- // create the request to retreive the secret key challenge provided by the HIMDS service
- request, err := azruntime.NewRequest(ctx, http.MethodGet, c.endpoint)
- if err != nil {
- return "", err
- }
- request.Raw().Header.Set(headerMetadata, "true")
- q := request.Raw().URL.Query()
- q.Set("api-version", azureArcAPIVersion)
- q.Set("resource", strings.Join(resources, " "))
- request.Raw().URL.RawQuery = q.Encode()
- // send the initial request to get the short-lived secret key
- response, err := c.azClient.Pipeline().Do(request)
- if err != nil {
- return "", err
- }
- // the endpoint is expected to return a 401 with the WWW-Authenticate header set to the location
- // of the secret key file. Any other status code indicates an error in the request.
- if response.StatusCode != 401 {
- msg := fmt.Sprintf("expected a 401 response, received %d", response.StatusCode)
- return "", newAuthenticationFailedError(credNameManagedIdentity, msg, response)
- }
- header := response.Header.Get("WWW-Authenticate")
- if len(header) == 0 {
- return "", newAuthenticationFailedError(credNameManagedIdentity, "HIMDS response has no WWW-Authenticate header", nil)
- }
- // the WWW-Authenticate header is expected in the following format: Basic realm=/some/file/path.key
- _, p, found := strings.Cut(header, "=")
- if !found {
- return "", newAuthenticationFailedError(credNameManagedIdentity, "unexpected WWW-Authenticate header from HIMDS: "+header, nil)
- }
- expected, err := arcKeyDirectory()
- if err != nil {
- return "", err
- }
- if filepath.Dir(p) != expected || !strings.HasSuffix(p, ".key") {
- return "", newAuthenticationFailedError(credNameManagedIdentity, "unexpected file path from HIMDS service: "+p, nil)
- }
- f, err := os.Stat(p)
- if err != nil {
- return "", newAuthenticationFailedError(credNameManagedIdentity, fmt.Sprintf("could not stat %q: %v", p, err), nil)
- }
- if s := f.Size(); s > 4096 {
- return "", newAuthenticationFailedError(credNameManagedIdentity, fmt.Sprintf("key is too large (%d bytes)", s), nil)
- }
- key, err := os.ReadFile(p)
- if err != nil {
- return "", newAuthenticationFailedError(credNameManagedIdentity, fmt.Sprintf("could not read %q: %v", p, err), nil)
- }
- return string(key), nil
-}
-
-func (c *managedIdentityClient) createAzureArcAuthRequest(ctx context.Context, resources []string, key string) (*policy.Request, error) {
- request, err := azruntime.NewRequest(ctx, http.MethodGet, c.endpoint)
- if err != nil {
- return nil, err
- }
- request.Raw().Header.Set(headerMetadata, "true")
- request.Raw().Header.Set("Authorization", fmt.Sprintf("Basic %s", key))
- q := request.Raw().URL.Query()
- q.Set("api-version", azureArcAPIVersion)
- q.Set("resource", strings.Join(resources, " "))
- request.Raw().URL.RawQuery = q.Encode()
- return request, nil
-}
-
-func (c *managedIdentityClient) createCloudShellAuthRequest(ctx context.Context, scopes []string) (*policy.Request, error) {
- request, err := azruntime.NewRequest(ctx, http.MethodPost, c.endpoint)
- if err != nil {
- return nil, err
- }
- request.Raw().Header.Set(headerMetadata, "true")
- data := url.Values{}
- data.Set("resource", strings.Join(scopes, " "))
- dataEncoded := data.Encode()
- body := streaming.NopCloser(strings.NewReader(dataEncoded))
- if err := request.SetBody(body, "application/x-www-form-urlencoded"); err != nil {
- return nil, err
- }
- return request, nil
+ err = newAuthenticationFailedErrorFromMSAL(credNameManagedIdentity, err)
+ return azcore.AccessToken{}, err
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed_identity_credential.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed_identity_credential.go
index 1d53579cf3..11b686ccda 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed_identity_credential.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed_identity_credential.go
@@ -14,7 +14,6 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
- "github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential"
)
const credNameManagedIdentity = "ManagedIdentityCredential"
@@ -110,8 +109,7 @@ type ManagedIdentityCredentialOptions struct {
//
// [Azure managed identity]: https://learn.microsoft.com/entra/identity/managed-identities-azure-resources/overview
type ManagedIdentityCredential struct {
- client *confidentialClient
- mic *managedIdentityClient
+ mic *managedIdentityClient
}
// NewManagedIdentityCredential creates a ManagedIdentityCredential. Pass nil to accept default options.
@@ -123,38 +121,22 @@ func NewManagedIdentityCredential(options *ManagedIdentityCredentialOptions) (*M
if err != nil {
return nil, err
}
- cred := confidential.NewCredFromTokenProvider(mic.provideToken)
-
- // It's okay to give MSAL an invalid client ID because MSAL will use it only as part of a cache key.
- // ManagedIdentityClient handles all the details of authentication and won't receive this value from MSAL.
- clientID := "SYSTEM-ASSIGNED-MANAGED-IDENTITY"
- if options.ID != nil {
- clientID = options.ID.String()
- }
- // similarly, it's okay to give MSAL an incorrect tenant because MSAL won't use the value
- c, err := newConfidentialClient("common", clientID, credNameManagedIdentity, cred, confidentialClientOptions{
- ClientOptions: options.ClientOptions,
- })
- if err != nil {
- return nil, err
- }
- return &ManagedIdentityCredential{client: c, mic: mic}, nil
+ return &ManagedIdentityCredential{mic: mic}, nil
}
// GetToken requests an access token from the hosting environment. This method is called automatically by Azure SDK clients.
func (c *ManagedIdentityCredential) GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error) {
var err error
- ctx, endSpan := runtime.StartSpan(ctx, credNameManagedIdentity+"."+traceOpGetToken, c.client.azClient.Tracer(), nil)
+ ctx, endSpan := runtime.StartSpan(ctx, credNameManagedIdentity+"."+traceOpGetToken, c.mic.azClient.Tracer(), nil)
defer func() { endSpan(err) }()
if len(opts.Scopes) != 1 {
err = fmt.Errorf("%s.GetToken() requires exactly one scope", credNameManagedIdentity)
return azcore.AccessToken{}, err
}
- // managed identity endpoints require a Microsoft Entra ID v1 resource (i.e. token audience), not a v2 scope, so we remove "/.default" here
+ // managed identity endpoints require a v1 resource (i.e. token audience), not a v2 scope, so we remove "/.default" here
opts.Scopes = []string{strings.TrimSuffix(opts.Scopes[0], defaultSuffix)}
- tk, err := c.client.GetToken(ctx, opts)
- return tk, err
+ return c.mic.GetToken(ctx, opts)
}
var _ azcore.TokenCredential = (*ManagedIdentityCredential)(nil)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/public_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/public_client.go
index ef5e4d7212..053d1785f8 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/public_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/public_client.go
@@ -243,7 +243,7 @@ func (p *publicClient) token(ar public.AuthResult, err error) (azcore.AccessToke
} else {
err = newAuthenticationFailedErrorFromMSAL(p.name, err)
}
- return azcore.AccessToken{Token: ar.AccessToken, ExpiresOn: ar.ExpiresOn.UTC()}, err
+ return azcore.AccessToken{Token: ar.AccessToken, ExpiresOn: ar.ExpiresOn.UTC(), RefreshOn: ar.Metadata.RefreshOn.UTC()}, err
}
// resolveTenant returns the correct WithTenantID() argument for a token request given the client's
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/test-resources-post.ps1 b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/test-resources-post.ps1
index efa8c6d3eb..67f97fbb2b 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/test-resources-post.ps1
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/test-resources-post.ps1
@@ -72,6 +72,7 @@ az container create -g $rg -n $aciName --image $image `
--acr-identity $($DeploymentOutputs['AZIDENTITY_USER_ASSIGNED_IDENTITY']) `
--assign-identity [system] $($DeploymentOutputs['AZIDENTITY_USER_ASSIGNED_IDENTITY']) `
--cpu 1 `
+ --ip-address Public `
--memory 1.0 `
--os-type Linux `
--role "Storage Blob Data Reader" `
@@ -82,7 +83,8 @@ az container create -g $rg -n $aciName --image $image `
AZIDENTITY_USER_ASSIGNED_IDENTITY_CLIENT_ID=$($DeploymentOutputs['AZIDENTITY_USER_ASSIGNED_IDENTITY_CLIENT_ID']) `
AZIDENTITY_USER_ASSIGNED_IDENTITY_OBJECT_ID=$($DeploymentOutputs['AZIDENTITY_USER_ASSIGNED_IDENTITY_OBJECT_ID']) `
FUNCTIONS_CUSTOMHANDLER_PORT=80
-Write-Host "##vso[task.setvariable variable=AZIDENTITY_ACI_NAME;]$aciName"
+$aciIP = az container show -g $rg -n $aciName --query ipAddress.ip --output tsv
+Write-Host "##vso[task.setvariable variable=AZIDENTITY_ACI_IP;]$aciIP"
# Azure Functions deployment: copy the Windows binary from the Docker image, deploy it in a zip
Write-Host "Deploying to Azure Functions"
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/username_password_credential.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/username_password_credential.go
index 740abd4709..5791e7d224 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/username_password_credential.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/username_password_credential.go
@@ -17,6 +17,11 @@ import (
const credNameUserPassword = "UsernamePasswordCredential"
// UsernamePasswordCredentialOptions contains optional parameters for UsernamePasswordCredential.
+//
+// Deprecated: UsernamePasswordCredential is deprecated because it can't support multifactor
+// authentication. See [Entra ID documentation] for migration guidance.
+//
+// [Entra ID documentation]: https://aka.ms/azsdk/identity/mfa
type UsernamePasswordCredentialOptions struct {
azcore.ClientOptions
@@ -43,8 +48,13 @@ type UsernamePasswordCredentialOptions struct {
// UsernamePasswordCredential authenticates a user with a password. Microsoft doesn't recommend this kind of authentication,
// because it's less secure than other authentication flows. This credential is not interactive, so it isn't compatible
-// with any form of multi-factor authentication, and the application must already have user or admin consent.
+// with any form of multifactor authentication, and the application must already have user or admin consent.
// This credential can only authenticate work and school accounts; it can't authenticate Microsoft accounts.
+//
+// Deprecated: this credential is deprecated because it can't support multifactor authentication. See [Entra ID documentation]
+// for migration guidance.
+//
+// [Entra ID documentation]: https://aka.ms/azsdk/identity/mfa
type UsernamePasswordCredential struct {
client *publicClient
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go
index fec0419ca7..2b767762fa 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go
@@ -14,5 +14,5 @@ const (
module = "github.com/Azure/azure-sdk-for-go/sdk/" + component
// Version is the semantic version (see http://semver.org) of this module.
- version = "v1.8.2"
+ version = "v1.10.1"
)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/log/log.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/log/log.go
index 4f1dcf1b78..76dadf7d35 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/log/log.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/log/log.go
@@ -44,7 +44,7 @@ func Should(cls Event) bool {
if log.lst == nil {
return false
}
- if log.cls == nil || len(log.cls) == 0 {
+ if len(log.cls) == 0 {
return true
}
for _, c := range log.cls {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/temporal/resource.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/temporal/resource.go
index 238ef42ed0..02aa1fb3bc 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/temporal/resource.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/temporal/resource.go
@@ -11,9 +11,17 @@ import (
"time"
)
+// backoff sets a minimum wait time between eager update attempts. It's a variable so tests can manipulate it.
+var backoff = func(now, lastAttempt time.Time) bool {
+ return lastAttempt.Add(30 * time.Second).After(now)
+}
+
// AcquireResource abstracts a method for refreshing a temporal resource.
type AcquireResource[TResource, TState any] func(state TState) (newResource TResource, newExpiration time.Time, err error)
+// ShouldRefresh abstracts a method for indicating whether a resource should be refreshed before expiration.
+type ShouldRefresh[TResource, TState any] func(TResource, TState) bool
+
// Resource is a temporal resource (usually a credential) that requires periodic refreshing.
type Resource[TResource, TState any] struct {
// cond is used to synchronize access to the shared resource embodied by the remaining fields
@@ -31,24 +39,43 @@ type Resource[TResource, TState any] struct {
// lastAttempt indicates when a thread/goroutine last attempted to acquire/update the resource
lastAttempt time.Time
+ // shouldRefresh indicates whether the resource should be refreshed before expiration
+ shouldRefresh ShouldRefresh[TResource, TState]
+
// acquireResource is the callback function that actually acquires the resource
acquireResource AcquireResource[TResource, TState]
}
// NewResource creates a new Resource that uses the specified AcquireResource for refreshing.
func NewResource[TResource, TState any](ar AcquireResource[TResource, TState]) *Resource[TResource, TState] {
- return &Resource[TResource, TState]{cond: sync.NewCond(&sync.Mutex{}), acquireResource: ar}
+ r := &Resource[TResource, TState]{acquireResource: ar, cond: sync.NewCond(&sync.Mutex{})}
+ r.shouldRefresh = r.expiringSoon
+ return r
+}
+
+// ResourceOptions contains optional configuration for Resource
+type ResourceOptions[TResource, TState any] struct {
+ // ShouldRefresh indicates whether [Resource.Get] should acquire an updated resource despite
+ // the currently held resource not having expired. [Resource.Get] ignores all errors from
+ // refresh attempts triggered by ShouldRefresh returning true, and doesn't call ShouldRefresh
+ // when the resource has expired (it unconditionally updates expired resources). When
+ // ShouldRefresh is nil, [Resource.Get] refreshes the resource if it will expire within 5
+ // minutes.
+ ShouldRefresh ShouldRefresh[TResource, TState]
+}
+
+// NewResourceWithOptions creates a new Resource that uses the specified AcquireResource for refreshing.
+func NewResourceWithOptions[TResource, TState any](ar AcquireResource[TResource, TState], opts ResourceOptions[TResource, TState]) *Resource[TResource, TState] {
+ r := NewResource(ar)
+ if opts.ShouldRefresh != nil {
+ r.shouldRefresh = opts.ShouldRefresh
+ }
+ return r
}
// Get returns the underlying resource.
// If the resource is fresh, no refresh is performed.
func (er *Resource[TResource, TState]) Get(state TState) (TResource, error) {
- // If the resource is expiring within this time window, update it eagerly.
- // This allows other threads/goroutines to keep running by using the not-yet-expired
- // resource value while one thread/goroutine updates the resource.
- const window = 5 * time.Minute // This example updates the resource 5 minutes prior to expiration
- const backoff = 30 * time.Second // Minimum wait time between eager update attempts
-
now, acquire, expired := time.Now(), false, false
// acquire exclusive lock
@@ -65,9 +92,8 @@ func (er *Resource[TResource, TState]) Get(state TState) (TResource, error) {
break
}
// Getting here means that this thread/goroutine will wait for the updated resource
- } else if er.expiration.Add(-window).Before(now) {
- // The resource is valid but is expiring within the time window
- if !er.acquiring && er.lastAttempt.Add(backoff).Before(now) {
+ } else if er.shouldRefresh(resource, state) {
+ if !(er.acquiring || backoff(now, er.lastAttempt)) {
// If another thread/goroutine is not acquiring/renewing the resource, and none has attempted
// to do so within the last 30 seconds, this thread/goroutine will do it
er.acquiring, acquire = true, true
@@ -121,3 +147,8 @@ func (er *Resource[TResource, TState]) Expire() {
// Reset the expiration as if we never got this resource to begin with
er.expiration = time.Time{}
}
+
+func (er *Resource[TResource, TState]) expiringSoon(TResource, TState) bool {
+ // call time.Now() instead of using Get's value so ShouldRefresh doesn't need a time.Time parameter
+ return er.expiration.Add(-5 * time.Minute).Before(time.Now())
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/CHANGELOG.md
new file mode 100644
index 0000000000..051813c3bc
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/CHANGELOG.md
@@ -0,0 +1,7980 @@
+# Release History
+
+## 1.0.0 (2022-05-16)
+### Breaking Changes
+
+- Function `*VirtualMachinesClient.BeginPowerOff` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientPowerOffResponse], error)` to `(*runtime.Poller[VirtualMachinesClientPowerOffResponse], error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse], error)`
+- Function `*VirtualMachineExtensionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineExtensionsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineExtensionsClientUpdateResponse], error)`
+- Function `*GalleryImagesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleryImagesClientDeleteResponse], error)` to `(*runtime.Poller[GalleryImagesClientDeleteResponse], error)`
+- Function `*VirtualMachinesClient.BeginPerformMaintenance` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientPerformMaintenanceResponse], error)` to `(*runtime.Poller[VirtualMachinesClientPerformMaintenanceResponse], error)`
+- Function `*GalleryApplicationVersionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationVersionsClientDeleteResponse], error)` to `(*runtime.Poller[GalleryApplicationVersionsClientDeleteResponse], error)`
+- Function `*VirtualMachineExtensionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineExtensionsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineExtensionsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse], error)`
+- Function `*CapacityReservationsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[CapacityReservationsClientDeleteResponse], error)` to `(*runtime.Poller[CapacityReservationsClientDeleteResponse], error)`
+- Function `*CloudServicesClient.BeginPowerOff` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientPowerOffResponse], error)` to `(*runtime.Poller[CloudServicesClientPowerOffResponse], error)`
+- Function `*CloudServicesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientDeleteResponse], error)` to `(*runtime.Poller[CloudServicesClientDeleteResponse], error)`
+- Function `*DiskAccessesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientUpdateResponse], error)` to `(*runtime.Poller[DiskAccessesClientUpdateResponse], error)`
+- Function `*GalleryImageVersionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryImageVersionsClientUpdateResponse], error)` to `(*runtime.Poller[GalleryImageVersionsClientUpdateResponse], error)`
+- Function `*DiskAccessesClient.BeginUpdateAPrivateEndpointConnection` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse], error)` to `(*runtime.Poller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse], error)`
+- Function `*CloudServiceRoleInstancesClient.BeginRebuild` return value(s) have been changed from `(*armruntime.Poller[CloudServiceRoleInstancesClientRebuildResponse], error)` to `(*runtime.Poller[CloudServiceRoleInstancesClientRebuildResponse], error)`
+- Function `*DiskAccessesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientDeleteResponse], error)` to `(*runtime.Poller[DiskAccessesClientDeleteResponse], error)`
+- Function `*VirtualMachinesClient.BeginDeallocate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientDeallocateResponse], error)` to `(*runtime.Poller[VirtualMachinesClientDeallocateResponse], error)`
+- Function `*RestorePointCollectionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[RestorePointCollectionsClientDeleteResponse], error)` to `(*runtime.Poller[RestorePointCollectionsClientDeleteResponse], error)`
+- Function `*DisksClient.BeginRevokeAccess` return value(s) have been changed from `(*armruntime.Poller[DisksClientRevokeAccessResponse], error)` to `(*runtime.Poller[DisksClientRevokeAccessResponse], error)`
+- Function `*CapacityReservationsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[CapacityReservationsClientUpdateResponse], error)` to `(*runtime.Poller[CapacityReservationsClientUpdateResponse], error)`
+- Function `*DiskEncryptionSetsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[DiskEncryptionSetsClientUpdateResponse], error)` to `(*runtime.Poller[DiskEncryptionSetsClientUpdateResponse], error)`
+- Function `*GalleryImageVersionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleryImageVersionsClientDeleteResponse], error)` to `(*runtime.Poller[GalleryImageVersionsClientDeleteResponse], error)`
+- Function `*DiskEncryptionSetsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[DiskEncryptionSetsClientDeleteResponse], error)` to `(*runtime.Poller[DiskEncryptionSetsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse], error)`
+- Function `*DisksClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[DisksClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[DisksClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse], error)`
+- Function `*VirtualMachineRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineRunCommandsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineRunCommandsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRedeploy` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRedeployResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientRedeployResponse], error)`
+- Function `*DisksClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[DisksClientUpdateResponse], error)` to `(*runtime.Poller[DisksClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientRestartResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientRestartResponse], error)`
+- Function `*GalleryImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryImagesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleryImagesClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRunCommand` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRunCommandResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientRunCommandResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginReimageAll` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientReimageAllResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientReimageAllResponse], error)`
+- Function `*GalleryImageVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryImageVersionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleryImageVersionsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientUpdateResponse], error)`
+- Function `*RestorePointsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[RestorePointsClientDeleteResponse], error)` to `(*runtime.Poller[RestorePointsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginStart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientStartResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientStartResponse], error)`
+- Function `*GalleriesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleriesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleriesClientCreateOrUpdateResponse], error)`
+- Function `*DiskAccessesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[DiskAccessesClientCreateOrUpdateResponse], error)`
+- Function `*GalleryApplicationVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationVersionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleryApplicationVersionsClientCreateOrUpdateResponse], error)`
+- Function `*DiskAccessesClient.BeginDeleteAPrivateEndpointConnection` return value(s) have been changed from `(*armruntime.Poller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse], error)` to `(*runtime.Poller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse], error)`
+- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` return value(s) have been changed from `(*armruntime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error)` to `(*runtime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error)`
+- Function `*DedicatedHostsClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[DedicatedHostsClientRestartResponse], error)` to `(*runtime.Poller[DedicatedHostsClientRestartResponse], error)`
+- Function `*GalleriesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleriesClientDeleteResponse], error)` to `(*runtime.Poller[GalleriesClientDeleteResponse], error)`
+- Function `*GalleryApplicationVersionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationVersionsClientUpdateResponse], error)` to `(*runtime.Poller[GalleryApplicationVersionsClientUpdateResponse], error)`
+- Function `*GalleryImagesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryImagesClientUpdateResponse], error)` to `(*runtime.Poller[GalleryImagesClientUpdateResponse], error)`
+- Function `*CloudServicesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[CloudServicesClientCreateOrUpdateResponse], error)`
+- Function `*SnapshotsClient.BeginRevokeAccess` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientRevokeAccessResponse], error)` to `(*runtime.Poller[SnapshotsClientRevokeAccessResponse], error)`
+- Function `*SnapshotsClient.BeginGrantAccess` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientGrantAccessResponse], error)` to `(*runtime.Poller[SnapshotsClientGrantAccessResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientCreateOrUpdateResponse], error)`
+- Function `*LogAnalyticsClient.BeginExportThrottledRequests` return value(s) have been changed from `(*armruntime.Poller[LogAnalyticsClientExportThrottledRequestsResponse], error)` to `(*runtime.Poller[LogAnalyticsClientExportThrottledRequestsResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientReimageResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientReimageResponse], error)`
+- Function `*CapacityReservationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[CapacityReservationsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[CapacityReservationsClientCreateOrUpdateResponse], error)`
+- Function `*CloudServicesClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientReimageResponse], error)` to `(*runtime.Poller[CloudServicesClientReimageResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginDeallocate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientDeallocateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientDeallocateResponse], error)`
+- Function `*VirtualMachinesClient.BeginConvertToManagedDisks` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientConvertToManagedDisksResponse], error)` to `(*runtime.Poller[VirtualMachinesClientConvertToManagedDisksResponse], error)`
+- Function `*ImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[ImagesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[ImagesClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientReimageResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientReimageResponse], error)`
+- Function `*VirtualMachinesClient.BeginCapture` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientCaptureResponse], error)` to `(*runtime.Poller[VirtualMachinesClientCaptureResponse], error)`
+- Function `*VirtualMachinesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachinesClientDeleteResponse], error)`
+- Function `*VirtualMachineRunCommandsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineRunCommandsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineRunCommandsClientUpdateResponse], error)`
+- Function `*DisksClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[DisksClientDeleteResponse], error)` to `(*runtime.Poller[DisksClientDeleteResponse], error)`
+- Function `*GalleryApplicationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[GalleryApplicationsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachinesClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientReimageResponse], error)` to `(*runtime.Poller[VirtualMachinesClientReimageResponse], error)`
+- Function `*DedicatedHostsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[DedicatedHostsClientUpdateResponse], error)` to `(*runtime.Poller[DedicatedHostsClientUpdateResponse], error)`
+- Function `*VirtualMachinesClient.BeginRunCommand` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientRunCommandResponse], error)` to `(*runtime.Poller[VirtualMachinesClientRunCommandResponse], error)`
+- Function `*DisksClient.BeginGrantAccess` return value(s) have been changed from `(*armruntime.Poller[DisksClientGrantAccessResponse], error)` to `(*runtime.Poller[DisksClientGrantAccessResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginReimageAll` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientReimageAllResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientReimageAllResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginRedeploy` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientRedeployResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientRedeployResponse], error)`
+- Function `*VirtualMachinesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachinesClientUpdateResponse], error)`
+- Function `*CloudServicesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientUpdateResponse], error)` to `(*runtime.Poller[CloudServicesClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginDeallocate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientDeallocateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientDeallocateResponse], error)`
+- Function `*CloudServicesClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientRestartResponse], error)` to `(*runtime.Poller[CloudServicesClientRestartResponse], error)`
+- Function `*VirtualMachinesClient.BeginStart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientStartResponse], error)` to `(*runtime.Poller[VirtualMachinesClientStartResponse], error)`
+- Function `*RestorePointsClient.BeginCreate` return value(s) have been changed from `(*armruntime.Poller[RestorePointsClientCreateResponse], error)` to `(*runtime.Poller[RestorePointsClientCreateResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRestartResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientRestartResponse], error)`
+- Function `*GalleriesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleriesClientUpdateResponse], error)` to `(*runtime.Poller[GalleriesClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientDeleteResponse], error)`
+- Function `*VirtualMachinesClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachinesClientCreateOrUpdateResponse], error)`
+- Function `*ImagesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[ImagesClientDeleteResponse], error)` to `(*runtime.Poller[ImagesClientDeleteResponse], error)`
+- Function `*ImagesClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[ImagesClientUpdateResponse], error)` to `(*runtime.Poller[ImagesClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachinesClient.BeginReapply` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientReapplyResponse], error)` to `(*runtime.Poller[VirtualMachinesClientReapplyResponse], error)`
+- Function `*DiskRestorePointClient.BeginGrantAccess` return value(s) have been changed from `(*armruntime.Poller[DiskRestorePointClientGrantAccessResponse], error)` to `(*runtime.Poller[DiskRestorePointClientGrantAccessResponse], error)`
+- Function `*VirtualMachineRunCommandsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineRunCommandsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineRunCommandsClientDeleteResponse], error)`
+- Function `*CloudServicesClient.BeginRebuild` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientRebuildResponse], error)` to `(*runtime.Poller[CloudServicesClientRebuildResponse], error)`
+- Function `*VirtualMachinesClient.BeginAssessPatches` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientAssessPatchesResponse], error)` to `(*runtime.Poller[VirtualMachinesClientAssessPatchesResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginPerformMaintenance` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientPerformMaintenanceResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientPerformMaintenanceResponse], error)`
+- Function `*VirtualMachinesClient.BeginRedeploy` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientRedeployResponse], error)` to `(*runtime.Poller[VirtualMachinesClientRedeployResponse], error)`
+- Function `*SnapshotsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientUpdateResponse], error)` to `(*runtime.Poller[SnapshotsClientUpdateResponse], error)`
+- Function `*SnapshotsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[SnapshotsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachinesClient.BeginInstallPatches` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientInstallPatchesResponse], error)` to `(*runtime.Poller[VirtualMachinesClientInstallPatchesResponse], error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse], error)`
+- Function `*CloudServicesClient.BeginDeleteInstances` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientDeleteInstancesResponse], error)` to `(*runtime.Poller[CloudServicesClientDeleteInstancesResponse], error)`
+- Function `*CloudServiceRoleInstancesClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[CloudServiceRoleInstancesClientRestartResponse], error)` to `(*runtime.Poller[CloudServiceRoleInstancesClientRestartResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginPowerOff` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientPowerOffResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientPowerOffResponse], error)`
+- Function `*VirtualMachineExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineExtensionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineExtensionsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginDeleteInstances` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientDeleteInstancesResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientDeleteInstancesResponse], error)`
+- Function `*GalleryApplicationsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationsClientUpdateResponse], error)` to `(*runtime.Poller[GalleryApplicationsClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginUpdateInstances` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientUpdateInstancesResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientUpdateInstancesResponse], error)`
+- Function `*CloudServiceRoleInstancesClient.BeginReimage` return value(s) have been changed from `(*armruntime.Poller[CloudServiceRoleInstancesClientReimageResponse], error)` to `(*runtime.Poller[CloudServiceRoleInstancesClientReimageResponse], error)`
+- Function `*LogAnalyticsClient.BeginExportRequestRateByInterval` return value(s) have been changed from `(*armruntime.Poller[LogAnalyticsClientExportRequestRateByIntervalResponse], error)` to `(*runtime.Poller[LogAnalyticsClientExportRequestRateByIntervalResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginPowerOff` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientPowerOffResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientPowerOffResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginPerformMaintenance` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse], error)`
+- Function `*DiskRestorePointClient.BeginRevokeAccess` return value(s) have been changed from `(*armruntime.Poller[DiskRestorePointClientRevokeAccessResponse], error)` to `(*runtime.Poller[DiskRestorePointClientRevokeAccessResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse], error)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientDeleteResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetExtensionsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse], error)`
+- Function `*SnapshotsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[SnapshotsClientDeleteResponse], error)` to `(*runtime.Poller[SnapshotsClientDeleteResponse], error)`
+- Function `*GallerySharingProfileClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[GallerySharingProfileClientUpdateResponse], error)` to `(*runtime.Poller[GallerySharingProfileClientUpdateResponse], error)`
+- Function `*GalleryApplicationsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[GalleryApplicationsClientDeleteResponse], error)` to `(*runtime.Poller[GalleryApplicationsClientDeleteResponse], error)`
+- Function `*DedicatedHostsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[DedicatedHostsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[DedicatedHostsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetExtensionsClientUpdateResponse], error)`
+- Function `*DiskEncryptionSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(*armruntime.Poller[DiskEncryptionSetsClientCreateOrUpdateResponse], error)` to `(*runtime.Poller[DiskEncryptionSetsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachinesClient.BeginRestart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachinesClientRestartResponse], error)` to `(*runtime.Poller[VirtualMachinesClientRestartResponse], error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse], error)`
+- Function `*CloudServicesClient.BeginStart` return value(s) have been changed from `(*armruntime.Poller[CloudServicesClientStartResponse], error)` to `(*runtime.Poller[CloudServicesClientStartResponse], error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginCancel` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse], error)`
+- Function `*DedicatedHostsClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[DedicatedHostsClientDeleteResponse], error)` to `(*runtime.Poller[DedicatedHostsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginUpdate` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetVMsClientUpdateResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetVMsClientUpdateResponse], error)`
+- Function `*CloudServiceRoleInstancesClient.BeginDelete` return value(s) have been changed from `(*armruntime.Poller[CloudServiceRoleInstancesClientDeleteResponse], error)` to `(*runtime.Poller[CloudServiceRoleInstancesClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginStart` return value(s) have been changed from `(*armruntime.Poller[VirtualMachineScaleSetsClientStartResponse], error)` to `(*runtime.Poller[VirtualMachineScaleSetsClientStartResponse], error)`
+- Type of `DiskRestorePointInstanceView.ReplicationStatus` has been changed from `interface{}` to `*DiskRestorePointReplicationStatus`
+- Type of `DiskRestorePointReplicationStatus.Status` has been changed from `interface{}` to `*InstanceViewStatus`
+- Function `DedicatedHostGroupListResult.MarshalJSON` has been removed
+- Function `ResourceSKURestrictions.MarshalJSON` has been removed
+- Function `RunCommandListResult.MarshalJSON` has been removed
+- Function `GalleryApplicationVersionList.MarshalJSON` has been removed
+- Function `CommunityGalleryImageProperties.MarshalJSON` has been removed
+- Function `VirtualMachineListResult.MarshalJSON` has been removed
+- Function `VirtualMachineAssessPatchesResult.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetListResult.MarshalJSON` has been removed
+- Function `VirtualMachineExtensionsListResult.MarshalJSON` has been removed
+- Function `GalleryImageList.MarshalJSON` has been removed
+- Function `DiskRestorePointList.MarshalJSON` has been removed
+- Function `VirtualMachineRunCommandsListResult.MarshalJSON` has been removed
+- Function `DiskRestorePointProperties.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetInstanceView.MarshalJSON` has been removed
+- Function `ResourceSKUZoneDetails.MarshalJSON` has been removed
+- Function `VirtualMachineSoftwarePatchProperties.MarshalJSON` has been removed
+- Function `RoleInstance.MarshalJSON` has been removed
+- Function `GalleryApplicationList.MarshalJSON` has been removed
+- Function `GalleryList.MarshalJSON` has been removed
+- Function `AvailabilitySetListResult.MarshalJSON` has been removed
+- Function `DiskEncryptionSetList.MarshalJSON` has been removed
+- Function `PrivateLinkResourceProperties.MarshalJSON` has been removed
+- Function `RoleInstanceView.MarshalJSON` has been removed
+- Function `RoleInstanceListResult.MarshalJSON` has been removed
+- Function `SharedGalleryImageVersionProperties.MarshalJSON` has been removed
+- Function `VirtualMachineSizeListResult.MarshalJSON` has been removed
+- Function `ResourceSKUsResult.MarshalJSON` has been removed
+- Function `SnapshotList.MarshalJSON` has been removed
+- Function `RoleInstanceNetworkProfile.MarshalJSON` has been removed
+- Function `ResourceSKURestrictionInfo.MarshalJSON` has been removed
+- Function `VirtualMachineInstallPatchesResult.MarshalJSON` has been removed
+- Function `SharedGalleryImageProperties.MarshalJSON` has been removed
+- Function `CommunityGalleryImageVersionProperties.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetVMListResult.MarshalJSON` has been removed
+- Function `SharedGalleryImageVersionList.MarshalJSON` has been removed
+- Function `ResourceURIList.MarshalJSON` has been removed
+- Function `OSVersionListResult.MarshalJSON` has been removed
+- Function `ResourceInstanceViewStatus.MarshalJSON` has been removed
+- Function `RunCommandResult.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetListOSUpgradeHistory.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetListWithLinkResult.MarshalJSON` has been removed
+- Function `PatchInstallationDetail.MarshalJSON` has been removed
+- Function `UpgradeOperationHistoryStatus.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetListSKUsResult.MarshalJSON` has been removed
+- Function `CloudServiceInstanceView.MarshalJSON` has been removed
+- Function `DedicatedHostListResult.MarshalJSON` has been removed
+- Function `RestorePointCollectionListResult.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON` has been removed
+- Function `PrivateLinkResourceListResult.MarshalJSON` has been removed
+- Function `SharedGalleryImageList.MarshalJSON` has been removed
+- Function `OSFamilyProperties.MarshalJSON` has been removed
+- Function `CapacityReservationGroupListResult.MarshalJSON` has been removed
+- Function `ProximityPlacementGroupListResult.MarshalJSON` has been removed
+- Function `PrivateEndpointConnectionListResult.MarshalJSON` has been removed
+- Function `ResourceSKU.MarshalJSON` has been removed
+- Function `OperationListResult.MarshalJSON` has been removed
+- Function `CapacityReservationListResult.MarshalJSON` has been removed
+- Function `OSFamilyListResult.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetExtensionListResult.MarshalJSON` has been removed
+- Function `InstanceViewStatusesSummary.MarshalJSON` has been removed
+- Function `CloudServiceRoleListResult.MarshalJSON` has been removed
+- Function `ResourceSKULocationInfo.MarshalJSON` has been removed
+- Function `CloudServiceListResult.MarshalJSON` has been removed
+- Function `RunCommandDocument.MarshalJSON` has been removed
+- Function `ListUsagesResult.MarshalJSON` has been removed
+- Function `GalleryImageVersionList.MarshalJSON` has been removed
+- Function `ImageListResult.MarshalJSON` has been removed
+- Function `DiskList.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetVMExtensionsListResult.MarshalJSON` has been removed
+- Function `CommunityGalleryInfo.MarshalJSON` has been removed
+- Function `DiskAccessList.MarshalJSON` has been removed
+- Function `SharedGalleryList.MarshalJSON` has been removed
+- Function `UpdateDomainListResult.MarshalJSON` has been removed
+- Function `SSHPublicKeysGroupListResult.MarshalJSON` has been removed
+
+### Features Added
+
+- New const `LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown`
+- New const `LinuxVMGuestPatchAutomaticByPlatformRebootSettingNever`
+- New const `WindowsVMGuestPatchAutomaticByPlatformRebootSettingIfRequired`
+- New const `LinuxVMGuestPatchAutomaticByPlatformRebootSettingIfRequired`
+- New const `WindowsVMGuestPatchAutomaticByPlatformRebootSettingNever`
+- New const `LinuxVMGuestPatchAutomaticByPlatformRebootSettingAlways`
+- New const `StorageAccountTypesPremiumV2LRS`
+- New const `WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown`
+- New const `WindowsVMGuestPatchAutomaticByPlatformRebootSettingAlways`
+- New function `ProximityPlacementGroupPropertiesIntent.MarshalJSON() ([]byte, error)`
+- New function `PossibleLinuxVMGuestPatchAutomaticByPlatformRebootSettingValues() []LinuxVMGuestPatchAutomaticByPlatformRebootSetting`
+- New function `PossibleWindowsVMGuestPatchAutomaticByPlatformRebootSettingValues() []WindowsVMGuestPatchAutomaticByPlatformRebootSetting`
+- New function `ResourceWithOptionalLocation.MarshalJSON() ([]byte, error)`
+- New struct `DedicatedHostGroupPropertiesAdditionalCapabilities`
+- New struct `LinuxVMGuestPatchAutomaticByPlatformSettings`
+- New struct `ProximityPlacementGroupPropertiesIntent`
+- New struct `ResourceWithOptionalLocation`
+- New struct `WindowsVMGuestPatchAutomaticByPlatformSettings`
+- New field `Zones` in struct `ProximityPlacementGroup`
+- New field `Intent` in struct `ProximityPlacementGroupProperties`
+- New field `AutomaticByPlatformSettings` in struct `LinuxPatchSettings`
+- New field `AdditionalCapabilities` in struct `DedicatedHostGroupProperties`
+- New field `DeleteOption` in struct `VirtualMachineScaleSetDataDisk`
+- New field `DeleteOption` in struct `VirtualMachineScaleSetOSDisk`
+- New field `DeleteOption` in struct `VirtualMachineScaleSetUpdateOSDisk`
+- New field `AutomaticByPlatformSettings` in struct `PatchSettings`
+- New field `UseRollingUpgradePolicy` in struct `AutomaticOSUpgradePolicy`
+- New field `Identity` in struct `VirtualMachineScaleSetVM`
+- New field `TreatFailureAsDeploymentFailure` in struct `VMGalleryApplication`
+- New field `EnableAutomaticUpgrade` in struct `VMGalleryApplication`
+- New field `CompletionPercent` in struct `DiskRestorePointReplicationStatus`
+
+
+## 0.7.0 (2022-04-15)
+### Breaking Changes
+
+- Function `*DisksClient.ListByResourceGroup` has been removed
+- Function `*VirtualMachinesClient.ListByLocation` has been removed
+- Function `*VirtualMachinesClient.ListAvailableSizes` has been removed
+- Function `*DiskAccessesClient.ListPrivateEndpointConnections` has been removed
+- Function `*RestorePointCollectionsClient.ListAll` has been removed
+- Function `*VirtualMachineScaleSetsClient.List` has been removed
+- Function `*SharedGalleryImagesClient.List` has been removed
+- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` has been removed
+- Function `*SharedGalleriesClient.List` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClient.List` has been removed
+- Function `*DiskEncryptionSetsClient.ListByResourceGroup` has been removed
+- Function `*VirtualMachineScaleSetsClient.ListAll` has been removed
+- Function `*ProximityPlacementGroupsClient.ListBySubscription` has been removed
+- Function `*DiskEncryptionSetsClient.ListAssociatedResources` has been removed
+- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` has been removed
+- Function `*GalleriesClient.ListByResourceGroup` has been removed
+- Function `*UsageClient.List` has been removed
+- Function `*GalleryImagesClient.ListByGallery` has been removed
+- Function `*GalleriesClient.List` has been removed
+- Function `*CloudServicesClient.List` has been removed
+- Function `*SSHPublicKeysClient.ListByResourceGroup` has been removed
+- Function `*RestorePointCollectionsClient.List` has been removed
+- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` has been removed
+- Function `*SnapshotsClient.ListByResourceGroup` has been removed
+- Function `*DiskEncryptionSetsClient.List` has been removed
+- Function `*ResourceSKUsClient.List` has been removed
+- Function `*CloudServiceRolesClient.List` has been removed
+- Function `*DisksClient.List` has been removed
+- Function `*DiskRestorePointClient.ListByRestorePoint` has been removed
+- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` has been removed
+- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` has been removed
+- Function `*VirtualMachinesClient.ListAll` has been removed
+- Function `*VirtualMachineRunCommandsClient.List` has been removed
+- Function `*DiskAccessesClient.List` has been removed
+- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` has been removed
+- Function `*AvailabilitySetsClient.List` has been removed
+- Function `*AvailabilitySetsClient.ListBySubscription` has been removed
+- Function `*DedicatedHostGroupsClient.ListByResourceGroup` has been removed
+- Function `*VirtualMachinesClient.List` has been removed
+- Function `*CloudServicesClient.ListAll` has been removed
+- Function `*DedicatedHostsClient.ListByHostGroup` has been removed
+- Function `*ImagesClient.ListByResourceGroup` has been removed
+- Function `*VirtualMachineScaleSetsClient.ListByLocation` has been removed
+- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` has been removed
+- Function `*AvailabilitySetsClient.ListAvailableSizes` has been removed
+- Function `*CloudServiceRoleInstancesClient.List` has been removed
+- Function `*DiskAccessesClient.ListByResourceGroup` has been removed
+- Function `*SharedGalleryImageVersionsClient.List` has been removed
+- Function `*GalleryImageVersionsClient.ListByGalleryImage` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` has been removed
+- Function `*SSHPublicKeysClient.ListBySubscription` has been removed
+- Function `*GalleryApplicationsClient.ListByGallery` has been removed
+- Function `*OperationsClient.List` has been removed
+- Function `*CapacityReservationGroupsClient.ListBySubscription` has been removed
+- Function `*CapacityReservationGroupsClient.ListByResourceGroup` has been removed
+- Function `*ImagesClient.List` has been removed
+- Function `*VirtualMachineSizesClient.List` has been removed
+- Function `*DedicatedHostGroupsClient.ListBySubscription` has been removed
+- Function `*SnapshotsClient.List` has been removed
+- Function `*VirtualMachineScaleSetVMsClient.List` has been removed
+- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` has been removed
+- Function `*VirtualMachineScaleSetsClient.ListSKUs` has been removed
+
+### Features Added
+
+- New function `*SharedGalleriesClient.NewListPager(string, *SharedGalleriesClientListOptions) *runtime.Pager[SharedGalleriesClientListResponse]`
+- New function `*VirtualMachinesClient.NewListAvailableSizesPager(string, string, *VirtualMachinesClientListAvailableSizesOptions) *runtime.Pager[VirtualMachinesClientListAvailableSizesResponse]`
+- New function `*VirtualMachineScaleSetsClient.NewListByLocationPager(string, *VirtualMachineScaleSetsClientListByLocationOptions) *runtime.Pager[VirtualMachineScaleSetsClientListByLocationResponse]`
+- New function `*VirtualMachineScaleSetsClient.NewListAllPager(*VirtualMachineScaleSetsClientListAllOptions) *runtime.Pager[VirtualMachineScaleSetsClientListAllResponse]`
+- New function `*VirtualMachineScaleSetsClient.NewListPager(string, *VirtualMachineScaleSetsClientListOptions) *runtime.Pager[VirtualMachineScaleSetsClientListResponse]`
+- New function `*GalleryApplicationVersionsClient.NewListByGalleryApplicationPager(string, string, string, *GalleryApplicationVersionsClientListByGalleryApplicationOptions) *runtime.Pager[GalleryApplicationVersionsClientListByGalleryApplicationResponse]`
+- New function `*GalleryImagesClient.NewListByGalleryPager(string, string, *GalleryImagesClientListByGalleryOptions) *runtime.Pager[GalleryImagesClientListByGalleryResponse]`
+- New function `*ProximityPlacementGroupsClient.NewListBySubscriptionPager(*ProximityPlacementGroupsClientListBySubscriptionOptions) *runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse]`
+- New function `*DiskAccessesClient.NewListPager(*DiskAccessesClientListOptions) *runtime.Pager[DiskAccessesClientListResponse]`
+- New function `*SSHPublicKeysClient.NewListBySubscriptionPager(*SSHPublicKeysClientListBySubscriptionOptions) *runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse]`
+- New function `*DiskRestorePointClient.NewListByRestorePointPager(string, string, string, *DiskRestorePointClientListByRestorePointOptions) *runtime.Pager[DiskRestorePointClientListByRestorePointResponse]`
+- New function `*CloudServicesClient.NewListAllPager(*CloudServicesClientListAllOptions) *runtime.Pager[CloudServicesClientListAllResponse]`
+- New function `*DedicatedHostsClient.NewListByHostGroupPager(string, string, *DedicatedHostsClientListByHostGroupOptions) *runtime.Pager[DedicatedHostsClientListByHostGroupResponse]`
+- New function `*VirtualMachinesClient.NewListByLocationPager(string, *VirtualMachinesClientListByLocationOptions) *runtime.Pager[VirtualMachinesClientListByLocationResponse]`
+- New function `*GalleryApplicationsClient.NewListByGalleryPager(string, string, *GalleryApplicationsClientListByGalleryOptions) *runtime.Pager[GalleryApplicationsClientListByGalleryResponse]`
+- New function `*VirtualMachineScaleSetExtensionsClient.NewListPager(string, string, *VirtualMachineScaleSetExtensionsClientListOptions) *runtime.Pager[VirtualMachineScaleSetExtensionsClientListResponse]`
+- New function `*VirtualMachineSizesClient.NewListPager(string, *VirtualMachineSizesClientListOptions) *runtime.Pager[VirtualMachineSizesClientListResponse]`
+- New function `*SharedGalleryImageVersionsClient.NewListPager(string, string, string, *SharedGalleryImageVersionsClientListOptions) *runtime.Pager[SharedGalleryImageVersionsClientListResponse]`
+- New function `*ImagesClient.NewListByResourceGroupPager(string, *ImagesClientListByResourceGroupOptions) *runtime.Pager[ImagesClientListByResourceGroupResponse]`
+- New function `*VirtualMachineRunCommandsClient.NewListPager(string, *VirtualMachineRunCommandsClientListOptions) *runtime.Pager[VirtualMachineRunCommandsClientListResponse]`
+- New function `*DisksClient.NewListPager(*DisksClientListOptions) *runtime.Pager[DisksClientListResponse]`
+- New function `*VirtualMachineScaleSetVMsClient.NewListPager(string, string, *VirtualMachineScaleSetVMsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMsClientListResponse]`
+- New function `*CloudServiceRoleInstancesClient.NewListPager(string, string, *CloudServiceRoleInstancesClientListOptions) *runtime.Pager[CloudServiceRoleInstancesClientListResponse]`
+- New function `*SnapshotsClient.NewListPager(*SnapshotsClientListOptions) *runtime.Pager[SnapshotsClientListResponse]`
+- New function `*ImagesClient.NewListPager(*ImagesClientListOptions) *runtime.Pager[ImagesClientListResponse]`
+- New function `*DiskAccessesClient.NewListByResourceGroupPager(string, *DiskAccessesClientListByResourceGroupOptions) *runtime.Pager[DiskAccessesClientListByResourceGroupResponse]`
+- New function `*ResourceSKUsClient.NewListPager(*ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse]`
+- New function `*DisksClient.NewListByResourceGroupPager(string, *DisksClientListByResourceGroupOptions) *runtime.Pager[DisksClientListByResourceGroupResponse]`
+- New function `*CloudServicesClient.NewListPager(string, *CloudServicesClientListOptions) *runtime.Pager[CloudServicesClientListResponse]`
+- New function `*AvailabilitySetsClient.NewListAvailableSizesPager(string, string, *AvailabilitySetsClientListAvailableSizesOptions) *runtime.Pager[AvailabilitySetsClientListAvailableSizesResponse]`
+- New function `*CloudServicesUpdateDomainClient.NewListUpdateDomainsPager(string, string, *CloudServicesUpdateDomainClientListUpdateDomainsOptions) *runtime.Pager[CloudServicesUpdateDomainClientListUpdateDomainsResponse]`
+- New function `*ProximityPlacementGroupsClient.NewListByResourceGroupPager(string, *ProximityPlacementGroupsClientListByResourceGroupOptions) *runtime.Pager[ProximityPlacementGroupsClientListByResourceGroupResponse]`
+- New function `*DiskEncryptionSetsClient.NewListPager(*DiskEncryptionSetsClientListOptions) *runtime.Pager[DiskEncryptionSetsClientListResponse]`
+- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]`
+- New function `*SnapshotsClient.NewListByResourceGroupPager(string, *SnapshotsClientListByResourceGroupOptions) *runtime.Pager[SnapshotsClientListByResourceGroupResponse]`
+- New function `*DedicatedHostGroupsClient.NewListBySubscriptionPager(*DedicatedHostGroupsClientListBySubscriptionOptions) *runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse]`
+- New function `*CapacityReservationsClient.NewListByCapacityReservationGroupPager(string, string, *CapacityReservationsClientListByCapacityReservationGroupOptions) *runtime.Pager[CapacityReservationsClientListByCapacityReservationGroupResponse]`
+- New function `*CapacityReservationGroupsClient.NewListByResourceGroupPager(string, *CapacityReservationGroupsClientListByResourceGroupOptions) *runtime.Pager[CapacityReservationGroupsClientListByResourceGroupResponse]`
+- New function `*CloudServiceOperatingSystemsClient.NewListOSVersionsPager(string, *CloudServiceOperatingSystemsClientListOSVersionsOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSVersionsResponse]`
+- New function `*VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager(string, string, *VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions) *runtime.Pager[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse]`
+- New function `*GalleriesClient.NewListByResourceGroupPager(string, *GalleriesClientListByResourceGroupOptions) *runtime.Pager[GalleriesClientListByResourceGroupResponse]`
+- New function `*CloudServiceRolesClient.NewListPager(string, string, *CloudServiceRolesClientListOptions) *runtime.Pager[CloudServiceRolesClientListResponse]`
+- New function `*VirtualMachinesClient.NewListPager(string, *VirtualMachinesClientListOptions) *runtime.Pager[VirtualMachinesClientListResponse]`
+- New function `*DedicatedHostGroupsClient.NewListByResourceGroupPager(string, *DedicatedHostGroupsClientListByResourceGroupOptions) *runtime.Pager[DedicatedHostGroupsClientListByResourceGroupResponse]`
+- New function `*RestorePointCollectionsClient.NewListPager(string, *RestorePointCollectionsClientListOptions) *runtime.Pager[RestorePointCollectionsClientListResponse]`
+- New function `*AvailabilitySetsClient.NewListBySubscriptionPager(*AvailabilitySetsClientListBySubscriptionOptions) *runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse]`
+- New function `*CapacityReservationGroupsClient.NewListBySubscriptionPager(*CapacityReservationGroupsClientListBySubscriptionOptions) *runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse]`
+- New function `*RestorePointCollectionsClient.NewListAllPager(*RestorePointCollectionsClientListAllOptions) *runtime.Pager[RestorePointCollectionsClientListAllResponse]`
+- New function `*CloudServiceOperatingSystemsClient.NewListOSFamiliesPager(string, *CloudServiceOperatingSystemsClientListOSFamiliesOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSFamiliesResponse]`
+- New function `*SharedGalleryImagesClient.NewListPager(string, string, *SharedGalleryImagesClientListOptions) *runtime.Pager[SharedGalleryImagesClientListResponse]`
+- New function `*GalleriesClient.NewListPager(*GalleriesClientListOptions) *runtime.Pager[GalleriesClientListResponse]`
+- New function `*VirtualMachinesClient.NewListAllPager(*VirtualMachinesClientListAllOptions) *runtime.Pager[VirtualMachinesClientListAllResponse]`
+- New function `*SSHPublicKeysClient.NewListByResourceGroupPager(string, *SSHPublicKeysClientListByResourceGroupOptions) *runtime.Pager[SSHPublicKeysClientListByResourceGroupResponse]`
+- New function `*VirtualMachineScaleSetsClient.NewListSKUsPager(string, string, *VirtualMachineScaleSetsClientListSKUsOptions) *runtime.Pager[VirtualMachineScaleSetsClientListSKUsResponse]`
+- New function `*DiskAccessesClient.NewListPrivateEndpointConnectionsPager(string, string, *DiskAccessesClientListPrivateEndpointConnectionsOptions) *runtime.Pager[DiskAccessesClientListPrivateEndpointConnectionsResponse]`
+- New function `*VirtualMachineRunCommandsClient.NewListByVirtualMachinePager(string, string, *VirtualMachineRunCommandsClientListByVirtualMachineOptions) *runtime.Pager[VirtualMachineRunCommandsClientListByVirtualMachineResponse]`
+- New function `*VirtualMachineScaleSetVMRunCommandsClient.NewListPager(string, string, string, *VirtualMachineScaleSetVMRunCommandsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMRunCommandsClientListResponse]`
+- New function `*DiskEncryptionSetsClient.NewListByResourceGroupPager(string, *DiskEncryptionSetsClientListByResourceGroupOptions) *runtime.Pager[DiskEncryptionSetsClientListByResourceGroupResponse]`
+- New function `*UsageClient.NewListPager(string, *UsageClientListOptions) *runtime.Pager[UsageClientListResponse]`
+- New function `*DiskEncryptionSetsClient.NewListAssociatedResourcesPager(string, string, *DiskEncryptionSetsClientListAssociatedResourcesOptions) *runtime.Pager[DiskEncryptionSetsClientListAssociatedResourcesResponse]`
+- New function `*GalleryImageVersionsClient.NewListByGalleryImagePager(string, string, string, *GalleryImageVersionsClientListByGalleryImageOptions) *runtime.Pager[GalleryImageVersionsClientListByGalleryImageResponse]`
+- New function `*AvailabilitySetsClient.NewListPager(string, *AvailabilitySetsClientListOptions) *runtime.Pager[AvailabilitySetsClientListResponse]`
+
+
+## 0.6.0 (2022-04-13)
+### Breaking Changes
+
+- Function `*GalleryImagesClient.ListByGallery` return value(s) have been changed from `(*GalleryImagesClientListByGalleryPager)` to `(*runtime.Pager[GalleryImagesClientListByGalleryResponse])`
+- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` return value(s) have been changed from `(*CapacityReservationsClientListByCapacityReservationGroupPager)` to `(*runtime.Pager[CapacityReservationsClientListByCapacityReservationGroupResponse])`
+- Function `NewVirtualMachineScaleSetsClient` return value(s) have been changed from `(*VirtualMachineScaleSetsClient)` to `(*VirtualMachineScaleSetsClient, error)`
+- Function `*VirtualMachineScaleSetsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetsClientListPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientListResponse])`
+- Function `*CapacityReservationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(CapacityReservationsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[CapacityReservationsClientCreateOrUpdateResponse], error)`
+- Function `*SharedGalleriesClient.List` return value(s) have been changed from `(*SharedGalleriesClientListPager)` to `(*runtime.Pager[SharedGalleriesClientListResponse])`
+- Function `*VirtualMachinesClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachinesClientDeallocatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientDeallocateResponse], error)`
+- Function `*LogAnalyticsClient.BeginExportThrottledRequests` return value(s) have been changed from `(LogAnalyticsClientExportThrottledRequestsPollerResponse, error)` to `(*armruntime.Poller[LogAnalyticsClientExportThrottledRequestsResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginRestart` return value(s) have been changed from `(VirtualMachineScaleSetsClientRestartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientRestartResponse], error)`
+- Function `*VirtualMachinesClient.BeginAssessPatches` return value(s) have been changed from `(VirtualMachinesClientAssessPatchesPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientAssessPatchesResponse], error)`
+- Function `*RestorePointCollectionsClient.List` return value(s) have been changed from `(*RestorePointCollectionsClientListPager)` to `(*runtime.Pager[RestorePointCollectionsClientListResponse])`
+- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` return value(s) have been changed from `(*CloudServiceOperatingSystemsClientListOSVersionsPager)` to `(*runtime.Pager[CloudServiceOperatingSystemsClientListOSVersionsResponse])`
+- Function `*VirtualMachineScaleSetsClient.ListAll` return value(s) have been changed from `(*VirtualMachineScaleSetsClientListAllPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientListAllResponse])`
+- Function `NewDedicatedHostGroupsClient` return value(s) have been changed from `(*DedicatedHostGroupsClient)` to `(*DedicatedHostGroupsClient, error)`
+- Function `*DisksClient.BeginCreateOrUpdate` return value(s) have been changed from `(DisksClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[DisksClientCreateOrUpdateResponse], error)`
+- Function `NewLogAnalyticsClient` return value(s) have been changed from `(*LogAnalyticsClient)` to `(*LogAnalyticsClient, error)`
+- Function `*CloudServiceRoleInstancesClient.List` return value(s) have been changed from `(*CloudServiceRoleInstancesClientListPager)` to `(*runtime.Pager[CloudServiceRoleInstancesClientListResponse])`
+- Function `*DiskEncryptionSetsClient.BeginDelete` return value(s) have been changed from `(DiskEncryptionSetsClientDeletePollerResponse, error)` to `(*armruntime.Poller[DiskEncryptionSetsClientDeleteResponse], error)`
+- Function `*GalleryImageVersionsClient.ListByGalleryImage` return value(s) have been changed from `(*GalleryImageVersionsClientListByGalleryImagePager)` to `(*runtime.Pager[GalleryImageVersionsClientListByGalleryImageResponse])`
+- Function `*DiskEncryptionSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(DiskEncryptionSetsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[DiskEncryptionSetsClientCreateOrUpdateResponse], error)`
+- Function `*CloudServiceRoleInstancesClient.BeginDelete` return value(s) have been changed from `(CloudServiceRoleInstancesClientDeletePollerResponse, error)` to `(*armruntime.Poller[CloudServiceRoleInstancesClientDeleteResponse], error)`
+- Function `*GalleryImageVersionsClient.BeginDelete` return value(s) have been changed from `(GalleryImageVersionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleryImageVersionsClientDeleteResponse], error)`
+- Function `*VirtualMachinesClient.ListAvailableSizes` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesClientListAvailableSizesOptions)` to `(string, string, *VirtualMachinesClientListAvailableSizesOptions)`
+- Function `*VirtualMachinesClient.ListAvailableSizes` return value(s) have been changed from `(VirtualMachinesClientListAvailableSizesResponse, error)` to `(*runtime.Pager[VirtualMachinesClientListAvailableSizesResponse])`
+- Function `*CloudServiceRolesClient.List` return value(s) have been changed from `(*CloudServiceRolesClientListPager)` to `(*runtime.Pager[CloudServiceRolesClientListResponse])`
+- Function `*DedicatedHostGroupsClient.ListBySubscription` return value(s) have been changed from `(*DedicatedHostGroupsClientListBySubscriptionPager)` to `(*runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse])`
+- Function `*CloudServiceRoleInstancesClient.BeginRebuild` return value(s) have been changed from `(CloudServiceRoleInstancesClientRebuildPollerResponse, error)` to `(*armruntime.Poller[CloudServiceRoleInstancesClientRebuildResponse], error)`
+- Function `NewSSHPublicKeysClient` return value(s) have been changed from `(*SSHPublicKeysClient)` to `(*SSHPublicKeysClient, error)`
+- Function `*VirtualMachinesClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachinesClientRedeployPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientRedeployResponse], error)`
+- Function `*CloudServicesClient.BeginDelete` return value(s) have been changed from `(CloudServicesClientDeletePollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientDeleteResponse], error)`
+- Function `*AvailabilitySetsClient.ListAvailableSizes` parameter(s) have been changed from `(context.Context, string, string, *AvailabilitySetsClientListAvailableSizesOptions)` to `(string, string, *AvailabilitySetsClientListAvailableSizesOptions)`
+- Function `*AvailabilitySetsClient.ListAvailableSizes` return value(s) have been changed from `(AvailabilitySetsClientListAvailableSizesResponse, error)` to `(*runtime.Pager[AvailabilitySetsClientListAvailableSizesResponse])`
+- Function `*DiskAccessesClient.BeginDelete` return value(s) have been changed from `(DiskAccessesClientDeletePollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse], error)`
+- Function `*CloudServicesClient.BeginStart` return value(s) have been changed from `(CloudServicesClientStartPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientStartResponse], error)`
+- Function `NewGalleriesClient` return value(s) have been changed from `(*GalleriesClient)` to `(*GalleriesClient, error)`
+- Function `NewCommunityGalleryImageVersionsClient` return value(s) have been changed from `(*CommunityGalleryImageVersionsClient)` to `(*CommunityGalleryImageVersionsClient, error)`
+- Function `*RestorePointsClient.BeginCreate` return value(s) have been changed from `(RestorePointsClientCreatePollerResponse, error)` to `(*armruntime.Poller[RestorePointsClientCreateResponse], error)`
+- Function `*GalleryImagesClient.BeginDelete` return value(s) have been changed from `(GalleryImagesClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleryImagesClientDeleteResponse], error)`
+- Function `*VirtualMachinesClient.BeginRestart` return value(s) have been changed from `(VirtualMachinesClientRestartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientRestartResponse], error)`
+- Function `NewImagesClient` return value(s) have been changed from `(*ImagesClient)` to `(*ImagesClient, error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse], error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse], error)`
+- Function `*VirtualMachinesClient.BeginReapply` return value(s) have been changed from `(VirtualMachinesClientReapplyPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientReapplyResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.ListByLocation` return value(s) have been changed from `(*VirtualMachineScaleSetsClientListByLocationPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientListByLocationResponse])`
+- Function `*DiskRestorePointClient.BeginRevokeAccess` return value(s) have been changed from `(DiskRestorePointClientRevokeAccessPollerResponse, error)` to `(*armruntime.Poller[DiskRestorePointClientRevokeAccessResponse], error)`
+- Function `NewCapacityReservationGroupsClient` return value(s) have been changed from `(*CapacityReservationGroupsClient)` to `(*CapacityReservationGroupsClient, error)`
+- Function `*GalleryApplicationsClient.BeginUpdate` return value(s) have been changed from `(GalleryApplicationsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationsClientUpdateResponse], error)`
+- Function `NewUsageClient` return value(s) have been changed from `(*UsageClient)` to `(*UsageClient, error)`
+- Function `*VirtualMachinesClient.BeginConvertToManagedDisks` return value(s) have been changed from `(VirtualMachinesClientConvertToManagedDisksPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientConvertToManagedDisksResponse], error)`
+- Function `*SharedGalleryImagesClient.List` return value(s) have been changed from `(*SharedGalleryImagesClientListPager)` to `(*runtime.Pager[SharedGalleryImagesClientListResponse])`
+- Function `*CapacityReservationGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*CapacityReservationGroupsClientListByResourceGroupPager)` to `(*runtime.Pager[CapacityReservationGroupsClientListByResourceGroupResponse])`
+- Function `*UsageClient.List` return value(s) have been changed from `(*UsageClientListPager)` to `(*runtime.Pager[UsageClientListResponse])`
+- Function `NewSharedGalleryImagesClient` return value(s) have been changed from `(*SharedGalleryImagesClient)` to `(*SharedGalleryImagesClient, error)`
+- Function `*DedicatedHostsClient.BeginUpdate` return value(s) have been changed from `(DedicatedHostsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[DedicatedHostsClientUpdateResponse], error)`
+- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` return value(s) have been changed from `(*CloudServicesUpdateDomainClientListUpdateDomainsPager)` to `(*runtime.Pager[CloudServicesUpdateDomainClientListUpdateDomainsResponse])`
+- Function `*AvailabilitySetsClient.List` return value(s) have been changed from `(*AvailabilitySetsClientListPager)` to `(*runtime.Pager[AvailabilitySetsClientListResponse])`
+- Function `*GalleryImageVersionsClient.BeginUpdate` return value(s) have been changed from `(GalleryImageVersionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryImageVersionsClientUpdateResponse], error)`
+- Function `NewCloudServiceRolesClient` return value(s) have been changed from `(*CloudServiceRolesClient)` to `(*CloudServiceRolesClient, error)`
+- Function `*DiskAccessesClient.BeginCreateOrUpdate` return value(s) have been changed from `(DiskAccessesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientCreateOrUpdateResponse], error)`
+- Function `NewVirtualMachinesClient` return value(s) have been changed from `(*VirtualMachinesClient)` to `(*VirtualMachinesClient, error)`
+- Function `*RestorePointCollectionsClient.ListAll` return value(s) have been changed from `(*RestorePointCollectionsClientListAllPager)` to `(*runtime.Pager[RestorePointCollectionsClientListAllResponse])`
+- Function `*VirtualMachineScaleSetsClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachineScaleSetsClientPowerOffPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientPowerOffResponse], error)`
+- Function `NewDedicatedHostsClient` return value(s) have been changed from `(*DedicatedHostsClient)` to `(*DedicatedHostsClient, error)`
+- Function `*VirtualMachineExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineExtensionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineExtensionsClientDeleteResponse], error)`
+- Function `NewVirtualMachineScaleSetExtensionsClient` return value(s) have been changed from `(*VirtualMachineScaleSetExtensionsClient)` to `(*VirtualMachineScaleSetExtensionsClient, error)`
+- Function `*VirtualMachineRunCommandsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineRunCommandsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineRunCommandsClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRunCommand` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientRunCommandPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRunCommandResponse], error)`
+- Function `*DedicatedHostsClient.BeginRestart` return value(s) have been changed from `(DedicatedHostsClientRestartPollerResponse, error)` to `(*armruntime.Poller[DedicatedHostsClientRestartResponse], error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse], error)`
+- Function `*GalleryApplicationVersionsClient.BeginUpdate` return value(s) have been changed from `(GalleryApplicationVersionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationVersionsClientUpdateResponse], error)`
+- Function `NewDiskAccessesClient` return value(s) have been changed from `(*DiskAccessesClient)` to `(*DiskAccessesClient, error)`
+- Function `NewGalleryApplicationVersionsClient` return value(s) have been changed from `(*GalleryApplicationVersionsClient)` to `(*GalleryApplicationVersionsClient, error)`
+- Function `*DiskRestorePointClient.BeginGrantAccess` return value(s) have been changed from `(DiskRestorePointClientGrantAccessPollerResponse, error)` to `(*armruntime.Poller[DiskRestorePointClientGrantAccessResponse], error)`
+- Function `*CloudServiceRoleInstancesClient.BeginRestart` return value(s) have been changed from `(CloudServiceRoleInstancesClientRestartPollerResponse, error)` to `(*armruntime.Poller[CloudServiceRoleInstancesClientRestartResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginReimageAll` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientReimageAllPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientReimageAllResponse], error)`
+- Function `*VirtualMachinesClient.BeginStart` return value(s) have been changed from `(VirtualMachinesClientStartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientStartResponse], error)`
+- Function `*VirtualMachineRunCommandsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineRunCommandsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineRunCommandsClientDeleteResponse], error)`
+- Function `NewVirtualMachineScaleSetRollingUpgradesClient` return value(s) have been changed from `(*VirtualMachineScaleSetRollingUpgradesClient)` to `(*VirtualMachineScaleSetRollingUpgradesClient, error)`
+- Function `*GallerySharingProfileClient.BeginUpdate` return value(s) have been changed from `(GallerySharingProfileClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GallerySharingProfileClientUpdateResponse], error)`
+- Function `NewCloudServiceRoleInstancesClient` return value(s) have been changed from `(*CloudServiceRoleInstancesClient)` to `(*CloudServiceRoleInstancesClient, error)`
+- Function `NewSnapshotsClient` return value(s) have been changed from `(*SnapshotsClient)` to `(*SnapshotsClient, error)`
+- Function `NewResourceSKUsClient` return value(s) have been changed from `(*ResourceSKUsClient)` to `(*ResourceSKUsClient, error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginReimage` return value(s) have been changed from `(VirtualMachineScaleSetsClientReimagePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientReimageResponse], error)`
+- Function `*SnapshotsClient.BeginRevokeAccess` return value(s) have been changed from `(SnapshotsClientRevokeAccessPollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientRevokeAccessResponse], error)`
+- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` return value(s) have been changed from `(CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse, error)` to `(*armruntime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error)`
+- Function `*GalleryApplicationVersionsClient.BeginDelete` return value(s) have been changed from `(GalleryApplicationVersionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationVersionsClientDeleteResponse], error)`
+- Function `*DedicatedHostsClient.BeginDelete` return value(s) have been changed from `(DedicatedHostsClientDeletePollerResponse, error)` to `(*armruntime.Poller[DedicatedHostsClientDeleteResponse], error)`
+- Function `*DiskEncryptionSetsClient.ListAssociatedResources` return value(s) have been changed from `(*DiskEncryptionSetsClientListAssociatedResourcesPager)` to `(*runtime.Pager[DiskEncryptionSetsClientListAssociatedResourcesResponse])`
+- Function `*SSHPublicKeysClient.ListByResourceGroup` return value(s) have been changed from `(*SSHPublicKeysClientListByResourceGroupPager)` to `(*runtime.Pager[SSHPublicKeysClientListByResourceGroupResponse])`
+- Function `*VirtualMachineScaleSetsClient.BeginReimageAll` return value(s) have been changed from `(VirtualMachineScaleSetsClientReimageAllPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientReimageAllResponse], error)`
+- Function `*VirtualMachinesClient.BeginInstallPatches` return value(s) have been changed from `(VirtualMachinesClientInstallPatchesPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientInstallPatchesResponse], error)`
+- Function `*AvailabilitySetsClient.ListBySubscription` return value(s) have been changed from `(*AvailabilitySetsClientListBySubscriptionPager)` to `(*runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse])`
+- Function `*CloudServicesClient.BeginRebuild` return value(s) have been changed from `(CloudServicesClientRebuildPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientRebuildResponse], error)`
+- Function `NewSharedGalleriesClient` return value(s) have been changed from `(*SharedGalleriesClient)` to `(*SharedGalleriesClient, error)`
+- Function `*VirtualMachineScaleSetVMsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetVMsClientListPager)` to `(*runtime.Pager[VirtualMachineScaleSetVMsClientListResponse])`
+- Function `*VirtualMachinesClient.List` return value(s) have been changed from `(*VirtualMachinesClientListPager)` to `(*runtime.Pager[VirtualMachinesClientListResponse])`
+- Function `*GalleryApplicationsClient.ListByGallery` return value(s) have been changed from `(*GalleryApplicationsClientListByGalleryPager)` to `(*runtime.Pager[GalleryApplicationsClientListByGalleryResponse])`
+- Function `*VirtualMachineExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineExtensionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineExtensionsClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginReimage` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientReimagePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientReimageResponse], error)`
+- Function `*ResourceSKUsClient.List` return value(s) have been changed from `(*ResourceSKUsClientListPager)` to `(*runtime.Pager[ResourceSKUsClientListResponse])`
+- Function `NewVirtualMachineScaleSetVMRunCommandsClient` return value(s) have been changed from `(*VirtualMachineScaleSetVMRunCommandsClient)` to `(*VirtualMachineScaleSetVMRunCommandsClient, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachineScaleSetsClientPerformMaintenancePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientPerformMaintenanceResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginUpdateInstances` return value(s) have been changed from `(VirtualMachineScaleSetsClientUpdateInstancesPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientUpdateInstancesResponse], error)`
+- Function `*VirtualMachinesClient.BeginCapture` return value(s) have been changed from `(VirtualMachinesClientCapturePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientCaptureResponse], error)`
+- Function `*DiskAccessesClient.BeginDeleteAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse], error)`
+- Function `NewDiskEncryptionSetsClient` return value(s) have been changed from `(*DiskEncryptionSetsClient)` to `(*DiskEncryptionSetsClient, error)`
+- Function `*SnapshotsClient.BeginCreateOrUpdate` return value(s) have been changed from `(SnapshotsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientCreateOrUpdateResponse], error)`
+- Function `NewVirtualMachineRunCommandsClient` return value(s) have been changed from `(*VirtualMachineRunCommandsClient)` to `(*VirtualMachineRunCommandsClient, error)`
+- Function `NewCapacityReservationsClient` return value(s) have been changed from `(*CapacityReservationsClient)` to `(*CapacityReservationsClient, error)`
+- Function `NewCommunityGalleriesClient` return value(s) have been changed from `(*CommunityGalleriesClient)` to `(*CommunityGalleriesClient, error)`
+- Function `*SnapshotsClient.ListByResourceGroup` return value(s) have been changed from `(*SnapshotsClientListByResourceGroupPager)` to `(*runtime.Pager[SnapshotsClientListByResourceGroupResponse])`
+- Function `NewRestorePointCollectionsClient` return value(s) have been changed from `(*RestorePointCollectionsClient)` to `(*RestorePointCollectionsClient, error)`
+- Function `*DiskAccessesClient.BeginUpdate` return value(s) have been changed from `(DiskAccessesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientUpdateResponse], error)`
+- Function `*DedicatedHostsClient.ListByHostGroup` return value(s) have been changed from `(*DedicatedHostsClientListByHostGroupPager)` to `(*runtime.Pager[DedicatedHostsClientListByHostGroupResponse])`
+- Function `*VirtualMachineScaleSetsClient.BeginDeleteInstances` return value(s) have been changed from `(VirtualMachineScaleSetsClientDeleteInstancesPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientDeleteInstancesResponse], error)`
+- Function `*VirtualMachinesClient.BeginRunCommand` return value(s) have been changed from `(VirtualMachinesClientRunCommandPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientRunCommandResponse], error)`
+- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` return value(s) have been changed from `(*GalleryApplicationVersionsClientListByGalleryApplicationPager)` to `(*runtime.Pager[GalleryApplicationVersionsClientListByGalleryApplicationResponse])`
+- Function `NewCloudServiceOperatingSystemsClient` return value(s) have been changed from `(*CloudServiceOperatingSystemsClient)` to `(*CloudServiceOperatingSystemsClient, error)`
+- Function `*ImagesClient.List` return value(s) have been changed from `(*ImagesClientListPager)` to `(*runtime.Pager[ImagesClientListResponse])`
+- Function `*GalleriesClient.BeginUpdate` return value(s) have been changed from `(GalleriesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleriesClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientUpdateResponse], error)`
+- Function `*DiskEncryptionSetsClient.List` return value(s) have been changed from `(*DiskEncryptionSetsClientListPager)` to `(*runtime.Pager[DiskEncryptionSetsClientListResponse])`
+- Function `*DedicatedHostsClient.BeginCreateOrUpdate` return value(s) have been changed from `(DedicatedHostsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[DedicatedHostsClientCreateOrUpdateResponse], error)`
+- Function `*DiskAccessesClient.ListByResourceGroup` return value(s) have been changed from `(*DiskAccessesClientListByResourceGroupPager)` to `(*runtime.Pager[DiskAccessesClientListByResourceGroupResponse])`
+- Function `NewCloudServicesClient` return value(s) have been changed from `(*CloudServicesClient)` to `(*CloudServicesClient, error)`
+- Function `*CloudServicesClient.ListAll` return value(s) have been changed from `(*CloudServicesClientListAllPager)` to `(*runtime.Pager[CloudServicesClientListAllResponse])`
+- Function `*VirtualMachinesClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachinesClientPerformMaintenancePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientPerformMaintenanceResponse], error)`
+- Function `*GalleriesClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleriesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleriesClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachinesClient.BeginReimage` return value(s) have been changed from `(VirtualMachinesClientReimagePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientReimageResponse], error)`
+- Function `*SnapshotsClient.BeginGrantAccess` return value(s) have been changed from `(SnapshotsClientGrantAccessPollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientGrantAccessResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientDeleteResponse], error)`
+- Function `*DiskAccessesClient.BeginUpdateAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse, error)` to `(*armruntime.Poller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse], error)`
+- Function `*VirtualMachineRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineRunCommandsClientCreateOrUpdateResponse], error)`
+- Function `*CloudServicesClient.List` return value(s) have been changed from `(*CloudServicesClientListPager)` to `(*runtime.Pager[CloudServicesClientListResponse])`
+- Function `NewProximityPlacementGroupsClient` return value(s) have been changed from `(*ProximityPlacementGroupsClient)` to `(*ProximityPlacementGroupsClient, error)`
+- Function `*DiskAccessesClient.ListPrivateEndpointConnections` return value(s) have been changed from `(*DiskAccessesClientListPrivateEndpointConnectionsPager)` to `(*runtime.Pager[DiskAccessesClientListPrivateEndpointConnectionsResponse])`
+- Function `NewVirtualMachineScaleSetVMsClient` return value(s) have been changed from `(*VirtualMachineScaleSetVMsClient)` to `(*VirtualMachineScaleSetVMsClient, error)`
+- Function `*ProximityPlacementGroupsClient.ListBySubscription` return value(s) have been changed from `(*ProximityPlacementGroupsClientListBySubscriptionPager)` to `(*runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse])`
+- Function `*VirtualMachineScaleSetVMsClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientPowerOffPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientPowerOffResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientDeallocatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientDeallocateResponse], error)`
+- Function `*RestorePointCollectionsClient.BeginDelete` return value(s) have been changed from `(RestorePointCollectionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[RestorePointCollectionsClientDeleteResponse], error)`
+- Function `*CloudServicesClient.BeginPowerOff` return value(s) have been changed from `(CloudServicesClientPowerOffPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientPowerOffResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientDeleteResponse], error)`
+- Function `*CapacityReservationsClient.BeginDelete` return value(s) have been changed from `(CapacityReservationsClientDeletePollerResponse, error)` to `(*armruntime.Poller[CapacityReservationsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientRedeployPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRedeployResponse], error)`
+- Function `NewVirtualMachineSizesClient` return value(s) have been changed from `(*VirtualMachineSizesClient)` to `(*VirtualMachineSizesClient, error)`
+- Function `*VirtualMachinesClient.ListAll` return value(s) have been changed from `(*VirtualMachinesClientListAllPager)` to `(*runtime.Pager[VirtualMachinesClientListAllResponse])`
+- Function `*CloudServicesClient.BeginDeleteInstances` return value(s) have been changed from `(CloudServicesClientDeleteInstancesPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientDeleteInstancesResponse], error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginCancel` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse], error)`
+- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` return value(s) have been changed from `(*CloudServiceOperatingSystemsClientListOSFamiliesPager)` to `(*runtime.Pager[CloudServiceOperatingSystemsClientListOSFamiliesResponse])`
+- Function `*VirtualMachinesClient.BeginUpdate` return value(s) have been changed from `(VirtualMachinesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientUpdateResponse], error)`
+- Function `*DiskEncryptionSetsClient.BeginUpdate` return value(s) have been changed from `(DiskEncryptionSetsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[DiskEncryptionSetsClientUpdateResponse], error)`
+- Function `NewDisksClient` return value(s) have been changed from `(*DisksClient)` to `(*DisksClient, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` return value(s) have been changed from `(*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse])`
+- Function `NewDiskRestorePointClient` return value(s) have been changed from `(*DiskRestorePointClient)` to `(*DiskRestorePointClient, error)`
+- Function `*SnapshotsClient.List` return value(s) have been changed from `(*SnapshotsClientListPager)` to `(*runtime.Pager[SnapshotsClientListResponse])`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginStart` return value(s) have been changed from `(VirtualMachineScaleSetsClientStartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientStartResponse], error)`
+- Function `NewAvailabilitySetsClient` return value(s) have been changed from `(*AvailabilitySetsClient)` to `(*AvailabilitySetsClient, error)`
+- Function `*ImagesClient.BeginUpdate` return value(s) have been changed from `(ImagesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[ImagesClientUpdateResponse], error)`
+- Function `*ImagesClient.ListByResourceGroup` return value(s) have been changed from `(*ImagesClientListByResourceGroupPager)` to `(*runtime.Pager[ImagesClientListByResourceGroupResponse])`
+- Function `*ImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(ImagesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[ImagesClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachinesClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachinesClientPowerOffPollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientPowerOffResponse], error)`
+- Function `NewCloudServicesUpdateDomainClient` return value(s) have been changed from `(*CloudServicesUpdateDomainClient)` to `(*CloudServicesUpdateDomainClient, error)`
+- Function `NewGalleryApplicationsClient` return value(s) have been changed from `(*GalleryApplicationsClient)` to `(*GalleryApplicationsClient, error)`
+- Function `*VirtualMachineSizesClient.List` parameter(s) have been changed from `(context.Context, string, *VirtualMachineSizesClientListOptions)` to `(string, *VirtualMachineSizesClientListOptions)`
+- Function `*VirtualMachineSizesClient.List` return value(s) have been changed from `(VirtualMachineSizesClientListResponse, error)` to `(*runtime.Pager[VirtualMachineSizesClientListResponse])`
+- Function `*RestorePointsClient.BeginDelete` return value(s) have been changed from `(RestorePointsClientDeletePollerResponse, error)` to `(*armruntime.Poller[RestorePointsClientDeleteResponse], error)`
+- Function `*DiskEncryptionSetsClient.ListByResourceGroup` return value(s) have been changed from `(*DiskEncryptionSetsClientListByResourceGroupPager)` to `(*runtime.Pager[DiskEncryptionSetsClientListByResourceGroupResponse])`
+- Function `NewGallerySharingProfileClient` return value(s) have been changed from `(*GallerySharingProfileClient)` to `(*GallerySharingProfileClient, error)`
+- Function `*CloudServicesClient.BeginReimage` return value(s) have been changed from `(CloudServicesClientReimagePollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientReimageResponse], error)`
+- Function `NewGalleryImagesClient` return value(s) have been changed from `(*GalleryImagesClient)` to `(*GalleryImagesClient, error)`
+- Function `*DisksClient.BeginRevokeAccess` return value(s) have been changed from `(DisksClientRevokeAccessPollerResponse, error)` to `(*armruntime.Poller[DisksClientRevokeAccessResponse], error)`
+- Function `NewGalleryImageVersionsClient` return value(s) have been changed from `(*GalleryImageVersionsClient)` to `(*GalleryImageVersionsClient, error)`
+- Function `*GalleryApplicationVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryApplicationVersionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationVersionsClientCreateOrUpdateResponse], error)`
+- Function `NewVirtualMachineImagesClient` return value(s) have been changed from `(*VirtualMachineImagesClient)` to `(*VirtualMachineImagesClient, error)`
+- Function `*DedicatedHostGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*DedicatedHostGroupsClientListByResourceGroupPager)` to `(*runtime.Pager[DedicatedHostGroupsClientListByResourceGroupResponse])`
+- Function `*DisksClient.BeginGrantAccess` return value(s) have been changed from `(DisksClientGrantAccessPollerResponse, error)` to `(*armruntime.Poller[DisksClientGrantAccessResponse], error)`
+- Function `*OperationsClient.List` parameter(s) have been changed from `(context.Context, *OperationsClientListOptions)` to `(*OperationsClientListOptions)`
+- Function `*OperationsClient.List` return value(s) have been changed from `(OperationsClientListResponse, error)` to `(*runtime.Pager[OperationsClientListResponse])`
+- Function `NewVirtualMachineScaleSetVMExtensionsClient` return value(s) have been changed from `(*VirtualMachineScaleSetVMExtensionsClient)` to `(*VirtualMachineScaleSetVMExtensionsClient, error)`
+- Function `*VirtualMachineExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineExtensionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineExtensionsClientCreateOrUpdateResponse], error)`
+- Function `*GalleriesClient.ListByResourceGroup` return value(s) have been changed from `(*GalleriesClientListByResourceGroupPager)` to `(*runtime.Pager[GalleriesClientListByResourceGroupResponse])`
+- Function `*DisksClient.BeginUpdate` return value(s) have been changed from `(DisksClientUpdatePollerResponse, error)` to `(*armruntime.Poller[DisksClientUpdateResponse], error)`
+- Function `*VirtualMachineRunCommandsClient.List` return value(s) have been changed from `(*VirtualMachineRunCommandsClientListPager)` to `(*runtime.Pager[VirtualMachineRunCommandsClientListResponse])`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetExtensionsClientUpdateResponse], error)`
+- Function `*DisksClient.List` return value(s) have been changed from `(*DisksClientListPager)` to `(*runtime.Pager[DisksClientListResponse])`
+- Function `*CapacityReservationsClient.BeginUpdate` return value(s) have been changed from `(CapacityReservationsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[CapacityReservationsClientUpdateResponse], error)`
+- Function `*SnapshotsClient.BeginUpdate` return value(s) have been changed from `(SnapshotsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetExtensionsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetExtensionsClientListPager)` to `(*runtime.Pager[VirtualMachineScaleSetExtensionsClientListResponse])`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetVMRunCommandsClientListPager)` to `(*runtime.Pager[VirtualMachineScaleSetVMRunCommandsClientListResponse])`
+- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` return value(s) have been changed from `(*VirtualMachineRunCommandsClientListByVirtualMachinePager)` to `(*runtime.Pager[VirtualMachineRunCommandsClientListByVirtualMachineResponse])`
+- Function `*DiskAccessesClient.List` return value(s) have been changed from `(*DiskAccessesClientListPager)` to `(*runtime.Pager[DiskAccessesClientListResponse])`
+- Function `*CloudServicesClient.BeginRestart` return value(s) have been changed from `(CloudServicesClientRestartPollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientRestartResponse], error)`
+- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*ProximityPlacementGroupsClientListByResourceGroupPager)` to `(*runtime.Pager[ProximityPlacementGroupsClientListByResourceGroupResponse])`
+- Function `*GalleriesClient.List` return value(s) have been changed from `(*GalleriesClientListPager)` to `(*runtime.Pager[GalleriesClientListResponse])`
+- Function `NewCommunityGalleryImagesClient` return value(s) have been changed from `(*CommunityGalleryImagesClient)` to `(*CommunityGalleryImagesClient, error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse], error)`
+- Function `*VirtualMachinesClient.BeginDelete` return value(s) have been changed from `(VirtualMachinesClientDeletePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientDeleteResponse], error)`
+- Function `NewRestorePointsClient` return value(s) have been changed from `(*RestorePointsClient)` to `(*RestorePointsClient, error)`
+- Function `*LogAnalyticsClient.BeginExportRequestRateByInterval` return value(s) have been changed from `(LogAnalyticsClientExportRequestRateByIntervalPollerResponse, error)` to `(*armruntime.Poller[LogAnalyticsClientExportRequestRateByIntervalResponse], error)`
+- Function `*GalleryImagesClient.BeginUpdate` return value(s) have been changed from `(GalleryImagesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryImagesClientUpdateResponse], error)`
+- Function `*VirtualMachinesClient.ListByLocation` return value(s) have been changed from `(*VirtualMachinesClientListByLocationPager)` to `(*runtime.Pager[VirtualMachinesClientListByLocationResponse])`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRestart` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientRestartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientRestartResponse], error)`
+- Function `*DisksClient.ListByResourceGroup` return value(s) have been changed from `(*DisksClientListByResourceGroupPager)` to `(*runtime.Pager[DisksClientListByResourceGroupResponse])`
+- Function `*GalleryApplicationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryApplicationsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationsClientCreateOrUpdateResponse], error)`
+- Function `*GalleryApplicationsClient.BeginDelete` return value(s) have been changed from `(GalleryApplicationsClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleryApplicationsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachineScaleSetsClientRedeployPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientRedeployResponse], error)`
+- Function `*GalleriesClient.BeginDelete` return value(s) have been changed from `(GalleriesClientDeletePollerResponse, error)` to `(*armruntime.Poller[GalleriesClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientCreateOrUpdateResponse], error)`
+- Function `*SharedGalleryImageVersionsClient.List` return value(s) have been changed from `(*SharedGalleryImageVersionsClientListPager)` to `(*runtime.Pager[SharedGalleryImageVersionsClientListResponse])`
+- Function `NewVirtualMachineExtensionsClient` return value(s) have been changed from `(*VirtualMachineExtensionsClient)` to `(*VirtualMachineExtensionsClient, error)`
+- Function `*VirtualMachineScaleSetsClient.ListSKUs` return value(s) have been changed from `(*VirtualMachineScaleSetsClientListSKUsPager)` to `(*runtime.Pager[VirtualMachineScaleSetsClientListSKUsResponse])`
+- Function `*SSHPublicKeysClient.ListBySubscription` return value(s) have been changed from `(*SSHPublicKeysClientListBySubscriptionPager)` to `(*runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse])`
+- Function `*SnapshotsClient.BeginDelete` return value(s) have been changed from `(SnapshotsClientDeletePollerResponse, error)` to `(*armruntime.Poller[SnapshotsClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState` return value(s) have been changed from `(VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse], error)`
+- Function `NewOperationsClient` return value(s) have been changed from `(*OperationsClient)` to `(*OperationsClient, error)`
+- Function `NewSharedGalleryImageVersionsClient` return value(s) have been changed from `(*SharedGalleryImageVersionsClient)` to `(*SharedGalleryImageVersionsClient, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginStart` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientStartPollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientStartResponse], error)`
+- Function `*CloudServicesClient.BeginCreateOrUpdate` return value(s) have been changed from `(CloudServicesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientCreateOrUpdateResponse], error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse], error)`
+- Function `*DiskRestorePointClient.ListByRestorePoint` return value(s) have been changed from `(*DiskRestorePointClientListByRestorePointPager)` to `(*runtime.Pager[DiskRestorePointClientListByRestorePointResponse])`
+- Function `*GalleryImageVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryImageVersionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryImageVersionsClientCreateOrUpdateResponse], error)`
+- Function `*CloudServicesClient.BeginUpdate` return value(s) have been changed from `(CloudServicesClientUpdatePollerResponse, error)` to `(*armruntime.Poller[CloudServicesClientUpdateResponse], error)`
+- Function `*DisksClient.BeginDelete` return value(s) have been changed from `(DisksClientDeletePollerResponse, error)` to `(*armruntime.Poller[DisksClientDeleteResponse], error)`
+- Function `*VirtualMachineScaleSetsClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachineScaleSetsClientDeallocatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetsClientDeallocateResponse], error)`
+- Function `*VirtualMachinesClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachinesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VirtualMachinesClientCreateOrUpdateResponse], error)`
+- Function `NewVirtualMachineExtensionImagesClient` return value(s) have been changed from `(*VirtualMachineExtensionImagesClient)` to `(*VirtualMachineExtensionImagesClient, error)`
+- Function `NewVirtualMachineImagesEdgeZoneClient` return value(s) have been changed from `(*VirtualMachineImagesEdgeZoneClient)` to `(*VirtualMachineImagesEdgeZoneClient, error)`
+- Function `*GalleryImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryImagesClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[GalleryImagesClientCreateOrUpdateResponse], error)`
+- Function `*CloudServiceRoleInstancesClient.BeginReimage` return value(s) have been changed from `(CloudServiceRoleInstancesClientReimagePollerResponse, error)` to `(*armruntime.Poller[CloudServiceRoleInstancesClientReimageResponse], error)`
+- Function `*ImagesClient.BeginDelete` return value(s) have been changed from `(ImagesClientDeletePollerResponse, error)` to `(*armruntime.Poller[ImagesClientDeleteResponse], error)`
+- Function `*CapacityReservationGroupsClient.ListBySubscription` return value(s) have been changed from `(*CapacityReservationGroupsClientListBySubscriptionPager)` to `(*runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse])`
+- Function `*VirtualMachineScaleSetVMsClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse, error)` to `(*armruntime.Poller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse], error)`
+- Function `*SnapshotsClientListPager.NextPage` has been removed
+- Function `*ImagesClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*DiskAccessesClientDeletePoller.Poll` has been removed
+- Function `*DiskEncryptionSetsClientListByResourceGroupPager.NextPage` has been removed
+- Function `DedicatedHostsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostsClientDeletePoller.FinalResponse` has been removed
+- Function `*SnapshotsClientGrantAccessPollerResponse.Resume` has been removed
+- Function `*GalleryImageVersionsClientUpdatePollerResponse.Resume` has been removed
+- Function `*ImagesClientUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `SharingState.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetsClientReimageAllPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.ResumeToken` has been removed
+- Function `GallerySharingPermissionTypes.ToPtr` has been removed
+- Function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsClientReimagePoller.ResumeToken` has been removed
+- Function `DiskAccessesClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientRestartPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.ResumeToken` has been removed
+- Function `*AvailabilitySetsClientListPager.Err` has been removed
+- Function `*DiskEncryptionSetsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse.Resume` has been removed
+- Function `*CapacityReservationGroupsClientListBySubscriptionPager.PageResponse` has been removed
+- Function `ExpandTypesForGetCapacityReservationGroups.ToPtr` has been removed
+- Function `*GalleriesClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `VirtualMachineExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*ImagesClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*DiskEncryptionSetsClientUpdatePoller.Done` has been removed
+- Function `*DiskEncryptionSetsClientUpdatePoller.FinalResponse` has been removed
+- Function `*ImagesClientUpdatePoller.FinalResponse` has been removed
+- Function `*CapacityReservationsClientListByCapacityReservationGroupPager.NextPage` has been removed
+- Function `*CloudServicesClientPowerOffPoller.Done` has been removed
+- Function `*GalleryImageVersionsClientDeletePoller.Done` has been removed
+- Function `*DiskAccessesClientListPager.Err` has been removed
+- Function `*DedicatedHostsClientDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientListPager.NextPage` has been removed
+- Function `VirtualMachineScaleSetVMsClientStartPollerResponse.PollUntilDone` has been removed
+- Function `DiskEncryptionSetsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.PageResponse` has been removed
+- Function `*DiskAccessesClientListPrivateEndpointConnectionsPager.NextPage` has been removed
+- Function `VirtualMachineSizeTypes.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineExtensionsClientUpdatePoller.FinalResponse` has been removed
+- Function `*ProximityPlacementGroupsClientListByResourceGroupPager.NextPage` has been removed
+- Function `*SnapshotsClientListByResourceGroupPager.PageResponse` has been removed
+- Function `*LogAnalyticsClientExportThrottledRequestsPollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsClientUpdatePoller.ResumeToken` has been removed
+- Function `*DiskEncryptionSetsClientDeletePollerResponse.Resume` has been removed
+- Function `EncryptionType.ToPtr` has been removed
+- Function `DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesClientUpdatePoller.Poll` has been removed
+- Function `*DisksClientUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientStartPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdatePoller.Poll` has been removed
+- Function `*DiskAccessesClientDeletePoller.ResumeToken` has been removed
+- Function `*CloudServiceRoleInstancesClientRestartPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsClientRestartPoller.FinalResponse` has been removed
+- Function `*CloudServicesClientRebuildPollerResponse.Resume` has been removed
+- Function `*LogAnalyticsClientExportThrottledRequestsPoller.Poll` has been removed
+- Function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.Err` has been removed
+- Function `*VirtualMachinesClientPowerOffPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRunCommandPoller.Done` has been removed
+- Function `VirtualMachineScaleSetsClientPerformMaintenancePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.PageResponse` has been removed
+- Function `*ImagesClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPowerOffPoller.ResumeToken` has been removed
+- Function `*SnapshotsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*SharedGalleryImageVersionsClientListPager.PageResponse` has been removed
+- Function `*GalleryImagesClientUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.PageResponse` has been removed
+- Function `*ProximityPlacementGroupsClientListBySubscriptionPager.Err` has been removed
+- Function `*DedicatedHostsClientRestartPollerResponse.Resume` has been removed
+- Function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*SSHPublicKeysClientListBySubscriptionPager.NextPage` has been removed
+- Function `*CloudServicesClientPowerOffPollerResponse.Resume` has been removed
+- Function `CachingTypes.ToPtr` has been removed
+- Function `*ImagesClientListByResourceGroupPager.Err` has been removed
+- Function `*ImagesClientListByResourceGroupPager.PageResponse` has been removed
+- Function `*VirtualMachinesClientRunCommandPoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetExtensionsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientListByLocationPager.Err` has been removed
+- Function `*DiskEncryptionSetsClientListByResourceGroupPager.Err` has been removed
+- Function `*GalleriesClientDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsClientStartPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRunCommandPoller.ResumeToken` has been removed
+- Function `*DiskRestorePointClientGrantAccessPoller.FinalResponse` has been removed
+- Function `*AvailabilitySetsClientListPager.PageResponse` has been removed
+- Function `*VirtualMachinesClientRedeployPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientStartPoller.FinalResponse` has been removed
+- Function `*RestorePointsClientDeletePoller.FinalResponse` has been removed
+- Function `DedicatedHostsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `ResourceSKURestrictionsType.ToPtr` has been removed
+- Function `*DiskAccessesClientListPrivateEndpointConnectionsPager.Err` has been removed
+- Function `IntervalInMins.ToPtr` has been removed
+- Function `*SnapshotsClientRevokeAccessPollerResponse.Resume` has been removed
+- Function `*VirtualMachineRunCommandsClientListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientListPager.NextPage` has been removed
+- Function `VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineRunCommandsClientUpdatePoller.Poll` has been removed
+- Function `*CloudServicesClientStartPoller.Done` has been removed
+- Function `*VirtualMachinesClientStartPoller.ResumeToken` has been removed
+- Function `VirtualMachineRunCommandsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CapacityReservationsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdatePoller.Done` has been removed
+- Function `ReplicationStatusTypes.ToPtr` has been removed
+- Function `*DiskEncryptionSetsClientListPager.PageResponse` has been removed
+- Function `*RestorePointsClientDeletePoller.Done` has been removed
+- Function `VirtualMachineScaleSetsClientRestartPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImagesClientCreateOrUpdatePoller.Done` has been removed
+- Function `ImagesClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `PatchInstallationState.ToPtr` has been removed
+- Function `*VirtualMachinesClientListByLocationPager.PageResponse` has been removed
+- Function `*GalleryImagesClientUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsClientListByGalleryPager.PageResponse` has been removed
+- Function `*CloudServicesClientRebuildPoller.Done` has been removed
+- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse.Resume` has been removed
+- Function `*DiskAccessesClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*GalleryApplicationsClientUpdatePoller.Poll` has been removed
+- Function `*ImagesClientListPager.NextPage` has been removed
+- Function `VirtualMachinesClientStartPollerResponse.PollUntilDone` has been removed
+- Function `*SSHPublicKeysClientListBySubscriptionPager.Err` has been removed
+- Function `*GallerySharingProfileClientUpdatePollerResponse.Resume` has been removed
+- Function `*SnapshotsClientRevokeAccessPoller.ResumeToken` has been removed
+- Function `OrchestrationMode.ToPtr` has been removed
+- Function `*GalleryImagesClientUpdatePoller.Poll` has been removed
+- Function `NetworkAccessPolicy.ToPtr` has been removed
+- Function `*VirtualMachinesClientReapplyPoller.Poll` has been removed
+- Function `*DisksClientListByResourceGroupPager.PageResponse` has been removed
+- Function `GalleryPropertiesProvisioningState.ToPtr` has been removed
+- Function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.NextPage` has been removed
+- Function `VirtualMachineScaleSetVMsClientReimageAllPollerResponse.PollUntilDone` has been removed
+- Function `*ProximityPlacementGroupsClientListByResourceGroupPager.Err` has been removed
+- Function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.Err` has been removed
+- Function `PrivateEndpointServiceConnectionStatus.ToPtr` has been removed
+- Function `*CloudServicesClientReimagePoller.FinalResponse` has been removed
+- Function `*CloudServicesClientDeleteInstancesPoller.Poll` has been removed
+- Function `DedicatedHostLicenseTypes.ToPtr` has been removed
+- Function `*VirtualMachineExtensionsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*SharedGalleriesClientListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsClientDeletePoller.ResumeToken` has been removed
+- Function `CloudServicesClientReimagePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceRoleInstancesClientReimagePoller.Done` has been removed
+- Function `*VirtualMachinesClientRestartPoller.ResumeToken` has been removed
+- Function `*DiskEncryptionSetsClientUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineExtensionsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientStartPoller.ResumeToken` has been removed
+- Function `OrchestrationServiceState.ToPtr` has been removed
+- Function `*SSHPublicKeysClientListByResourceGroupPager.Err` has been removed
+- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse.Resume` has been removed
+- Function `*DiskAccessesClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientPowerOffPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeletePoller.Poll` has been removed
+- Function `GalleryApplicationVersionsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientRestartPoller.Done` has been removed
+- Function `*SnapshotsClientListPager.PageResponse` has been removed
+- Function `*DiskAccessesClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientStartPoller.FinalResponse` has been removed
+- Function `GalleryImagesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetsClientDeleteInstancesPollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceRoleInstancesClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientListAllPager.NextPage` has been removed
+- Function `*SnapshotsClientDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsClientStartPoller.Poll` has been removed
+- Function `HyperVGenerationType.ToPtr` has been removed
+- Function `OperatingSystemType.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsClientDeletePoller.Poll` has been removed
+- Function `*DedicatedHostsClientUpdatePollerResponse.Resume` has been removed
+- Function `VirtualMachinesClientAssessPatchesPollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesClientDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimagePoller.FinalResponse` has been removed
+- Function `VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*CapacityReservationsClientDeletePoller.Done` has been removed
+- Function `*VirtualMachinesClientCapturePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesClientReapplyPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeallocatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryImageVersionsClientUpdatePoller.Poll` has been removed
+- Function `VirtualMachinesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineExtensionsClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientListPager.PageResponse` has been removed
+- Function `*DiskEncryptionSetsClientUpdatePoller.ResumeToken` has been removed
+- Function `ExtendedLocationType.ToPtr` has been removed
+- Function `VirtualMachinesClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.FinalResponse` has been removed
+- Function `VirtualMachineScaleSetsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostGroupsClientListBySubscriptionPager.NextPage` has been removed
+- Function `*GalleryApplicationVersionsClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeallocatePoller.ResumeToken` has been removed
+- Function `OperatingSystemTypes.ToPtr` has been removed
+- Function `*DisksClientRevokeAccessPoller.ResumeToken` has been removed
+- Function `OrchestrationServiceNames.ToPtr` has been removed
+- Function `*GalleryImagesClientListByGalleryPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsClientDeallocatePoller.Done` has been removed
+- Function `*VirtualMachinesClientDeletePoller.FinalResponse` has been removed
+- Function `*CloudServicesClientRestartPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientRedeployPoller.Poll` has been removed
+- Function `*DiskAccessesClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimagePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientReapplyPoller.ResumeToken` has been removed
+- Function `*GalleryImageVersionsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.Poll` has been removed
+- Function `*DiskRestorePointClientRevokeAccessPoller.FinalResponse` has been removed
+- Function `*CloudServicesClientDeleteInstancesPoller.ResumeToken` has been removed
+- Function `*DedicatedHostsClientUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimageAllPoller.FinalResponse` has been removed
+- Function `*DiskAccessesClientUpdatePollerResponse.Resume` has been removed
+- Function `*DiskRestorePointClientRevokeAccessPoller.Poll` has been removed
+- Function `CloudServiceRoleInstancesClientRestartPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsClientUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRedeployPoller.Done` has been removed
+- Function `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `DiffDiskOptions.ToPtr` has been removed
+- Function `*VirtualMachinesClientRedeployPoller.Poll` has been removed
+- Function `*GalleryImageVersionsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*CloudServicesClientUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsClientDeallocatePoller.Poll` has been removed
+- Function `*DiskRestorePointClientGrantAccessPollerResponse.Resume` has been removed
+- Function `StorageAccountTypes.ToPtr` has been removed
+- Function `CapacityReservationGroupInstanceViewTypes.ToPtr` has been removed
+- Function `CapacityReservationsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `HostCaching.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse.Resume` has been removed
+- Function `VirtualMachineScaleSetVMsClientPowerOffPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*GallerySharingProfileClientUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineRunCommandsClientListPager.NextPage` has been removed
+- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsClientUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientStartPoller.Done` has been removed
+- Function `DedicatedHostsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*AvailabilitySetsClientListBySubscriptionPager.Err` has been removed
+- Function `VirtualMachineScaleSetsClientRedeployPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientConvertToManagedDisksPoller.Poll` has been removed
+- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeallocatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.FinalResponse` has been removed
+- Function `*GalleryImagesClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `VirtualMachineExtensionsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientDeallocatePoller.Poll` has been removed
+- Function `CapacityReservationsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientReimagePoller.FinalResponse` has been removed
+- Function `*SnapshotsClientRevokeAccessPoller.Done` has been removed
+- Function `*CloudServicesClientCreateOrUpdatePoller.Done` has been removed
+- Function `*CloudServiceRolesClientListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientRestartPoller.FinalResponse` has been removed
+- Function `*GalleryApplicationVersionsClientDeletePoller.ResumeToken` has been removed
+- Function `*DedicatedHostsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `DiskDeleteOptionTypes.ToPtr` has been removed
+- Function `DeleteOptions.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.Poll` has been removed
+- Function `*CapacityReservationGroupsClientListByResourceGroupPager.Err` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientReimagePoller.Poll` has been removed
+- Function `NetworkAPIVersion.ToPtr` has been removed
+- Function `InstanceViewTypes.ToPtr` has been removed
+- Function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.Err` has been removed
+- Function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `SnapshotsClientGrantAccessPollerResponse.PollUntilDone` has been removed
+- Function `*CapacityReservationsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `RestorePointsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsClientUpdatePoller.Done` has been removed
+- Function `GalleryApplicationVersionsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `DiskCreateOptionTypes.ToPtr` has been removed
+- Function `VirtualMachinesClientRunCommandPollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesClientRebuildPoller.ResumeToken` has been removed
+- Function `RollingUpgradeActionType.ToPtr` has been removed
+- Function `AggregatedReplicationState.ToPtr` has been removed
+- Function `*CloudServicesClientStartPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsClientListByLocationPager.PageResponse` has been removed
+- Function `*GalleryImageVersionsClientDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsClientListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `DiskEncryptionSetsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesClientDeleteInstancesPoller.Done` has been removed
+- Function `*DiskRestorePointClientGrantAccessPoller.Done` has been removed
+- Function `VirtualMachinesClientDeallocatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRedeployPoller.Poll` has been removed
+- Function `*CloudServicesClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRedeployPoller.FinalResponse` has been removed
+- Function `*DedicatedHostsClientRestartPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesClientStartPoller.Poll` has been removed
+- Function `*CapacityReservationsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*GalleriesClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `VirtualMachinesClientConvertToManagedDisksPollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostsClientUpdatePoller.Done` has been removed
+- Function `*CloudServicesClientPowerOffPoller.ResumeToken` has been removed
+- Function `*SnapshotsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.Poll` has been removed
+- Function `*VirtualMachinesClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*DiskEncryptionSetsClientListAssociatedResourcesPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientPowerOffPoller.Poll` has been removed
+- Function `VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse.PollUntilDone` has been removed
+- Function `*CapacityReservationsClientDeletePoller.Poll` has been removed
+- Function `*DisksClientListByResourceGroupPager.NextPage` has been removed
+- Function `ImagesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientReapplyPoller.FinalResponse` has been removed
+- Function `*VirtualMachineExtensionsClientUpdatePoller.Done` has been removed
+- Function `*SnapshotsClientDeletePollerResponse.Resume` has been removed
+- Function `*GalleryImageVersionsClientUpdatePoller.FinalResponse` has been removed
+- Function `*DedicatedHostsClientListByHostGroupPager.Err` has been removed
+- Function `*DiskEncryptionSetsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.ResumeToken` has been removed
+- Function `*DiskRestorePointClientRevokeAccessPollerResponse.Resume` has been removed
+- Function `*DiskRestorePointClientListByRestorePointPager.NextPage` has been removed
+- Function `*RestorePointsClientDeletePollerResponse.Resume` has been removed
+- Function `VirtualMachineScaleSetsClientStartPollerResponse.PollUntilDone` has been removed
+- Function `*DisksClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientListPager.PageResponse` has been removed
+- Function `*SnapshotsClientListByResourceGroupPager.NextPage` has been removed
+- Function `*CloudServicesClientListAllPager.NextPage` has been removed
+- Function `*RestorePointsClientCreatePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `GalleriesClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*GalleriesClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRedeployPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRestartPoller.Poll` has been removed
+- Function `*GalleryApplicationVersionsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineExtensionsClientDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRunCommandPoller.FinalResponse` has been removed
+- Function `*SnapshotsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.FinalResponse` has been removed
+- Function `RepairAction.ToPtr` has been removed
+- Function `DiskSecurityTypes.ToPtr` has been removed
+- Function `VirtualMachinePriorityTypes.ToPtr` has been removed
+- Function `VirtualMachineScaleSetsClientDeallocatePollerResponse.PollUntilDone` has been removed
+- Function `*SnapshotsClientGrantAccessPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientDeallocatePoller.FinalResponse` has been removed
+- Function `*CloudServiceRoleInstancesClientListPager.PageResponse` has been removed
+- Function `*CapacityReservationsClientDeletePoller.FinalResponse` has been removed
+- Function `*DiskRestorePointClientGrantAccessPoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `MaintenanceOperationResultCodeTypes.ToPtr` has been removed
+- Function `*SnapshotsClientUpdatePoller.ResumeToken` has been removed
+- Function `*GalleriesClientListPager.NextPage` has been removed
+- Function `*GalleriesClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientDeallocatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.FinalResponse` has been removed
+- Function `*DisksClientCreateOrUpdatePoller.Done` has been removed
+- Function `*SnapshotsClientListPager.Err` has been removed
+- Function `*CloudServicesClientStartPollerResponse.Resume` has been removed
+- Function `SnapshotsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*CloudServicesClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*DiskRestorePointClientListByRestorePointPager.Err` has been removed
+- Function `VirtualMachineScaleSetsClientReimagePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceOperatingSystemsClientListOSVersionsPager.PageResponse` has been removed
+- Function `CloudServicesClientDeleteInstancesPollerResponse.PollUntilDone` has been removed
+- Function `IPVersion.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.Poll` has been removed
+- Function `CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse.PollUntilDone` has been removed
+- Function `StatusLevelTypes.ToPtr` has been removed
+- Function `*CloudServicesClientUpdatePollerResponse.Resume` has been removed
+- Function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.Err` has been removed
+- Function `*DiskEncryptionSetsClientDeletePoller.ResumeToken` has been removed
+- Function `*ImagesClientDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPowerOffPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse.Resume` has been removed
+- Function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.NextPage` has been removed
+- Function `*VirtualMachinesClientAssessPatchesPoller.Done` has been removed
+- Function `*DedicatedHostsClientUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientCreateOrUpdatePoller.Done` has been removed
+- Function `GalleryExpandParams.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRestartPoller.ResumeToken` has been removed
+- Function `*DisksClientGrantAccessPoller.Poll` has been removed
+- Function `*VirtualMachineExtensionsClientDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPowerOffPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientListPager.PageResponse` has been removed
+- Function `*CloudServiceRoleInstancesClientRestartPollerResponse.Resume` has been removed
+- Function `*CloudServiceRolesClientListPager.PageResponse` has been removed
+- Function `*SharedGalleryImagesClientListPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.Done` has been removed
+- Function `*VirtualMachinesClientAssessPatchesPoller.FinalResponse` has been removed
+- Function `ExecutionState.ToPtr` has been removed
+- Function `*CapacityReservationsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `VirtualMachineScaleSetScaleInRules.ToPtr` has been removed
+- Function `*CloudServicesClientListPager.PageResponse` has been removed
+- Function `*GalleriesClientListPager.Err` has been removed
+- Function `SharingUpdateOperationTypes.ToPtr` has been removed
+- Function `*CapacityReservationsClientUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesClientInstallPatchesPoller.Poll` has been removed
+- Function `*GalleryApplicationVersionsClientDeletePoller.Done` has been removed
+- Function `*VirtualMachinesClientUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesClientRunCommandPoller.Done` has been removed
+- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.Done` has been removed
+- Function `*DiskEncryptionSetsClientListAssociatedResourcesPager.PageResponse` has been removed
+- Function `*CloudServicesClientDeleteInstancesPollerResponse.Resume` has been removed
+- Function `*GalleryApplicationVersionsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*DiskRestorePointClientRevokeAccessPoller.Done` has been removed
+- Function `*RestorePointCollectionsClientListAllPager.PageResponse` has been removed
+- Function `*DisksClientDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimagePoller.ResumeToken` has been removed
+- Function `*CloudServicesClientDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.ResumeToken` has been removed
+- Function `GalleryApplicationsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientReimagePoller.Done` has been removed
+- Function `*DisksClientRevokeAccessPoller.FinalResponse` has been removed
+- Function `CloudServicesClientPowerOffPollerResponse.PollUntilDone` has been removed
+- Function `DataAccessAuthMode.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeletePollerResponse.Resume` has been removed
+- Function `*SnapshotsClientGrantAccessPoller.Done` has been removed
+- Function `*VirtualMachinesClientConvertToManagedDisksPollerResponse.Resume` has been removed
+- Function `*CapacityReservationsClientUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientPerformMaintenancePoller.Poll` has been removed
+- Function `*RestorePointsClientDeletePoller.ResumeToken` has been removed
+- Function `AvailabilitySetSKUTypes.ToPtr` has been removed
+- Function `*VirtualMachinesClientAssessPatchesPoller.ResumeToken` has been removed
+- Function `*DiskAccessesClientListPrivateEndpointConnectionsPager.PageResponse` has been removed
+- Function `*GalleryApplicationsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*DisksClientUpdatePoller.Done` has been removed
+- Function `VirtualMachineScaleSetVMsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*GalleriesClientCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesClientInstallPatchesPoller.FinalResponse` has been removed
+- Function `*CapacityReservationsClientUpdatePoller.ResumeToken` has been removed
+- Function `*DisksClientListPager.NextPage` has been removed
+- Function `*CloudServiceRolesClientListPager.NextPage` has been removed
+- Function `*CloudServiceRoleInstancesClientReimagePoller.FinalResponse` has been removed
+- Function `*SnapshotsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*GalleryImagesClientListByGalleryPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsClientPowerOffPollerResponse.Resume` has been removed
+- Function `*CloudServicesClientListPager.NextPage` has been removed
+- Function `SharedToValues.ToPtr` has been removed
+- Function `*DiskEncryptionSetsClientDeletePoller.Poll` has been removed
+- Function `GalleryApplicationsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientStartPollerResponse.Resume` has been removed
+- Function `CloudServicesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImagesClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*DisksClientDeletePoller.Poll` has been removed
+- Function `*DedicatedHostGroupsClientListBySubscriptionPager.Err` has been removed
+- Function `VirtualMachineScaleSetsClientUpdateInstancesPollerResponse.PollUntilDone` has been removed
+- Function `*AvailabilitySetsClientListBySubscriptionPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientListSKUsPager.NextPage` has been removed
+- Function `*VirtualMachinesClientInstallPatchesPollerResponse.Resume` has been removed
+- Function `ExtendedLocationTypes.ToPtr` has been removed
+- Function `*DiskEncryptionSetsClientListPager.Err` has been removed
+- Function `*VirtualMachinesClientDeletePoller.Done` has been removed
+- Function `*CloudServicesClientStartPoller.ResumeToken` has been removed
+- Function `VMGuestPatchRebootSetting.ToPtr` has been removed
+- Function `*ImagesClientDeletePoller.ResumeToken` has been removed
+- Function `*DiskAccessesClientUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.Done` has been removed
+- Function `CloudServiceUpgradeMode.ToPtr` has been removed
+- Function `*CloudServiceRoleInstancesClientReimagePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRunCommandPollerResponse.Resume` has been removed
+- Function `*ImagesClientUpdatePoller.ResumeToken` has been removed
+- Function `VirtualMachinesClientRestartPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationsClientDeletePoller.Poll` has been removed
+- Function `VirtualMachineScaleSetVMsClientRestartPollerResponse.PollUntilDone` has been removed
+- Function `DisksClientRevokeAccessPollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesClientStartPoller.FinalResponse` has been removed
+- Function `*LogAnalyticsClientExportThrottledRequestsPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimageAllPollerResponse.Resume` has been removed
+- Function `*GalleryApplicationVersionsClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientListByLocationPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsClientDeletePoller.Done` has been removed
+- Function `*CloudServicesClientUpdatePoller.FinalResponse` has been removed
+- Function `CloudServicesClientRestartPollerResponse.PollUntilDone` has been removed
+- Function `*DisksClientGrantAccessPoller.FinalResponse` has been removed
+- Function `DiskEncryptionSetType.ToPtr` has been removed
+- Function `*GalleryImagesClientDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsClientDeallocatePollerResponse.Resume` has been removed
+- Function `*LogAnalyticsClientExportRequestRateByIntervalPoller.FinalResponse` has been removed
+- Function `HyperVGeneration.ToPtr` has been removed
+- Function `*ResourceSKUsClientListPager.NextPage` has been removed
+- Function `*DedicatedHostsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachinesClientPerformMaintenancePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsClientDeletePoller.Done` has been removed
+- Function `*ImagesClientDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.Done` has been removed
+- Function `*GalleryImagesClientListByGalleryPager.PageResponse` has been removed
+- Function `VirtualMachineScaleSetsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineRunCommandsClientDeletePoller.ResumeToken` has been removed
+- Function `*SnapshotsClientUpdatePollerResponse.Resume` has been removed
+- Function `*CloudServicesClientUpdatePoller.ResumeToken` has been removed
+- Function `*GalleryApplicationsClientUpdatePoller.FinalResponse` has been removed
+- Function `*ImagesClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*DisksClientListByResourceGroupPager.Err` has been removed
+- Function `*VirtualMachinesClientReimagePollerResponse.Resume` has been removed
+- Function `*CloudServicesClientRestartPollerResponse.Resume` has been removed
+- Function `*CloudServicesClientListAllPager.Err` has been removed
+- Function `CloudServiceRoleInstancesClientRebuildPollerResponse.PollUntilDone` has been removed
+- Function `DiskRestorePointClientRevokeAccessPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImageVersionsClientListByGalleryImagePager.PageResponse` has been removed
+- Function `LinuxVMGuestPatchMode.ToPtr` has been removed
+- Function `VMGuestPatchClassificationWindows.ToPtr` has been removed
+- Function `VirtualMachinesClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `DisksClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceRoleInstancesClientRebuildPoller.ResumeToken` has been removed
+- Function `*GalleryImagesClientDeletePoller.ResumeToken` has been removed
+- Function `ReplicationMode.ToPtr` has been removed
+- Function `*AvailabilitySetsClientListBySubscriptionPager.NextPage` has been removed
+- Function `*ProximityPlacementGroupsClientListBySubscriptionPager.PageResponse` has been removed
+- Function `*CloudServiceRoleInstancesClientRebuildPoller.Done` has been removed
+- Function `*RestorePointsClientCreatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.ResumeToken` has been removed
+- Function `SnapshotsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `RestorePointCollectionsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientListPager.Err` has been removed
+- Function `*RestorePointCollectionsClientListPager.NextPage` has been removed
+- Function `*VirtualMachinesClientAssessPatchesPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeallocatePollerResponse.Resume` has been removed
+- Function `*DedicatedHostsClientDeletePoller.Done` has been removed
+- Function `*DisksClientDeletePoller.FinalResponse` has been removed
+- Function `*SnapshotsClientListByResourceGroupPager.Err` has been removed
+- Function `VirtualMachineExtensionsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*GalleriesClientUpdatePollerResponse.Resume` has been removed
+- Function `SettingNames.ToPtr` has been removed
+- Function `UpgradeMode.ToPtr` has been removed
+- Function `*DisksClientUpdatePoller.ResumeToken` has been removed
+- Function `*SharedGalleriesClientListPager.PageResponse` has been removed
+- Function `*VirtualMachinesClientInstallPatchesPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsClientReimageAllPoller.FinalResponse` has been removed
+- Function `DiskEncryptionSetIdentityType.ToPtr` has been removed
+- Function `*GalleriesClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*SnapshotsClientRevokeAccessPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeallocatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.FinalResponse` has been removed
+- Function `ResourceIdentityType.ToPtr` has been removed
+- Function `PublicIPAddressSKUTier.ToPtr` has been removed
+- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.Poll` has been removed
+- Function `CapacityReservationInstanceViewTypes.ToPtr` has been removed
+- Function `*VirtualMachinesClientUpdatePoller.ResumeToken` has been removed
+- Function `*CapacityReservationsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineExtensionsClientUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsClientPerformMaintenancePollerResponse.Resume` has been removed
+- Function `*GalleryImageVersionsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientCapturePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientUpdatePoller.Done` has been removed
+- Function `*SSHPublicKeysClientListBySubscriptionPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdatePoller.ResumeToken` has been removed
+- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.ResumeToken` has been removed
+- Function `*DiskRestorePointClientRevokeAccessPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsClientRestartPoller.Poll` has been removed
+- Function `*CloudServiceRoleInstancesClientRebuildPoller.Poll` has been removed
+- Function `*ImagesClientListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsClientRestartPoller.ResumeToken` has been removed
+- Function `*CloudServicesClientDeletePollerResponse.Resume` has been removed
+- Function `*DisksClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*SnapshotsClientUpdatePoller.Poll` has been removed
+- Function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.PageResponse` has been removed
+- Function `ResourceSKUCapacityScaleType.ToPtr` has been removed
+- Function `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientRedeployPoller.ResumeToken` has been removed
+- Function `*SnapshotsClientUpdatePoller.FinalResponse` has been removed
+- Function `*DedicatedHostsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsClientDeletePoller.ResumeToken` has been removed
+- Function `PrivateEndpointConnectionProvisioningState.ToPtr` has been removed
+- Function `SecurityTypes.ToPtr` has been removed
+- Function `*ImagesClientDeletePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*CloudServicesClientRebuildPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientListPager.Err` has been removed
+- Function `*CloudServiceRoleInstancesClientRestartPoller.Poll` has been removed
+- Function `*DedicatedHostsClientRestartPoller.FinalResponse` has been removed
+- Function `*ImagesClientListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachinesClientRedeployPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesClientDeallocatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientUpdatePoller.FinalResponse` has been removed
+- Function `*CloudServiceRoleInstancesClientDeletePoller.ResumeToken` has been removed
+- Function `*DiskRestorePointClientGrantAccessPoller.Poll` has been removed
+- Function `*GallerySharingProfileClientUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesClientListByLocationPager.Err` has been removed
+- Function `*GalleriesClientUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.ResumeToken` has been removed
+- Function `VirtualMachinesClientCapturePollerResponse.PollUntilDone` has been removed
+- Function `CloudServiceRoleInstancesClientReimagePollerResponse.PollUntilDone` has been removed
+- Function `*DisksClientGrantAccessPoller.ResumeToken` has been removed
+- Function `VirtualMachinesClientRedeployPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientListSKUsPager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.Done` has been removed
+- Function `ProximityPlacementGroupType.ToPtr` has been removed
+- Function `*RestorePointCollectionsClientListPager.PageResponse` has been removed
+- Function `*DiskAccessesClientCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsClientUpdatePoller.ResumeToken` has been removed
+- Function `*DisksClientUpdatePollerResponse.Resume` has been removed
+- Function `*DiskEncryptionSetsClientListAssociatedResourcesPager.Err` has been removed
+- Function `*CloudServicesClientDeletePoller.FinalResponse` has been removed
+- Function `*DisksClientListPager.PageResponse` has been removed
+- Function `CapacityReservationsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.Poll` has been removed
+- Function `*DiskEncryptionSetsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*CloudServicesClientCreateOrUpdatePoller.Poll` has been removed
+- Function `VirtualMachineScaleSetVMsClientRunCommandPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientRestartPoller.Done` has been removed
+- Function `GalleryApplicationsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientReapplyPollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientConvertToManagedDisksPoller.ResumeToken` has been removed
+- Function `*VirtualMachinesClientStartPoller.Done` has been removed
+- Function `GalleryImageVersionsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `CloudServicesClientStartPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientDeletePoller.ResumeToken` has been removed
+- Function `VMGuestPatchRebootStatus.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientDeallocatePoller.Done` has been removed
+- Function `*VirtualMachinesClientReimagePoller.FinalResponse` has been removed
+- Function `*VirtualMachineExtensionsClientDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsClientListSKUsPager.PageResponse` has been removed
+- Function `*CloudServiceRoleInstancesClientRebuildPollerResponse.Resume` has been removed
+- Function `*DiskEncryptionSetsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesClientInstallPatchesPoller.Done` has been removed
+- Function `*GalleryImageVersionsClientDeletePollerResponse.Resume` has been removed
+- Function `VirtualMachinesClientPowerOffPollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesClientRestartPoller.Poll` has been removed
+- Function `OrchestrationServiceStateAction.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMsClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientPowerOffPoller.Done` has been removed
+- Function `*LogAnalyticsClientExportRequestRateByIntervalPollerResponse.Resume` has been removed
+- Function `OperatingSystemStateTypes.ToPtr` has been removed
+- Function `CloudServicesClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*SnapshotsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `DiskStorageAccountTypes.ToPtr` has been removed
+- Function `GalleryImageVersionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientPowerOffPoller.Poll` has been removed
+- Function `*GalleryImageVersionsClientDeletePoller.Poll` has been removed
+- Function `*CloudServiceRoleInstancesClientRestartPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientReimageAllPoller.Poll` has been removed
+- Function `WindowsVMGuestPatchMode.ToPtr` has been removed
+- Function `*DisksClientGrantAccessPollerResponse.Resume` has been removed
+- Function `ArchitectureTypes.ToPtr` has been removed
+- Function `GalleryImageVersionsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostsClientListByHostGroupPager.NextPage` has been removed
+- Function `*CloudServicesClientReimagePoller.ResumeToken` has been removed
+- Function `*DedicatedHostsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*DiskAccessesClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineRunCommandsClientListPager.PageResponse` has been removed
+- Function `*GalleriesClientUpdatePoller.FinalResponse` has been removed
+- Function `DiskAccessesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.Poll` has been removed
+- Function `DiskDetachOptionTypes.ToPtr` has been removed
+- Function `DiskState.ToPtr` has been removed
+- Function `*DiskEncryptionSetsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `PatchOperationStatus.ToPtr` has been removed
+- Function `*CloudServiceRoleInstancesClientDeletePoller.Poll` has been removed
+- Function `*VirtualMachinesClientCapturePoller.Done` has been removed
+- Function `*DiskAccessesClientUpdatePoller.Done` has been removed
+- Function `*CloudServiceRoleInstancesClientListPager.Err` has been removed
+- Function `LinuxPatchAssessmentMode.ToPtr` has been removed
+- Function `SharingProfileGroupTypes.ToPtr` has been removed
+- Function `*GalleryImageVersionsClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `VirtualMachineScaleSetExtensionsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineRunCommandsClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineRunCommandsClientDeletePoller.Poll` has been removed
+- Function `*DedicatedHostGroupsClientListBySubscriptionPager.PageResponse` has been removed
+- Function `*RestorePointCollectionsClientDeletePoller.Done` has been removed
+- Function `GallerySharingProfileClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesClientRestartPoller.ResumeToken` has been removed
+- Function `VirtualMachinesClientReapplyPollerResponse.PollUntilDone` has been removed
+- Function `DiskEncryptionSetsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `RestorePointCollectionExpandOptions.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.Poll` has been removed
+- Function `*CloudServiceOperatingSystemsClientListOSVersionsPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.ResumeToken` has been removed
+- Function `*DiskAccessesClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `ImagesClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*DisksClientRevokeAccessPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsClientReimageAllPollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsClientListByGalleryPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.FinalResponse` has been removed
+- Function `*GalleryImagesClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimagePoller.Poll` has been removed
+- Function `ExpandTypesForGetVMScaleSets.ToPtr` has been removed
+- Function `*VirtualMachineRunCommandsClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientStartPoller.Done` has been removed
+- Function `*VirtualMachinesClientListByLocationPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsClientDeleteInstancesPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.Done` has been removed
+- Function `LogAnalyticsClientExportRequestRateByIntervalPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImageVersionsClientUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimageAllPoller.ResumeToken` has been removed
+- Function `*CloudServiceRoleInstancesClientReimagePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.Poll` has been removed
+- Function `HyperVGenerationTypes.ToPtr` has been removed
+- Function `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse.PollUntilDone` has been removed
+- Function `Architecture.ToPtr` has been removed
+- Function `PublicIPAddressSKUName.ToPtr` has been removed
+- Function `VirtualMachineScaleSetVMsClientDeallocatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*CapacityReservationsClientListByCapacityReservationGroupPager.Err` has been removed
+- Function `*VirtualMachinesClientListPager.Err` has been removed
+- Function `*DedicatedHostsClientRestartPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*DisksClientDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientDeletePoller.ResumeToken` has been removed
+- Function `*GalleryApplicationVersionsClientDeletePoller.Poll` has been removed
+- Function `*DiskAccessesClientListPager.NextPage` has been removed
+- Function `*DiskAccessesClientListByResourceGroupPager.Err` has been removed
+- Function `*VirtualMachinesClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientRedeployPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPowerOffPoller.Poll` has been removed
+- Function `*RestorePointsClientDeletePoller.Poll` has been removed
+- Function `*ImagesClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*GalleryImageVersionsClientListByGalleryImagePager.Err` has been removed
+- Function `*DiskEncryptionSetsClientListByResourceGroupPager.PageResponse` has been removed
+- Function `*GalleryApplicationsClientDeletePollerResponse.Resume` has been removed
+- Function `*GalleriesClientUpdatePoller.Done` has been removed
+- Function `*CapacityReservationGroupsClientListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimageAllPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsClientReimagePollerResponse.Resume` has been removed
+- Function `*LogAnalyticsClientExportRequestRateByIntervalPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.ResumeToken` has been removed
+- Function `*DedicatedHostsClientRestartPoller.ResumeToken` has been removed
+- Function `SnapshotStorageAccountTypes.ToPtr` has been removed
+- Function `VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*RestorePointCollectionsClientDeletePoller.FinalResponse` has been removed
+- Function `*CloudServiceRoleInstancesClientRestartPoller.ResumeToken` has been removed
+- Function `DisksClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRedeployPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsClientListAllPager.Err` has been removed
+- Function `*GalleryApplicationVersionsClientUpdatePoller.Done` has been removed
+- Function `*LogAnalyticsClientExportThrottledRequestsPoller.Done` has been removed
+- Function `DisksClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesClientPowerOffPoller.Poll` has been removed
+- Function `*GalleryApplicationVersionsClientUpdatePoller.Poll` has been removed
+- Function `*ImagesClientListPager.PageResponse` has been removed
+- Function `AccessLevel.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `DiskCreateOption.ToPtr` has been removed
+- Function `*DedicatedHostsClientCreateOrUpdatePoller.Done` has been removed
+- Function `VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientRedeployPoller.ResumeToken` has been removed
+- Function `*LogAnalyticsClientExportRequestRateByIntervalPoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.Done` has been removed
+- Function `*LogAnalyticsClientExportRequestRateByIntervalPoller.Done` has been removed
+- Function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.FinalResponse` has been removed
+- Function `*CloudServicesClientListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsClientListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsClientPowerOffPoller.FinalResponse` has been removed
+- Function `*RestorePointCollectionsClientListAllPager.Err` has been removed
+- Function `VirtualMachineEvictionPolicyTypes.ToPtr` has been removed
+- Function `*ProximityPlacementGroupsClientListBySubscriptionPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.ResumeToken` has been removed
+- Function `*DisksClientListPager.Err` has been removed
+- Function `*ProximityPlacementGroupsClientListByResourceGroupPager.PageResponse` has been removed
+- Function `*DisksClientRevokeAccessPollerResponse.Resume` has been removed
+- Function `*CloudServiceRoleInstancesClientReimagePollerResponse.Resume` has been removed
+- Function `GalleryImagesClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*GalleriesClientDeletePoller.Poll` has been removed
+- Function `*DiskAccessesClientListByResourceGroupPager.PageResponse` has been removed
+- Function `SnapshotsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientPowerOffPoller.ResumeToken` has been removed
+- Function `*UsageClientListPager.Err` has been removed
+- Function `PublicIPAllocationMethod.ToPtr` has been removed
+- Function `*SharedGalleryImageVersionsClientListPager.Err` has been removed
+- Function `*VirtualMachinesClientListAllPager.NextPage` has been removed
+- Function `*VirtualMachinesClientRunCommandPollerResponse.Resume` has been removed
+- Function `StorageAccountType.ToPtr` has been removed
+- Function `*GalleryImageVersionsClientUpdatePoller.Done` has been removed
+- Function `GalleryApplicationVersionPropertiesProvisioningState.ToPtr` has been removed
+- Function `*RestorePointCollectionsClientListPager.Err` has been removed
+- Function `*CapacityReservationGroupsClientListBySubscriptionPager.Err` has been removed
+- Function `*RestorePointsClientCreatePoller.ResumeToken` has been removed
+- Function `*CloudServicesClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `SnapshotsClientRevokeAccessPollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostsClientListByHostGroupPager.PageResponse` has been removed
+- Function `*SnapshotsClientDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsClientRestartPollerResponse.Resume` has been removed
+- Function `IPVersions.ToPtr` has been removed
+- Function `VirtualMachineScaleSetVMsClientReimagePollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostsClientDeletePoller.Poll` has been removed
+- Function `PublicNetworkAccess.ToPtr` has been removed
+- Function `CloudServiceRoleInstancesClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientListPager.PageResponse` has been removed
+- Function `PatchAssessmentState.ToPtr` has been removed
+- Function `*GalleryApplicationsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientRedeployPoller.Done` has been removed
+- Function `*GallerySharingProfileClientUpdatePoller.ResumeToken` has been removed
+- Function `*CloudServicesClientReimagePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimageAllPoller.Poll` has been removed
+- Function `*CloudServicesClientListAllPager.PageResponse` has been removed
+- Function `*VirtualMachinesClientReimagePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesClientListAllPager.Err` has been removed
+- Function `ResourceSKURestrictionsReasonCode.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse.Resume` has been removed
+- Function `UpgradeState.ToPtr` has been removed
+- Function `*VirtualMachinesClientConvertToManagedDisksPoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientCapturePoller.FinalResponse` has been removed
+- Function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.PageResponse` has been removed
+- Function `*DedicatedHostsClientUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRestartPollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientStartPoller.FinalResponse` has been removed
+- Function `*RestorePointsClientCreatePoller.FinalResponse` has been removed
+- Function `*DisksClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientDeallocatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.FinalResponse` has been removed
+- Function `*GalleriesClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientAssessPatchesPoller.Poll` has been removed
+- Function `*DisksClientUpdatePoller.Poll` has been removed
+- Function `*GalleryImagesClientDeletePollerResponse.Resume` has been removed
+- Function `*UsageClientListPager.PageResponse` has been removed
+- Function `VMDiskTypes.ToPtr` has been removed
+- Function `CloudServicesClientRebuildPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientConvertToManagedDisksPoller.Done` has been removed
+- Function `*CloudServicesClientPowerOffPoller.FinalResponse` has been removed
+- Function `*ImagesClientCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesClientReimagePoller.Done` has been removed
+- Function `*LogAnalyticsClientExportThrottledRequestsPoller.FinalResponse` has been removed
+- Function `*CapacityReservationsClientUpdatePoller.Poll` has been removed
+- Function `*AvailabilitySetsClientListPager.NextPage` has been removed
+- Function `*VirtualMachinesClientPerformMaintenancePoller.FinalResponse` has been removed
+- Function `*CapacityReservationsClientUpdatePollerResponse.Resume` has been removed
+- Function `*CloudServicesClientReimagePoller.Poll` has been removed
+- Function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.NextPage` has been removed
+- Function `*GalleryImagesClientUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesClientUpdatePoller.Poll` has been removed
+- Function `DisksClientGrantAccessPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationVersionsClientUpdatePoller.FinalResponse` has been removed
+- Function `*CloudServiceRoleInstancesClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientPerformMaintenancePoller.Done` has been removed
+- Function `*GalleriesClientListPager.PageResponse` has been removed
+- Function `*VirtualMachinesClientPowerOffPoller.ResumeToken` has been removed
+- Function `*GalleriesClientListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientDeletePoller.Poll` has been removed
+- Function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `RestorePointExpandOptions.ToPtr` has been removed
+- Function `*DedicatedHostGroupsClientListByResourceGroupPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.FinalResponse` has been removed
+- Function `*UsageClientListPager.NextPage` has been removed
+- Function `*VirtualMachinesClientListPager.NextPage` has been removed
+- Function `*CapacityReservationGroupsClientListByResourceGroupPager.PageResponse` has been removed
+- Function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*SSHPublicKeysClientListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRestartPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsClientStartPollerResponse.Resume` has been removed
+- Function `*SnapshotsClientUpdatePoller.Done` has been removed
+- Function `RestorePointsClientCreatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.Done` has been removed
+- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.FinalResponse` has been removed
+- Function `VirtualMachineScaleSetSKUScaleType.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.FinalResponse` has been removed
+- Function `CloudServicesClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineExtensionsClientUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.ResumeToken` has been removed
+- Function `*CloudServicesClientDeletePoller.ResumeToken` has been removed
+- Function `*RestorePointCollectionsClientListAllPager.NextPage` has been removed
+- Function `*ResourceSKUsClientListPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRunCommandPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdateInstancesPollerResponse.Resume` has been removed
+- Function `GalleryImagePropertiesProvisioningState.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMsClientStartPoller.ResumeToken` has been removed
+- Function `*VirtualMachineRunCommandsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.Done` has been removed
+- Function `GalleriesClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPowerOffPoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientRunCommandPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.ResumeToken` has been removed
+- Function `*SharedGalleryImagesClientListPager.NextPage` has been removed
+- Function `ConfidentialVMEncryptionType.ToPtr` has been removed
+- Function `VirtualMachineScaleSetVMsClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImagesClientUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesClientRedeployPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.NextPage` has been removed
+- Function `*CapacityReservationsClientDeletePoller.ResumeToken` has been removed
+- Function `*DedicatedHostGroupsClientListByResourceGroupPager.NextPage` has been removed
+- Function `*SnapshotsClientGrantAccessPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsClientReimagePoller.Done` has been removed
+- Function `*CapacityReservationGroupsClientListBySubscriptionPager.NextPage` has been removed
+- Function `*RestorePointCollectionsClientDeletePoller.Poll` has been removed
+- Function `*DedicatedHostGroupsClientListByResourceGroupPager.Err` has been removed
+- Function `*DiskRestorePointClientListByRestorePointPager.PageResponse` has been removed
+- Function `*GalleryApplicationsClientListByGalleryPager.Err` has been removed
+- Function `*CloudServiceRoleInstancesClientDeletePoller.Done` has been removed
+- Function `*CloudServiceRoleInstancesClientRebuildPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.Poll` has been removed
+- Function `*DisksClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineRunCommandsClientDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientUpdatePollerResponse.Resume` has been removed
+- Function `*ImagesClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `VirtualMachineScaleSetsClientPowerOffPollerResponse.PollUntilDone` has been removed
+- Function `*CapacityReservationsClientDeletePollerResponse.Resume` has been removed
+- Function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.ResumeToken` has been removed
+- Function `*SharedGalleryImagesClientListPager.Err` has been removed
+- Function `*GallerySharingProfileClientUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsClientRestartPoller.FinalResponse` has been removed
+- Function `*GalleryImagesClientDeletePoller.Done` has been removed
+- Function `*VirtualMachinesClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*DedicatedHostsClientDeletePollerResponse.Resume` has been removed
+- Function `VirtualMachinesClientReimagePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImageVersionsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*GalleryImagesClientCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `VirtualMachinesClientInstallPatchesPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.FinalResponse` has been removed
+- Function `DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse.PollUntilDone` has been removed
+- Function `*SnapshotsClientDeletePoller.FinalResponse` has been removed
+- Function `VMGuestPatchRebootBehavior.ToPtr` has been removed
+- Function `*RestorePointCollectionsClientDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineRunCommandsClientUpdatePoller.FinalResponse` has been removed
+- Function `DedicatedHostsClientRestartPollerResponse.PollUntilDone` has been removed
+- Function `*DiskEncryptionSetsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientListPager.PageResponse` has been removed
+- Function `SelectPermissions.ToPtr` has been removed
+- Function `GalleriesClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceOperatingSystemsClientListOSVersionsPager.Err` has been removed
+- Function `*ImagesClientUpdatePoller.Poll` has been removed
+- Function `*RestorePointCollectionsClientDeletePollerResponse.Resume` has been removed
+- Function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.ResumeToken` has been removed
+- Function `*VirtualMachinesClientCapturePollerResponse.Resume` has been removed
+- Function `*DiskAccessesClientListByResourceGroupPager.NextPage` has been removed
+- Function `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `GalleryApplicationVersionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `VMGuestPatchClassificationLinux.ToPtr` has been removed
+- Function `*DiskEncryptionSetsClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesClientListAllPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsClientDeletePollerResponse.Resume` has been removed
+- Function `*GalleryImageVersionsClientDeletePoller.FinalResponse` has been removed
+- Function `*CloudServiceRoleInstancesClientListPager.NextPage` has been removed
+- Function `*DisksClientGrantAccessPoller.Done` has been removed
+- Function `*GalleryApplicationsClientUpdatePoller.Done` has been removed
+- Function `*CloudServicesClientUpdatePoller.Done` has been removed
+- Function `*SharedGalleriesClientListPager.Err` has been removed
+- Function `UpgradeOperationInvoker.ToPtr` has been removed
+- Function `SecurityEncryptionTypes.ToPtr` has been removed
+- Function `*VirtualMachinesClientPowerOffPoller.Done` has been removed
+- Function `*VirtualMachinesClientReimagePoller.Poll` has been removed
+- Function `ReplicationState.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetsClientListAllPager.PageResponse` has been removed
+- Function `*SnapshotsClientDeletePoller.Done` has been removed
+- Function `*GalleryImageVersionsClientListByGalleryImagePager.NextPage` has been removed
+- Function `*GalleriesClientListByResourceGroupPager.Err` has been removed
+- Function `VirtualMachineScaleSetVMsClientRedeployPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.Done` has been removed
+- Function `*SharedGalleryImageVersionsClientListPager.NextPage` has been removed
+- Function `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsClientReimageAllPoller.ResumeToken` has been removed
+- Function `*DiskEncryptionSetsClientDeletePoller.Done` has been removed
+- Function `*VirtualMachinesClientDeletePoller.Poll` has been removed
+- Function `*GalleryImagesClientDeletePoller.FinalResponse` has been removed
+- Function `DiskAccessesClientUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationsClientDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.Poll` has been removed
+- Function `*GalleriesClientUpdatePoller.Poll` has been removed
+- Function `DiskRestorePointClientGrantAccessPollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesClientDeletePoller.Done` has been removed
+- Function `*DisksClientRevokeAccessPoller.Poll` has been removed
+- Function `*DisksClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*CapacityReservationsClientListByCapacityReservationGroupPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.Poll` has been removed
+- Function `*SnapshotsClientGrantAccessPoller.ResumeToken` has been removed
+- Function `ConsistencyModeTypes.ToPtr` has been removed
+- Function `VirtualMachinesClientPerformMaintenancePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetsClientReimageAllPollerResponse.PollUntilDone` has been removed
+- Function `GalleryImagesClientDeletePollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesClientUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientDeallocatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsClientUpdatePoller.FinalResponse` has been removed
+- Function `*RestorePointsClientCreatePoller.Poll` has been removed
+- Function `DiffDiskPlacement.ToPtr` has been removed
+- Function `WindowsPatchAssessmentMode.ToPtr` has been removed
+- Function `*GalleriesClientDeletePoller.Done` has been removed
+- Function `*ResourceSKUsClientListPager.Err` has been removed
+- Function `*SSHPublicKeysClientListByResourceGroupPager.PageResponse` has been removed
+- Function `*DiskEncryptionSetsClientListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.Err` has been removed
+- Function `GalleryImageVersionPropertiesProvisioningState.ToPtr` has been removed
+- Function `GalleryExtendedLocationType.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetsClientRedeployPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsClientUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientRestartPoller.Poll` has been removed
+- Function `*GalleryApplicationVersionsClientUpdatePoller.ResumeToken` has been removed
+- Function `*DiskAccessesClientListPager.PageResponse` has been removed
+- Function `*CloudServicesClientDeleteInstancesPoller.FinalResponse` has been removed
+- Function `RollingUpgradeStatusCode.ToPtr` has been removed
+- Function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.ResumeToken` has been removed
+- Function `ProtocolTypes.ToPtr` has been removed
+- Function `*CloudServicesClientRestartPoller.Done` has been removed
+- Function `*SnapshotsClientRevokeAccessPoller.Poll` has been removed
+- Function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*GalleriesClientListByResourceGroupPager.PageResponse` has been removed
+- Function `*CloudServicesClientReimagePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesClientRunCommandPoller.Poll` has been removed
+- Function `*CloudServicesClientRebuildPoller.FinalResponse` has been removed
+- Function `LogAnalyticsClientExportThrottledRequestsPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesClientPerformMaintenancePoller.ResumeToken` has been removed
+- Function `*VirtualMachineExtensionsClientDeletePoller.FinalResponse` has been removed
+- Struct `AvailabilitySetsClientCreateOrUpdateResult` has been removed
+- Struct `AvailabilitySetsClientGetResult` has been removed
+- Struct `AvailabilitySetsClientListAvailableSizesResult` has been removed
+- Struct `AvailabilitySetsClientListBySubscriptionPager` has been removed
+- Struct `AvailabilitySetsClientListBySubscriptionResult` has been removed
+- Struct `AvailabilitySetsClientListPager` has been removed
+- Struct `AvailabilitySetsClientListResult` has been removed
+- Struct `AvailabilitySetsClientUpdateResult` has been removed
+- Struct `CapacityReservationGroupsClientCreateOrUpdateResult` has been removed
+- Struct `CapacityReservationGroupsClientGetResult` has been removed
+- Struct `CapacityReservationGroupsClientListByResourceGroupPager` has been removed
+- Struct `CapacityReservationGroupsClientListByResourceGroupResult` has been removed
+- Struct `CapacityReservationGroupsClientListBySubscriptionPager` has been removed
+- Struct `CapacityReservationGroupsClientListBySubscriptionResult` has been removed
+- Struct `CapacityReservationGroupsClientUpdateResult` has been removed
+- Struct `CapacityReservationsClientCreateOrUpdatePoller` has been removed
+- Struct `CapacityReservationsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `CapacityReservationsClientCreateOrUpdateResult` has been removed
+- Struct `CapacityReservationsClientDeletePoller` has been removed
+- Struct `CapacityReservationsClientDeletePollerResponse` has been removed
+- Struct `CapacityReservationsClientGetResult` has been removed
+- Struct `CapacityReservationsClientListByCapacityReservationGroupPager` has been removed
+- Struct `CapacityReservationsClientListByCapacityReservationGroupResult` has been removed
+- Struct `CapacityReservationsClientUpdatePoller` has been removed
+- Struct `CapacityReservationsClientUpdatePollerResponse` has been removed
+- Struct `CapacityReservationsClientUpdateResult` has been removed
+- Struct `CloudServiceOperatingSystemsClientGetOSFamilyResult` has been removed
+- Struct `CloudServiceOperatingSystemsClientGetOSVersionResult` has been removed
+- Struct `CloudServiceOperatingSystemsClientListOSFamiliesPager` has been removed
+- Struct `CloudServiceOperatingSystemsClientListOSFamiliesResult` has been removed
+- Struct `CloudServiceOperatingSystemsClientListOSVersionsPager` has been removed
+- Struct `CloudServiceOperatingSystemsClientListOSVersionsResult` has been removed
+- Struct `CloudServiceRoleInstancesClientDeletePoller` has been removed
+- Struct `CloudServiceRoleInstancesClientDeletePollerResponse` has been removed
+- Struct `CloudServiceRoleInstancesClientGetInstanceViewResult` has been removed
+- Struct `CloudServiceRoleInstancesClientGetResult` has been removed
+- Struct `CloudServiceRoleInstancesClientListPager` has been removed
+- Struct `CloudServiceRoleInstancesClientListResult` has been removed
+- Struct `CloudServiceRoleInstancesClientRebuildPoller` has been removed
+- Struct `CloudServiceRoleInstancesClientRebuildPollerResponse` has been removed
+- Struct `CloudServiceRoleInstancesClientReimagePoller` has been removed
+- Struct `CloudServiceRoleInstancesClientReimagePollerResponse` has been removed
+- Struct `CloudServiceRoleInstancesClientRestartPoller` has been removed
+- Struct `CloudServiceRoleInstancesClientRestartPollerResponse` has been removed
+- Struct `CloudServiceRolesClientGetResult` has been removed
+- Struct `CloudServiceRolesClientListPager` has been removed
+- Struct `CloudServiceRolesClientListResult` has been removed
+- Struct `CloudServicesClientCreateOrUpdatePoller` has been removed
+- Struct `CloudServicesClientCreateOrUpdatePollerResponse` has been removed
+- Struct `CloudServicesClientCreateOrUpdateResult` has been removed
+- Struct `CloudServicesClientDeleteInstancesPoller` has been removed
+- Struct `CloudServicesClientDeleteInstancesPollerResponse` has been removed
+- Struct `CloudServicesClientDeletePoller` has been removed
+- Struct `CloudServicesClientDeletePollerResponse` has been removed
+- Struct `CloudServicesClientGetInstanceViewResult` has been removed
+- Struct `CloudServicesClientGetResult` has been removed
+- Struct `CloudServicesClientListAllPager` has been removed
+- Struct `CloudServicesClientListAllResult` has been removed
+- Struct `CloudServicesClientListPager` has been removed
+- Struct `CloudServicesClientListResult` has been removed
+- Struct `CloudServicesClientPowerOffPoller` has been removed
+- Struct `CloudServicesClientPowerOffPollerResponse` has been removed
+- Struct `CloudServicesClientRebuildPoller` has been removed
+- Struct `CloudServicesClientRebuildPollerResponse` has been removed
+- Struct `CloudServicesClientReimagePoller` has been removed
+- Struct `CloudServicesClientReimagePollerResponse` has been removed
+- Struct `CloudServicesClientRestartPoller` has been removed
+- Struct `CloudServicesClientRestartPollerResponse` has been removed
+- Struct `CloudServicesClientStartPoller` has been removed
+- Struct `CloudServicesClientStartPollerResponse` has been removed
+- Struct `CloudServicesClientUpdatePoller` has been removed
+- Struct `CloudServicesClientUpdatePollerResponse` has been removed
+- Struct `CloudServicesClientUpdateResult` has been removed
+- Struct `CloudServicesUpdateDomainClientGetUpdateDomainResult` has been removed
+- Struct `CloudServicesUpdateDomainClientListUpdateDomainsPager` has been removed
+- Struct `CloudServicesUpdateDomainClientListUpdateDomainsResult` has been removed
+- Struct `CloudServicesUpdateDomainClientWalkUpdateDomainPoller` has been removed
+- Struct `CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse` has been removed
+- Struct `CommunityGalleriesClientGetResult` has been removed
+- Struct `CommunityGalleryImageVersionsClientGetResult` has been removed
+- Struct `CommunityGalleryImagesClientGetResult` has been removed
+- Struct `DedicatedHostGroupsClientCreateOrUpdateResult` has been removed
+- Struct `DedicatedHostGroupsClientGetResult` has been removed
+- Struct `DedicatedHostGroupsClientListByResourceGroupPager` has been removed
+- Struct `DedicatedHostGroupsClientListByResourceGroupResult` has been removed
+- Struct `DedicatedHostGroupsClientListBySubscriptionPager` has been removed
+- Struct `DedicatedHostGroupsClientListBySubscriptionResult` has been removed
+- Struct `DedicatedHostGroupsClientUpdateResult` has been removed
+- Struct `DedicatedHostsClientCreateOrUpdatePoller` has been removed
+- Struct `DedicatedHostsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `DedicatedHostsClientCreateOrUpdateResult` has been removed
+- Struct `DedicatedHostsClientDeletePoller` has been removed
+- Struct `DedicatedHostsClientDeletePollerResponse` has been removed
+- Struct `DedicatedHostsClientGetResult` has been removed
+- Struct `DedicatedHostsClientListByHostGroupPager` has been removed
+- Struct `DedicatedHostsClientListByHostGroupResult` has been removed
+- Struct `DedicatedHostsClientRestartPoller` has been removed
+- Struct `DedicatedHostsClientRestartPollerResponse` has been removed
+- Struct `DedicatedHostsClientUpdatePoller` has been removed
+- Struct `DedicatedHostsClientUpdatePollerResponse` has been removed
+- Struct `DedicatedHostsClientUpdateResult` has been removed
+- Struct `DiskAccessesClientCreateOrUpdatePoller` has been removed
+- Struct `DiskAccessesClientCreateOrUpdatePollerResponse` has been removed
+- Struct `DiskAccessesClientCreateOrUpdateResult` has been removed
+- Struct `DiskAccessesClientDeleteAPrivateEndpointConnectionPoller` has been removed
+- Struct `DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse` has been removed
+- Struct `DiskAccessesClientDeletePoller` has been removed
+- Struct `DiskAccessesClientDeletePollerResponse` has been removed
+- Struct `DiskAccessesClientGetAPrivateEndpointConnectionResult` has been removed
+- Struct `DiskAccessesClientGetPrivateLinkResourcesResult` has been removed
+- Struct `DiskAccessesClientGetResult` has been removed
+- Struct `DiskAccessesClientListByResourceGroupPager` has been removed
+- Struct `DiskAccessesClientListByResourceGroupResult` has been removed
+- Struct `DiskAccessesClientListPager` has been removed
+- Struct `DiskAccessesClientListPrivateEndpointConnectionsPager` has been removed
+- Struct `DiskAccessesClientListPrivateEndpointConnectionsResult` has been removed
+- Struct `DiskAccessesClientListResult` has been removed
+- Struct `DiskAccessesClientUpdateAPrivateEndpointConnectionPoller` has been removed
+- Struct `DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse` has been removed
+- Struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResult` has been removed
+- Struct `DiskAccessesClientUpdatePoller` has been removed
+- Struct `DiskAccessesClientUpdatePollerResponse` has been removed
+- Struct `DiskAccessesClientUpdateResult` has been removed
+- Struct `DiskEncryptionSetsClientCreateOrUpdatePoller` has been removed
+- Struct `DiskEncryptionSetsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `DiskEncryptionSetsClientCreateOrUpdateResult` has been removed
+- Struct `DiskEncryptionSetsClientDeletePoller` has been removed
+- Struct `DiskEncryptionSetsClientDeletePollerResponse` has been removed
+- Struct `DiskEncryptionSetsClientGetResult` has been removed
+- Struct `DiskEncryptionSetsClientListAssociatedResourcesPager` has been removed
+- Struct `DiskEncryptionSetsClientListAssociatedResourcesResult` has been removed
+- Struct `DiskEncryptionSetsClientListByResourceGroupPager` has been removed
+- Struct `DiskEncryptionSetsClientListByResourceGroupResult` has been removed
+- Struct `DiskEncryptionSetsClientListPager` has been removed
+- Struct `DiskEncryptionSetsClientListResult` has been removed
+- Struct `DiskEncryptionSetsClientUpdatePoller` has been removed
+- Struct `DiskEncryptionSetsClientUpdatePollerResponse` has been removed
+- Struct `DiskEncryptionSetsClientUpdateResult` has been removed
+- Struct `DiskRestorePointClientGetResult` has been removed
+- Struct `DiskRestorePointClientGrantAccessPoller` has been removed
+- Struct `DiskRestorePointClientGrantAccessPollerResponse` has been removed
+- Struct `DiskRestorePointClientGrantAccessResult` has been removed
+- Struct `DiskRestorePointClientListByRestorePointPager` has been removed
+- Struct `DiskRestorePointClientListByRestorePointResult` has been removed
+- Struct `DiskRestorePointClientRevokeAccessPoller` has been removed
+- Struct `DiskRestorePointClientRevokeAccessPollerResponse` has been removed
+- Struct `DisksClientCreateOrUpdatePoller` has been removed
+- Struct `DisksClientCreateOrUpdatePollerResponse` has been removed
+- Struct `DisksClientCreateOrUpdateResult` has been removed
+- Struct `DisksClientDeletePoller` has been removed
+- Struct `DisksClientDeletePollerResponse` has been removed
+- Struct `DisksClientGetResult` has been removed
+- Struct `DisksClientGrantAccessPoller` has been removed
+- Struct `DisksClientGrantAccessPollerResponse` has been removed
+- Struct `DisksClientGrantAccessResult` has been removed
+- Struct `DisksClientListByResourceGroupPager` has been removed
+- Struct `DisksClientListByResourceGroupResult` has been removed
+- Struct `DisksClientListPager` has been removed
+- Struct `DisksClientListResult` has been removed
+- Struct `DisksClientRevokeAccessPoller` has been removed
+- Struct `DisksClientRevokeAccessPollerResponse` has been removed
+- Struct `DisksClientUpdatePoller` has been removed
+- Struct `DisksClientUpdatePollerResponse` has been removed
+- Struct `DisksClientUpdateResult` has been removed
+- Struct `GalleriesClientCreateOrUpdatePoller` has been removed
+- Struct `GalleriesClientCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleriesClientCreateOrUpdateResult` has been removed
+- Struct `GalleriesClientDeletePoller` has been removed
+- Struct `GalleriesClientDeletePollerResponse` has been removed
+- Struct `GalleriesClientGetResult` has been removed
+- Struct `GalleriesClientListByResourceGroupPager` has been removed
+- Struct `GalleriesClientListByResourceGroupResult` has been removed
+- Struct `GalleriesClientListPager` has been removed
+- Struct `GalleriesClientListResult` has been removed
+- Struct `GalleriesClientUpdatePoller` has been removed
+- Struct `GalleriesClientUpdatePollerResponse` has been removed
+- Struct `GalleriesClientUpdateResult` has been removed
+- Struct `GalleryApplicationVersionsClientCreateOrUpdatePoller` has been removed
+- Struct `GalleryApplicationVersionsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleryApplicationVersionsClientCreateOrUpdateResult` has been removed
+- Struct `GalleryApplicationVersionsClientDeletePoller` has been removed
+- Struct `GalleryApplicationVersionsClientDeletePollerResponse` has been removed
+- Struct `GalleryApplicationVersionsClientGetResult` has been removed
+- Struct `GalleryApplicationVersionsClientListByGalleryApplicationPager` has been removed
+- Struct `GalleryApplicationVersionsClientListByGalleryApplicationResult` has been removed
+- Struct `GalleryApplicationVersionsClientUpdatePoller` has been removed
+- Struct `GalleryApplicationVersionsClientUpdatePollerResponse` has been removed
+- Struct `GalleryApplicationVersionsClientUpdateResult` has been removed
+- Struct `GalleryApplicationsClientCreateOrUpdatePoller` has been removed
+- Struct `GalleryApplicationsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleryApplicationsClientCreateOrUpdateResult` has been removed
+- Struct `GalleryApplicationsClientDeletePoller` has been removed
+- Struct `GalleryApplicationsClientDeletePollerResponse` has been removed
+- Struct `GalleryApplicationsClientGetResult` has been removed
+- Struct `GalleryApplicationsClientListByGalleryPager` has been removed
+- Struct `GalleryApplicationsClientListByGalleryResult` has been removed
+- Struct `GalleryApplicationsClientUpdatePoller` has been removed
+- Struct `GalleryApplicationsClientUpdatePollerResponse` has been removed
+- Struct `GalleryApplicationsClientUpdateResult` has been removed
+- Struct `GalleryImageVersionsClientCreateOrUpdatePoller` has been removed
+- Struct `GalleryImageVersionsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleryImageVersionsClientCreateOrUpdateResult` has been removed
+- Struct `GalleryImageVersionsClientDeletePoller` has been removed
+- Struct `GalleryImageVersionsClientDeletePollerResponse` has been removed
+- Struct `GalleryImageVersionsClientGetResult` has been removed
+- Struct `GalleryImageVersionsClientListByGalleryImagePager` has been removed
+- Struct `GalleryImageVersionsClientListByGalleryImageResult` has been removed
+- Struct `GalleryImageVersionsClientUpdatePoller` has been removed
+- Struct `GalleryImageVersionsClientUpdatePollerResponse` has been removed
+- Struct `GalleryImageVersionsClientUpdateResult` has been removed
+- Struct `GalleryImagesClientCreateOrUpdatePoller` has been removed
+- Struct `GalleryImagesClientCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleryImagesClientCreateOrUpdateResult` has been removed
+- Struct `GalleryImagesClientDeletePoller` has been removed
+- Struct `GalleryImagesClientDeletePollerResponse` has been removed
+- Struct `GalleryImagesClientGetResult` has been removed
+- Struct `GalleryImagesClientListByGalleryPager` has been removed
+- Struct `GalleryImagesClientListByGalleryResult` has been removed
+- Struct `GalleryImagesClientUpdatePoller` has been removed
+- Struct `GalleryImagesClientUpdatePollerResponse` has been removed
+- Struct `GalleryImagesClientUpdateResult` has been removed
+- Struct `GallerySharingProfileClientUpdatePoller` has been removed
+- Struct `GallerySharingProfileClientUpdatePollerResponse` has been removed
+- Struct `GallerySharingProfileClientUpdateResult` has been removed
+- Struct `ImagesClientCreateOrUpdatePoller` has been removed
+- Struct `ImagesClientCreateOrUpdatePollerResponse` has been removed
+- Struct `ImagesClientCreateOrUpdateResult` has been removed
+- Struct `ImagesClientDeletePoller` has been removed
+- Struct `ImagesClientDeletePollerResponse` has been removed
+- Struct `ImagesClientGetResult` has been removed
+- Struct `ImagesClientListByResourceGroupPager` has been removed
+- Struct `ImagesClientListByResourceGroupResult` has been removed
+- Struct `ImagesClientListPager` has been removed
+- Struct `ImagesClientListResult` has been removed
+- Struct `ImagesClientUpdatePoller` has been removed
+- Struct `ImagesClientUpdatePollerResponse` has been removed
+- Struct `ImagesClientUpdateResult` has been removed
+- Struct `LogAnalyticsClientExportRequestRateByIntervalPoller` has been removed
+- Struct `LogAnalyticsClientExportRequestRateByIntervalPollerResponse` has been removed
+- Struct `LogAnalyticsClientExportRequestRateByIntervalResult` has been removed
+- Struct `LogAnalyticsClientExportThrottledRequestsPoller` has been removed
+- Struct `LogAnalyticsClientExportThrottledRequestsPollerResponse` has been removed
+- Struct `LogAnalyticsClientExportThrottledRequestsResult` has been removed
+- Struct `OperationsClientListResult` has been removed
+- Struct `ProximityPlacementGroupsClientCreateOrUpdateResult` has been removed
+- Struct `ProximityPlacementGroupsClientGetResult` has been removed
+- Struct `ProximityPlacementGroupsClientListByResourceGroupPager` has been removed
+- Struct `ProximityPlacementGroupsClientListByResourceGroupResult` has been removed
+- Struct `ProximityPlacementGroupsClientListBySubscriptionPager` has been removed
+- Struct `ProximityPlacementGroupsClientListBySubscriptionResult` has been removed
+- Struct `ProximityPlacementGroupsClientUpdateResult` has been removed
+- Struct `ResourceSKUsClientListPager` has been removed
+- Struct `ResourceSKUsClientListResult` has been removed
+- Struct `RestorePointCollectionsClientCreateOrUpdateResult` has been removed
+- Struct `RestorePointCollectionsClientDeletePoller` has been removed
+- Struct `RestorePointCollectionsClientDeletePollerResponse` has been removed
+- Struct `RestorePointCollectionsClientGetResult` has been removed
+- Struct `RestorePointCollectionsClientListAllPager` has been removed
+- Struct `RestorePointCollectionsClientListAllResult` has been removed
+- Struct `RestorePointCollectionsClientListPager` has been removed
+- Struct `RestorePointCollectionsClientListResult` has been removed
+- Struct `RestorePointCollectionsClientUpdateResult` has been removed
+- Struct `RestorePointsClientCreatePoller` has been removed
+- Struct `RestorePointsClientCreatePollerResponse` has been removed
+- Struct `RestorePointsClientCreateResult` has been removed
+- Struct `RestorePointsClientDeletePoller` has been removed
+- Struct `RestorePointsClientDeletePollerResponse` has been removed
+- Struct `RestorePointsClientGetResult` has been removed
+- Struct `SSHPublicKeysClientCreateResult` has been removed
+- Struct `SSHPublicKeysClientGenerateKeyPairResult` has been removed
+- Struct `SSHPublicKeysClientGetResult` has been removed
+- Struct `SSHPublicKeysClientListByResourceGroupPager` has been removed
+- Struct `SSHPublicKeysClientListByResourceGroupResult` has been removed
+- Struct `SSHPublicKeysClientListBySubscriptionPager` has been removed
+- Struct `SSHPublicKeysClientListBySubscriptionResult` has been removed
+- Struct `SSHPublicKeysClientUpdateResult` has been removed
+- Struct `SharedGalleriesClientGetResult` has been removed
+- Struct `SharedGalleriesClientListPager` has been removed
+- Struct `SharedGalleriesClientListResult` has been removed
+- Struct `SharedGalleryImageVersionsClientGetResult` has been removed
+- Struct `SharedGalleryImageVersionsClientListPager` has been removed
+- Struct `SharedGalleryImageVersionsClientListResult` has been removed
+- Struct `SharedGalleryImagesClientGetResult` has been removed
+- Struct `SharedGalleryImagesClientListPager` has been removed
+- Struct `SharedGalleryImagesClientListResult` has been removed
+- Struct `SnapshotsClientCreateOrUpdatePoller` has been removed
+- Struct `SnapshotsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `SnapshotsClientCreateOrUpdateResult` has been removed
+- Struct `SnapshotsClientDeletePoller` has been removed
+- Struct `SnapshotsClientDeletePollerResponse` has been removed
+- Struct `SnapshotsClientGetResult` has been removed
+- Struct `SnapshotsClientGrantAccessPoller` has been removed
+- Struct `SnapshotsClientGrantAccessPollerResponse` has been removed
+- Struct `SnapshotsClientGrantAccessResult` has been removed
+- Struct `SnapshotsClientListByResourceGroupPager` has been removed
+- Struct `SnapshotsClientListByResourceGroupResult` has been removed
+- Struct `SnapshotsClientListPager` has been removed
+- Struct `SnapshotsClientListResult` has been removed
+- Struct `SnapshotsClientRevokeAccessPoller` has been removed
+- Struct `SnapshotsClientRevokeAccessPollerResponse` has been removed
+- Struct `SnapshotsClientUpdatePoller` has been removed
+- Struct `SnapshotsClientUpdatePollerResponse` has been removed
+- Struct `SnapshotsClientUpdateResult` has been removed
+- Struct `UsageClientListPager` has been removed
+- Struct `UsageClientListResult` has been removed
+- Struct `VirtualMachineExtensionImagesClientGetResult` has been removed
+- Struct `VirtualMachineExtensionImagesClientListTypesResult` has been removed
+- Struct `VirtualMachineExtensionImagesClientListVersionsResult` has been removed
+- Struct `VirtualMachineExtensionsClientCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineExtensionsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineExtensionsClientCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineExtensionsClientDeletePoller` has been removed
+- Struct `VirtualMachineExtensionsClientDeletePollerResponse` has been removed
+- Struct `VirtualMachineExtensionsClientGetResult` has been removed
+- Struct `VirtualMachineExtensionsClientListResult` has been removed
+- Struct `VirtualMachineExtensionsClientUpdatePoller` has been removed
+- Struct `VirtualMachineExtensionsClientUpdatePollerResponse` has been removed
+- Struct `VirtualMachineExtensionsClientUpdateResult` has been removed
+- Struct `VirtualMachineImagesClientGetResult` has been removed
+- Struct `VirtualMachineImagesClientListOffersResult` has been removed
+- Struct `VirtualMachineImagesClientListPublishersResult` has been removed
+- Struct `VirtualMachineImagesClientListResult` has been removed
+- Struct `VirtualMachineImagesClientListSKUsResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneClientGetResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneClientListOffersResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneClientListPublishersResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneClientListResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneClientListSKUsResult` has been removed
+- Struct `VirtualMachineRunCommandsClientCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineRunCommandsClientCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineRunCommandsClientDeletePoller` has been removed
+- Struct `VirtualMachineRunCommandsClientDeletePollerResponse` has been removed
+- Struct `VirtualMachineRunCommandsClientGetByVirtualMachineResult` has been removed
+- Struct `VirtualMachineRunCommandsClientGetResult` has been removed
+- Struct `VirtualMachineRunCommandsClientListByVirtualMachinePager` has been removed
+- Struct `VirtualMachineRunCommandsClientListByVirtualMachineResult` has been removed
+- Struct `VirtualMachineRunCommandsClientListPager` has been removed
+- Struct `VirtualMachineRunCommandsClientListResult` has been removed
+- Struct `VirtualMachineRunCommandsClientUpdatePoller` has been removed
+- Struct `VirtualMachineRunCommandsClientUpdatePollerResponse` has been removed
+- Struct `VirtualMachineRunCommandsClientUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientGetResult` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientListPager` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientListResult` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsClientUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesClientCancelPoller` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResult` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientGetResult` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientListResult` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsClientUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientGetResult` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientListPager` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientListResult` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetVMsClientDeallocatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientDeallocatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientGetInstanceViewResult` has been removed
+- Struct `VirtualMachineScaleSetVMsClientGetResult` has been removed
+- Struct `VirtualMachineScaleSetVMsClientListPager` has been removed
+- Struct `VirtualMachineScaleSetVMsClientListResult` has been removed
+- Struct `VirtualMachineScaleSetVMsClientPerformMaintenancePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientPowerOffPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientPowerOffPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientRedeployPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientRedeployPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientReimageAllPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientReimageAllPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientReimagePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientReimagePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientRestartPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientRestartPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResult` has been removed
+- Struct `VirtualMachineScaleSetVMsClientRunCommandPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientRunCommandPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientRunCommandResult` has been removed
+- Struct `VirtualMachineScaleSetVMsClientStartPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientStartPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsClientUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsClientUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetsClientCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetsClientDeallocatePoller` has been removed
+- Struct `VirtualMachineScaleSetsClientDeallocatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientDeleteInstancesPoller` has been removed
+- Struct `VirtualMachineScaleSetsClientDeleteInstancesPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetsClientDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResult` has been removed
+- Struct `VirtualMachineScaleSetsClientGetInstanceViewResult` has been removed
+- Struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager` has been removed
+- Struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResult` has been removed
+- Struct `VirtualMachineScaleSetsClientGetResult` has been removed
+- Struct `VirtualMachineScaleSetsClientListAllPager` has been removed
+- Struct `VirtualMachineScaleSetsClientListAllResult` has been removed
+- Struct `VirtualMachineScaleSetsClientListByLocationPager` has been removed
+- Struct `VirtualMachineScaleSetsClientListByLocationResult` has been removed
+- Struct `VirtualMachineScaleSetsClientListPager` has been removed
+- Struct `VirtualMachineScaleSetsClientListResult` has been removed
+- Struct `VirtualMachineScaleSetsClientListSKUsPager` has been removed
+- Struct `VirtualMachineScaleSetsClientListSKUsResult` has been removed
+- Struct `VirtualMachineScaleSetsClientPerformMaintenancePoller` has been removed
+- Struct `VirtualMachineScaleSetsClientPerformMaintenancePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientPowerOffPoller` has been removed
+- Struct `VirtualMachineScaleSetsClientPowerOffPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientRedeployPoller` has been removed
+- Struct `VirtualMachineScaleSetsClientRedeployPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientReimageAllPoller` has been removed
+- Struct `VirtualMachineScaleSetsClientReimageAllPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientReimagePoller` has been removed
+- Struct `VirtualMachineScaleSetsClientReimagePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientRestartPoller` has been removed
+- Struct `VirtualMachineScaleSetsClientRestartPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller` has been removed
+- Struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientStartPoller` has been removed
+- Struct `VirtualMachineScaleSetsClientStartPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientUpdateInstancesPoller` has been removed
+- Struct `VirtualMachineScaleSetsClientUpdateInstancesPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetsClientUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsClientUpdateResult` has been removed
+- Struct `VirtualMachineSizesClientListResult` has been removed
+- Struct `VirtualMachinesClientAssessPatchesPoller` has been removed
+- Struct `VirtualMachinesClientAssessPatchesPollerResponse` has been removed
+- Struct `VirtualMachinesClientAssessPatchesResult` has been removed
+- Struct `VirtualMachinesClientCapturePoller` has been removed
+- Struct `VirtualMachinesClientCapturePollerResponse` has been removed
+- Struct `VirtualMachinesClientCaptureResult` has been removed
+- Struct `VirtualMachinesClientConvertToManagedDisksPoller` has been removed
+- Struct `VirtualMachinesClientConvertToManagedDisksPollerResponse` has been removed
+- Struct `VirtualMachinesClientCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachinesClientCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachinesClientCreateOrUpdateResult` has been removed
+- Struct `VirtualMachinesClientDeallocatePoller` has been removed
+- Struct `VirtualMachinesClientDeallocatePollerResponse` has been removed
+- Struct `VirtualMachinesClientDeletePoller` has been removed
+- Struct `VirtualMachinesClientDeletePollerResponse` has been removed
+- Struct `VirtualMachinesClientGetResult` has been removed
+- Struct `VirtualMachinesClientInstallPatchesPoller` has been removed
+- Struct `VirtualMachinesClientInstallPatchesPollerResponse` has been removed
+- Struct `VirtualMachinesClientInstallPatchesResult` has been removed
+- Struct `VirtualMachinesClientInstanceViewResult` has been removed
+- Struct `VirtualMachinesClientListAllPager` has been removed
+- Struct `VirtualMachinesClientListAllResult` has been removed
+- Struct `VirtualMachinesClientListAvailableSizesResult` has been removed
+- Struct `VirtualMachinesClientListByLocationPager` has been removed
+- Struct `VirtualMachinesClientListByLocationResult` has been removed
+- Struct `VirtualMachinesClientListPager` has been removed
+- Struct `VirtualMachinesClientListResult` has been removed
+- Struct `VirtualMachinesClientPerformMaintenancePoller` has been removed
+- Struct `VirtualMachinesClientPerformMaintenancePollerResponse` has been removed
+- Struct `VirtualMachinesClientPowerOffPoller` has been removed
+- Struct `VirtualMachinesClientPowerOffPollerResponse` has been removed
+- Struct `VirtualMachinesClientReapplyPoller` has been removed
+- Struct `VirtualMachinesClientReapplyPollerResponse` has been removed
+- Struct `VirtualMachinesClientRedeployPoller` has been removed
+- Struct `VirtualMachinesClientRedeployPollerResponse` has been removed
+- Struct `VirtualMachinesClientReimagePoller` has been removed
+- Struct `VirtualMachinesClientReimagePollerResponse` has been removed
+- Struct `VirtualMachinesClientRestartPoller` has been removed
+- Struct `VirtualMachinesClientRestartPollerResponse` has been removed
+- Struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResult` has been removed
+- Struct `VirtualMachinesClientRunCommandPoller` has been removed
+- Struct `VirtualMachinesClientRunCommandPollerResponse` has been removed
+- Struct `VirtualMachinesClientRunCommandResult` has been removed
+- Struct `VirtualMachinesClientStartPoller` has been removed
+- Struct `VirtualMachinesClientStartPollerResponse` has been removed
+- Struct `VirtualMachinesClientUpdatePoller` has been removed
+- Struct `VirtualMachinesClientUpdatePollerResponse` has been removed
+- Struct `VirtualMachinesClientUpdateResult` has been removed
+- Field `RawResponse` of struct `CloudServicesClientReimageResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRoleInstancesClientRestartResponse` has been removed
+- Field `VirtualMachineRunCommandsClientUpdateResult` of struct `VirtualMachineRunCommandsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineRunCommandsClientUpdateResponse` has been removed
+- Field `CommunityGalleryImageVersionsClientGetResult` of struct `CommunityGalleryImageVersionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `CommunityGalleryImageVersionsClientGetResponse` has been removed
+- Field `DiskAccessesClientGetResult` of struct `DiskAccessesClientGetResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientGetResponse` has been removed
+- Field `GalleryApplicationVersionsClientCreateOrUpdateResult` of struct `GalleryApplicationVersionsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationVersionsClientCreateOrUpdateResponse` has been removed
+- Field `CloudServicesUpdateDomainClientGetUpdateDomainResult` of struct `CloudServicesUpdateDomainClientGetUpdateDomainResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesUpdateDomainClientGetUpdateDomainResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse` has been removed
+- Field `VirtualMachineScaleSetsClientCreateOrUpdateResult` of struct `VirtualMachineScaleSetsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientCreateOrUpdateResponse` has been removed
+- Field `DiskRestorePointClientGrantAccessResult` of struct `DiskRestorePointClientGrantAccessResponse` has been removed
+- Field `RawResponse` of struct `DiskRestorePointClientGrantAccessResponse` has been removed
+- Field `ImagesClientListResult` of struct `ImagesClientListResponse` has been removed
+- Field `RawResponse` of struct `ImagesClientListResponse` has been removed
+- Field `SharedGalleriesClientListResult` of struct `SharedGalleriesClientListResponse` has been removed
+- Field `RawResponse` of struct `SharedGalleriesClientListResponse` has been removed
+- Field `VirtualMachineExtensionsClientUpdateResult` of struct `VirtualMachineExtensionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineExtensionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `SnapshotsClientDeleteResponse` has been removed
+- Field `VirtualMachineScaleSetRollingUpgradesClientGetLatestResult` of struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse` has been removed
+- Field `RawResponse` of struct `DisksClientDeleteResponse` has been removed
+- Field `DiskAccessesClientListResult` of struct `DiskAccessesClientListResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientRestartResponse` has been removed
+- Field `GallerySharingProfileClientUpdateResult` of struct `GallerySharingProfileClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `GallerySharingProfileClientUpdateResponse` has been removed
+- Field `VirtualMachineExtensionsClientListResult` of struct `VirtualMachineExtensionsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineExtensionsClientListResponse` has been removed
+- Field `GalleryImageVersionsClientListByGalleryImageResult` of struct `GalleryImageVersionsClientListByGalleryImageResponse` has been removed
+- Field `RawResponse` of struct `GalleryImageVersionsClientListByGalleryImageResponse` has been removed
+- Field `DedicatedHostGroupsClientListByResourceGroupResult` of struct `DedicatedHostGroupsClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostGroupsClientListByResourceGroupResponse` has been removed
+- Field `VirtualMachineRunCommandsClientGetByVirtualMachineResult` of struct `VirtualMachineRunCommandsClientGetByVirtualMachineResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineRunCommandsClientGetByVirtualMachineResponse` has been removed
+- Field `CloudServicesClientGetInstanceViewResult` of struct `CloudServicesClientGetInstanceViewResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientGetInstanceViewResponse` has been removed
+- Field `VirtualMachineImagesClientListPublishersResult` of struct `VirtualMachineImagesClientListPublishersResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesClientListPublishersResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientPerformMaintenanceResponse` has been removed
+- Field `VirtualMachineImagesClientListSKUsResult` of struct `VirtualMachineImagesClientListSKUsResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesClientListSKUsResponse` has been removed
+- Field `SSHPublicKeysClientCreateResult` of struct `SSHPublicKeysClientCreateResponse` has been removed
+- Field `RawResponse` of struct `SSHPublicKeysClientCreateResponse` has been removed
+- Field `CloudServiceOperatingSystemsClientGetOSVersionResult` of struct `CloudServiceOperatingSystemsClientGetOSVersionResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceOperatingSystemsClientGetOSVersionResponse` has been removed
+- Field `VirtualMachineImagesEdgeZoneClientListResult` of struct `VirtualMachineImagesEdgeZoneClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientListResponse` has been removed
+- Field `VirtualMachineScaleSetVMsClientGetResult` of struct `VirtualMachineScaleSetVMsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientGetResponse` has been removed
+- Field `GalleriesClientListByResourceGroupResult` of struct `GalleriesClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `GalleriesClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientGeneralizeResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRoleInstancesClientRebuildResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientDeleteResponse` has been removed
+- Field `VirtualMachineScaleSetVMsClientListResult` of struct `VirtualMachineScaleSetVMsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientListResponse` has been removed
+- Field `CapacityReservationGroupsClientListByResourceGroupResult` of struct `CapacityReservationGroupsClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationGroupsClientListByResourceGroupResponse` has been removed
+- Field `CloudServicesUpdateDomainClientListUpdateDomainsResult` of struct `CloudServicesUpdateDomainClientListUpdateDomainsResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesUpdateDomainClientListUpdateDomainsResponse` has been removed
+- Field `VirtualMachineScaleSetsClientGetResult` of struct `VirtualMachineScaleSetsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientDeleteResponse` has been removed
+- Field `CloudServiceRoleInstancesClientGetResult` of struct `CloudServiceRoleInstancesClientGetResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRoleInstancesClientGetResponse` has been removed
+- Field `AvailabilitySetsClientListResult` of struct `AvailabilitySetsClientListResponse` has been removed
+- Field `RawResponse` of struct `AvailabilitySetsClientListResponse` has been removed
+- Field `VirtualMachineExtensionsClientGetResult` of struct `VirtualMachineExtensionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineExtensionsClientGetResponse` has been removed
+- Field `VirtualMachineScaleSetVMRunCommandsClientListResult` of struct `VirtualMachineScaleSetVMRunCommandsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientListResponse` has been removed
+- Field `VirtualMachinesClientAssessPatchesResult` of struct `VirtualMachinesClientAssessPatchesResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientAssessPatchesResponse` has been removed
+- Field `DiskAccessesClientGetAPrivateEndpointConnectionResult` of struct `DiskAccessesClientGetAPrivateEndpointConnectionResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientGetAPrivateEndpointConnectionResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientUpdateInstancesResponse` has been removed
+- Field `CapacityReservationGroupsClientListBySubscriptionResult` of struct `CapacityReservationGroupsClientListBySubscriptionResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationGroupsClientListBySubscriptionResponse` has been removed
+- Field `SSHPublicKeysClientGenerateKeyPairResult` of struct `SSHPublicKeysClientGenerateKeyPairResponse` has been removed
+- Field `RawResponse` of struct `SSHPublicKeysClientGenerateKeyPairResponse` has been removed
+- Field `DiskEncryptionSetsClientListByResourceGroupResult` of struct `DiskEncryptionSetsClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `DiskEncryptionSetsClientListByResourceGroupResponse` has been removed
+- Field `GalleryImageVersionsClientCreateOrUpdateResult` of struct `GalleryImageVersionsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryImageVersionsClientCreateOrUpdateResponse` has been removed
+- Field `SharedGalleryImageVersionsClientListResult` of struct `SharedGalleryImageVersionsClientListResponse` has been removed
+- Field `RawResponse` of struct `SharedGalleryImageVersionsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientPerformMaintenanceResponse` has been removed
+- Field `VirtualMachinesClientRetrieveBootDiagnosticsDataResult` of struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientSimulateEvictionResponse` has been removed
+- Field `VirtualMachineImagesEdgeZoneClientGetResult` of struct `VirtualMachineImagesEdgeZoneClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientGetResponse` has been removed
+- Field `VirtualMachineImagesEdgeZoneClientListSKUsResult` of struct `VirtualMachineImagesEdgeZoneClientListSKUsResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientListSKUsResponse` has been removed
+- Field `CommunityGalleriesClientGetResult` of struct `CommunityGalleriesClientGetResponse` has been removed
+- Field `RawResponse` of struct `CommunityGalleriesClientGetResponse` has been removed
+- Field `GalleryApplicationsClientCreateOrUpdateResult` of struct `GalleryApplicationsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationsClientCreateOrUpdateResponse` has been removed
+- Field `VirtualMachinesClientInstanceViewResult` of struct `VirtualMachinesClientInstanceViewResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientInstanceViewResponse` has been removed
+- Field `DiskRestorePointClientGetResult` of struct `DiskRestorePointClientGetResponse` has been removed
+- Field `RawResponse` of struct `DiskRestorePointClientGetResponse` has been removed
+- Field `SharedGalleriesClientGetResult` of struct `SharedGalleriesClientGetResponse` has been removed
+- Field `RawResponse` of struct `SharedGalleriesClientGetResponse` has been removed
+- Field `DiskAccessesClientGetPrivateLinkResourcesResult` of struct `DiskAccessesClientGetPrivateLinkResourcesResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientGetPrivateLinkResourcesResponse` has been removed
+- Field `CloudServiceOperatingSystemsClientListOSFamiliesResult` of struct `CloudServiceOperatingSystemsClientListOSFamiliesResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceOperatingSystemsClientListOSFamiliesResponse` has been removed
+- Field `VirtualMachineScaleSetVMExtensionsClientGetResult` of struct `VirtualMachineScaleSetVMExtensionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientSimulateEvictionResponse` has been removed
+- Field `RawResponse` of struct `RestorePointCollectionsClientDeleteResponse` has been removed
+- Field `VirtualMachinesClientCaptureResult` of struct `VirtualMachinesClientCaptureResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientCaptureResponse` has been removed
+- Field `GalleryApplicationsClientListByGalleryResult` of struct `GalleryApplicationsClientListByGalleryResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationsClientListByGalleryResponse` has been removed
+- Field `VirtualMachineScaleSetsClientListByLocationResult` of struct `VirtualMachineScaleSetsClientListByLocationResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientListByLocationResponse` has been removed
+- Field `CloudServiceRolesClientGetResult` of struct `CloudServiceRolesClientGetResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRolesClientGetResponse` has been removed
+- Field `CommunityGalleryImagesClientGetResult` of struct `CommunityGalleryImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `CommunityGalleryImagesClientGetResponse` has been removed
+- Field `SharedGalleryImagesClientGetResult` of struct `SharedGalleryImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `SharedGalleryImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientReimageAllResponse` has been removed
+- Field `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResult` of struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientConvertToManagedDisksResponse` has been removed
+- Field `DisksClientGrantAccessResult` of struct `DisksClientGrantAccessResponse` has been removed
+- Field `RawResponse` of struct `DisksClientGrantAccessResponse` has been removed
+- Field `RestorePointCollectionsClientGetResult` of struct `RestorePointCollectionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `RestorePointCollectionsClientGetResponse` has been removed
+- Field `VirtualMachineSizesClientListResult` of struct `VirtualMachineSizesClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineSizesClientListResponse` has been removed
+- Field `SSHPublicKeysClientListByResourceGroupResult` of struct `SSHPublicKeysClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `SSHPublicKeysClientListByResourceGroupResponse` has been removed
+- Field `VirtualMachinesClientInstallPatchesResult` of struct `VirtualMachinesClientInstallPatchesResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientInstallPatchesResponse` has been removed
+- Field `RawResponse` of struct `RestorePointsClientDeleteResponse` has been removed
+- Field `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResult` of struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse` has been removed
+- Field `GalleriesClientGetResult` of struct `GalleriesClientGetResponse` has been removed
+- Field `RawResponse` of struct `GalleriesClientGetResponse` has been removed
+- Field `CloudServiceRoleInstancesClientGetInstanceViewResult` of struct `CloudServiceRoleInstancesClientGetInstanceViewResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRoleInstancesClientGetInstanceViewResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientDeleteAPrivateEndpointConnectionResponse` has been removed
+- Field `DisksClientGetResult` of struct `DisksClientGetResponse` has been removed
+- Field `RawResponse` of struct `DisksClientGetResponse` has been removed
+- Field `VirtualMachineScaleSetVMsClientGetInstanceViewResult` of struct `VirtualMachineScaleSetVMsClientGetInstanceViewResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientGetInstanceViewResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientDeleteInstancesResponse` has been removed
+- Field `CapacityReservationGroupsClientUpdateResult` of struct `CapacityReservationGroupsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationGroupsClientUpdateResponse` has been removed
+- Field `VirtualMachineScaleSetVMExtensionsClientUpdateResult` of struct `VirtualMachineScaleSetVMExtensionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientUpdateResponse` has been removed
+- Field `DiskRestorePointClientListByRestorePointResult` of struct `DiskRestorePointClientListByRestorePointResponse` has been removed
+- Field `RawResponse` of struct `DiskRestorePointClientListByRestorePointResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientRebuildResponse` has been removed
+- Field `VirtualMachinesClientListByLocationResult` of struct `VirtualMachinesClientListByLocationResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientListByLocationResponse` has been removed
+- Field `DedicatedHostGroupsClientUpdateResult` of struct `DedicatedHostGroupsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostGroupsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientRedeployResponse` has been removed
+- Field `VirtualMachineScaleSetExtensionsClientListResult` of struct `VirtualMachineScaleSetExtensionsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientListResponse` has been removed
+- Field `RestorePointCollectionsClientUpdateResult` of struct `RestorePointCollectionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `RestorePointCollectionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientDeleteResponse` has been removed
+- Field `DisksClientCreateOrUpdateResult` of struct `DisksClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `DisksClientCreateOrUpdateResponse` has been removed
+- Field `AvailabilitySetsClientCreateOrUpdateResult` of struct `AvailabilitySetsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `AvailabilitySetsClientCreateOrUpdateResponse` has been removed
+- Field `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResult` of struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse` has been removed
+- Field `SharedGalleryImageVersionsClientGetResult` of struct `SharedGalleryImageVersionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `SharedGalleryImageVersionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientRedeployResponse` has been removed
+- Field `CapacityReservationsClientListByCapacityReservationGroupResult` of struct `CapacityReservationsClientListByCapacityReservationGroupResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationsClientListByCapacityReservationGroupResponse` has been removed
+- Field `VirtualMachineScaleSetsClientListSKUsResult` of struct `VirtualMachineScaleSetsClientListSKUsResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientListSKUsResponse` has been removed
+- Field `DiskEncryptionSetsClientListAssociatedResourcesResult` of struct `DiskEncryptionSetsClientListAssociatedResourcesResponse` has been removed
+- Field `RawResponse` of struct `DiskEncryptionSetsClientListAssociatedResourcesResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientDeleteResponse` has been removed
+- Field `VirtualMachineScaleSetsClientUpdateResult` of struct `VirtualMachineScaleSetsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientUpdateResponse` has been removed
+- Field `GalleriesClientListResult` of struct `GalleriesClientListResponse` has been removed
+- Field `RawResponse` of struct `GalleriesClientListResponse` has been removed
+- Field `RawResponse` of struct `ImagesClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientStartResponse` has been removed
+- Field `CloudServicesClientUpdateResult` of struct `CloudServicesClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientUpdateResponse` has been removed
+- Field `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResult` of struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse` has been removed
+- Field `ResourceSKUsClientListResult` of struct `ResourceSKUsClientListResponse` has been removed
+- Field `RawResponse` of struct `ResourceSKUsClientListResponse` has been removed
+- Field `RestorePointCollectionsClientListAllResult` of struct `RestorePointCollectionsClientListAllResponse` has been removed
+- Field `RawResponse` of struct `RestorePointCollectionsClientListAllResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostsClientRestartResponse` has been removed
+- Field `RestorePointCollectionsClientListResult` of struct `RestorePointCollectionsClientListResponse` has been removed
+- Field `RawResponse` of struct `RestorePointCollectionsClientListResponse` has been removed
+- Field `ImagesClientCreateOrUpdateResult` of struct `ImagesClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `ImagesClientCreateOrUpdateResponse` has been removed
+- Field `VirtualMachineRunCommandsClientListResult` of struct `VirtualMachineRunCommandsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineRunCommandsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientReimageResponse` has been removed
+- Field `VirtualMachineScaleSetVMExtensionsClientListResult` of struct `VirtualMachineScaleSetVMExtensionsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMExtensionsClientListResponse` has been removed
+- Field `DiskAccessesClientUpdateResult` of struct `DiskAccessesClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientDeleteResponse` has been removed
+- Field `VirtualMachineScaleSetVMRunCommandsClientGetResult` of struct `VirtualMachineScaleSetVMRunCommandsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientGetResponse` has been removed
+- Field `VirtualMachinesClientListResult` of struct `VirtualMachinesClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientListResponse` has been removed
+- Field `GalleryApplicationsClientUpdateResult` of struct `GalleryApplicationsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationsClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `DiskRestorePointClientRevokeAccessResponse` has been removed
+- Field `GalleriesClientUpdateResult` of struct `GalleriesClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleriesClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `DiskEncryptionSetsClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse` has been removed
+- Field `CloudServiceRolesClientListResult` of struct `CloudServiceRolesClientListResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRolesClientListResponse` has been removed
+- Field `RawResponse` of struct `GalleryImagesClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientReimageResponse` has been removed
+- Field `DiskEncryptionSetsClientListResult` of struct `DiskEncryptionSetsClientListResponse` has been removed
+- Field `RawResponse` of struct `DiskEncryptionSetsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientRestartResponse` has been removed
+- Field `GalleryImagesClientUpdateResult` of struct `GalleryImagesClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryImagesClientUpdateResponse` has been removed
+- Field `DiskEncryptionSetsClientCreateOrUpdateResult` of struct `DiskEncryptionSetsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `DiskEncryptionSetsClientCreateOrUpdateResponse` has been removed
+- Field `DedicatedHostGroupsClientCreateOrUpdateResult` of struct `DedicatedHostGroupsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostGroupsClientCreateOrUpdateResponse` has been removed
+- Field `ProximityPlacementGroupsClientListByResourceGroupResult` of struct `ProximityPlacementGroupsClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `ProximityPlacementGroupsClientListByResourceGroupResponse` has been removed
+- Field `VirtualMachinesClientListAllResult` of struct `VirtualMachinesClientListAllResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientListAllResponse` has been removed
+- Field `SSHPublicKeysClientGetResult` of struct `SSHPublicKeysClientGetResponse` has been removed
+- Field `RawResponse` of struct `SSHPublicKeysClientGetResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientRestartResponse` has been removed
+- Field `VirtualMachineImagesEdgeZoneClientListOffersResult` of struct `VirtualMachineImagesEdgeZoneClientListOffersResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientListOffersResponse` has been removed
+- Field `VirtualMachineImagesClientListResult` of struct `VirtualMachineImagesClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesClientListResponse` has been removed
+- Field `RestorePointCollectionsClientCreateOrUpdateResult` of struct `RestorePointCollectionsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `RestorePointCollectionsClientCreateOrUpdateResponse` has been removed
+- Field `CloudServicesClientListResult` of struct `CloudServicesClientListResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientListResponse` has been removed
+- Field `VirtualMachinesClientRunCommandResult` of struct `VirtualMachinesClientRunCommandResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientRunCommandResponse` has been removed
+- Field `CapacityReservationsClientCreateOrUpdateResult` of struct `CapacityReservationsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationsClientCreateOrUpdateResponse` has been removed
+- Field `VirtualMachineScaleSetsClientListAllResult` of struct `VirtualMachineScaleSetsClientListAllResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientListAllResponse` has been removed
+- Field `RawResponse` of struct `SnapshotsClientRevokeAccessResponse` has been removed
+- Field `VirtualMachinesClientCreateOrUpdateResult` of struct `VirtualMachinesClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientDeleteResponse` has been removed
+- Field `CloudServiceRoleInstancesClientListResult` of struct `CloudServiceRoleInstancesClientListResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRoleInstancesClientListResponse` has been removed
+- Field `GalleryImageVersionsClientUpdateResult` of struct `GalleryImageVersionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryImageVersionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientStartResponse` has been removed
+- Field `ImagesClientListByResourceGroupResult` of struct `ImagesClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `ImagesClientListByResourceGroupResponse` has been removed
+- Field `SharedGalleryImagesClientListResult` of struct `SharedGalleryImagesClientListResponse` has been removed
+- Field `RawResponse` of struct `SharedGalleryImagesClientListResponse` has been removed
+- Field `ProximityPlacementGroupsClientGetResult` of struct `ProximityPlacementGroupsClientGetResponse` has been removed
+- Field `RawResponse` of struct `ProximityPlacementGroupsClientGetResponse` has been removed
+- Field `GalleryApplicationsClientGetResult` of struct `GalleryApplicationsClientGetResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationsClientGetResponse` has been removed
+- Field `DiskEncryptionSetsClientGetResult` of struct `DiskEncryptionSetsClientGetResponse` has been removed
+- Field `RawResponse` of struct `DiskEncryptionSetsClientGetResponse` has been removed
+- Field `DedicatedHostsClientGetResult` of struct `DedicatedHostsClientGetResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostsClientGetResponse` has been removed
+- Field `VirtualMachinesClientUpdateResult` of struct `VirtualMachinesClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientUpdateResponse` has been removed
+- Field `CapacityReservationsClientGetResult` of struct `CapacityReservationsClientGetResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationsClientGetResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRoleInstancesClientReimageResponse` has been removed
+- Field `RawResponse` of struct `GalleryImageVersionsClientDeleteResponse` has been removed
+- Field `CloudServiceOperatingSystemsClientGetOSFamilyResult` of struct `CloudServiceOperatingSystemsClientGetOSFamilyResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceOperatingSystemsClientGetOSFamilyResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientStartResponse` has been removed
+- Field `SSHPublicKeysClientListBySubscriptionResult` of struct `SSHPublicKeysClientListBySubscriptionResponse` has been removed
+- Field `RawResponse` of struct `SSHPublicKeysClientListBySubscriptionResponse` has been removed
+- Field `VirtualMachinesClientGetResult` of struct `VirtualMachinesClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientDeallocateResponse` has been removed
+- Field `VirtualMachineRunCommandsClientCreateOrUpdateResult` of struct `VirtualMachineRunCommandsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineRunCommandsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationVersionsClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientDeleteResponse` has been removed
+- Field `GalleryImagesClientCreateOrUpdateResult` of struct `GalleryImagesClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryImagesClientCreateOrUpdateResponse` has been removed
+- Field `DiskAccessesClientUpdateAPrivateEndpointConnectionResult` of struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResponse` has been removed
+- Field `UsageClientListResult` of struct `UsageClientListResponse` has been removed
+- Field `RawResponse` of struct `UsageClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientRestartResponse` has been removed
+- Field `AvailabilitySetsClientUpdateResult` of struct `AvailabilitySetsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `AvailabilitySetsClientUpdateResponse` has been removed
+- Field `RestorePointsClientCreateResult` of struct `RestorePointsClientCreateResponse` has been removed
+- Field `RawResponse` of struct `RestorePointsClientCreateResponse` has been removed
+- Field `ImagesClientGetResult` of struct `ImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `ImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineExtensionsClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesUpdateDomainClientWalkUpdateDomainResponse` has been removed
+- Field `CapacityReservationGroupsClientGetResult` of struct `CapacityReservationGroupsClientGetResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationGroupsClientGetResponse` has been removed
+- Field `ProximityPlacementGroupsClientCreateOrUpdateResult` of struct `ProximityPlacementGroupsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `ProximityPlacementGroupsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetRollingUpgradesClientCancelResponse` has been removed
+- Field `VirtualMachineScaleSetExtensionsClientGetResult` of struct `VirtualMachineScaleSetExtensionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `AvailabilitySetsClientDeleteResponse` has been removed
+- Field `LogAnalyticsClientExportThrottledRequestsResult` of struct `LogAnalyticsClientExportThrottledRequestsResponse` has been removed
+- Field `RawResponse` of struct `LogAnalyticsClientExportThrottledRequestsResponse` has been removed
+- Field `OperationsClientListResult` of struct `OperationsClientListResponse` has been removed
+- Field `RawResponse` of struct `OperationsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse` has been removed
+- Field `SnapshotsClientGetResult` of struct `SnapshotsClientGetResponse` has been removed
+- Field `RawResponse` of struct `SnapshotsClientGetResponse` has been removed
+- Field `VirtualMachinesClientListAvailableSizesResult` of struct `VirtualMachinesClientListAvailableSizesResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientListAvailableSizesResponse` has been removed
+- Field `CloudServicesClientCreateOrUpdateResult` of struct `CloudServicesClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientCreateOrUpdateResponse` has been removed
+- Field `DisksClientListResult` of struct `DisksClientListResponse` has been removed
+- Field `RawResponse` of struct `DisksClientListResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRoleInstancesClientDeleteResponse` has been removed
+- Field `CloudServicesClientGetResult` of struct `CloudServicesClientGetResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientGetResponse` has been removed
+- Field `VirtualMachineImagesClientGetResult` of struct `VirtualMachineImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesClientGetResponse` has been removed
+- Field `DiskEncryptionSetsClientUpdateResult` of struct `DiskEncryptionSetsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `DiskEncryptionSetsClientUpdateResponse` has been removed
+- Field `VirtualMachineScaleSetVMRunCommandsClientUpdateResult` of struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResponse` has been removed
+- Field `DisksClientListByResourceGroupResult` of struct `DisksClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `DisksClientListByResourceGroupResponse` has been removed
+- Field `VirtualMachineExtensionImagesClientGetResult` of struct `VirtualMachineExtensionImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineExtensionImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineRunCommandsClientDeleteResponse` has been removed
+- Field `VirtualMachineScaleSetsClientListResult` of struct `VirtualMachineScaleSetsClientListResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientListResponse` has been removed
+- Field `GalleryApplicationVersionsClientListByGalleryApplicationResult` of struct `GalleryApplicationVersionsClientListByGalleryApplicationResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationVersionsClientListByGalleryApplicationResponse` has been removed
+- Field `RawResponse` of struct `ProximityPlacementGroupsClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientDeleteInstancesResponse` has been removed
+- Field `GalleryApplicationVersionsClientGetResult` of struct `GalleryApplicationVersionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationVersionsClientGetResponse` has been removed
+- Field `DiskAccessesClientListPrivateEndpointConnectionsResult` of struct `DiskAccessesClientListPrivateEndpointConnectionsResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientListPrivateEndpointConnectionsResponse` has been removed
+- Field `VirtualMachineScaleSetVMsClientUpdateResult` of struct `VirtualMachineScaleSetVMsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientUpdateResponse` has been removed
+- Field `DedicatedHostsClientUpdateResult` of struct `DedicatedHostsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostsClientUpdateResponse` has been removed
+- Field `VirtualMachineScaleSetsClientGetInstanceViewResult` of struct `VirtualMachineScaleSetsClientGetInstanceViewResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientGetInstanceViewResponse` has been removed
+- Field `DedicatedHostGroupsClientListBySubscriptionResult` of struct `DedicatedHostGroupsClientListBySubscriptionResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostGroupsClientListBySubscriptionResponse` has been removed
+- Field `DiskAccessesClientCreateOrUpdateResult` of struct `DiskAccessesClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientCreateOrUpdateResponse` has been removed
+- Field `DiskAccessesClientListByResourceGroupResult` of struct `DiskAccessesClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `DiskAccessesClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientPowerOffResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientRedeployResponse` has been removed
+- Field `RestorePointsClientGetResult` of struct `RestorePointsClientGetResponse` has been removed
+- Field `RawResponse` of struct `RestorePointsClientGetResponse` has been removed
+- Field `ProximityPlacementGroupsClientUpdateResult` of struct `ProximityPlacementGroupsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `ProximityPlacementGroupsClientUpdateResponse` has been removed
+- Field `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResult` of struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientPowerOffResponse` has been removed
+- Field `VirtualMachineImagesClientListOffersResult` of struct `VirtualMachineImagesClientListOffersResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesClientListOffersResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientDeallocateResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse` has been removed
+- Field `SnapshotsClientListResult` of struct `SnapshotsClientListResponse` has been removed
+- Field `RawResponse` of struct `SnapshotsClientListResponse` has been removed
+- Field `CapacityReservationsClientUpdateResult` of struct `CapacityReservationsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientReimageAllResponse` has been removed
+- Field `VirtualMachineExtensionImagesClientListVersionsResult` of struct `VirtualMachineExtensionImagesClientListVersionsResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineExtensionImagesClientListVersionsResponse` has been removed
+- Field `VirtualMachineExtensionImagesClientListTypesResult` of struct `VirtualMachineExtensionImagesClientListTypesResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineExtensionImagesClientListTypesResponse` has been removed
+- Field `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResult` of struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostsClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientStartResponse` has been removed
+- Field `VirtualMachineScaleSetVMsClientRunCommandResult` of struct `VirtualMachineScaleSetVMsClientRunCommandResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientRunCommandResponse` has been removed
+- Field `ProximityPlacementGroupsClientListBySubscriptionResult` of struct `ProximityPlacementGroupsClientListBySubscriptionResponse` has been removed
+- Field `RawResponse` of struct `ProximityPlacementGroupsClientListBySubscriptionResponse` has been removed
+- Field `SnapshotsClientGrantAccessResult` of struct `SnapshotsClientGrantAccessResponse` has been removed
+- Field `RawResponse` of struct `SnapshotsClientGrantAccessResponse` has been removed
+- Field `VirtualMachineRunCommandsClientGetResult` of struct `VirtualMachineRunCommandsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineRunCommandsClientGetResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientPowerOffResponse` has been removed
+- Field `GalleriesClientCreateOrUpdateResult` of struct `GalleriesClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleriesClientCreateOrUpdateResponse` has been removed
+- Field `SnapshotsClientUpdateResult` of struct `SnapshotsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `SnapshotsClientUpdateResponse` has been removed
+- Field `GalleryImagesClientGetResult` of struct `GalleryImagesClientGetResponse` has been removed
+- Field `RawResponse` of struct `GalleryImagesClientGetResponse` has been removed
+- Field `CloudServiceOperatingSystemsClientListOSVersionsResult` of struct `CloudServiceOperatingSystemsClientListOSVersionsResponse` has been removed
+- Field `RawResponse` of struct `CloudServiceOperatingSystemsClientListOSVersionsResponse` has been removed
+- Field `DedicatedHostsClientCreateOrUpdateResult` of struct `DedicatedHostsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostsClientCreateOrUpdateResponse` has been removed
+- Field `LogAnalyticsClientExportRequestRateByIntervalResult` of struct `LogAnalyticsClientExportRequestRateByIntervalResponse` has been removed
+- Field `RawResponse` of struct `LogAnalyticsClientExportRequestRateByIntervalResponse` has been removed
+- Field `RawResponse` of struct `GalleriesClientDeleteResponse` has been removed
+- Field `AvailabilitySetsClientListAvailableSizesResult` of struct `AvailabilitySetsClientListAvailableSizesResponse` has been removed
+- Field `RawResponse` of struct `AvailabilitySetsClientListAvailableSizesResponse` has been removed
+- Field `DedicatedHostsClientListByHostGroupResult` of struct `DedicatedHostsClientListByHostGroupResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostsClientListByHostGroupResponse` has been removed
+- Field `CloudServicesClientListAllResult` of struct `CloudServicesClientListAllResponse` has been removed
+- Field `RawResponse` of struct `CloudServicesClientListAllResponse` has been removed
+- Field `AvailabilitySetsClientGetResult` of struct `AvailabilitySetsClientGetResponse` has been removed
+- Field `RawResponse` of struct `AvailabilitySetsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientReapplyResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientDeallocateResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationsClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse` has been removed
+- Field `VirtualMachineExtensionsClientCreateOrUpdateResult` of struct `VirtualMachineExtensionsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineExtensionsClientCreateOrUpdateResponse` has been removed
+- Field `AvailabilitySetsClientListBySubscriptionResult` of struct `AvailabilitySetsClientListBySubscriptionResponse` has been removed
+- Field `RawResponse` of struct `AvailabilitySetsClientListBySubscriptionResponse` has been removed
+- Field `ImagesClientUpdateResult` of struct `ImagesClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `ImagesClientUpdateResponse` has been removed
+- Field `VirtualMachineScaleSetExtensionsClientUpdateResult` of struct `VirtualMachineScaleSetExtensionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetExtensionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationGroupsClientDeleteResponse` has been removed
+- Field `GalleryImagesClientListByGalleryResult` of struct `GalleryImagesClientListByGalleryResponse` has been removed
+- Field `RawResponse` of struct `GalleryImagesClientListByGalleryResponse` has been removed
+- Field `VirtualMachineRunCommandsClientListByVirtualMachineResult` of struct `VirtualMachineRunCommandsClientListByVirtualMachineResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineRunCommandsClientListByVirtualMachineResponse` has been removed
+- Field `DisksClientUpdateResult` of struct `DisksClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `DisksClientUpdateResponse` has been removed
+- Field `GalleryImageVersionsClientGetResult` of struct `GalleryImageVersionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `GalleryImageVersionsClientGetResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientDeleteResponse` has been removed
+- Field `SnapshotsClientListByResourceGroupResult` of struct `SnapshotsClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `SnapshotsClientListByResourceGroupResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostGroupsClientDeleteResponse` has been removed
+- Field `DedicatedHostGroupsClientGetResult` of struct `DedicatedHostGroupsClientGetResponse` has been removed
+- Field `RawResponse` of struct `DedicatedHostGroupsClientGetResponse` has been removed
+- Field `SSHPublicKeysClientUpdateResult` of struct `SSHPublicKeysClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `SSHPublicKeysClientUpdateResponse` has been removed
+- Field `VirtualMachineImagesEdgeZoneClientListPublishersResult` of struct `VirtualMachineImagesEdgeZoneClientListPublishersResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineImagesEdgeZoneClientListPublishersResponse` has been removed
+- Field `RawResponse` of struct `SSHPublicKeysClientDeleteResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetsClientPowerOffResponse` has been removed
+- Field `SnapshotsClientCreateOrUpdateResult` of struct `SnapshotsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `SnapshotsClientCreateOrUpdateResponse` has been removed
+- Field `CapacityReservationGroupsClientCreateOrUpdateResult` of struct `CapacityReservationGroupsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `CapacityReservationGroupsClientCreateOrUpdateResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachineScaleSetVMsClientReimageResponse` has been removed
+- Field `RawResponse` of struct `DisksClientRevokeAccessResponse` has been removed
+- Field `RawResponse` of struct `VirtualMachinesClientPerformMaintenanceResponse` has been removed
+- Field `GalleryApplicationVersionsClientUpdateResult` of struct `GalleryApplicationVersionsClientUpdateResponse` has been removed
+- Field `RawResponse` of struct `GalleryApplicationVersionsClientUpdateResponse` has been removed
+
+### Features Added
+
+- New function `CommunityGalleryInfo.MarshalJSON() ([]byte, error)`
+- New struct `CloudError`
+- New struct `CommunityGalleryInfo`
+- New struct `DiskRestorePointReplicationStatus`
+- New struct `GalleryArtifactSource`
+- New struct `ManagedArtifact`
+- New field `ResumeToken` in struct `DedicatedHostsClientBeginUpdateOptions`
+- New anonymous field `VirtualMachine` in struct `VirtualMachinesClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions`
+- New anonymous field `GalleryList` in struct `GalleriesClientListResponse`
+- New field `ResumeToken` in struct `VirtualMachineRunCommandsClientBeginUpdateOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginReimageOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginReimageAllOptions`
+- New anonymous field `VirtualMachineScaleSetListResult` in struct `VirtualMachineScaleSetsClientListResponse`
+- New anonymous field `GalleryImage` in struct `GalleryImagesClientUpdateResponse`
+- New anonymous field `AvailabilitySet` in struct `AvailabilitySetsClientCreateOrUpdateResponse`
+- New anonymous field `VirtualMachineScaleSetListSKUsResult` in struct `VirtualMachineScaleSetsClientListSKUsResponse`
+- New anonymous field `DiskAccessList` in struct `DiskAccessesClientListResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginStartOptions`
+- New field `VirtualMachineExtensionImageArray` in struct `VirtualMachineExtensionImagesClientListVersionsResponse`
+- New anonymous field `VirtualMachineScaleSetVMInstanceView` in struct `VirtualMachineScaleSetVMsClientGetInstanceViewResponse`
+- New field `Body` in struct `CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions`
+- New anonymous field `DiskAccess` in struct `DiskAccessesClientGetResponse`
+- New field `ResumeToken` in struct `CloudServiceRoleInstancesClientBeginRestartOptions`
+- New field `ResumeToken` in struct `RestorePointsClientBeginCreateOptions`
+- New field `ResumeToken` in struct `DiskRestorePointClientBeginRevokeAccessOptions`
+- New anonymous field `SSHPublicKeyGenerateKeyPairResult` in struct `SSHPublicKeysClientGenerateKeyPairResponse`
+- New anonymous field `AvailabilitySetListResult` in struct `AvailabilitySetsClientListBySubscriptionResponse`
+- New field `ResumeToken` in struct `CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions`
+- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineScaleSetVMRunCommandsClientGetResponse`
+- New field `ResumeToken` in struct `CloudServicesClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginConvertToManagedDisksOptions`
+- New field `ResumeToken` in struct `CloudServicesClientBeginStartOptions`
+- New field `ResumeToken` in struct `GalleryApplicationVersionsClientBeginDeleteOptions`
+- New anonymous field `AccessURI` in struct `SnapshotsClientGrantAccessResponse`
+- New anonymous field `Disk` in struct `DisksClientCreateOrUpdateResponse`
+- New anonymous field `VirtualMachineListResult` in struct `VirtualMachinesClientListResponse`
+- New field `ResumeToken` in struct `GalleryApplicationsClientBeginDeleteOptions`
+- New anonymous field `VirtualMachineCaptureResult` in struct `VirtualMachinesClientCaptureResponse`
+- New anonymous field `DiskEncryptionSetList` in struct `DiskEncryptionSetsClientListByResourceGroupResponse`
+- New field `ResumeToken` in struct `CloudServicesClientBeginRebuildOptions`
+- New anonymous field `VirtualMachineSizeListResult` in struct `VirtualMachineSizesClientListResponse`
+- New anonymous field `RestorePointCollection` in struct `RestorePointCollectionsClientCreateOrUpdateResponse`
+- New anonymous field `Snapshot` in struct `SnapshotsClientCreateOrUpdateResponse`
+- New field `ResumeToken` in struct `GalleriesClientBeginCreateOrUpdateOptions`
+- New anonymous field `ListUsagesResult` in struct `UsageClientListResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginRestartOptions`
+- New anonymous field `DiskList` in struct `DisksClientListResponse`
+- New field `ResumeToken` in struct `GalleryApplicationVersionsClientBeginCreateOrUpdateOptions`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginPerformMaintenanceOptions`
+- New anonymous field `SharingUpdate` in struct `GallerySharingProfileClientUpdateResponse`
+- New anonymous field `RetrieveBootDiagnosticsDataResult` in struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResponse`
+- New field `ResumeToken` in struct `LogAnalyticsClientBeginExportRequestRateByIntervalOptions`
+- New field `ResumeToken` in struct `SnapshotsClientBeginGrantAccessOptions`
+- New anonymous field `CloudServiceInstanceView` in struct `CloudServicesClientGetInstanceViewResponse`
+- New anonymous field `CapacityReservation` in struct `CapacityReservationsClientGetResponse`
+- New anonymous field `ProximityPlacementGroup` in struct `ProximityPlacementGroupsClientCreateOrUpdateResponse`
+- New anonymous field `DedicatedHostListResult` in struct `DedicatedHostsClientListByHostGroupResponse`
+- New anonymous field `Disk` in struct `DisksClientUpdateResponse`
+- New anonymous field `OperationListResult` in struct `OperationsClientListResponse`
+- New anonymous field `VirtualMachineScaleSetVMListResult` in struct `VirtualMachineScaleSetVMsClientListResponse`
+- New anonymous field `Image` in struct `ImagesClientUpdateResponse`
+- New field `VirtualMachineExtensionImageArray` in struct `VirtualMachineExtensionImagesClientListTypesResponse`
+- New anonymous field `SharedGalleryImageVersion` in struct `SharedGalleryImageVersionsClientGetResponse`
+- New field `ResumeToken` in struct `DisksClientBeginCreateOrUpdateOptions`
+- New anonymous field `CapacityReservationGroup` in struct `CapacityReservationGroupsClientCreateOrUpdateResponse`
+- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResponse`
+- New field `ResumeToken` in struct `DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions`
+- New anonymous field `DiskRestorePointList` in struct `DiskRestorePointClientListByRestorePointResponse`
+- New anonymous field `VirtualMachineScaleSet` in struct `VirtualMachineScaleSetsClientCreateOrUpdateResponse`
+- New anonymous field `VirtualMachineExtensionImage` in struct `VirtualMachineExtensionImagesClientGetResponse`
+- New anonymous field `AccessURI` in struct `DisksClientGrantAccessResponse`
+- New anonymous field `DedicatedHostGroupListResult` in struct `DedicatedHostGroupsClientListByResourceGroupResponse`
+- New anonymous field `SSHPublicKeysGroupListResult` in struct `SSHPublicKeysClientListBySubscriptionResponse`
+- New anonymous field `VirtualMachineImage` in struct `VirtualMachineImagesClientGetResponse`
+- New anonymous field `RestorePointCollectionListResult` in struct `RestorePointCollectionsClientListAllResponse`
+- New anonymous field `CapacityReservation` in struct `CapacityReservationsClientCreateOrUpdateResponse`
+- New field `ResumeToken` in struct `RestorePointsClientBeginDeleteOptions`
+- New anonymous field `VirtualMachineExtensionsListResult` in struct `VirtualMachineExtensionsClientListResponse`
+- New anonymous field `RollingUpgradeStatusInfo` in struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions`
+- New field `ResumeToken` in struct `GalleriesClientBeginUpdateOptions`
+- New anonymous field `VirtualMachineListResult` in struct `VirtualMachinesClientListAllResponse`
+- New anonymous field `Gallery` in struct `GalleriesClientUpdateResponse`
+- New field `ResumeToken` in struct `CloudServicesClientBeginRestartOptions`
+- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesEdgeZoneClientListSKUsResponse`
+- New anonymous field `VirtualMachineScaleSet` in struct `VirtualMachineScaleSetsClientGetResponse`
+- New field `ResumeToken` in struct `GalleryImagesClientBeginDeleteOptions`
+- New anonymous field `CapacityReservationGroupListResult` in struct `CapacityReservationGroupsClientListByResourceGroupResponse`
+- New anonymous field `ImageListResult` in struct `ImagesClientListResponse`
+- New anonymous field `DedicatedHost` in struct `DedicatedHostsClientGetResponse`
+- New field `ResumeToken` in struct `CloudServiceRoleInstancesClientBeginDeleteOptions`
+- New anonymous field `VirtualMachineScaleSetExtension` in struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse`
+- New field `ResumeToken` in struct `CapacityReservationsClientBeginDeleteOptions`
+- New anonymous field `VirtualMachineExtension` in struct `VirtualMachineExtensionsClientUpdateResponse`
+- New field `ResumeToken` in struct `DisksClientBeginGrantAccessOptions`
+- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesClientListSKUsResponse`
+- New anonymous field `ResourceURIList` in struct `DiskEncryptionSetsClientListAssociatedResourcesResponse`
+- New anonymous field `OSFamily` in struct `CloudServiceOperatingSystemsClientGetOSFamilyResponse`
+- New anonymous field `GalleryApplicationVersion` in struct `GalleryApplicationVersionsClientCreateOrUpdateResponse`
+- New anonymous field `RestorePoint` in struct `RestorePointsClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginRedeployOptions`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginUpdateOptions`
+- New anonymous field `LogAnalyticsOperationResult` in struct `LogAnalyticsClientExportThrottledRequestsResponse`
+- New anonymous field `UpdateDomain` in struct `CloudServicesUpdateDomainClientGetUpdateDomainResponse`
+- New anonymous field `VirtualMachineScaleSetVMExtension` in struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse`
+- New anonymous field `CloudServiceRoleListResult` in struct `CloudServiceRolesClientListResponse`
+- New field `ResumeToken` in struct `DiskEncryptionSetsClientBeginDeleteOptions`
+- New anonymous field `DiskEncryptionSetList` in struct `DiskEncryptionSetsClientListResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginCreateOrUpdateOptions`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginDeallocateOptions`
+- New anonymous field `CommunityGalleryImage` in struct `CommunityGalleryImagesClientGetResponse`
+- New anonymous field `ImageListResult` in struct `ImagesClientListByResourceGroupResponse`
+- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesClientListPublishersResponse`
+- New anonymous field `GalleryImageVersion` in struct `GalleryImageVersionsClientGetResponse`
+- New anonymous field `VirtualMachineAssessPatchesResult` in struct `VirtualMachinesClientAssessPatchesResponse`
+- New anonymous field `VirtualMachineScaleSetExtension` in struct `VirtualMachineScaleSetExtensionsClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginReimageOptions`
+- New field `ResumeToken` in struct `DiskEncryptionSetsClientBeginUpdateOptions`
+- New anonymous field `DiskRestorePoint` in struct `DiskRestorePointClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginRunCommandOptions`
+- New anonymous field `VirtualMachineSizeListResult` in struct `VirtualMachinesClientListAvailableSizesResponse`
+- New anonymous field `OSVersion` in struct `CloudServiceOperatingSystemsClientGetOSVersionResponse`
+- New anonymous field `PrivateLinkResourceListResult` in struct `DiskAccessesClientGetPrivateLinkResourcesResponse`
+- New anonymous field `GalleryApplication` in struct `GalleryApplicationsClientUpdateResponse`
+- New anonymous field `CapacityReservationGroupListResult` in struct `CapacityReservationGroupsClientListBySubscriptionResponse`
+- New field `ResumeToken` in struct `GalleryApplicationVersionsClientBeginUpdateOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions`
+- New anonymous field `CloudService` in struct `CloudServicesClientUpdateResponse`
+- New anonymous field `GalleryImageVersionList` in struct `GalleryImageVersionsClientListByGalleryImageResponse`
+- New field `ResumeToken` in struct `SnapshotsClientBeginCreateOrUpdateOptions`
+- New anonymous field `CloudService` in struct `CloudServicesClientCreateOrUpdateResponse`
+- New anonymous field `CapacityReservation` in struct `CapacityReservationsClientUpdateResponse`
+- New anonymous field `RestorePointCollection` in struct `RestorePointCollectionsClientGetResponse`
+- New anonymous field `DiskAccessList` in struct `DiskAccessesClientListByResourceGroupResponse`
+- New field `ResumeToken` in struct `GalleryImageVersionsClientBeginUpdateOptions`
+- New anonymous field `SharedGallery` in struct `SharedGalleriesClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginRestartOptions`
+- New field `ResumeToken` in struct `SnapshotsClientBeginUpdateOptions`
+- New anonymous field `RoleInstanceListResult` in struct `CloudServiceRoleInstancesClientListResponse`
+- New anonymous field `CommunityGalleryImageVersion` in struct `CommunityGalleryImageVersionsClientGetResponse`
+- New anonymous field `VirtualMachineScaleSetVMExtension` in struct `VirtualMachineScaleSetVMExtensionsClientGetResponse`
+- New anonymous field `DiskEncryptionSet` in struct `DiskEncryptionSetsClientGetResponse`
+- New anonymous field `VirtualMachineScaleSetVM` in struct `VirtualMachineScaleSetVMsClientGetResponse`
+- New field `ResumeToken` in struct `CloudServicesClientBeginReimageOptions`
+- New field `ResumeToken` in struct `GalleryApplicationsClientBeginCreateOrUpdateOptions`
+- New anonymous field `GalleryApplicationList` in struct `GalleryApplicationsClientListByGalleryResponse`
+- New field `ResumeToken` in struct `CloudServiceRoleInstancesClientBeginReimageOptions`
+- New field `ResumeToken` in struct `CloudServicesClientBeginPowerOffOptions`
+- New field `ResumeToken` in struct `VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions`
+- New anonymous field `DedicatedHost` in struct `DedicatedHostsClientCreateOrUpdateResponse`
+- New anonymous field `GalleryList` in struct `GalleriesClientListByResourceGroupResponse`
+- New anonymous field `RunCommandResult` in struct `VirtualMachineScaleSetVMsClientRunCommandResponse`
+- New anonymous field `VirtualMachineRunCommandsListResult` in struct `VirtualMachineRunCommandsClientListByVirtualMachineResponse`
+- New anonymous field `UpdateDomainListResult` in struct `CloudServicesUpdateDomainClientListUpdateDomainsResponse`
+- New anonymous field `VirtualMachineScaleSet` in struct `VirtualMachineScaleSetsClientUpdateResponse`
+- New anonymous field `SSHPublicKeyResource` in struct `SSHPublicKeysClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginReimageOptions`
+- New anonymous field `RunCommandDocument` in struct `VirtualMachineRunCommandsClientGetResponse`
+- New anonymous field `VirtualMachineInstallPatchesResult` in struct `VirtualMachinesClientInstallPatchesResponse`
+- New anonymous field `SharedGalleryList` in struct `SharedGalleriesClientListResponse`
+- New anonymous field `VirtualMachineScaleSetListResult` in struct `VirtualMachineScaleSetsClientListByLocationResponse`
+- New field `ResumeToken` in struct `DiskRestorePointClientBeginGrantAccessOptions`
+- New anonymous field `DedicatedHostGroup` in struct `DedicatedHostGroupsClientUpdateResponse`
+- New anonymous field `ProximityPlacementGroup` in struct `ProximityPlacementGroupsClientGetResponse`
+- New field `ResumeToken` in struct `GalleryImagesClientBeginUpdateOptions`
+- New field `ResumeToken` in struct `DedicatedHostsClientBeginCreateOrUpdateOptions`
+- New anonymous field `GalleryApplicationVersionList` in struct `GalleryApplicationVersionsClientListByGalleryApplicationResponse`
+- New anonymous field `GalleryApplication` in struct `GalleryApplicationsClientCreateOrUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions`
+- New anonymous field `PrivateEndpointConnectionListResult` in struct `DiskAccessesClientListPrivateEndpointConnectionsResponse`
+- New field `ResumeToken` in struct `CloudServicesClientBeginDeleteInstancesOptions`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginAssessPatchesOptions`
+- New field `ResumeToken` in struct `DiskAccessesClientBeginDeleteOptions`
+- New anonymous field `VirtualMachineExtension` in struct `VirtualMachineExtensionsClientCreateOrUpdateResponse`
+- New anonymous field `DedicatedHost` in struct `DedicatedHostsClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions`
+- New anonymous field `VirtualMachineScaleSetVMExtensionsListResult` in struct `VirtualMachineScaleSetVMExtensionsClientListResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions`
+- New field `ResumeToken` in struct `GalleriesClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `ImagesClientBeginUpdateOptions`
+- New field `ResumeToken` in struct `DisksClientBeginRevokeAccessOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginStartOptions`
+- New anonymous field `SSHPublicKeysGroupListResult` in struct `SSHPublicKeysClientListByResourceGroupResponse`
+- New field `ResumeToken` in struct `SnapshotsClientBeginRevokeAccessOptions`
+- New field `ResumeToken` in struct `ImagesClientBeginDeleteOptions`
+- New anonymous field `VirtualMachineScaleSetExtension` in struct `VirtualMachineScaleSetExtensionsClientUpdateResponse`
+- New anonymous field `Disk` in struct `DisksClientGetResponse`
+- New field `ResumeToken` in struct `GalleryImageVersionsClientBeginCreateOrUpdateOptions`
+- New anonymous field `VirtualMachineSizeListResult` in struct `AvailabilitySetsClientListAvailableSizesResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginDeleteOptions`
+- New anonymous field `SnapshotList` in struct `SnapshotsClientListResponse`
+- New field `ResumeToken` in struct `VirtualMachineExtensionsClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `VirtualMachineExtensionsClientBeginUpdateOptions`
+- New field `ResumeToken` in struct `GalleryApplicationsClientBeginUpdateOptions`
+- New anonymous field `SharedGalleryImageList` in struct `SharedGalleryImagesClientListResponse`
+- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesClientListResponse`
+- New field `ResumeToken` in struct `CloudServiceRoleInstancesClientBeginRebuildOptions`
+- New anonymous field `CapacityReservationGroup` in struct `CapacityReservationGroupsClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions`
+- New field `ResumeToken` in struct `DisksClientBeginUpdateOptions`
+- New anonymous field `ProximityPlacementGroupListResult` in struct `ProximityPlacementGroupsClientListByResourceGroupResponse`
+- New anonymous field `VirtualMachine` in struct `VirtualMachinesClientCreateOrUpdateResponse`
+- New anonymous field `Gallery` in struct `GalleriesClientGetResponse`
+- New anonymous field `GalleryImage` in struct `GalleryImagesClientCreateOrUpdateResponse`
+- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesEdgeZoneClientListOffersResponse`
+- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineRunCommandsClientGetByVirtualMachineResponse`
+- New anonymous field `VirtualMachineRunCommandsListResult` in struct `VirtualMachineScaleSetVMRunCommandsClientListResponse`
+- New anonymous field `CapacityReservationGroup` in struct `CapacityReservationGroupsClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginDeallocateOptions`
+- New anonymous field `CloudServiceListResult` in struct `CloudServicesClientListResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginPowerOffOptions`
+- New anonymous field `CapacityReservationListResult` in struct `CapacityReservationsClientListByCapacityReservationGroupResponse`
+- New anonymous field `SharedGalleryImage` in struct `SharedGalleryImagesClientGetResponse`
+- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineRunCommandsClientCreateOrUpdateResponse`
+- New anonymous field `RestorePointCollectionListResult` in struct `RestorePointCollectionsClientListResponse`
+- New anonymous field `RoleInstance` in struct `CloudServiceRoleInstancesClientGetResponse`
+- New anonymous field `VirtualMachineScaleSetExtensionListResult` in struct `VirtualMachineScaleSetExtensionsClientListResponse`
+- New anonymous field `AvailabilitySet` in struct `AvailabilitySetsClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions`
+- New field `ResumeToken` in struct `LogAnalyticsClientBeginExportThrottledRequestsOptions`
+- New field `ResumeToken` in struct `DedicatedHostsClientBeginRestartOptions`
+- New field `ResumeToken` in struct `ImagesClientBeginCreateOrUpdateOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginDeallocateOptions`
+- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesEdgeZoneClientListResponse`
+- New anonymous field `GalleryImageList` in struct `GalleryImagesClientListByGalleryResponse`
+- New anonymous field `AccessURI` in struct `DiskRestorePointClientGrantAccessResponse`
+- New anonymous field `RunCommandResult` in struct `VirtualMachinesClientRunCommandResponse`
+- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesClientListOffersResponse`
+- New field `ResumeToken` in struct `DiskAccessesClientBeginCreateOrUpdateOptions`
+- New anonymous field `CloudServiceListResult` in struct `CloudServicesClientListAllResponse`
+- New anonymous field `RestorePoint` in struct `RestorePointsClientCreateResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginRunCommandOptions`
+- New anonymous field `RunCommandListResult` in struct `VirtualMachineRunCommandsClientListResponse`
+- New anonymous field `GalleryImageVersion` in struct `GalleryImageVersionsClientUpdateResponse`
+- New anonymous field `Image` in struct `ImagesClientCreateOrUpdateResponse`
+- New field `ResumeToken` in struct `SnapshotsClientBeginDeleteOptions`
+- New anonymous field `LogAnalyticsOperationResult` in struct `LogAnalyticsClientExportRequestRateByIntervalResponse`
+- New anonymous field `VirtualMachineInstanceView` in struct `VirtualMachinesClientInstanceViewResponse`
+- New anonymous field `CloudServiceRole` in struct `CloudServiceRolesClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginDeleteInstancesOptions`
+- New field `VirtualMachineImageResourceArray` in struct `VirtualMachineImagesEdgeZoneClientListPublishersResponse`
+- New anonymous field `RecoveryWalkResponse` in struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse`
+- New anonymous field `DedicatedHostGroup` in struct `DedicatedHostGroupsClientCreateOrUpdateResponse`
+- New field `ResumeToken` in struct `DiskEncryptionSetsClientBeginCreateOrUpdateOptions`
+- New anonymous field `Snapshot` in struct `SnapshotsClientUpdateResponse`
+- New anonymous field `ResourceSKUsResult` in struct `ResourceSKUsClientListResponse`
+- New anonymous field `SnapshotList` in struct `SnapshotsClientListByResourceGroupResponse`
+- New anonymous field `GalleryImageVersion` in struct `GalleryImageVersionsClientCreateOrUpdateResponse`
+- New anonymous field `ProximityPlacementGroup` in struct `ProximityPlacementGroupsClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginReimageAllOptions`
+- New anonymous field `Gallery` in struct `GalleriesClientCreateOrUpdateResponse`
+- New anonymous field `SharedGalleryImageVersionList` in struct `SharedGalleryImageVersionsClientListResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginCaptureOptions`
+- New anonymous field `ProximityPlacementGroupListResult` in struct `ProximityPlacementGroupsClientListBySubscriptionResponse`
+- New anonymous field `OSVersionListResult` in struct `CloudServiceOperatingSystemsClientListOSVersionsResponse`
+- New anonymous field `GalleryImage` in struct `GalleryImagesClientGetResponse`
+- New field `ResumeToken` in struct `DiskAccessesClientBeginUpdateOptions`
+- New field `ResumeToken` in struct `DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions`
+- New field `ResumeToken` in struct `CapacityReservationsClientBeginUpdateOptions`
+- New anonymous field `AvailabilitySetListResult` in struct `AvailabilitySetsClientListResponse`
+- New field `ResumeToken` in struct `DedicatedHostsClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions`
+- New anonymous field `VirtualMachineScaleSetListOSUpgradeHistory` in struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse`
+- New anonymous field `VirtualMachineScaleSetVM` in struct `VirtualMachineScaleSetVMsClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginUpdateInstancesOptions`
+- New anonymous field `GalleryApplicationVersion` in struct `GalleryApplicationVersionsClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginUpdateOptions`
+- New anonymous field `RetrieveBootDiagnosticsDataResult` in struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse`
+- New field `ResumeToken` in struct `CloudServicesClientBeginUpdateOptions`
+- New anonymous field `DiskList` in struct `DisksClientListByResourceGroupResponse`
+- New anonymous field `GalleryApplication` in struct `GalleryApplicationsClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginUpdateOptions`
+- New anonymous field `Snapshot` in struct `SnapshotsClientGetResponse`
+- New anonymous field `VirtualMachineListResult` in struct `VirtualMachinesClientListByLocationResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginReapplyOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions`
+- New anonymous field `RoleInstanceView` in struct `CloudServiceRoleInstancesClientGetInstanceViewResponse`
+- New field `ResumeToken` in struct `RestorePointCollectionsClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `CapacityReservationsClientBeginCreateOrUpdateOptions`
+- New anonymous field `DiskEncryptionSet` in struct `DiskEncryptionSetsClientCreateOrUpdateResponse`
+- New anonymous field `SSHPublicKeyResource` in struct `SSHPublicKeysClientCreateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginPowerOffOptions`
+- New anonymous field `DiskEncryptionSet` in struct `DiskEncryptionSetsClientUpdateResponse`
+- New anonymous field `DedicatedHostGroup` in struct `DedicatedHostGroupsClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginRedeployOptions`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginRedeployOptions`
+- New anonymous field `VirtualMachineScaleSetListWithLinkResult` in struct `VirtualMachineScaleSetsClientListAllResponse`
+- New field `ResumeToken` in struct `GalleryImagesClientBeginCreateOrUpdateOptions`
+- New anonymous field `VirtualMachineImage` in struct `VirtualMachineImagesEdgeZoneClientGetResponse`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginInstallPatchesOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetExtensionsClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions`
+- New field `ResumeToken` in struct `VirtualMachinesClientBeginRestartOptions`
+- New anonymous field `DedicatedHostGroupListResult` in struct `DedicatedHostGroupsClientListBySubscriptionResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetVMsClientBeginStartOptions`
+- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse`
+- New field `ResumeToken` in struct `GallerySharingProfileClientBeginUpdateOptions`
+- New anonymous field `VirtualMachineRunCommand` in struct `VirtualMachineRunCommandsClientUpdateResponse`
+- New field `ResumeToken` in struct `GalleryImageVersionsClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetExtensionsClientBeginUpdateOptions`
+- New anonymous field `RestorePointCollection` in struct `RestorePointCollectionsClientUpdateResponse`
+- New anonymous field `VirtualMachineExtension` in struct `VirtualMachineExtensionsClientGetResponse`
+- New anonymous field `DiskAccess` in struct `DiskAccessesClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginDeleteOptions`
+- New field `ResumeToken` in struct `CloudServicesClientBeginCreateOrUpdateOptions`
+- New anonymous field `Image` in struct `ImagesClientGetResponse`
+- New anonymous field `GalleryApplicationVersion` in struct `GalleryApplicationVersionsClientUpdateResponse`
+- New anonymous field `PrivateEndpointConnection` in struct `DiskAccessesClientGetAPrivateEndpointConnectionResponse`
+- New anonymous field `VirtualMachineScaleSetInstanceView` in struct `VirtualMachineScaleSetsClientGetInstanceViewResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetsClientBeginPowerOffOptions`
+- New field `ResumeToken` in struct `DisksClientBeginDeleteOptions`
+- New anonymous field `VirtualMachine` in struct `VirtualMachinesClientGetResponse`
+- New anonymous field `DiskAccess` in struct `DiskAccessesClientCreateOrUpdateResponse`
+- New anonymous field `OSFamilyListResult` in struct `CloudServiceOperatingSystemsClientListOSFamiliesResponse`
+- New field `ResumeToken` in struct `VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions`
+- New field `ResumeToken` in struct `VirtualMachineExtensionsClientBeginCreateOrUpdateOptions`
+- New anonymous field `CommunityGallery` in struct `CommunityGalleriesClientGetResponse`
+- New anonymous field `PrivateEndpointConnection` in struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResponse`
+- New anonymous field `AvailabilitySet` in struct `AvailabilitySetsClientGetResponse`
+- New anonymous field `VirtualMachineScaleSetVMExtension` in struct `VirtualMachineScaleSetVMExtensionsClientUpdateResponse`
+- New field `ResumeToken` in struct `VirtualMachineRunCommandsClientBeginDeleteOptions`
+- New anonymous field `SSHPublicKeyResource` in struct `SSHPublicKeysClientGetResponse`
+- New anonymous field `CloudService` in struct `CloudServicesClientGetResponse`
+
+
+## 0.5.0 (2022-03-07)
+### Features Added
+
+- New const `DataAccessAuthModeAzureActiveDirectory`
+- New const `DataAccessAuthModeNone`
+- New function `PossibleDataAccessAuthModeValues() []DataAccessAuthMode`
+- New function `DataAccessAuthMode.ToPtr() *DataAccessAuthMode`
+- New field `DataAccessAuthMode` in struct `SnapshotProperties`
+- New field `DataAccessAuthMode` in struct `DiskProperties`
+- New field `Architecture` in struct `SupportedCapabilities`
+- New field `DataAccessAuthMode` in struct `SnapshotUpdateProperties`
+- New field `DataAccessAuthMode` in struct `DiskUpdateProperties`
+
+
+## 0.4.0 (2022-03-02)
+### Breaking Changes
+
+- Type of `VirtualMachineExtensionProperties.ProtectedSettings` has been changed from `map[string]interface{}` to `interface{}`
+- Type of `VirtualMachineExtensionProperties.Settings` has been changed from `map[string]interface{}` to `interface{}`
+- Type of `VirtualMachineScaleSetExtensionProperties.ProtectedSettings` has been changed from `map[string]interface{}` to `interface{}`
+- Type of `VirtualMachineScaleSetExtensionProperties.Settings` has been changed from `map[string]interface{}` to `interface{}`
+- Type of `VirtualMachineCaptureResult.Parameters` has been changed from `map[string]interface{}` to `interface{}`
+- Type of `VirtualMachineCaptureResult.Resources` has been changed from `[]map[string]interface{}` to `[]interface{}`
+- Type of `VirtualMachineExtensionUpdateProperties.ProtectedSettings` has been changed from `map[string]interface{}` to `interface{}`
+- Type of `VirtualMachineExtensionUpdateProperties.Settings` has been changed from `map[string]interface{}` to `interface{}`
+- Struct `CloudError` has been removed
+- Struct `GalleryArtifactSource` has been removed
+- Struct `ManagedArtifact` has been removed
+
+### Features Added
+
+- New const `RepairActionReplace`
+- New const `RestorePointExpandOptionsInstanceView`
+- New const `GalleryExtendedLocationTypeEdgeZone`
+- New const `ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk`
+- New const `SharingProfileGroupTypesCommunity`
+- New const `ArchitectureTypesArm64`
+- New const `RepairActionReimage`
+- New const `ArchitectureX64`
+- New const `SecurityEncryptionTypesDiskWithVMGuestState`
+- New const `SecurityTypesConfidentialVM`
+- New const `SharingStateSucceeded`
+- New const `RepairActionRestart`
+- New const `SecurityEncryptionTypesVMGuestStateOnly`
+- New const `SharingUpdateOperationTypesEnableCommunity`
+- New const `SharingStateUnknown`
+- New const `SharingStateInProgress`
+- New const `ConfidentialVMEncryptionTypeEncryptedWithPmk`
+- New const `SharingStateFailed`
+- New const `ConfidentialVMEncryptionTypeEncryptedWithCmk`
+- New const `ArchitectureTypesX64`
+- New const `GalleryExtendedLocationTypeUnknown`
+- New const `GalleryExpandParamsSharingProfileGroups`
+- New const `ArchitectureArm64`
+- New function `RestorePointExpandOptions.ToPtr() *RestorePointExpandOptions`
+- New function `PossibleGalleryExtendedLocationTypeValues() []GalleryExtendedLocationType`
+- New function `PossibleGalleryExpandParamsValues() []GalleryExpandParams`
+- New function `PossibleSharingStateValues() []SharingState`
+- New function `PossibleSecurityEncryptionTypesValues() []SecurityEncryptionTypes`
+- New function `PossibleArchitectureTypesValues() []ArchitectureTypes`
+- New function `*DedicatedHostsClientRestartPollerResponse.Resume(context.Context, *DedicatedHostsClient, string) error`
+- New function `DedicatedHostsClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (DedicatedHostsClientRestartResponse, error)`
+- New function `ConfidentialVMEncryptionType.ToPtr() *ConfidentialVMEncryptionType`
+- New function `SharingState.ToPtr() *SharingState`
+- New function `PossibleConfidentialVMEncryptionTypeValues() []ConfidentialVMEncryptionType`
+- New function `*DedicatedHostsClient.BeginRestart(context.Context, string, string, string, *DedicatedHostsClientBeginRestartOptions) (DedicatedHostsClientRestartPollerResponse, error)`
+- New function `RestorePointInstanceView.MarshalJSON() ([]byte, error)`
+- New function `*DedicatedHostsClientRestartPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineProperties.UnmarshalJSON([]byte) error`
+- New function `SharingStatus.MarshalJSON() ([]byte, error)`
+- New function `SecurityEncryptionTypes.ToPtr() *SecurityEncryptionTypes`
+- New function `PossibleArchitectureValues() []Architecture`
+- New function `PossibleRestorePointExpandOptionsValues() []RestorePointExpandOptions`
+- New function `GalleryExtendedLocationType.ToPtr() *GalleryExtendedLocationType`
+- New function `ArchitectureTypes.ToPtr() *ArchitectureTypes`
+- New function `GalleryExpandParams.ToPtr() *GalleryExpandParams`
+- New function `*DedicatedHostsClientRestartPoller.Done() bool`
+- New function `RepairAction.ToPtr() *RepairAction`
+- New function `PossibleRepairActionValues() []RepairAction`
+- New function `VirtualMachineScaleSetProperties.MarshalJSON() ([]byte, error)`
+- New function `*VirtualMachineScaleSetProperties.UnmarshalJSON([]byte) error`
+- New function `*DedicatedHostsClientRestartPoller.FinalResponse(context.Context) (DedicatedHostsClientRestartResponse, error)`
+- New function `*DedicatedHostsClientRestartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `Architecture.ToPtr() *Architecture`
+- New function `VirtualMachineProperties.MarshalJSON() ([]byte, error)`
+- New struct `DedicatedHostsClientBeginRestartOptions`
+- New struct `DedicatedHostsClientRestartPoller`
+- New struct `DedicatedHostsClientRestartPollerResponse`
+- New struct `DedicatedHostsClientRestartResponse`
+- New struct `DiskRestorePointInstanceView`
+- New struct `GalleryExtendedLocation`
+- New struct `GalleryTargetExtendedLocation`
+- New struct `OSDiskImageSecurityProfile`
+- New struct `RegionalSharingStatus`
+- New struct `RestorePointInstanceView`
+- New struct `SharingStatus`
+- New struct `VMDiskSecurityProfile`
+- New struct `VirtualMachineScaleSetHardwareProfile`
+- New field `SourceRestorePoint` in struct `RestorePointProperties`
+- New field `InstanceView` in struct `RestorePointProperties`
+- New field `SecurityProfile` in struct `VirtualMachineScaleSetManagedDiskParameters`
+- New field `TimeCreated` in struct `VirtualMachineProperties`
+- New field `ProtectedSettingsFromKeyVault` in struct `VirtualMachineExtensionUpdateProperties`
+- New field `SecurityProfile` in struct `ManagedDiskParameters`
+- New field `TimeCreated` in struct `CapacityReservationProperties`
+- New field `Expand` in struct `RestorePointsClientGetOptions`
+- New field `PlacementGroupID` in struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions`
+- New field `Zone` in struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions`
+- New field `TimeCreated` in struct `VirtualMachineScaleSetProperties`
+- New field `CommunityGalleryImageID` in struct `ImageReference`
+- New field `AllowExtensionOperations` in struct `VirtualMachineScaleSetOSProfile`
+- New field `ProtectedSettingsFromKeyVault` in struct `VirtualMachineScaleSetExtensionProperties`
+- New field `PublicIPPrefix` in struct `VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties`
+- New field `Filter` in struct `VirtualMachinesClientListOptions`
+- New field `TargetExtendedLocations` in struct `GalleryImageVersionPublishingProfile`
+- New field `Architecture` in struct `VirtualMachineImageProperties`
+- New field `HardwareProfile` in struct `VirtualMachineScaleSetVMProfile`
+- New field `Architecture` in struct `GalleryImageProperties`
+- New field `SecurityProfile` in struct `OSDiskImageEncryption`
+- New field `TimeCreated` in struct `DedicatedHostProperties`
+- New field `TargetExtendedLocations` in struct `GalleryArtifactPublishingProfileBase`
+- New field `TargetExtendedLocations` in struct `GalleryApplicationVersionPublishingProfile`
+- New field `Expand` in struct `GalleriesClientGetOptions`
+- New field `Filter` in struct `VirtualMachinesClientListAllOptions`
+- New field `RepairAction` in struct `AutomaticRepairsPolicy`
+- New field `SharingStatus` in struct `GalleryProperties`
+- New field `CommunityGalleryInfo` in struct `SharingProfile`
+- New field `ProtectedSettingsFromKeyVault` in struct `VirtualMachineExtensionProperties`
+
+
+## 0.3.1 (2022-02-22)
+
+### Other Changes
+
+- Remove the go_mod_tidy_hack.go file.
+
+## 0.3.0 (2022-01-13)
+### Breaking Changes
+
+- Function `*VirtualMachineScaleSetsClient.ListAll` parameter(s) have been changed from `(*VirtualMachineScaleSetsListAllOptions)` to `(*VirtualMachineScaleSetsClientListAllOptions)`
+- Function `*VirtualMachineScaleSetsClient.ListAll` return value(s) have been changed from `(*VirtualMachineScaleSetsListAllPager)` to `(*VirtualMachineScaleSetsClientListAllPager)`
+- Function `*VirtualMachinesClient.Generalize` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesGeneralizeOptions)` to `(context.Context, string, string, *VirtualMachinesClientGeneralizeOptions)`
+- Function `*VirtualMachinesClient.Generalize` return value(s) have been changed from `(VirtualMachinesGeneralizeResponse, error)` to `(VirtualMachinesClientGeneralizeResponse, error)`
+- Function `*DedicatedHostsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *DedicatedHostsGetOptions)` to `(context.Context, string, string, string, *DedicatedHostsClientGetOptions)`
+- Function `*DedicatedHostsClient.Get` return value(s) have been changed from `(DedicatedHostsGetResponse, error)` to `(DedicatedHostsClientGetResponse, error)`
+- Function `*ProximityPlacementGroupsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *ProximityPlacementGroupsGetOptions)` to `(context.Context, string, string, *ProximityPlacementGroupsClientGetOptions)`
+- Function `*ProximityPlacementGroupsClient.Get` return value(s) have been changed from `(ProximityPlacementGroupsGetResponse, error)` to `(ProximityPlacementGroupsClientGetResponse, error)`
+- Function `*VirtualMachinesClient.ListByLocation` parameter(s) have been changed from `(string, *VirtualMachinesListByLocationOptions)` to `(string, *VirtualMachinesClientListByLocationOptions)`
+- Function `*VirtualMachinesClient.ListByLocation` return value(s) have been changed from `(*VirtualMachinesListByLocationPager)` to `(*VirtualMachinesClientListByLocationPager)`
+- Function `*DiskEncryptionSetsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *DiskEncryptionSetsBeginDeleteOptions)` to `(context.Context, string, string, *DiskEncryptionSetsClientBeginDeleteOptions)`
+- Function `*DiskEncryptionSetsClient.BeginDelete` return value(s) have been changed from `(DiskEncryptionSetsDeletePollerResponse, error)` to `(DiskEncryptionSetsClientDeletePollerResponse, error)`
+- Function `*AvailabilitySetsClient.List` parameter(s) have been changed from `(string, *AvailabilitySetsListOptions)` to `(string, *AvailabilitySetsClientListOptions)`
+- Function `*AvailabilitySetsClient.List` return value(s) have been changed from `(*AvailabilitySetsListPager)` to `(*AvailabilitySetsClientListPager)`
+- Function `*VirtualMachinesClient.SimulateEviction` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesSimulateEvictionOptions)` to `(context.Context, string, string, *VirtualMachinesClientSimulateEvictionOptions)`
+- Function `*VirtualMachinesClient.SimulateEviction` return value(s) have been changed from `(VirtualMachinesSimulateEvictionResponse, error)` to `(VirtualMachinesClientSimulateEvictionResponse, error)`
+- Function `*VirtualMachineImagesClient.ListOffers` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineImagesListOffersOptions)` to `(context.Context, string, string, *VirtualMachineImagesClientListOffersOptions)`
+- Function `*VirtualMachineImagesClient.ListOffers` return value(s) have been changed from `(VirtualMachineImagesListOffersResponse, error)` to `(VirtualMachineImagesClientListOffersResponse, error)`
+- Function `*CloudServiceOperatingSystemsClient.GetOSVersion` parameter(s) have been changed from `(context.Context, string, string, *CloudServiceOperatingSystemsGetOSVersionOptions)` to `(context.Context, string, string, *CloudServiceOperatingSystemsClientGetOSVersionOptions)`
+- Function `*CloudServiceOperatingSystemsClient.GetOSVersion` return value(s) have been changed from `(CloudServiceOperatingSystemsGetOSVersionResponse, error)` to `(CloudServiceOperatingSystemsClientGetOSVersionResponse, error)`
+- Function `*VirtualMachinesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesGetOptions)` to `(context.Context, string, string, *VirtualMachinesClientGetOptions)`
+- Function `*VirtualMachinesClient.Get` return value(s) have been changed from `(VirtualMachinesGetResponse, error)` to `(VirtualMachinesClientGetResponse, error)`
+- Function `*VirtualMachinesClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginRestartOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginRestartOptions)`
+- Function `*VirtualMachinesClient.BeginRestart` return value(s) have been changed from `(VirtualMachinesRestartPollerResponse, error)` to `(VirtualMachinesClientRestartPollerResponse, error)`
+- Function `*DedicatedHostsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, DedicatedHost, *DedicatedHostsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, DedicatedHost, *DedicatedHostsClientBeginCreateOrUpdateOptions)`
+- Function `*DedicatedHostsClient.BeginCreateOrUpdate` return value(s) have been changed from `(DedicatedHostsCreateOrUpdatePollerResponse, error)` to `(DedicatedHostsClientCreateOrUpdatePollerResponse, error)`
+- Function `*SharedGalleriesClient.List` parameter(s) have been changed from `(string, *SharedGalleriesListOptions)` to `(string, *SharedGalleriesClientListOptions)`
+- Function `*SharedGalleriesClient.List` return value(s) have been changed from `(*SharedGalleriesListPager)` to `(*SharedGalleriesClientListPager)`
+- Function `*VirtualMachinesClient.BeginRunCommand` parameter(s) have been changed from `(context.Context, string, string, RunCommandInput, *VirtualMachinesBeginRunCommandOptions)` to `(context.Context, string, string, RunCommandInput, *VirtualMachinesClientBeginRunCommandOptions)`
+- Function `*VirtualMachinesClient.BeginRunCommand` return value(s) have been changed from `(VirtualMachinesRunCommandPollerResponse, error)` to `(VirtualMachinesClientRunCommandPollerResponse, error)`
+- Function `*CloudServicesClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginRestartOptions)` to `(context.Context, string, string, *CloudServicesClientBeginRestartOptions)`
+- Function `*CloudServicesClient.BeginRestart` return value(s) have been changed from `(CloudServicesRestartPollerResponse, error)` to `(CloudServicesClientRestartPollerResponse, error)`
+- Function `*DiskRestorePointClient.ListByRestorePoint` parameter(s) have been changed from `(string, string, string, *DiskRestorePointListByRestorePointOptions)` to `(string, string, string, *DiskRestorePointClientListByRestorePointOptions)`
+- Function `*DiskRestorePointClient.ListByRestorePoint` return value(s) have been changed from `(*DiskRestorePointListByRestorePointPager)` to `(*DiskRestorePointClientListByRestorePointPager)`
+- Function `*VirtualMachinesClient.BeginReapply` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginReapplyOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginReapplyOptions)`
+- Function `*VirtualMachinesClient.BeginReapply` return value(s) have been changed from `(VirtualMachinesReapplyPollerResponse, error)` to `(VirtualMachinesClientReapplyPollerResponse, error)`
+- Function `*SnapshotsClient.BeginGrantAccess` parameter(s) have been changed from `(context.Context, string, string, GrantAccessData, *SnapshotsBeginGrantAccessOptions)` to `(context.Context, string, string, GrantAccessData, *SnapshotsClientBeginGrantAccessOptions)`
+- Function `*SnapshotsClient.BeginGrantAccess` return value(s) have been changed from `(SnapshotsGrantAccessPollerResponse, error)` to `(SnapshotsClientGrantAccessPollerResponse, error)`
+- Function `*VirtualMachinesClient.ListAvailableSizes` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesListAvailableSizesOptions)` to `(context.Context, string, string, *VirtualMachinesClientListAvailableSizesOptions)`
+- Function `*VirtualMachinesClient.ListAvailableSizes` return value(s) have been changed from `(VirtualMachinesListAvailableSizesResponse, error)` to `(VirtualMachinesClientListAvailableSizesResponse, error)`
+- Function `*CloudServicesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesGetOptions)` to `(context.Context, string, string, *CloudServicesClientGetOptions)`
+- Function `*CloudServicesClient.Get` return value(s) have been changed from `(CloudServicesGetResponse, error)` to `(CloudServicesClientGetResponse, error)`
+- Function `*GalleryImageVersionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, GalleryImageVersionUpdate, *GalleryImageVersionsBeginUpdateOptions)` to `(context.Context, string, string, string, string, GalleryImageVersionUpdate, *GalleryImageVersionsClientBeginUpdateOptions)`
+- Function `*GalleryImageVersionsClient.BeginUpdate` return value(s) have been changed from `(GalleryImageVersionsUpdatePollerResponse, error)` to `(GalleryImageVersionsClientUpdatePollerResponse, error)`
+- Function `*CloudServicesClient.ListAll` parameter(s) have been changed from `(*CloudServicesListAllOptions)` to `(*CloudServicesClientListAllOptions)`
+- Function `*CloudServicesClient.ListAll` return value(s) have been changed from `(*CloudServicesListAllPager)` to `(*CloudServicesClientListAllPager)`
+- Function `*SharedGalleryImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *SharedGalleryImagesGetOptions)` to `(context.Context, string, string, string, *SharedGalleryImagesClientGetOptions)`
+- Function `*SharedGalleryImagesClient.Get` return value(s) have been changed from `(SharedGalleryImagesGetResponse, error)` to `(SharedGalleryImagesClientGetResponse, error)`
+- Function `*CapacityReservationGroupsClient.ListBySubscription` parameter(s) have been changed from `(*CapacityReservationGroupsListBySubscriptionOptions)` to `(*CapacityReservationGroupsClientListBySubscriptionOptions)`
+- Function `*CapacityReservationGroupsClient.ListBySubscription` return value(s) have been changed from `(*CapacityReservationGroupsListBySubscriptionPager)` to `(*CapacityReservationGroupsClientListBySubscriptionPager)`
+- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` parameter(s) have been changed from `(string, *CloudServiceOperatingSystemsListOSFamiliesOptions)` to `(string, *CloudServiceOperatingSystemsClientListOSFamiliesOptions)`
+- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` return value(s) have been changed from `(*CloudServiceOperatingSystemsListOSFamiliesPager)` to `(*CloudServiceOperatingSystemsClientListOSFamiliesPager)`
+- Function `*VirtualMachinesClient.BeginCapture` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineCaptureParameters, *VirtualMachinesBeginCaptureOptions)` to `(context.Context, string, string, VirtualMachineCaptureParameters, *VirtualMachinesClientBeginCaptureOptions)`
+- Function `*VirtualMachinesClient.BeginCapture` return value(s) have been changed from `(VirtualMachinesCapturePollerResponse, error)` to `(VirtualMachinesClientCapturePollerResponse, error)`
+- Function `*CapacityReservationGroupsClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *CapacityReservationGroupsDeleteOptions)` to `(context.Context, string, string, *CapacityReservationGroupsClientDeleteOptions)`
+- Function `*CapacityReservationGroupsClient.Delete` return value(s) have been changed from `(CapacityReservationGroupsDeleteResponse, error)` to `(CapacityReservationGroupsClientDeleteResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginReimageAll` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginReimageAllOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginReimageAllOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginReimageAll` return value(s) have been changed from `(VirtualMachineScaleSetVMsReimageAllPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientReimageAllPollerResponse, error)`
+- Function `*DisksClient.ListByResourceGroup` parameter(s) have been changed from `(string, *DisksListByResourceGroupOptions)` to `(string, *DisksClientListByResourceGroupOptions)`
+- Function `*DisksClient.ListByResourceGroup` return value(s) have been changed from `(*DisksListByResourceGroupPager)` to `(*DisksClientListByResourceGroupPager)`
+- Function `*VirtualMachinesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineUpdate, *VirtualMachinesBeginUpdateOptions)` to `(context.Context, string, string, VirtualMachineUpdate, *VirtualMachinesClientBeginUpdateOptions)`
+- Function `*VirtualMachinesClient.BeginUpdate` return value(s) have been changed from `(VirtualMachinesUpdatePollerResponse, error)` to `(VirtualMachinesClientUpdatePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginRestartOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginRestartOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRestart` return value(s) have been changed from `(VirtualMachineScaleSetVMsRestartPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientRestartPollerResponse, error)`
+- Function `*VirtualMachineImagesEdgeZoneClient.List` parameter(s) have been changed from `(context.Context, string, string, string, string, string, *VirtualMachineImagesEdgeZoneListOptions)` to `(context.Context, string, string, string, string, string, *VirtualMachineImagesEdgeZoneClientListOptions)`
+- Function `*VirtualMachineImagesEdgeZoneClient.List` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneListResponse, error)` to `(VirtualMachineImagesEdgeZoneClientListResponse, error)`
+- Function `*DisksClient.List` parameter(s) have been changed from `(*DisksListOptions)` to `(*DisksClientListOptions)`
+- Function `*DisksClient.List` return value(s) have been changed from `(*DisksListPager)` to `(*DisksClientListPager)`
+- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` parameter(s) have been changed from `(string, string, *VirtualMachineScaleSetsGetOSUpgradeHistoryOptions)` to `(string, string, *VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions)`
+- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` return value(s) have been changed from `(*VirtualMachineScaleSetsGetOSUpgradeHistoryPager)` to `(*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager)`
+- Function `*GalleryApplicationVersionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *GalleryApplicationVersionsGetOptions)` to `(context.Context, string, string, string, string, *GalleryApplicationVersionsClientGetOptions)`
+- Function `*GalleryApplicationVersionsClient.Get` return value(s) have been changed from `(GalleryApplicationVersionsGetResponse, error)` to `(GalleryApplicationVersionsClientGetResponse, error)`
+- Function `*VirtualMachineImagesEdgeZoneClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, string, string, *VirtualMachineImagesEdgeZoneGetOptions)` to `(context.Context, string, string, string, string, string, string, *VirtualMachineImagesEdgeZoneClientGetOptions)`
+- Function `*VirtualMachineImagesEdgeZoneClient.Get` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneGetResponse, error)` to `(VirtualMachineImagesEdgeZoneClientGetResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsGetOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientGetOptions)`
+- Function `*VirtualMachineScaleSetsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetsGetResponse, error)` to `(VirtualMachineScaleSetsClientGetResponse, error)`
+- Function `*LogAnalyticsClient.BeginExportThrottledRequests` parameter(s) have been changed from `(context.Context, string, ThrottledRequestsInput, *LogAnalyticsBeginExportThrottledRequestsOptions)` to `(context.Context, string, ThrottledRequestsInput, *LogAnalyticsClientBeginExportThrottledRequestsOptions)`
+- Function `*LogAnalyticsClient.BeginExportThrottledRequests` return value(s) have been changed from `(LogAnalyticsExportThrottledRequestsPollerResponse, error)` to `(LogAnalyticsClientExportThrottledRequestsPollerResponse, error)`
+- Function `*VirtualMachineImagesEdgeZoneClient.ListPublishers` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineImagesEdgeZoneListPublishersOptions)` to `(context.Context, string, string, *VirtualMachineImagesEdgeZoneClientListPublishersOptions)`
+- Function `*VirtualMachineImagesEdgeZoneClient.ListPublishers` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneListPublishersResponse, error)` to `(VirtualMachineImagesEdgeZoneClientListPublishersResponse, error)`
+- Function `*CloudServicesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, *CloudServicesClientBeginCreateOrUpdateOptions)`
+- Function `*CloudServicesClient.BeginCreateOrUpdate` return value(s) have been changed from `(CloudServicesCreateOrUpdatePollerResponse, error)` to `(CloudServicesClientCreateOrUpdatePollerResponse, error)`
+- Function `*CapacityReservationGroupsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, CapacityReservationGroup, *CapacityReservationGroupsCreateOrUpdateOptions)` to `(context.Context, string, string, CapacityReservationGroup, *CapacityReservationGroupsClientCreateOrUpdateOptions)`
+- Function `*CapacityReservationGroupsClient.CreateOrUpdate` return value(s) have been changed from `(CapacityReservationGroupsCreateOrUpdateResponse, error)` to `(CapacityReservationGroupsClientCreateOrUpdateResponse, error)`
+- Function `*VirtualMachinesClient.List` parameter(s) have been changed from `(string, *VirtualMachinesListOptions)` to `(string, *VirtualMachinesClientListOptions)`
+- Function `*VirtualMachinesClient.List` return value(s) have been changed from `(*VirtualMachinesListPager)` to `(*VirtualMachinesClientListPager)`
+- Function `*DiskAccessesClient.BeginDeleteAPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, *DiskAccessesBeginDeleteAPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, *DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions)`
+- Function `*DiskAccessesClient.BeginDeleteAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesDeleteAPrivateEndpointConnectionPollerResponse, error)` to `(DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse, error)`
+- Function `*LogAnalyticsClient.BeginExportRequestRateByInterval` parameter(s) have been changed from `(context.Context, string, RequestRateByIntervalInput, *LogAnalyticsBeginExportRequestRateByIntervalOptions)` to `(context.Context, string, RequestRateByIntervalInput, *LogAnalyticsClientBeginExportRequestRateByIntervalOptions)`
+- Function `*LogAnalyticsClient.BeginExportRequestRateByInterval` return value(s) have been changed from `(LogAnalyticsExportRequestRateByIntervalPollerResponse, error)` to `(LogAnalyticsClientExportRequestRateByIntervalPollerResponse, error)`
+- Function `*AvailabilitySetsClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *AvailabilitySetsDeleteOptions)` to `(context.Context, string, string, *AvailabilitySetsClientDeleteOptions)`
+- Function `*AvailabilitySetsClient.Delete` return value(s) have been changed from `(AvailabilitySetsDeleteResponse, error)` to `(AvailabilitySetsClientDeleteResponse, error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMExtensionsBeginDeleteOptions)` to `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsDeletePollerResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse, error)`
+- Function `*ImagesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, Image, *ImagesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, Image, *ImagesClientBeginCreateOrUpdateOptions)`
+- Function `*ImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(ImagesCreateOrUpdatePollerResponse, error)` to `(ImagesClientCreateOrUpdatePollerResponse, error)`
+- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *ProximityPlacementGroupsListByResourceGroupOptions)` to `(string, *ProximityPlacementGroupsClientListByResourceGroupOptions)`
+- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*ProximityPlacementGroupsListByResourceGroupPager)` to `(*ProximityPlacementGroupsClientListByResourceGroupPager)`
+- Function `*AvailabilitySetsClient.ListAvailableSizes` parameter(s) have been changed from `(context.Context, string, string, *AvailabilitySetsListAvailableSizesOptions)` to `(context.Context, string, string, *AvailabilitySetsClientListAvailableSizesOptions)`
+- Function `*AvailabilitySetsClient.ListAvailableSizes` return value(s) have been changed from `(AvailabilitySetsListAvailableSizesResponse, error)` to `(AvailabilitySetsClientListAvailableSizesResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginPowerOff` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginPowerOffOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginPowerOffOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachineScaleSetsPowerOffPollerResponse, error)` to `(VirtualMachineScaleSetsClientPowerOffPollerResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup` parameter(s) have been changed from `(context.Context, string, string, VMScaleSetConvertToSinglePlacementGroupInput, *VirtualMachineScaleSetsConvertToSinglePlacementGroupOptions)` to `(context.Context, string, string, VMScaleSetConvertToSinglePlacementGroupInput, *VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions)`
+- Function `*VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup` return value(s) have been changed from `(VirtualMachineScaleSetsConvertToSinglePlacementGroupResponse, error)` to `(VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse, error)`
+- Function `*CapacityReservationsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *CapacityReservationsGetOptions)` to `(context.Context, string, string, string, *CapacityReservationsClientGetOptions)`
+- Function `*CapacityReservationsClient.Get` return value(s) have been changed from `(CapacityReservationsGetResponse, error)` to `(CapacityReservationsClientGetResponse, error)`
+- Function `*SnapshotsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *SnapshotsGetOptions)` to `(context.Context, string, string, *SnapshotsClientGetOptions)`
+- Function `*SnapshotsClient.Get` return value(s) have been changed from `(SnapshotsGetResponse, error)` to `(SnapshotsClientGetResponse, error)`
+- Function `*GalleryImagesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, GalleryImage, *GalleryImagesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, GalleryImage, *GalleryImagesClientBeginCreateOrUpdateOptions)`
+- Function `*GalleryImagesClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryImagesCreateOrUpdatePollerResponse, error)` to `(GalleryImagesClientCreateOrUpdatePollerResponse, error)`
+- Function `*AvailabilitySetsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *AvailabilitySetsGetOptions)` to `(context.Context, string, string, *AvailabilitySetsClientGetOptions)`
+- Function `*AvailabilitySetsClient.Get` return value(s) have been changed from `(AvailabilitySetsGetResponse, error)` to `(AvailabilitySetsClientGetResponse, error)`
+- Function `*CloudServicesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginUpdateOptions)` to `(context.Context, string, string, *CloudServicesClientBeginUpdateOptions)`
+- Function `*CloudServicesClient.BeginUpdate` return value(s) have been changed from `(CloudServicesUpdatePollerResponse, error)` to `(CloudServicesClientUpdatePollerResponse, error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesBeginStartExtensionUpgradeOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePollerResponse, error)` to `(VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse, error)`
+- Function `*VirtualMachineExtensionsClient.List` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineExtensionsListOptions)` to `(context.Context, string, string, *VirtualMachineExtensionsClientListOptions)`
+- Function `*VirtualMachineExtensionsClient.List` return value(s) have been changed from `(VirtualMachineExtensionsListResponse, error)` to `(VirtualMachineExtensionsClientListResponse, error)`
+- Function `*GalleriesClient.List` parameter(s) have been changed from `(*GalleriesListOptions)` to `(*GalleriesClientListOptions)`
+- Function `*GalleriesClient.List` return value(s) have been changed from `(*GalleriesListPager)` to `(*GalleriesClientListPager)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginReimageOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginReimageOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginReimage` return value(s) have been changed from `(VirtualMachineScaleSetVMsReimagePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientReimagePollerResponse, error)`
+- Function `*ImagesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, ImageUpdate, *ImagesBeginUpdateOptions)` to `(context.Context, string, string, ImageUpdate, *ImagesClientBeginUpdateOptions)`
+- Function `*ImagesClient.BeginUpdate` return value(s) have been changed from `(ImagesUpdatePollerResponse, error)` to `(ImagesClientUpdatePollerResponse, error)`
+- Function `*VirtualMachinesClient.BeginInstallPatches` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineInstallPatchesParameters, *VirtualMachinesBeginInstallPatchesOptions)` to `(context.Context, string, string, VirtualMachineInstallPatchesParameters, *VirtualMachinesClientBeginInstallPatchesOptions)`
+- Function `*VirtualMachinesClient.BeginInstallPatches` return value(s) have been changed from `(VirtualMachinesInstallPatchesPollerResponse, error)` to `(VirtualMachinesClientInstallPatchesPollerResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk` parameter(s) have been changed from `(context.Context, string, string, int32, *VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions)` to `(context.Context, string, string, int32, *VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions)`
+- Function `*VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk` return value(s) have been changed from `(VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, error)` to `(VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.ListByLocation` parameter(s) have been changed from `(string, *VirtualMachineScaleSetsListByLocationOptions)` to `(string, *VirtualMachineScaleSetsClientListByLocationOptions)`
+- Function `*VirtualMachineScaleSetsClient.ListByLocation` return value(s) have been changed from `(*VirtualMachineScaleSetsListByLocationPager)` to `(*VirtualMachineScaleSetsClientListByLocationPager)`
+- Function `*VirtualMachineScaleSetVMsClient.List` parameter(s) have been changed from `(string, string, *VirtualMachineScaleSetVMsListOptions)` to `(string, string, *VirtualMachineScaleSetVMsClientListOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetVMsListPager)` to `(*VirtualMachineScaleSetVMsClientListPager)`
+- Function `*GalleryImagesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *GalleryImagesBeginDeleteOptions)` to `(context.Context, string, string, string, *GalleryImagesClientBeginDeleteOptions)`
+- Function `*GalleryImagesClient.BeginDelete` return value(s) have been changed from `(GalleryImagesDeletePollerResponse, error)` to `(GalleryImagesClientDeletePollerResponse, error)`
+- Function `*GalleryImageVersionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *GalleryImageVersionsGetOptions)` to `(context.Context, string, string, string, string, *GalleryImageVersionsClientGetOptions)`
+- Function `*GalleryImageVersionsClient.Get` return value(s) have been changed from `(GalleryImageVersionsGetResponse, error)` to `(GalleryImageVersionsClientGetResponse, error)`
+- Function `*GalleryApplicationsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, GalleryApplication, *GalleryApplicationsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, GalleryApplication, *GalleryApplicationsClientBeginCreateOrUpdateOptions)`
+- Function `*GalleryApplicationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryApplicationsCreateOrUpdatePollerResponse, error)` to `(GalleryApplicationsClientCreateOrUpdatePollerResponse, error)`
+- Function `*CloudServiceRoleInstancesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesBeginDeleteOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientBeginDeleteOptions)`
+- Function `*CloudServiceRoleInstancesClient.BeginDelete` return value(s) have been changed from `(CloudServiceRoleInstancesDeletePollerResponse, error)` to `(CloudServiceRoleInstancesClientDeletePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsGetOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientGetOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetVMsGetResponse, error)` to `(VirtualMachineScaleSetVMsClientGetResponse, error)`
+- Function `*GalleriesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *GalleriesGetOptions)` to `(context.Context, string, string, *GalleriesClientGetOptions)`
+- Function `*GalleriesClient.Get` return value(s) have been changed from `(GalleriesGetResponse, error)` to `(GalleriesClientGetResponse, error)`
+- Function `*VirtualMachineRunCommandsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineRunCommandsBeginDeleteOptions)` to `(context.Context, string, string, string, *VirtualMachineRunCommandsClientBeginDeleteOptions)`
+- Function `*VirtualMachineRunCommandsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineRunCommandsDeletePollerResponse, error)` to `(VirtualMachineRunCommandsClientDeletePollerResponse, error)`
+- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` parameter(s) have been changed from `(string, string, string, *GalleryApplicationVersionsListByGalleryApplicationOptions)` to `(string, string, string, *GalleryApplicationVersionsClientListByGalleryApplicationOptions)`
+- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` return value(s) have been changed from `(*GalleryApplicationVersionsListByGalleryApplicationPager)` to `(*GalleryApplicationVersionsClientListByGalleryApplicationPager)`
+- Function `*DedicatedHostGroupsClient.Update` parameter(s) have been changed from `(context.Context, string, string, DedicatedHostGroupUpdate, *DedicatedHostGroupsUpdateOptions)` to `(context.Context, string, string, DedicatedHostGroupUpdate, *DedicatedHostGroupsClientUpdateOptions)`
+- Function `*DedicatedHostGroupsClient.Update` return value(s) have been changed from `(DedicatedHostGroupsUpdateResponse, error)` to `(DedicatedHostGroupsClientUpdateResponse, error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.List` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMExtensionsListOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMExtensionsClientListOptions)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.List` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsListResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientListResponse, error)`
+- Function `*RestorePointsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *RestorePointsGetOptions)` to `(context.Context, string, string, string, *RestorePointsClientGetOptions)`
+- Function `*RestorePointsClient.Get` return value(s) have been changed from `(RestorePointsGetResponse, error)` to `(RestorePointsClientGetResponse, error)`
+- Function `*GalleriesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, Gallery, *GalleriesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, Gallery, *GalleriesClientBeginCreateOrUpdateOptions)`
+- Function `*GalleriesClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleriesCreateOrUpdatePollerResponse, error)` to `(GalleriesClientCreateOrUpdatePollerResponse, error)`
+- Function `*VirtualMachinesClient.BeginDeallocate` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginDeallocateOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginDeallocateOptions)`
+- Function `*VirtualMachinesClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachinesDeallocatePollerResponse, error)` to `(VirtualMachinesClientDeallocatePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, VirtualMachineRunCommand, *VirtualMachineScaleSetVMRunCommandsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, string, VirtualMachineRunCommand, *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse, error)`
+- Function `*VirtualMachinesClient.BeginStart` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginStartOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginStartOptions)`
+- Function `*VirtualMachinesClient.BeginStart` return value(s) have been changed from `(VirtualMachinesStartPollerResponse, error)` to `(VirtualMachinesClientStartPollerResponse, error)`
+- Function `*SharedGalleryImageVersionsClient.List` parameter(s) have been changed from `(string, string, string, *SharedGalleryImageVersionsListOptions)` to `(string, string, string, *SharedGalleryImageVersionsClientListOptions)`
+- Function `*SharedGalleryImageVersionsClient.List` return value(s) have been changed from `(*SharedGalleryImageVersionsListPager)` to `(*SharedGalleryImageVersionsClientListPager)`
+- Function `*DiskEncryptionSetsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskEncryptionSetUpdate, *DiskEncryptionSetsBeginUpdateOptions)` to `(context.Context, string, string, DiskEncryptionSetUpdate, *DiskEncryptionSetsClientBeginUpdateOptions)`
+- Function `*DiskEncryptionSetsClient.BeginUpdate` return value(s) have been changed from `(DiskEncryptionSetsUpdatePollerResponse, error)` to `(DiskEncryptionSetsClientUpdatePollerResponse, error)`
+- Function `*DiskEncryptionSetsClient.ListAssociatedResources` parameter(s) have been changed from `(string, string, *DiskEncryptionSetsListAssociatedResourcesOptions)` to `(string, string, *DiskEncryptionSetsClientListAssociatedResourcesOptions)`
+- Function `*DiskEncryptionSetsClient.ListAssociatedResources` return value(s) have been changed from `(*DiskEncryptionSetsListAssociatedResourcesPager)` to `(*DiskEncryptionSetsClientListAssociatedResourcesPager)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginDeleteOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginDeleteOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMsDeletePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientDeletePollerResponse, error)`
+- Function `*SnapshotsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, SnapshotUpdate, *SnapshotsBeginUpdateOptions)` to `(context.Context, string, string, SnapshotUpdate, *SnapshotsClientBeginUpdateOptions)`
+- Function `*SnapshotsClient.BeginUpdate` return value(s) have been changed from `(SnapshotsUpdatePollerResponse, error)` to `(SnapshotsClientUpdatePollerResponse, error)`
+- Function `*DedicatedHostsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, DedicatedHostUpdate, *DedicatedHostsBeginUpdateOptions)` to `(context.Context, string, string, string, DedicatedHostUpdate, *DedicatedHostsClientBeginUpdateOptions)`
+- Function `*DedicatedHostsClient.BeginUpdate` return value(s) have been changed from `(DedicatedHostsUpdatePollerResponse, error)` to `(DedicatedHostsClientUpdatePollerResponse, error)`
+- Function `*VirtualMachinesClient.InstanceView` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesInstanceViewOptions)` to `(context.Context, string, string, *VirtualMachinesClientInstanceViewOptions)`
+- Function `*VirtualMachinesClient.InstanceView` return value(s) have been changed from `(VirtualMachinesInstanceViewResponse, error)` to `(VirtualMachinesClientInstanceViewResponse, error)`
+- Function `*OperationsClient.List` parameter(s) have been changed from `(context.Context, *OperationsListOptions)` to `(context.Context, *OperationsClientListOptions)`
+- Function `*OperationsClient.List` return value(s) have been changed from `(OperationsListResponse, error)` to `(OperationsClientListResponse, error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, VirtualMachineScaleSetVMExtension, *VirtualMachineScaleSetVMExtensionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, string, VirtualMachineScaleSetVMExtension, *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse, error)`
+- Function `*GalleryImageVersionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, GalleryImageVersion, *GalleryImageVersionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, string, GalleryImageVersion, *GalleryImageVersionsClientBeginCreateOrUpdateOptions)`
+- Function `*GalleryImageVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryImageVersionsCreateOrUpdatePollerResponse, error)` to `(GalleryImageVersionsClientCreateOrUpdatePollerResponse, error)`
+- Function `*DiskAccessesClient.GetAPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, *DiskAccessesGetAPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, *DiskAccessesClientGetAPrivateEndpointConnectionOptions)`
+- Function `*DiskAccessesClient.GetAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesGetAPrivateEndpointConnectionResponse, error)` to `(DiskAccessesClientGetAPrivateEndpointConnectionResponse, error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMRunCommandsBeginDeleteOptions)` to `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsDeletePollerResponse, error)` to `(VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse, error)`
+- Function `*VirtualMachineRunCommandsClient.GetByVirtualMachine` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineRunCommandsGetByVirtualMachineOptions)` to `(context.Context, string, string, string, *VirtualMachineRunCommandsClientGetByVirtualMachineOptions)`
+- Function `*VirtualMachineRunCommandsClient.GetByVirtualMachine` return value(s) have been changed from `(VirtualMachineRunCommandsGetByVirtualMachineResponse, error)` to `(VirtualMachineRunCommandsClientGetByVirtualMachineResponse, error)`
+- Function `*SnapshotsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *SnapshotsBeginDeleteOptions)` to `(context.Context, string, string, *SnapshotsClientBeginDeleteOptions)`
+- Function `*SnapshotsClient.BeginDelete` return value(s) have been changed from `(SnapshotsDeletePollerResponse, error)` to `(SnapshotsClientDeletePollerResponse, error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginCancel` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesBeginCancelOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginCancel` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesCancelPollerResponse, error)` to `(VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse, error)`
+- Function `*VirtualMachinesClient.BeginPowerOff` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginPowerOffOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginPowerOffOptions)`
+- Function `*VirtualMachinesClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachinesPowerOffPollerResponse, error)` to `(VirtualMachinesClientPowerOffPollerResponse, error)`
+- Function `*VirtualMachineExtensionImagesClient.ListTypes` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineExtensionImagesListTypesOptions)` to `(context.Context, string, string, *VirtualMachineExtensionImagesClientListTypesOptions)`
+- Function `*VirtualMachineExtensionImagesClient.ListTypes` return value(s) have been changed from `(VirtualMachineExtensionImagesListTypesResponse, error)` to `(VirtualMachineExtensionImagesClientListTypesResponse, error)`
+- Function `*SSHPublicKeysClient.ListBySubscription` parameter(s) have been changed from `(*SSHPublicKeysListBySubscriptionOptions)` to `(*SSHPublicKeysClientListBySubscriptionOptions)`
+- Function `*SSHPublicKeysClient.ListBySubscription` return value(s) have been changed from `(*SSHPublicKeysListBySubscriptionPager)` to `(*SSHPublicKeysClientListBySubscriptionPager)`
+- Function `*VirtualMachineImagesClient.ListSKUs` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineImagesListSKUsOptions)` to `(context.Context, string, string, string, *VirtualMachineImagesClientListSKUsOptions)`
+- Function `*VirtualMachineImagesClient.ListSKUs` return value(s) have been changed from `(VirtualMachineImagesListSKUsResponse, error)` to `(VirtualMachineImagesClientListSKUsResponse, error)`
+- Function `*RestorePointCollectionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *RestorePointCollectionsBeginDeleteOptions)` to `(context.Context, string, string, *RestorePointCollectionsClientBeginDeleteOptions)`
+- Function `*RestorePointCollectionsClient.BeginDelete` return value(s) have been changed from `(RestorePointCollectionsDeletePollerResponse, error)` to `(RestorePointCollectionsClientDeletePollerResponse, error)`
+- Function `*VirtualMachineExtensionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineExtensionUpdate, *VirtualMachineExtensionsBeginUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineExtensionUpdate, *VirtualMachineExtensionsClientBeginUpdateOptions)`
+- Function `*VirtualMachineExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineExtensionsUpdatePollerResponse, error)` to `(VirtualMachineExtensionsClientUpdatePollerResponse, error)`
+- Function `*DisksClient.BeginGrantAccess` parameter(s) have been changed from `(context.Context, string, string, GrantAccessData, *DisksBeginGrantAccessOptions)` to `(context.Context, string, string, GrantAccessData, *DisksClientBeginGrantAccessOptions)`
+- Function `*DisksClient.BeginGrantAccess` return value(s) have been changed from `(DisksGrantAccessPollerResponse, error)` to `(DisksClientGrantAccessPollerResponse, error)`
+- Function `*SharedGalleriesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *SharedGalleriesGetOptions)` to `(context.Context, string, string, *SharedGalleriesClientGetOptions)`
+- Function `*SharedGalleriesClient.Get` return value(s) have been changed from `(SharedGalleriesGetResponse, error)` to `(SharedGalleriesClientGetResponse, error)`
+- Function `*VirtualMachineExtensionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineExtensionsBeginDeleteOptions)` to `(context.Context, string, string, string, *VirtualMachineExtensionsClientBeginDeleteOptions)`
+- Function `*VirtualMachineExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineExtensionsDeletePollerResponse, error)` to `(VirtualMachineExtensionsClientDeletePollerResponse, error)`
+- Function `*CloudServiceRoleInstancesClient.GetInstanceView` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesGetInstanceViewOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientGetInstanceViewOptions)`
+- Function `*CloudServiceRoleInstancesClient.GetInstanceView` return value(s) have been changed from `(CloudServiceRoleInstancesGetInstanceViewResponse, error)` to `(CloudServiceRoleInstancesClientGetInstanceViewResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.List` parameter(s) have been changed from `(string, *VirtualMachineScaleSetsListOptions)` to `(string, *VirtualMachineScaleSetsClientListOptions)`
+- Function `*VirtualMachineScaleSetsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetsListPager)` to `(*VirtualMachineScaleSetsClientListPager)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, VirtualMachineRunCommandUpdate, *VirtualMachineScaleSetVMRunCommandsBeginUpdateOptions)` to `(context.Context, string, string, string, string, VirtualMachineRunCommandUpdate, *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse, error)`
+- Function `*DedicatedHostGroupsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *DedicatedHostGroupsListByResourceGroupOptions)` to `(string, *DedicatedHostGroupsClientListByResourceGroupOptions)`
+- Function `*DedicatedHostGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*DedicatedHostGroupsListByResourceGroupPager)` to `(*DedicatedHostGroupsClientListByResourceGroupPager)`
+- Function `*CommunityGalleriesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *CommunityGalleriesGetOptions)` to `(context.Context, string, string, *CommunityGalleriesClientGetOptions)`
+- Function `*CommunityGalleriesClient.Get` return value(s) have been changed from `(CommunityGalleriesGetResponse, error)` to `(CommunityGalleriesClientGetResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRunCommand` parameter(s) have been changed from `(context.Context, string, string, string, RunCommandInput, *VirtualMachineScaleSetVMsBeginRunCommandOptions)` to `(context.Context, string, string, string, RunCommandInput, *VirtualMachineScaleSetVMsClientBeginRunCommandOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRunCommand` return value(s) have been changed from `(VirtualMachineScaleSetVMsRunCommandPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientRunCommandPollerResponse, error)`
+- Function `*CapacityReservationGroupsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *CapacityReservationGroupsGetOptions)` to `(context.Context, string, string, *CapacityReservationGroupsClientGetOptions)`
+- Function `*CapacityReservationGroupsClient.Get` return value(s) have been changed from `(CapacityReservationGroupsGetResponse, error)` to `(CapacityReservationGroupsClientGetResponse, error)`
+- Function `*AvailabilitySetsClient.ListBySubscription` parameter(s) have been changed from `(*AvailabilitySetsListBySubscriptionOptions)` to `(*AvailabilitySetsClientListBySubscriptionOptions)`
+- Function `*AvailabilitySetsClient.ListBySubscription` return value(s) have been changed from `(*AvailabilitySetsListBySubscriptionPager)` to `(*AvailabilitySetsClientListBySubscriptionPager)`
+- Function `*VirtualMachineScaleSetsClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginReimageOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginReimageOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginReimage` return value(s) have been changed from `(VirtualMachineScaleSetsReimagePollerResponse, error)` to `(VirtualMachineScaleSetsClientReimagePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRedeploy` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginRedeployOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginRedeployOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachineScaleSetVMsRedeployPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientRedeployPollerResponse, error)`
+- Function `*VirtualMachineExtensionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineExtension, *VirtualMachineExtensionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineExtension, *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions)`
+- Function `*VirtualMachineExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineExtensionsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineExtensionsClientCreateOrUpdatePollerResponse, error)`
+- Function `*RestorePointCollectionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *RestorePointCollectionsGetOptions)` to `(context.Context, string, string, *RestorePointCollectionsClientGetOptions)`
+- Function `*RestorePointCollectionsClient.Get` return value(s) have been changed from `(RestorePointCollectionsGetResponse, error)` to `(RestorePointCollectionsClientGetResponse, error)`
+- Function `*VirtualMachinesClient.BeginAssessPatches` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginAssessPatchesOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginAssessPatchesOptions)`
+- Function `*VirtualMachinesClient.BeginAssessPatches` return value(s) have been changed from `(VirtualMachinesAssessPatchesPollerResponse, error)` to `(VirtualMachinesClientAssessPatchesPollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` parameter(s) have been changed from `(string, string, string, *VirtualMachineScaleSetVMRunCommandsListOptions)` to `(string, string, string, *VirtualMachineScaleSetVMRunCommandsClientListOptions)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetVMRunCommandsListPager)` to `(*VirtualMachineScaleSetVMRunCommandsClientListPager)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineScaleSetExtension, *VirtualMachineScaleSetExtensionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineScaleSetExtension, *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse, error)`
+- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` parameter(s) have been changed from `(string, *CloudServiceOperatingSystemsListOSVersionsOptions)` to `(string, *CloudServiceOperatingSystemsClientListOSVersionsOptions)`
+- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` return value(s) have been changed from `(*CloudServiceOperatingSystemsListOSVersionsPager)` to `(*CloudServiceOperatingSystemsClientListOSVersionsPager)`
+- Function `*VirtualMachinesClient.BeginPerformMaintenance` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginPerformMaintenanceOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginPerformMaintenanceOptions)`
+- Function `*VirtualMachinesClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachinesPerformMaintenancePollerResponse, error)` to `(VirtualMachinesClientPerformMaintenancePollerResponse, error)`
+- Function `*VirtualMachineScaleSetExtensionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetExtensionsGetOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetExtensionsClientGetOptions)`
+- Function `*VirtualMachineScaleSetExtensionsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsGetResponse, error)` to `(VirtualMachineScaleSetExtensionsClientGetResponse, error)`
+- Function `*CapacityReservationsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *CapacityReservationsBeginDeleteOptions)` to `(context.Context, string, string, string, *CapacityReservationsClientBeginDeleteOptions)`
+- Function `*CapacityReservationsClient.BeginDelete` return value(s) have been changed from `(CapacityReservationsDeletePollerResponse, error)` to `(CapacityReservationsClientDeletePollerResponse, error)`
+- Function `*GalleryApplicationsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, GalleryApplicationUpdate, *GalleryApplicationsBeginUpdateOptions)` to `(context.Context, string, string, string, GalleryApplicationUpdate, *GalleryApplicationsClientBeginUpdateOptions)`
+- Function `*GalleryApplicationsClient.BeginUpdate` return value(s) have been changed from `(GalleryApplicationsUpdatePollerResponse, error)` to `(GalleryApplicationsClientUpdatePollerResponse, error)`
+- Function `*VirtualMachineExtensionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineExtensionsGetOptions)` to `(context.Context, string, string, string, *VirtualMachineExtensionsClientGetOptions)`
+- Function `*VirtualMachineExtensionsClient.Get` return value(s) have been changed from `(VirtualMachineExtensionsGetResponse, error)` to `(VirtualMachineExtensionsClientGetResponse, error)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMRunCommandsGetOptions)` to `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMRunCommandsClientGetOptions)`
+- Function `*VirtualMachineScaleSetVMRunCommandsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetVMRunCommandsGetResponse, error)` to `(VirtualMachineScaleSetVMRunCommandsClientGetResponse, error)`
+- Function `*DiskAccessesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskAccess, *DiskAccessesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, DiskAccess, *DiskAccessesClientBeginCreateOrUpdateOptions)`
+- Function `*DiskAccessesClient.BeginCreateOrUpdate` return value(s) have been changed from `(DiskAccessesCreateOrUpdatePollerResponse, error)` to `(DiskAccessesClientCreateOrUpdatePollerResponse, error)`
+- Function `*SSHPublicKeysClient.GenerateKeyPair` parameter(s) have been changed from `(context.Context, string, string, *SSHPublicKeysGenerateKeyPairOptions)` to `(context.Context, string, string, *SSHPublicKeysClientGenerateKeyPairOptions)`
+- Function `*SSHPublicKeysClient.GenerateKeyPair` return value(s) have been changed from `(SSHPublicKeysGenerateKeyPairResponse, error)` to `(SSHPublicKeysClientGenerateKeyPairResponse, error)`
+- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` parameter(s) have been changed from `(string, string, *VirtualMachineRunCommandsListByVirtualMachineOptions)` to `(string, string, *VirtualMachineRunCommandsClientListByVirtualMachineOptions)`
+- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` return value(s) have been changed from `(*VirtualMachineRunCommandsListByVirtualMachinePager)` to `(*VirtualMachineRunCommandsClientListByVirtualMachinePager)`
+- Function `*VirtualMachinesClient.ListAll` parameter(s) have been changed from `(*VirtualMachinesListAllOptions)` to `(*VirtualMachinesClientListAllOptions)`
+- Function `*VirtualMachinesClient.ListAll` return value(s) have been changed from `(*VirtualMachinesListAllPager)` to `(*VirtualMachinesClientListAllPager)`
+- Function `*SSHPublicKeysClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *SSHPublicKeysDeleteOptions)` to `(context.Context, string, string, *SSHPublicKeysClientDeleteOptions)`
+- Function `*SSHPublicKeysClient.Delete` return value(s) have been changed from `(SSHPublicKeysDeleteResponse, error)` to `(SSHPublicKeysClientDeleteResponse, error)`
+- Function `*SnapshotsClient.List` parameter(s) have been changed from `(*SnapshotsListOptions)` to `(*SnapshotsClientListOptions)`
+- Function `*SnapshotsClient.List` return value(s) have been changed from `(*SnapshotsListPager)` to `(*SnapshotsClientListPager)`
+- Function `*SnapshotsClient.BeginRevokeAccess` parameter(s) have been changed from `(context.Context, string, string, *SnapshotsBeginRevokeAccessOptions)` to `(context.Context, string, string, *SnapshotsClientBeginRevokeAccessOptions)`
+- Function `*SnapshotsClient.BeginRevokeAccess` return value(s) have been changed from `(SnapshotsRevokeAccessPollerResponse, error)` to `(SnapshotsClientRevokeAccessPollerResponse, error)`
+- Function `*CapacityReservationsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, CapacityReservationUpdate, *CapacityReservationsBeginUpdateOptions)` to `(context.Context, string, string, string, CapacityReservationUpdate, *CapacityReservationsClientBeginUpdateOptions)`
+- Function `*CapacityReservationsClient.BeginUpdate` return value(s) have been changed from `(CapacityReservationsUpdatePollerResponse, error)` to `(CapacityReservationsClientUpdatePollerResponse, error)`
+- Function `*CloudServiceRolesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRolesGetOptions)` to `(context.Context, string, string, string, *CloudServiceRolesClientGetOptions)`
+- Function `*CloudServiceRolesClient.Get` return value(s) have been changed from `(CloudServiceRolesGetResponse, error)` to `(CloudServiceRolesClientGetResponse, error)`
+- Function `*ImagesClient.List` parameter(s) have been changed from `(*ImagesListOptions)` to `(*ImagesClientListOptions)`
+- Function `*ImagesClient.List` return value(s) have been changed from `(*ImagesListPager)` to `(*ImagesClientListPager)`
+- Function `*RestorePointCollectionsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, RestorePointCollection, *RestorePointCollectionsCreateOrUpdateOptions)` to `(context.Context, string, string, RestorePointCollection, *RestorePointCollectionsClientCreateOrUpdateOptions)`
+- Function `*RestorePointCollectionsClient.CreateOrUpdate` return value(s) have been changed from `(RestorePointCollectionsCreateOrUpdateResponse, error)` to `(RestorePointCollectionsClientCreateOrUpdateResponse, error)`
+- Function `*ProximityPlacementGroupsClient.Update` parameter(s) have been changed from `(context.Context, string, string, ProximityPlacementGroupUpdate, *ProximityPlacementGroupsUpdateOptions)` to `(context.Context, string, string, ProximityPlacementGroupUpdate, *ProximityPlacementGroupsClientUpdateOptions)`
+- Function `*ProximityPlacementGroupsClient.Update` return value(s) have been changed from `(ProximityPlacementGroupsUpdateResponse, error)` to `(ProximityPlacementGroupsClientUpdateResponse, error)`
+- Function `*RestorePointsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *RestorePointsBeginDeleteOptions)` to `(context.Context, string, string, string, *RestorePointsClientBeginDeleteOptions)`
+- Function `*RestorePointsClient.BeginDelete` return value(s) have been changed from `(RestorePointsDeletePollerResponse, error)` to `(RestorePointsClientDeletePollerResponse, error)`
+- Function `*DiskAccessesClient.ListByResourceGroup` parameter(s) have been changed from `(string, *DiskAccessesListByResourceGroupOptions)` to `(string, *DiskAccessesClientListByResourceGroupOptions)`
+- Function `*DiskAccessesClient.ListByResourceGroup` return value(s) have been changed from `(*DiskAccessesListByResourceGroupPager)` to `(*DiskAccessesClientListByResourceGroupPager)`
+- Function `*GallerySharingProfileClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, SharingUpdate, *GallerySharingProfileBeginUpdateOptions)` to `(context.Context, string, string, SharingUpdate, *GallerySharingProfileClientBeginUpdateOptions)`
+- Function `*GallerySharingProfileClient.BeginUpdate` return value(s) have been changed from `(GallerySharingProfileUpdatePollerResponse, error)` to `(GallerySharingProfileClientUpdatePollerResponse, error)`
+- Function `*GalleryApplicationsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *GalleryApplicationsBeginDeleteOptions)` to `(context.Context, string, string, string, *GalleryApplicationsClientBeginDeleteOptions)`
+- Function `*GalleryApplicationsClient.BeginDelete` return value(s) have been changed from `(GalleryApplicationsDeletePollerResponse, error)` to `(GalleryApplicationsClientDeletePollerResponse, error)`
+- Function `*ProximityPlacementGroupsClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *ProximityPlacementGroupsDeleteOptions)` to `(context.Context, string, string, *ProximityPlacementGroupsClientDeleteOptions)`
+- Function `*ProximityPlacementGroupsClient.Delete` return value(s) have been changed from `(ProximityPlacementGroupsDeleteResponse, error)` to `(ProximityPlacementGroupsClientDeleteResponse, error)`
+- Function `*DiskAccessesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskAccessUpdate, *DiskAccessesBeginUpdateOptions)` to `(context.Context, string, string, DiskAccessUpdate, *DiskAccessesClientBeginUpdateOptions)`
+- Function `*DiskAccessesClient.BeginUpdate` return value(s) have been changed from `(DiskAccessesUpdatePollerResponse, error)` to `(DiskAccessesClientUpdatePollerResponse, error)`
+- Function `*DedicatedHostGroupsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, DedicatedHostGroup, *DedicatedHostGroupsCreateOrUpdateOptions)` to `(context.Context, string, string, DedicatedHostGroup, *DedicatedHostGroupsClientCreateOrUpdateOptions)`
+- Function `*DedicatedHostGroupsClient.CreateOrUpdate` return value(s) have been changed from `(DedicatedHostGroupsCreateOrUpdateResponse, error)` to `(DedicatedHostGroupsClientCreateOrUpdateResponse, error)`
+- Function `*RestorePointCollectionsClient.ListAll` parameter(s) have been changed from `(*RestorePointCollectionsListAllOptions)` to `(*RestorePointCollectionsClientListAllOptions)`
+- Function `*RestorePointCollectionsClient.ListAll` return value(s) have been changed from `(*RestorePointCollectionsListAllPager)` to `(*RestorePointCollectionsClientListAllPager)`
+- Function `*VirtualMachineScaleSetExtensionsClient.List` parameter(s) have been changed from `(string, string, *VirtualMachineScaleSetExtensionsListOptions)` to `(string, string, *VirtualMachineScaleSetExtensionsClientListOptions)`
+- Function `*VirtualMachineScaleSetExtensionsClient.List` return value(s) have been changed from `(*VirtualMachineScaleSetExtensionsListPager)` to `(*VirtualMachineScaleSetExtensionsClientListPager)`
+- Function `*CloudServicesClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginReimageOptions)` to `(context.Context, string, string, *CloudServicesClientBeginReimageOptions)`
+- Function `*CloudServicesClient.BeginReimage` return value(s) have been changed from `(CloudServicesReimagePollerResponse, error)` to `(CloudServicesClientReimagePollerResponse, error)`
+- Function `*GalleryApplicationsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *GalleryApplicationsGetOptions)` to `(context.Context, string, string, string, *GalleryApplicationsClientGetOptions)`
+- Function `*GalleryApplicationsClient.Get` return value(s) have been changed from `(GalleryApplicationsGetResponse, error)` to `(GalleryApplicationsClientGetResponse, error)`
+- Function `*RestorePointsClient.BeginCreate` parameter(s) have been changed from `(context.Context, string, string, string, RestorePoint, *RestorePointsBeginCreateOptions)` to `(context.Context, string, string, string, RestorePoint, *RestorePointsClientBeginCreateOptions)`
+- Function `*RestorePointsClient.BeginCreate` return value(s) have been changed from `(RestorePointsCreatePollerResponse, error)` to `(RestorePointsClientCreatePollerResponse, error)`
+- Function `*DiskRestorePointClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *DiskRestorePointGetOptions)` to `(context.Context, string, string, string, string, *DiskRestorePointClientGetOptions)`
+- Function `*DiskRestorePointClient.Get` return value(s) have been changed from `(DiskRestorePointGetResponse, error)` to `(DiskRestorePointClientGetResponse, error)`
+- Function `*GalleryApplicationsClient.ListByGallery` parameter(s) have been changed from `(string, string, *GalleryApplicationsListByGalleryOptions)` to `(string, string, *GalleryApplicationsClientListByGalleryOptions)`
+- Function `*GalleryApplicationsClient.ListByGallery` return value(s) have been changed from `(*GalleryApplicationsListByGalleryPager)` to `(*GalleryApplicationsClientListByGalleryPager)`
+- Function `*DedicatedHostsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *DedicatedHostsBeginDeleteOptions)` to `(context.Context, string, string, string, *DedicatedHostsClientBeginDeleteOptions)`
+- Function `*DedicatedHostsClient.BeginDelete` return value(s) have been changed from `(DedicatedHostsDeletePollerResponse, error)` to `(DedicatedHostsClientDeletePollerResponse, error)`
+- Function `*VirtualMachineImagesEdgeZoneClient.ListOffers` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineImagesEdgeZoneListOffersOptions)` to `(context.Context, string, string, string, *VirtualMachineImagesEdgeZoneClientListOffersOptions)`
+- Function `*VirtualMachineImagesEdgeZoneClient.ListOffers` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneListOffersResponse, error)` to `(VirtualMachineImagesEdgeZoneClientListOffersResponse, error)`
+- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` parameter(s) have been changed from `(string, string, *CloudServicesUpdateDomainListUpdateDomainsOptions)` to `(string, string, *CloudServicesUpdateDomainClientListUpdateDomainsOptions)`
+- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` return value(s) have been changed from `(*CloudServicesUpdateDomainListUpdateDomainsPager)` to `(*CloudServicesUpdateDomainClientListUpdateDomainsPager)`
+- Function `*ResourceSKUsClient.List` parameter(s) have been changed from `(*ResourceSKUsListOptions)` to `(*ResourceSKUsClientListOptions)`
+- Function `*ResourceSKUsClient.List` return value(s) have been changed from `(*ResourceSKUsListPager)` to `(*ResourceSKUsClientListPager)`
+- Function `*VirtualMachineScaleSetVMsClient.GetInstanceView` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsGetInstanceViewOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientGetInstanceViewOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.GetInstanceView` return value(s) have been changed from `(VirtualMachineScaleSetVMsGetInstanceViewResponse, error)` to `(VirtualMachineScaleSetVMsClientGetInstanceViewResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.ListSKUs` parameter(s) have been changed from `(string, string, *VirtualMachineScaleSetsListSKUsOptions)` to `(string, string, *VirtualMachineScaleSetsClientListSKUsOptions)`
+- Function `*VirtualMachineScaleSetsClient.ListSKUs` return value(s) have been changed from `(*VirtualMachineScaleSetsListSKUsPager)` to `(*VirtualMachineScaleSetsClientListSKUsPager)`
+- Function `*SnapshotsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *SnapshotsListByResourceGroupOptions)` to `(string, *SnapshotsClientListByResourceGroupOptions)`
+- Function `*SnapshotsClient.ListByResourceGroup` return value(s) have been changed from `(*SnapshotsListByResourceGroupPager)` to `(*SnapshotsClientListByResourceGroupPager)`
+- Function `*VirtualMachineScaleSetsClient.BeginUpdateInstances` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineScaleSetVMInstanceRequiredIDs, *VirtualMachineScaleSetsBeginUpdateInstancesOptions)` to `(context.Context, string, string, VirtualMachineScaleSetVMInstanceRequiredIDs, *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginUpdateInstances` return value(s) have been changed from `(VirtualMachineScaleSetsUpdateInstancesPollerResponse, error)` to `(VirtualMachineScaleSetsClientUpdateInstancesPollerResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginPerformMaintenance` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginPerformMaintenanceOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachineScaleSetsPerformMaintenancePollerResponse, error)` to `(VirtualMachineScaleSetsClientPerformMaintenancePollerResponse, error)`
+- Function `*DiskAccessesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *DiskAccessesGetOptions)` to `(context.Context, string, string, *DiskAccessesClientGetOptions)`
+- Function `*DiskAccessesClient.Get` return value(s) have been changed from `(DiskAccessesGetResponse, error)` to `(DiskAccessesClientGetResponse, error)`
+- Function `*CapacityReservationGroupsClient.Update` parameter(s) have been changed from `(context.Context, string, string, CapacityReservationGroupUpdate, *CapacityReservationGroupsUpdateOptions)` to `(context.Context, string, string, CapacityReservationGroupUpdate, *CapacityReservationGroupsClientUpdateOptions)`
+- Function `*CapacityReservationGroupsClient.Update` return value(s) have been changed from `(CapacityReservationGroupsUpdateResponse, error)` to `(CapacityReservationGroupsClientUpdateResponse, error)`
+- Function `*CloudServicesClient.GetInstanceView` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesGetInstanceViewOptions)` to `(context.Context, string, string, *CloudServicesClientGetInstanceViewOptions)`
+- Function `*CloudServicesClient.GetInstanceView` return value(s) have been changed from `(CloudServicesGetInstanceViewResponse, error)` to `(CloudServicesClientGetInstanceViewResponse, error)`
+- Function `*VirtualMachinesClient.BeginRedeploy` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginRedeployOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginRedeployOptions)`
+- Function `*VirtualMachinesClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachinesRedeployPollerResponse, error)` to `(VirtualMachinesClientRedeployPollerResponse, error)`
+- Function `*SSHPublicKeysClient.ListByResourceGroup` parameter(s) have been changed from `(string, *SSHPublicKeysListByResourceGroupOptions)` to `(string, *SSHPublicKeysClientListByResourceGroupOptions)`
+- Function `*SSHPublicKeysClient.ListByResourceGroup` return value(s) have been changed from `(*SSHPublicKeysListByResourceGroupPager)` to `(*SSHPublicKeysClientListByResourceGroupPager)`
+- Function `*VirtualMachineImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, string, *VirtualMachineImagesGetOptions)` to `(context.Context, string, string, string, string, string, *VirtualMachineImagesClientGetOptions)`
+- Function `*VirtualMachineImagesClient.Get` return value(s) have been changed from `(VirtualMachineImagesGetResponse, error)` to `(VirtualMachineImagesClientGetResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginDeleteInstances` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineScaleSetVMInstanceRequiredIDs, *VirtualMachineScaleSetsBeginDeleteInstancesOptions)` to `(context.Context, string, string, VirtualMachineScaleSetVMInstanceRequiredIDs, *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginDeleteInstances` return value(s) have been changed from `(VirtualMachineScaleSetsDeleteInstancesPollerResponse, error)` to `(VirtualMachineScaleSetsClientDeleteInstancesPollerResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginStart` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginStartOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginStartOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginStart` return value(s) have been changed from `(VirtualMachineScaleSetsStartPollerResponse, error)` to `(VirtualMachineScaleSetsClientStartPollerResponse, error)`
+- Function `*GalleryImagesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, GalleryImageUpdate, *GalleryImagesBeginUpdateOptions)` to `(context.Context, string, string, string, GalleryImageUpdate, *GalleryImagesClientBeginUpdateOptions)`
+- Function `*GalleryImagesClient.BeginUpdate` return value(s) have been changed from `(GalleryImagesUpdatePollerResponse, error)` to `(GalleryImagesClientUpdatePollerResponse, error)`
+- Function `*DiskRestorePointClient.BeginRevokeAccess` parameter(s) have been changed from `(context.Context, string, string, string, string, *DiskRestorePointBeginRevokeAccessOptions)` to `(context.Context, string, string, string, string, *DiskRestorePointClientBeginRevokeAccessOptions)`
+- Function `*DiskRestorePointClient.BeginRevokeAccess` return value(s) have been changed from `(DiskRestorePointRevokeAccessPollerResponse, error)` to `(DiskRestorePointClientRevokeAccessPollerResponse, error)`
+- Function `*VirtualMachineExtensionImagesClient.ListVersions` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineExtensionImagesListVersionsOptions)` to `(context.Context, string, string, string, *VirtualMachineExtensionImagesClientListVersionsOptions)`
+- Function `*VirtualMachineExtensionImagesClient.ListVersions` return value(s) have been changed from `(VirtualMachineExtensionImagesListVersionsResponse, error)` to `(VirtualMachineExtensionImagesClientListVersionsResponse, error)`
+- Function `*DiskEncryptionSetsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *DiskEncryptionSetsGetOptions)` to `(context.Context, string, string, *DiskEncryptionSetsClientGetOptions)`
+- Function `*DiskEncryptionSetsClient.Get` return value(s) have been changed from `(DiskEncryptionSetsGetResponse, error)` to `(DiskEncryptionSetsClientGetResponse, error)`
+- Function `*GalleriesClient.ListByResourceGroup` parameter(s) have been changed from `(string, *GalleriesListByResourceGroupOptions)` to `(string, *GalleriesClientListByResourceGroupOptions)`
+- Function `*GalleriesClient.ListByResourceGroup` return value(s) have been changed from `(*GalleriesListByResourceGroupPager)` to `(*GalleriesClientListByResourceGroupPager)`
+- Function `*VirtualMachineRunCommandsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineRunCommandsGetOptions)` to `(context.Context, string, string, *VirtualMachineRunCommandsClientGetOptions)`
+- Function `*VirtualMachineRunCommandsClient.Get` return value(s) have been changed from `(VirtualMachineRunCommandsGetResponse, error)` to `(VirtualMachineRunCommandsClientGetResponse, error)`
+- Function `*GalleriesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *GalleriesBeginDeleteOptions)` to `(context.Context, string, string, *GalleriesClientBeginDeleteOptions)`
+- Function `*GalleriesClient.BeginDelete` return value(s) have been changed from `(GalleriesDeletePollerResponse, error)` to `(GalleriesClientDeletePollerResponse, error)`
+- Function `*SnapshotsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, Snapshot, *SnapshotsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, Snapshot, *SnapshotsClientBeginCreateOrUpdateOptions)`
+- Function `*SnapshotsClient.BeginCreateOrUpdate` return value(s) have been changed from `(SnapshotsCreateOrUpdatePollerResponse, error)` to `(SnapshotsClientCreateOrUpdatePollerResponse, error)`
+- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` parameter(s) have been changed from `(string, string, *CapacityReservationsListByCapacityReservationGroupOptions)` to `(string, string, *CapacityReservationsClientListByCapacityReservationGroupOptions)`
+- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` return value(s) have been changed from `(*CapacityReservationsListByCapacityReservationGroupPager)` to `(*CapacityReservationsClientListByCapacityReservationGroupPager)`
+- Function `*VirtualMachinesClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginReimageOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginReimageOptions)`
+- Function `*VirtualMachinesClient.BeginReimage` return value(s) have been changed from `(VirtualMachinesReimagePollerResponse, error)` to `(VirtualMachinesClientReimagePollerResponse, error)`
+- Function `*VirtualMachineExtensionImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineExtensionImagesGetOptions)` to `(context.Context, string, string, string, string, *VirtualMachineExtensionImagesClientGetOptions)`
+- Function `*VirtualMachineExtensionImagesClient.Get` return value(s) have been changed from `(VirtualMachineExtensionImagesGetResponse, error)` to `(VirtualMachineExtensionImagesClientGetResponse, error)`
+- Function `*CloudServiceRoleInstancesClient.BeginReimage` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesBeginReimageOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientBeginReimageOptions)`
+- Function `*CloudServiceRoleInstancesClient.BeginReimage` return value(s) have been changed from `(CloudServiceRoleInstancesReimagePollerResponse, error)` to `(CloudServiceRoleInstancesClientReimagePollerResponse, error)`
+- Function `*ImagesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *ImagesBeginDeleteOptions)` to `(context.Context, string, string, *ImagesClientBeginDeleteOptions)`
+- Function `*ImagesClient.BeginDelete` return value(s) have been changed from `(ImagesDeletePollerResponse, error)` to `(ImagesClientDeletePollerResponse, error)`
+- Function `*GalleryImagesClient.ListByGallery` parameter(s) have been changed from `(string, string, *GalleryImagesListByGalleryOptions)` to `(string, string, *GalleryImagesClientListByGalleryOptions)`
+- Function `*GalleryImagesClient.ListByGallery` return value(s) have been changed from `(*GalleryImagesListByGalleryPager)` to `(*GalleryImagesClientListByGalleryPager)`
+- Function `*VirtualMachineScaleSetsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineScaleSet, *VirtualMachineScaleSetsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, VirtualMachineScaleSet, *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineScaleSetsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse, error)`
+- Function `*DiskEncryptionSetsClient.List` parameter(s) have been changed from `(*DiskEncryptionSetsListOptions)` to `(*DiskEncryptionSetsClientListOptions)`
+- Function `*DiskEncryptionSetsClient.List` return value(s) have been changed from `(*DiskEncryptionSetsListPager)` to `(*DiskEncryptionSetsClientListPager)`
+- Function `*VirtualMachineScaleSetsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, VirtualMachineScaleSetUpdate, *VirtualMachineScaleSetsBeginUpdateOptions)` to `(context.Context, string, string, VirtualMachineScaleSetUpdate, *VirtualMachineScaleSetsClientBeginUpdateOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetsClientUpdatePollerResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginReimageAll` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginReimageAllOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginReimageAllOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginReimageAll` return value(s) have been changed from `(VirtualMachineScaleSetsReimageAllPollerResponse, error)` to `(VirtualMachineScaleSetsClientReimageAllPollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginStart` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginStartOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginStartOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginStart` return value(s) have been changed from `(VirtualMachineScaleSetVMsStartPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientStartPollerResponse, error)`
+- Function `*CloudServicesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginDeleteOptions)` to `(context.Context, string, string, *CloudServicesClientBeginDeleteOptions)`
+- Function `*CloudServicesClient.BeginDelete` return value(s) have been changed from `(CloudServicesDeletePollerResponse, error)` to `(CloudServicesClientDeletePollerResponse, error)`
+- Function `*CommunityGalleryImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *CommunityGalleryImagesGetOptions)` to `(context.Context, string, string, string, *CommunityGalleryImagesClientGetOptions)`
+- Function `*CommunityGalleryImagesClient.Get` return value(s) have been changed from `(CommunityGalleryImagesGetResponse, error)` to `(CommunityGalleryImagesClientGetResponse, error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMExtensionsGetOptions)` to `(context.Context, string, string, string, string, *VirtualMachineScaleSetVMExtensionsClientGetOptions)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.Get` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsGetResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientGetResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.SimulateEviction` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsSimulateEvictionOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientSimulateEvictionOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.SimulateEviction` return value(s) have been changed from `(VirtualMachineScaleSetVMsSimulateEvictionResponse, error)` to `(VirtualMachineScaleSetVMsClientSimulateEvictionResponse, error)`
+- Function `*ProximityPlacementGroupsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, ProximityPlacementGroup, *ProximityPlacementGroupsCreateOrUpdateOptions)` to `(context.Context, string, string, ProximityPlacementGroup, *ProximityPlacementGroupsClientCreateOrUpdateOptions)`
+- Function `*ProximityPlacementGroupsClient.CreateOrUpdate` return value(s) have been changed from `(ProximityPlacementGroupsCreateOrUpdateResponse, error)` to `(ProximityPlacementGroupsClientCreateOrUpdateResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.GetInstanceView` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsGetInstanceViewOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientGetInstanceViewOptions)`
+- Function `*VirtualMachineScaleSetsClient.GetInstanceView` return value(s) have been changed from `(VirtualMachineScaleSetsGetInstanceViewResponse, error)` to `(VirtualMachineScaleSetsClientGetInstanceViewResponse, error)`
+- Function `*ProximityPlacementGroupsClient.ListBySubscription` parameter(s) have been changed from `(*ProximityPlacementGroupsListBySubscriptionOptions)` to `(*ProximityPlacementGroupsClientListBySubscriptionOptions)`
+- Function `*ProximityPlacementGroupsClient.ListBySubscription` return value(s) have been changed from `(*ProximityPlacementGroupsListBySubscriptionPager)` to `(*ProximityPlacementGroupsClientListBySubscriptionPager)`
+- Function `*DiskEncryptionSetsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskEncryptionSet, *DiskEncryptionSetsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, DiskEncryptionSet, *DiskEncryptionSetsClientBeginCreateOrUpdateOptions)`
+- Function `*DiskEncryptionSetsClient.BeginCreateOrUpdate` return value(s) have been changed from `(DiskEncryptionSetsCreateOrUpdatePollerResponse, error)` to `(DiskEncryptionSetsClientCreateOrUpdatePollerResponse, error)`
+- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` parameter(s) have been changed from `(context.Context, string, string, int32, *CloudServicesUpdateDomainBeginWalkUpdateDomainOptions)` to `(context.Context, string, string, int32, *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions)`
+- Function `*CloudServicesUpdateDomainClient.BeginWalkUpdateDomain` return value(s) have been changed from `(CloudServicesUpdateDomainWalkUpdateDomainPollerResponse, error)` to `(CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse, error)`
+- Function `*VirtualMachinesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginDeleteOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginDeleteOptions)`
+- Function `*VirtualMachinesClient.BeginDelete` return value(s) have been changed from `(VirtualMachinesDeletePollerResponse, error)` to `(VirtualMachinesClientDeletePollerResponse, error)`
+- Function `*DiskAccessesClient.BeginUpdateAPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, PrivateEndpointConnection, *DiskAccessesBeginUpdateAPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, PrivateEndpointConnection, *DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions)`
+- Function `*DiskAccessesClient.BeginUpdateAPrivateEndpointConnection` return value(s) have been changed from `(DiskAccessesUpdateAPrivateEndpointConnectionPollerResponse, error)` to `(DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse, error)`
+- Function `*CloudServiceRolesClient.List` parameter(s) have been changed from `(string, string, *CloudServiceRolesListOptions)` to `(string, string, *CloudServiceRolesClientListOptions)`
+- Function `*CloudServiceRolesClient.List` return value(s) have been changed from `(*CloudServiceRolesListPager)` to `(*CloudServiceRolesClientListPager)`
+- Function `*CloudServicesClient.BeginDeleteInstances` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginDeleteInstancesOptions)` to `(context.Context, string, string, *CloudServicesClientBeginDeleteInstancesOptions)`
+- Function `*CloudServicesClient.BeginDeleteInstances` return value(s) have been changed from `(CloudServicesDeleteInstancesPollerResponse, error)` to `(CloudServicesClientDeleteInstancesPollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, VirtualMachineScaleSetVMExtensionUpdate, *VirtualMachineScaleSetVMExtensionsBeginUpdateOptions)` to `(context.Context, string, string, string, string, VirtualMachineScaleSetVMExtensionUpdate, *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions)`
+- Function `*VirtualMachineScaleSetVMExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMExtensionsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse, error)`
+- Function `*CommunityGalleryImageVersionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *CommunityGalleryImageVersionsGetOptions)` to `(context.Context, string, string, string, string, *CommunityGalleryImageVersionsClientGetOptions)`
+- Function `*CommunityGalleryImageVersionsClient.Get` return value(s) have been changed from `(CommunityGalleryImageVersionsGetResponse, error)` to `(CommunityGalleryImageVersionsClientGetResponse, error)`
+- Function `*GalleryApplicationVersionsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, GalleryApplicationVersion, *GalleryApplicationVersionsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, string, GalleryApplicationVersion, *GalleryApplicationVersionsClientBeginCreateOrUpdateOptions)`
+- Function `*GalleryApplicationVersionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(GalleryApplicationVersionsCreateOrUpdatePollerResponse, error)` to `(GalleryApplicationVersionsClientCreateOrUpdatePollerResponse, error)`
+- Function `*DisksClient.BeginRevokeAccess` parameter(s) have been changed from `(context.Context, string, string, *DisksBeginRevokeAccessOptions)` to `(context.Context, string, string, *DisksClientBeginRevokeAccessOptions)`
+- Function `*DisksClient.BeginRevokeAccess` return value(s) have been changed from `(DisksRevokeAccessPollerResponse, error)` to `(DisksClientRevokeAccessPollerResponse, error)`
+- Function `*CloudServiceOperatingSystemsClient.GetOSFamily` parameter(s) have been changed from `(context.Context, string, string, *CloudServiceOperatingSystemsGetOSFamilyOptions)` to `(context.Context, string, string, *CloudServiceOperatingSystemsClientGetOSFamilyOptions)`
+- Function `*CloudServiceOperatingSystemsClient.GetOSFamily` return value(s) have been changed from `(CloudServiceOperatingSystemsGetOSFamilyResponse, error)` to `(CloudServiceOperatingSystemsClientGetOSFamilyResponse, error)`
+- Function `*SSHPublicKeysClient.Create` parameter(s) have been changed from `(context.Context, string, string, SSHPublicKeyResource, *SSHPublicKeysCreateOptions)` to `(context.Context, string, string, SSHPublicKeyResource, *SSHPublicKeysClientCreateOptions)`
+- Function `*SSHPublicKeysClient.Create` return value(s) have been changed from `(SSHPublicKeysCreateResponse, error)` to `(SSHPublicKeysClientCreateResponse, error)`
+- Function `*DedicatedHostGroupsClient.Get` parameter(s) have been changed from `(context.Context, string, string, *DedicatedHostGroupsGetOptions)` to `(context.Context, string, string, *DedicatedHostGroupsClientGetOptions)`
+- Function `*DedicatedHostGroupsClient.Get` return value(s) have been changed from `(DedicatedHostGroupsGetResponse, error)` to `(DedicatedHostGroupsClientGetResponse, error)`
+- Function `*GalleryApplicationVersionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, GalleryApplicationVersionUpdate, *GalleryApplicationVersionsBeginUpdateOptions)` to `(context.Context, string, string, string, string, GalleryApplicationVersionUpdate, *GalleryApplicationVersionsClientBeginUpdateOptions)`
+- Function `*GalleryApplicationVersionsClient.BeginUpdate` return value(s) have been changed from `(GalleryApplicationVersionsUpdatePollerResponse, error)` to `(GalleryApplicationVersionsClientUpdatePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginPerformMaintenance` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginPerformMaintenanceOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginPerformMaintenance` return value(s) have been changed from `(VirtualMachineScaleSetVMsPerformMaintenancePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse, error)`
+- Function `*DedicatedHostsClient.ListByHostGroup` parameter(s) have been changed from `(string, string, *DedicatedHostsListByHostGroupOptions)` to `(string, string, *DedicatedHostsClientListByHostGroupOptions)`
+- Function `*DedicatedHostsClient.ListByHostGroup` return value(s) have been changed from `(*DedicatedHostsListByHostGroupPager)` to `(*DedicatedHostsClientListByHostGroupPager)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.GetLatest` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesGetLatestOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.GetLatest` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesGetLatestResponse, error)` to `(VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse, error)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesBeginStartOSUpgradeOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions)`
+- Function `*VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade` return value(s) have been changed from `(VirtualMachineScaleSetRollingUpgradesStartOSUpgradePollerResponse, error)` to `(VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData` return value(s) have been changed from `(VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse, error)` to `(VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse, error)`
+- Function `*UsageClient.List` parameter(s) have been changed from `(string, *UsageListOptions)` to `(string, *UsageClientListOptions)`
+- Function `*UsageClient.List` return value(s) have been changed from `(*UsageListPager)` to `(*UsageClientListPager)`
+- Function `*VirtualMachineImagesClient.ListPublishers` parameter(s) have been changed from `(context.Context, string, *VirtualMachineImagesListPublishersOptions)` to `(context.Context, string, *VirtualMachineImagesClientListPublishersOptions)`
+- Function `*VirtualMachineImagesClient.ListPublishers` return value(s) have been changed from `(VirtualMachineImagesListPublishersResponse, error)` to `(VirtualMachineImagesClientListPublishersResponse, error)`
+- Function `*DisksClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, DiskUpdate, *DisksBeginUpdateOptions)` to `(context.Context, string, string, DiskUpdate, *DisksClientBeginUpdateOptions)`
+- Function `*DisksClient.BeginUpdate` return value(s) have been changed from `(DisksUpdatePollerResponse, error)` to `(DisksClientUpdatePollerResponse, error)`
+- Function `*CloudServiceRoleInstancesClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesBeginRestartOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientBeginRestartOptions)`
+- Function `*CloudServiceRoleInstancesClient.BeginRestart` return value(s) have been changed from `(CloudServiceRoleInstancesRestartPollerResponse, error)` to `(CloudServiceRoleInstancesClientRestartPollerResponse, error)`
+- Function `*DiskEncryptionSetsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *DiskEncryptionSetsListByResourceGroupOptions)` to `(string, *DiskEncryptionSetsClientListByResourceGroupOptions)`
+- Function `*DiskEncryptionSetsClient.ListByResourceGroup` return value(s) have been changed from `(*DiskEncryptionSetsListByResourceGroupPager)` to `(*DiskEncryptionSetsClientListByResourceGroupPager)`
+- Function `*VirtualMachineScaleSetsClient.BeginRestart` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginRestartOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginRestartOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginRestart` return value(s) have been changed from `(VirtualMachineScaleSetsRestartPollerResponse, error)` to `(VirtualMachineScaleSetsClientRestartPollerResponse, error)`
+- Function `*VirtualMachinesClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, VirtualMachine, *VirtualMachinesBeginCreateOrUpdateOptions)` to `(context.Context, string, string, VirtualMachine, *VirtualMachinesClientBeginCreateOrUpdateOptions)`
+- Function `*VirtualMachinesClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachinesCreateOrUpdatePollerResponse, error)` to `(VirtualMachinesClientCreateOrUpdatePollerResponse, error)`
+- Function `*CapacityReservationGroupsClient.ListByResourceGroup` parameter(s) have been changed from `(string, *CapacityReservationGroupsListByResourceGroupOptions)` to `(string, *CapacityReservationGroupsClientListByResourceGroupOptions)`
+- Function `*CapacityReservationGroupsClient.ListByResourceGroup` return value(s) have been changed from `(*CapacityReservationGroupsListByResourceGroupPager)` to `(*CapacityReservationGroupsClientListByResourceGroupPager)`
+- Function `*GalleryImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *GalleryImagesGetOptions)` to `(context.Context, string, string, string, *GalleryImagesClientGetOptions)`
+- Function `*GalleryImagesClient.Get` return value(s) have been changed from `(GalleryImagesGetResponse, error)` to `(GalleryImagesClientGetResponse, error)`
+- Function `*CloudServicesClient.List` parameter(s) have been changed from `(string, *CloudServicesListOptions)` to `(string, *CloudServicesClientListOptions)`
+- Function `*CloudServicesClient.List` return value(s) have been changed from `(*CloudServicesListPager)` to `(*CloudServicesClientListPager)`
+- Function `*CloudServiceRoleInstancesClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesGetOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientGetOptions)`
+- Function `*CloudServiceRoleInstancesClient.Get` return value(s) have been changed from `(CloudServiceRoleInstancesGetResponse, error)` to `(CloudServiceRoleInstancesClientGetResponse, error)`
+- Function `*DiskAccessesClient.GetPrivateLinkResources` parameter(s) have been changed from `(context.Context, string, string, *DiskAccessesGetPrivateLinkResourcesOptions)` to `(context.Context, string, string, *DiskAccessesClientGetPrivateLinkResourcesOptions)`
+- Function `*DiskAccessesClient.GetPrivateLinkResources` return value(s) have been changed from `(DiskAccessesGetPrivateLinkResourcesResponse, error)` to `(DiskAccessesClientGetPrivateLinkResourcesResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginRedeploy` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginRedeployOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginRedeployOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginRedeploy` return value(s) have been changed from `(VirtualMachineScaleSetsRedeployPollerResponse, error)` to `(VirtualMachineScaleSetsClientRedeployPollerResponse, error)`
+- Function `*DedicatedHostGroupsClient.ListBySubscription` parameter(s) have been changed from `(*DedicatedHostGroupsListBySubscriptionOptions)` to `(*DedicatedHostGroupsClientListBySubscriptionOptions)`
+- Function `*DedicatedHostGroupsClient.ListBySubscription` return value(s) have been changed from `(*DedicatedHostGroupsListBySubscriptionPager)` to `(*DedicatedHostGroupsClientListBySubscriptionPager)`
+- Function `*ImagesClient.ListByResourceGroup` parameter(s) have been changed from `(string, *ImagesListByResourceGroupOptions)` to `(string, *ImagesClientListByResourceGroupOptions)`
+- Function `*ImagesClient.ListByResourceGroup` return value(s) have been changed from `(*ImagesListByResourceGroupPager)` to `(*ImagesClientListByResourceGroupPager)`
+- Function `*DiskRestorePointClient.BeginGrantAccess` parameter(s) have been changed from `(context.Context, string, string, string, string, GrantAccessData, *DiskRestorePointBeginGrantAccessOptions)` to `(context.Context, string, string, string, string, GrantAccessData, *DiskRestorePointClientBeginGrantAccessOptions)`
+- Function `*DiskRestorePointClient.BeginGrantAccess` return value(s) have been changed from `(DiskRestorePointGrantAccessPollerResponse, error)` to `(DiskRestorePointClientGrantAccessPollerResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginDeallocate` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginDeallocateOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginDeallocateOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachineScaleSetsDeallocatePollerResponse, error)` to `(VirtualMachineScaleSetsClientDeallocatePollerResponse, error)`
+- Function `*ImagesClient.Get` parameter(s) have been changed from `(context.Context, string, string, *ImagesGetOptions)` to `(context.Context, string, string, *ImagesClientGetOptions)`
+- Function `*ImagesClient.Get` return value(s) have been changed from `(ImagesGetResponse, error)` to `(ImagesClientGetResponse, error)`
+- Function `*DisksClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, Disk, *DisksBeginCreateOrUpdateOptions)` to `(context.Context, string, string, Disk, *DisksClientBeginCreateOrUpdateOptions)`
+- Function `*DisksClient.BeginCreateOrUpdate` return value(s) have been changed from `(DisksCreateOrUpdatePollerResponse, error)` to `(DisksClientCreateOrUpdatePollerResponse, error)`
+- Function `*CloudServiceRoleInstancesClient.BeginRebuild` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesBeginRebuildOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientBeginRebuildOptions)`
+- Function `*CloudServiceRoleInstancesClient.BeginRebuild` return value(s) have been changed from `(CloudServiceRoleInstancesRebuildPollerResponse, error)` to `(CloudServiceRoleInstancesClientRebuildPollerResponse, error)`
+- Function `*CloudServicesClient.BeginStart` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginStartOptions)` to `(context.Context, string, string, *CloudServicesClientBeginStartOptions)`
+- Function `*CloudServicesClient.BeginStart` return value(s) have been changed from `(CloudServicesStartPollerResponse, error)` to `(CloudServicesClientStartPollerResponse, error)`
+- Function `*DedicatedHostGroupsClient.Delete` parameter(s) have been changed from `(context.Context, string, string, *DedicatedHostGroupsDeleteOptions)` to `(context.Context, string, string, *DedicatedHostGroupsClientDeleteOptions)`
+- Function `*DedicatedHostGroupsClient.Delete` return value(s) have been changed from `(DedicatedHostGroupsDeleteResponse, error)` to `(DedicatedHostGroupsClientDeleteResponse, error)`
+- Function `*DiskAccessesClient.ListPrivateEndpointConnections` parameter(s) have been changed from `(string, string, *DiskAccessesListPrivateEndpointConnectionsOptions)` to `(string, string, *DiskAccessesClientListPrivateEndpointConnectionsOptions)`
+- Function `*DiskAccessesClient.ListPrivateEndpointConnections` return value(s) have been changed from `(*DiskAccessesListPrivateEndpointConnectionsPager)` to `(*DiskAccessesClientListPrivateEndpointConnectionsPager)`
+- Function `*GalleryImageVersionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, string, *GalleryImageVersionsBeginDeleteOptions)` to `(context.Context, string, string, string, string, *GalleryImageVersionsClientBeginDeleteOptions)`
+- Function `*GalleryImageVersionsClient.BeginDelete` return value(s) have been changed from `(GalleryImageVersionsDeletePollerResponse, error)` to `(GalleryImageVersionsClientDeletePollerResponse, error)`
+- Function `*CloudServicesClient.BeginPowerOff` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginPowerOffOptions)` to `(context.Context, string, string, *CloudServicesClientBeginPowerOffOptions)`
+- Function `*CloudServicesClient.BeginPowerOff` return value(s) have been changed from `(CloudServicesPowerOffPollerResponse, error)` to `(CloudServicesClientPowerOffPollerResponse, error)`
+- Function `*GalleryApplicationVersionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, string, *GalleryApplicationVersionsBeginDeleteOptions)` to `(context.Context, string, string, string, string, *GalleryApplicationVersionsClientBeginDeleteOptions)`
+- Function `*GalleryApplicationVersionsClient.BeginDelete` return value(s) have been changed from `(GalleryApplicationVersionsDeletePollerResponse, error)` to `(GalleryApplicationVersionsClientDeletePollerResponse, error)`
+- Function `*CapacityReservationsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, CapacityReservation, *CapacityReservationsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, CapacityReservation, *CapacityReservationsClientBeginCreateOrUpdateOptions)`
+- Function `*CapacityReservationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(CapacityReservationsCreateOrUpdatePollerResponse, error)` to `(CapacityReservationsClientCreateOrUpdatePollerResponse, error)`
+- Function `*DisksClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *DisksBeginDeleteOptions)` to `(context.Context, string, string, *DisksClientBeginDeleteOptions)`
+- Function `*DisksClient.BeginDelete` return value(s) have been changed from `(DisksDeletePollerResponse, error)` to `(DisksClientDeletePollerResponse, error)`
+- Function `*AvailabilitySetsClient.Update` parameter(s) have been changed from `(context.Context, string, string, AvailabilitySetUpdate, *AvailabilitySetsUpdateOptions)` to `(context.Context, string, string, AvailabilitySetUpdate, *AvailabilitySetsClientUpdateOptions)`
+- Function `*AvailabilitySetsClient.Update` return value(s) have been changed from `(AvailabilitySetsUpdateResponse, error)` to `(AvailabilitySetsClientUpdateResponse, error)`
+- Function `*SharedGalleryImageVersionsClient.Get` parameter(s) have been changed from `(context.Context, string, string, string, string, *SharedGalleryImageVersionsGetOptions)` to `(context.Context, string, string, string, string, *SharedGalleryImageVersionsClientGetOptions)`
+- Function `*SharedGalleryImageVersionsClient.Get` return value(s) have been changed from `(SharedGalleryImageVersionsGetResponse, error)` to `(SharedGalleryImageVersionsClientGetResponse, error)`
+- Function `*VirtualMachineSizesClient.List` parameter(s) have been changed from `(context.Context, string, *VirtualMachineSizesListOptions)` to `(context.Context, string, *VirtualMachineSizesClientListOptions)`
+- Function `*VirtualMachineSizesClient.List` return value(s) have been changed from `(VirtualMachineSizesListResponse, error)` to `(VirtualMachineSizesClientListResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachineScaleSetsBeginDeleteOptions)` to `(context.Context, string, string, *VirtualMachineScaleSetsClientBeginDeleteOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetsDeletePollerResponse, error)` to `(VirtualMachineScaleSetsClientDeletePollerResponse, error)`
+- Function `*VirtualMachineRunCommandsClient.List` parameter(s) have been changed from `(string, *VirtualMachineRunCommandsListOptions)` to `(string, *VirtualMachineRunCommandsClientListOptions)`
+- Function `*VirtualMachineRunCommandsClient.List` return value(s) have been changed from `(*VirtualMachineRunCommandsListPager)` to `(*VirtualMachineRunCommandsClientListPager)`
+- Function `*VirtualMachineRunCommandsClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineRunCommand, *VirtualMachineRunCommandsBeginCreateOrUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineRunCommand, *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions)`
+- Function `*VirtualMachineRunCommandsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VirtualMachineRunCommandsCreateOrUpdatePollerResponse, error)` to `(VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse, error)`
+- Function `*SSHPublicKeysClient.Update` parameter(s) have been changed from `(context.Context, string, string, SSHPublicKeyUpdateResource, *SSHPublicKeysUpdateOptions)` to `(context.Context, string, string, SSHPublicKeyUpdateResource, *SSHPublicKeysClientUpdateOptions)`
+- Function `*SSHPublicKeysClient.Update` return value(s) have been changed from `(SSHPublicKeysUpdateResponse, error)` to `(SSHPublicKeysClientUpdateResponse, error)`
+- Function `*VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState` parameter(s) have been changed from `(context.Context, string, string, OrchestrationServiceStateInput, *VirtualMachineScaleSetsBeginSetOrchestrationServiceStateOptions)` to `(context.Context, string, string, OrchestrationServiceStateInput, *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions)`
+- Function `*VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState` return value(s) have been changed from `(VirtualMachineScaleSetsSetOrchestrationServiceStatePollerResponse, error)` to `(VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginPowerOff` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginPowerOffOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginPowerOffOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginPowerOff` return value(s) have been changed from `(VirtualMachineScaleSetVMsPowerOffPollerResponse, error)` to `(VirtualMachineScaleSetVMsClientPowerOffPollerResponse, error)`
+- Function `*AvailabilitySetsClient.CreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, AvailabilitySet, *AvailabilitySetsCreateOrUpdateOptions)` to `(context.Context, string, string, AvailabilitySet, *AvailabilitySetsClientCreateOrUpdateOptions)`
+- Function `*AvailabilitySetsClient.CreateOrUpdate` return value(s) have been changed from `(AvailabilitySetsCreateOrUpdateResponse, error)` to `(AvailabilitySetsClientCreateOrUpdateResponse, error)`
+- Function `*CloudServiceRoleInstancesClient.GetRemoteDesktopFile` parameter(s) have been changed from `(context.Context, string, string, string, *CloudServiceRoleInstancesGetRemoteDesktopFileOptions)` to `(context.Context, string, string, string, *CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions)`
+- Function `*CloudServiceRoleInstancesClient.GetRemoteDesktopFile` return value(s) have been changed from `(CloudServiceRoleInstancesGetRemoteDesktopFileResponse, error)` to `(CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse, error)`
+- Function `*CloudServicesUpdateDomainClient.GetUpdateDomain` parameter(s) have been changed from `(context.Context, string, string, int32, *CloudServicesUpdateDomainGetUpdateDomainOptions)` to `(context.Context, string, string, int32, *CloudServicesUpdateDomainClientGetUpdateDomainOptions)`
+- Function `*CloudServicesUpdateDomainClient.GetUpdateDomain` return value(s) have been changed from `(CloudServicesUpdateDomainGetUpdateDomainResponse, error)` to `(CloudServicesUpdateDomainClientGetUpdateDomainResponse, error)`
+- Function `*RestorePointCollectionsClient.List` parameter(s) have been changed from `(string, *RestorePointCollectionsListOptions)` to `(string, *RestorePointCollectionsClientListOptions)`
+- Function `*RestorePointCollectionsClient.List` return value(s) have been changed from `(*RestorePointCollectionsListPager)` to `(*RestorePointCollectionsClientListPager)`
+- Function `*CloudServicesClient.BeginRebuild` parameter(s) have been changed from `(context.Context, string, string, *CloudServicesBeginRebuildOptions)` to `(context.Context, string, string, *CloudServicesClientBeginRebuildOptions)`
+- Function `*CloudServicesClient.BeginRebuild` return value(s) have been changed from `(CloudServicesRebuildPollerResponse, error)` to `(CloudServicesClientRebuildPollerResponse, error)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineScaleSetExtensionUpdate, *VirtualMachineScaleSetExtensionsBeginUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineScaleSetExtensionUpdate, *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetExtensionsClientUpdatePollerResponse, error)`
+- Function `*VirtualMachinesClient.RetrieveBootDiagnosticsData` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesRetrieveBootDiagnosticsDataOptions)` to `(context.Context, string, string, *VirtualMachinesClientRetrieveBootDiagnosticsDataOptions)`
+- Function `*VirtualMachinesClient.RetrieveBootDiagnosticsData` return value(s) have been changed from `(VirtualMachinesRetrieveBootDiagnosticsDataResponse, error)` to `(VirtualMachinesClientRetrieveBootDiagnosticsDataResponse, error)`
+- Function `*DiskAccessesClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, *DiskAccessesBeginDeleteOptions)` to `(context.Context, string, string, *DiskAccessesClientBeginDeleteOptions)`
+- Function `*DiskAccessesClient.BeginDelete` return value(s) have been changed from `(DiskAccessesDeletePollerResponse, error)` to `(DiskAccessesClientDeletePollerResponse, error)`
+- Function `*VirtualMachinesClient.BeginConvertToManagedDisks` parameter(s) have been changed from `(context.Context, string, string, *VirtualMachinesBeginConvertToManagedDisksOptions)` to `(context.Context, string, string, *VirtualMachinesClientBeginConvertToManagedDisksOptions)`
+- Function `*VirtualMachinesClient.BeginConvertToManagedDisks` return value(s) have been changed from `(VirtualMachinesConvertToManagedDisksPollerResponse, error)` to `(VirtualMachinesClientConvertToManagedDisksPollerResponse, error)`
+- Function `*SSHPublicKeysClient.Get` parameter(s) have been changed from `(context.Context, string, string, *SSHPublicKeysGetOptions)` to `(context.Context, string, string, *SSHPublicKeysClientGetOptions)`
+- Function `*SSHPublicKeysClient.Get` return value(s) have been changed from `(SSHPublicKeysGetResponse, error)` to `(SSHPublicKeysClientGetResponse, error)`
+- Function `*DisksClient.Get` parameter(s) have been changed from `(context.Context, string, string, *DisksGetOptions)` to `(context.Context, string, string, *DisksClientGetOptions)`
+- Function `*DisksClient.Get` return value(s) have been changed from `(DisksGetResponse, error)` to `(DisksClientGetResponse, error)`
+- Function `*VirtualMachineImagesClient.List` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineImagesListOptions)` to `(context.Context, string, string, string, string, *VirtualMachineImagesClientListOptions)`
+- Function `*VirtualMachineImagesClient.List` return value(s) have been changed from `(VirtualMachineImagesListResponse, error)` to `(VirtualMachineImagesClientListResponse, error)`
+- Function `*SharedGalleryImagesClient.List` parameter(s) have been changed from `(string, string, *SharedGalleryImagesListOptions)` to `(string, string, *SharedGalleryImagesClientListOptions)`
+- Function `*SharedGalleryImagesClient.List` return value(s) have been changed from `(*SharedGalleryImagesListPager)` to `(*SharedGalleryImagesClientListPager)`
+- Function `*VirtualMachineRunCommandsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineRunCommandUpdate, *VirtualMachineRunCommandsBeginUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineRunCommandUpdate, *VirtualMachineRunCommandsClientBeginUpdateOptions)`
+- Function `*VirtualMachineRunCommandsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineRunCommandsUpdatePollerResponse, error)` to `(VirtualMachineRunCommandsClientUpdatePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginDeallocate` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetVMsBeginDeallocateOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetVMsClientBeginDeallocateOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginDeallocate` return value(s) have been changed from `(VirtualMachineScaleSetVMsDeallocatePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientDeallocatePollerResponse, error)`
+- Function `*DiskAccessesClient.List` parameter(s) have been changed from `(*DiskAccessesListOptions)` to `(*DiskAccessesClientListOptions)`
+- Function `*DiskAccessesClient.List` return value(s) have been changed from `(*DiskAccessesListPager)` to `(*DiskAccessesClientListPager)`
+- Function `*CloudServiceRoleInstancesClient.List` parameter(s) have been changed from `(string, string, *CloudServiceRoleInstancesListOptions)` to `(string, string, *CloudServiceRoleInstancesClientListOptions)`
+- Function `*CloudServiceRoleInstancesClient.List` return value(s) have been changed from `(*CloudServiceRoleInstancesListPager)` to `(*CloudServiceRoleInstancesClientListPager)`
+- Function `*RestorePointCollectionsClient.Update` parameter(s) have been changed from `(context.Context, string, string, RestorePointCollectionUpdate, *RestorePointCollectionsUpdateOptions)` to `(context.Context, string, string, RestorePointCollectionUpdate, *RestorePointCollectionsClientUpdateOptions)`
+- Function `*RestorePointCollectionsClient.Update` return value(s) have been changed from `(RestorePointCollectionsUpdateResponse, error)` to `(RestorePointCollectionsClientUpdateResponse, error)`
+- Function `*GalleriesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, GalleryUpdate, *GalleriesBeginUpdateOptions)` to `(context.Context, string, string, GalleryUpdate, *GalleriesClientBeginUpdateOptions)`
+- Function `*GalleriesClient.BeginUpdate` return value(s) have been changed from `(GalleriesUpdatePollerResponse, error)` to `(GalleriesClientUpdatePollerResponse, error)`
+- Function `*GalleryImageVersionsClient.ListByGalleryImage` parameter(s) have been changed from `(string, string, string, *GalleryImageVersionsListByGalleryImageOptions)` to `(string, string, string, *GalleryImageVersionsClientListByGalleryImageOptions)`
+- Function `*GalleryImageVersionsClient.ListByGalleryImage` return value(s) have been changed from `(*GalleryImageVersionsListByGalleryImagePager)` to `(*GalleryImageVersionsClientListByGalleryImagePager)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginDelete` parameter(s) have been changed from `(context.Context, string, string, string, *VirtualMachineScaleSetExtensionsBeginDeleteOptions)` to `(context.Context, string, string, string, *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions)`
+- Function `*VirtualMachineScaleSetExtensionsClient.BeginDelete` return value(s) have been changed from `(VirtualMachineScaleSetExtensionsDeletePollerResponse, error)` to `(VirtualMachineScaleSetExtensionsClientDeletePollerResponse, error)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, VirtualMachineScaleSetVM, *VirtualMachineScaleSetVMsBeginUpdateOptions)` to `(context.Context, string, string, string, VirtualMachineScaleSetVM, *VirtualMachineScaleSetVMsClientBeginUpdateOptions)`
+- Function `*VirtualMachineScaleSetVMsClient.BeginUpdate` return value(s) have been changed from `(VirtualMachineScaleSetVMsUpdatePollerResponse, error)` to `(VirtualMachineScaleSetVMsClientUpdatePollerResponse, error)`
+- Function `*VirtualMachineImagesEdgeZoneClient.ListSKUs` parameter(s) have been changed from `(context.Context, string, string, string, string, *VirtualMachineImagesEdgeZoneListSKUsOptions)` to `(context.Context, string, string, string, string, *VirtualMachineImagesEdgeZoneClientListSKUsOptions)`
+- Function `*VirtualMachineImagesEdgeZoneClient.ListSKUs` return value(s) have been changed from `(VirtualMachineImagesEdgeZoneListSKUsResponse, error)` to `(VirtualMachineImagesEdgeZoneClientListSKUsResponse, error)`
+- Function `VirtualMachinesPerformMaintenancePollerResponse.PollUntilDone` has been removed
+- Function `*CapacityReservationsUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsReimageAllPoller.Poll` has been removed
+- Function `*DedicatedHostsUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesListPager.Err` has been removed
+- Function `VirtualMachineScaleSetExtensionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesDeletePollerResponse.Resume` has been removed
+- Function `*CloudServiceRoleInstancesReimagePoller.ResumeToken` has been removed
+- Function `*SnapshotsUpdatePoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetsRestartPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesConvertToManagedDisksPoller.Poll` has been removed
+- Function `*GalleryImageVersionsListByGalleryImagePager.PageResponse` has been removed
+- Function `VirtualMachineScaleSetVMExtensionsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*RestorePointCollectionsListPager.PageResponse` has been removed
+- Function `*DedicatedHostsDeletePollerResponse.Resume` has been removed
+- Function `*ImagesListPager.Err` has been removed
+- Function `*VirtualMachinesReimagePoller.Poll` has been removed
+- Function `*DedicatedHostsCreateOrUpdatePoller.Done` has been removed
+- Function `VirtualMachinesReimagePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesReimagePoller.FinalResponse` has been removed
+- Function `*CloudServicesRebuildPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsRestartPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsStartPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsDeletePoller.Poll` has been removed
+- Function `*VirtualMachinesListAllPager.PageResponse` has been removed
+- Function `*VirtualMachineExtensionsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineExtensionsUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller.Poll` has been removed
+- Function `VirtualMachinesAssessPatchesPollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsDeletePollerResponse.Resume` has been removed
+- Function `ImagesUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*AvailabilitySetsListPager.PageResponse` has been removed
+- Function `*GalleryApplicationVersionsUpdatePoller.ResumeToken` has been removed
+- Function `*AvailabilitySetsListBySubscriptionPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsListByLocationPager.NextPage` has been removed
+- Function `*CloudServicesRestartPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsListAllPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsDeletePoller.ResumeToken` has been removed
+- Function `*GalleryImageVersionsDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePollerResponse.Resume` has been removed
+- Function `*GalleriesUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsUpdatePollerResponse.Resume` has been removed
+- Function `*CapacityReservationGroupsListBySubscriptionPager.PageResponse` has been removed
+- Function `VirtualMachineScaleSetsStartPollerResponse.PollUntilDone` has been removed
+- Function `*SnapshotsListPager.NextPage` has been removed
+- Function `VirtualMachineScaleSetRollingUpgradesStartOSUpgradePollerResponse.PollUntilDone` has been removed
+- Function `GalleryApplicationVersionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesReimagePoller.Done` has been removed
+- Function `*CloudServicesCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*CloudServicesRebuildPoller.FinalResponse` has been removed
+- Function `*VirtualMachineExtensionsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetExtensionsListPager.NextPage` has been removed
+- Function `*RestorePointsCreatePoller.ResumeToken` has been removed
+- Function `*GalleryImagesUpdatePoller.Done` has been removed
+- Function `*DisksGrantAccessPollerResponse.Resume` has been removed
+- Function `*CloudServicesUpdateDomainWalkUpdateDomainPoller.ResumeToken` has been removed
+- Function `*ImagesCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePoller.ResumeToken` has been removed
+- Function `*RestorePointCollectionsListAllPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePoller.ResumeToken` has been removed
+- Function `*DiskAccessesUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesStartPoller.FinalResponse` has been removed
+- Function `*ImagesUpdatePoller.FinalResponse` has been removed
+- Function `*GalleriesUpdatePoller.FinalResponse` has been removed
+- Function `*SharedGalleryImageVersionsListPager.NextPage` has been removed
+- Function `*SnapshotsListPager.PageResponse` has been removed
+- Function `*GalleryImagesUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineRunCommandsListByVirtualMachinePager.Err` has been removed
+- Function `*VirtualMachineScaleSetsCreateOrUpdatePoller.Poll` has been removed
+- Function `*CloudServicesDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*GalleryImageVersionsCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesRestartPoller.ResumeToken` has been removed
+- Function `*GalleryApplicationVersionsDeletePoller.FinalResponse` has been removed
+- Function `*RestorePointCollectionsListAllPager.PageResponse` has been removed
+- Function `*CloudServiceRoleInstancesRestartPoller.ResumeToken` has been removed
+- Function `*CloudServiceRoleInstancesRestartPollerResponse.Resume` has been removed
+- Function `VirtualMachineScaleSetVMsDeallocatePollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostsUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsListAllPager.PageResponse` has been removed
+- Function `*DiskAccessesListPrivateEndpointConnectionsPager.PageResponse` has been removed
+- Function `*VirtualMachinesCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*ResourceSKUsListPager.PageResponse` has been removed
+- Function `*CloudServiceRoleInstancesRebuildPoller.ResumeToken` has been removed
+- Function `*GalleryImagesListByGalleryPager.Err` has been removed
+- Function `*DedicatedHostGroupsListByResourceGroupPager.Err` has been removed
+- Function `*SnapshotsListByResourceGroupPager.NextPage` has been removed
+- Function `CloudError.Error` has been removed
+- Function `VirtualMachineScaleSetUpdateNetworkConfiguration.MarshalJSON` has been removed
+- Function `*CloudServicesDeleteInstancesPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsUpdatePoller.Done` has been removed
+- Function `*ImagesDeletePoller.ResumeToken` has been removed
+- Function `*DiskAccessesCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesListAllPager.Err` has been removed
+- Function `VirtualMachinesStartPollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPoller.Poll` has been removed
+- Function `*CloudServicesUpdateDomainWalkUpdateDomainPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsDeletePoller.FinalResponse` has been removed
+- Function `VirtualMachineScaleSetsPowerOffPollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetUpdateIPConfiguration.MarshalJSON` has been removed
+- Function `*VirtualMachineExtensionsUpdatePoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsDeletePoller.ResumeToken` has been removed
+- Function `VirtualMachinesDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsPowerOffPollerResponse.Resume` has been removed
+- Function `*SnapshotsDeletePoller.Done` has been removed
+- Function `VirtualMachineScaleSetNetworkConfiguration.MarshalJSON` has been removed
+- Function `*CapacityReservationsUpdatePoller.ResumeToken` has been removed
+- Function `*DedicatedHostsUpdatePoller.Poll` has been removed
+- Function `*CapacityReservationsUpdatePoller.Poll` has been removed
+- Function `*DiskEncryptionSetsCreateOrUpdatePoller.Done` has been removed
+- Function `*DiskRestorePointListByRestorePointPager.Err` has been removed
+- Function `VirtualMachineScaleSetsDeleteInstancesPollerResponse.PollUntilDone` has been removed
+- Function `*GalleriesUpdatePoller.Poll` has been removed
+- Function `VirtualMachineRunCommandsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesDeallocatePoller.FinalResponse` has been removed
+- Function `*GalleriesUpdatePoller.Done` has been removed
+- Function `VirtualMachineScaleSetVMExtensionsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `CloudServiceRoleInstancesRestartPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineRunCommandsCreateOrUpdatePoller.Done` has been removed
+- Function `*CapacityReservationsDeletePoller.Poll` has been removed
+- Function `*GalleriesListPager.NextPage` has been removed
+- Function `*DiskEncryptionSetsDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineRunCommandsDeletePoller.Done` has been removed
+- Function `*VirtualMachinesPowerOffPoller.Poll` has been removed
+- Function `*GalleryImagesCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachinesCreateOrUpdatePoller.Poll` has been removed
+- Function `*ImagesDeletePoller.Poll` has been removed
+- Function `*VirtualMachinesUpdatePoller.Poll` has been removed
+- Function `*GalleryApplicationsDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsGetOSUpgradeHistoryPager.PageResponse` has been removed
+- Function `*SharedGalleryImagesListPager.PageResponse` has been removed
+- Function `*GalleryImagesUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetExtensionsUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsReimageAllPollerResponse.Resume` has been removed
+- Function `*CloudServiceRoleInstancesDeletePoller.Done` has been removed
+- Function `CloudServicesPowerOffPollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesReimagePoller.ResumeToken` has been removed
+- Function `*CloudServicesUpdateDomainListUpdateDomainsPager.NextPage` has been removed
+- Function `*DedicatedHostsUpdatePoller.FinalResponse` has been removed
+- Function `ManagedDiskParameters.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetVMsPowerOffPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesRedeployPollerResponse.Resume` has been removed
+- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPollerResponse.Resume` has been removed
+- Function `VirtualMachinesInstallPatchesPollerResponse.PollUntilDone` has been removed
+- Function `*DiskEncryptionSetsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesCapturePollerResponse.Resume` has been removed
+- Function `*DiskAccessesListPrivateEndpointConnectionsPager.Err` has been removed
+- Function `*DiskAccessesDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsListSKUsPager.PageResponse` has been removed
+- Function `VirtualMachineScaleSetsPerformMaintenancePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesDeletePollerResponse.Resume` has been removed
+- Function `*CloudServicesListAllPager.NextPage` has been removed
+- Function `*VirtualMachinesUpdatePoller.FinalResponse` has been removed
+- Function `*DisksUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsPowerOffPoller.ResumeToken` has been removed
+- Function `*DedicatedHostsDeletePoller.Poll` has been removed
+- Function `CapacityReservationsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsUpdatePoller.ResumeToken` has been removed
+- Function `*CloudServiceOperatingSystemsListOSFamiliesPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsRedeployPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsDeletePoller.Done` has been removed
+- Function `*LogAnalyticsExportThrottledRequestsPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsRunCommandPoller.FinalResponse` has been removed
+- Function `*VirtualMachinesRunCommandPollerResponse.Resume` has been removed
+- Function `*ImagesListByResourceGroupPager.Err` has been removed
+- Function `*DisksGrantAccessPoller.ResumeToken` has been removed
+- Function `*DisksCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineExtensionsDeletePoller.FinalResponse` has been removed
+- Function `*DiskEncryptionSetsListAssociatedResourcesPager.PageResponse` has been removed
+- Function `*VirtualMachinesAssessPatchesPoller.ResumeToken` has been removed
+- Function `*GalleryImageVersionsCreateOrUpdatePoller.Poll` has been removed
+- Function `*DiskEncryptionSetsUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsUpdatePollerResponse.Resume` has been removed
+- Function `*DiskAccessesUpdatePoller.FinalResponse` has been removed
+- Function `*DiskAccessesDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsRestartPoller.Poll` has been removed
+- Function `*CloudServicesDeleteInstancesPoller.ResumeToken` has been removed
+- Function `CapacityReservationsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsGetOSUpgradeHistoryPager.NextPage` has been removed
+- Function `*CloudServicesCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `LogAnalyticsExportThrottledRequestsPollerResponse.PollUntilDone` has been removed
+- Function `*GalleriesCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `DiskAccessesCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsUpdateInstancesPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsPowerOffPoller.Poll` has been removed
+- Function `*DisksCreateOrUpdatePoller.Done` has been removed
+- Function `*DisksUpdatePoller.Poll` has been removed
+- Function `*RestorePointsDeletePoller.FinalResponse` has been removed
+- Function `*CloudServicesStartPoller.ResumeToken` has been removed
+- Function `*VirtualMachinesReapplyPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsReimagePoller.ResumeToken` has been removed
+- Function `*CloudServicesUpdateDomainListUpdateDomainsPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetsUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesRedeployPoller.ResumeToken` has been removed
+- Function `*VirtualMachinesRedeployPoller.Done` has been removed
+- Function `GalleryApplicationsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePoller.Poll` has been removed
+- Function `DisksDeletePollerResponse.PollUntilDone` has been removed
+- Function `*SnapshotsDeletePoller.ResumeToken` has been removed
+- Function `*DisksListByResourceGroupPager.Err` has been removed
+- Function `*VirtualMachinesConvertToManagedDisksPoller.ResumeToken` has been removed
+- Function `*CloudServicesCreateOrUpdatePoller.Done` has been removed
+- Function `*DisksCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsPowerOffPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsPowerOffPoller.FinalResponse` has been removed
+- Function `GalleriesCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePoller.Done` has been removed
+- Function `*ImagesListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachinesStartPoller.ResumeToken` has been removed
+- Function `*VirtualMachineRunCommandsListByVirtualMachinePager.NextPage` has been removed
+- Function `*DisksDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsDeallocatePoller.Poll` has been removed
+- Function `*VirtualMachinesCapturePoller.FinalResponse` has been removed
+- Function `*CloudServiceRoleInstancesDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesListByLocationPager.Err` has been removed
+- Function `*CloudServiceOperatingSystemsListOSVersionsPager.PageResponse` has been removed
+- Function `*SharedGalleryImageVersionsListPager.Err` has been removed
+- Function `VirtualMachineScaleSetVMExtension.MarshalJSON` has been removed
+- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePoller.Done` has been removed
+- Function `*GalleryApplicationVersionsListByGalleryApplicationPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetsReimagePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsReimagePoller.Done` has been removed
+- Function `*AvailabilitySetsListPager.Err` has been removed
+- Function `VirtualMachineScaleSetVMRunCommandsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*DisksDeletePoller.Done` has been removed
+- Function `VirtualMachineScaleSetExtensionsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesRestartPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetExtensionsUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsReimageAllPoller.Done` has been removed
+- Function `NetworkInterfaceReference.MarshalJSON` has been removed
+- Function `*CloudServicesDeletePoller.FinalResponse` has been removed
+- Function `*DiskEncryptionSetsUpdatePoller.Poll` has been removed
+- Function `*VirtualMachinesConvertToManagedDisksPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetExtensionsDeletePoller.Done` has been removed
+- Function `GalleryApplicationsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*DisksCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*AvailabilitySetsListBySubscriptionPager.PageResponse` has been removed
+- Function `*DiskEncryptionSetsListPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsReimagePoller.Poll` has been removed
+- Function `*VirtualMachineRunCommandsDeletePoller.Poll` has been removed
+- Function `*DiskRestorePointListByRestorePointPager.PageResponse` has been removed
+- Function `*VirtualMachineExtensionsCreateOrUpdatePoller.Done` has been removed
+- Function `*CapacityReservationsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesPerformMaintenancePoller.FinalResponse` has been removed
+- Function `*GalleryApplicationsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*CloudServiceRoleInstancesDeletePoller.Poll` has been removed
+- Function `VirtualMachineExtensionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsRestartPoller.FinalResponse` has been removed
+- Function `*CloudServicesRebuildPoller.ResumeToken` has been removed
+- Function `GalleryApplicationVersionsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsRunCommandPoller.ResumeToken` has been removed
+- Function `*DedicatedHostsListByHostGroupPager.Err` has been removed
+- Function `*CloudServicesUpdatePoller.ResumeToken` has been removed
+- Function `*SSHPublicKeysListByResourceGroupPager.PageResponse` has been removed
+- Function `*DisksRevokeAccessPoller.FinalResponse` has been removed
+- Function `*DisksDeletePoller.ResumeToken` has been removed
+- Function `*DedicatedHostGroupsListBySubscriptionPager.PageResponse` has been removed
+- Function `*DisksRevokeAccessPollerResponse.Resume` has been removed
+- Function `*CapacityReservationGroupsListByResourceGroupPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetsListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsDeleteInstancesPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsPerformMaintenancePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesAssessPatchesPoller.FinalResponse` has been removed
+- Function `*VirtualMachinesRunCommandPoller.Done` has been removed
+- Function `DedicatedHostsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `GalleriesDeletePollerResponse.PollUntilDone` has been removed
+- Function `DedicatedHostsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImageVersionsDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesListPager.NextPage` has been removed
+- Function `*DiskRestorePointRevokeAccessPollerResponse.Resume` has been removed
+- Function `*CloudServicesUpdateDomainWalkUpdateDomainPollerResponse.Resume` has been removed
+- Function `*CapacityReservationsDeletePoller.Done` has been removed
+- Function `*CapacityReservationsListByCapacityReservationGroupPager.Err` has been removed
+- Function `*VirtualMachinesCapturePoller.Done` has been removed
+- Function `*CloudServiceRoleInstancesRebuildPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsListByLocationPager.Err` has been removed
+- Function `*GalleriesListByResourceGroupPager.NextPage` has been removed
+- Function `*CloudServicesPowerOffPoller.FinalResponse` has been removed
+- Function `*CloudServicesListAllPager.PageResponse` has been removed
+- Function `*SharedGalleryImageVersionsListPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetsReimagePoller.Done` has been removed
+- Function `VirtualMachineScaleSetRollingUpgradesCancelPollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachinesPerformMaintenancePoller.ResumeToken` has been removed
+- Function `CapacityReservationsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesConvertToManagedDisksPoller.FinalResponse` has been removed
+- Function `*DisksGrantAccessPoller.FinalResponse` has been removed
+- Function `*LogAnalyticsExportThrottledRequestsPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesCapturePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesRunCommandPoller.FinalResponse` has been removed
+- Function `*SharedGalleriesListPager.Err` has been removed
+- Function `*DiskRestorePointRevokeAccessPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsDeletePollerResponse.Resume` has been removed
+- Function `*RestorePointCollectionsListAllPager.NextPage` has been removed
+- Function `*VirtualMachineExtensionsUpdatePoller.Poll` has been removed
+- Function `*LogAnalyticsExportRequestRateByIntervalPoller.ResumeToken` has been removed
+- Function `*RestorePointCollectionsDeletePoller.FinalResponse` has been removed
+- Function `*CapacityReservationsListByCapacityReservationGroupPager.NextPage` has been removed
+- Function `CloudServiceRoleInstancesRebuildPollerResponse.PollUntilDone` has been removed
+- Function `*DiskEncryptionSetsDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesInstallPatchesPoller.FinalResponse` has been removed
+- Function `*CloudServicesPowerOffPoller.Done` has been removed
+- Function `*VirtualMachinesPerformMaintenancePoller.Done` has been removed
+- Function `*VirtualMachinesPerformMaintenancePoller.Poll` has been removed
+- Function `*ImagesDeletePoller.Done` has been removed
+- Function `*CloudServicesRestartPoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsListPager.NextPage` has been removed
+- Function `VirtualMachineScaleSetsRedeployPollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostsUpdatePoller.ResumeToken` has been removed
+- Function `*CapacityReservationGroupsListByResourceGroupPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsPerformMaintenancePoller.Done` has been removed
+- Function `*GalleryApplicationsDeletePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationVersionsListByGalleryApplicationPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsDeallocatePoller.Done` has been removed
+- Function `*DiskEncryptionSetsUpdatePoller.FinalResponse` has been removed
+- Function `LogAnalyticsExportRequestRateByIntervalPollerResponse.PollUntilDone` has been removed
+- Function `*DiskRestorePointGrantAccessPoller.Done` has been removed
+- Function `CloudServicesUpdateDomainWalkUpdateDomainPollerResponse.PollUntilDone` has been removed
+- Function `DiskAccessesUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*DedicatedHostsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*SnapshotsRevokeAccessPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsPerformMaintenancePoller.Done` has been removed
+- Function `VirtualMachineExtensionsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationVersionsUpdatePollerResponse.Resume` has been removed
+- Function `*AvailabilitySetsListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsRedeployPoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsUpdatePoller.FinalResponse` has been removed
+- Function `*GalleryApplicationVersionsDeletePollerResponse.Resume` has been removed
+- Function `*CloudServicesReimagePoller.Poll` has been removed
+- Function `*VirtualMachinesStartPoller.Poll` has been removed
+- Function `*SSHPublicKeysListBySubscriptionPager.NextPage` has been removed
+- Function `*CloudServicesRebuildPoller.Done` has been removed
+- Function `*GalleryApplicationVersionsUpdatePoller.Poll` has been removed
+- Function `*DedicatedHostsDeletePoller.ResumeToken` has been removed
+- Function `*DiskAccessesCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsPerformMaintenancePoller.Poll` has been removed
+- Function `*GalleriesCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*GalleryApplicationsListByGalleryPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsStartPoller.Poll` has been removed
+- Function `ImageReference.MarshalJSON` has been removed
+- Function `DiskRestorePointGrantAccessPollerResponse.PollUntilDone` has been removed
+- Function `*DisksRevokeAccessPoller.Poll` has been removed
+- Function `*CloudServiceRoleInstancesRebuildPollerResponse.Resume` has been removed
+- Function `*CloudServicesUpdateDomainWalkUpdateDomainPoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesRedeployPoller.FinalResponse` has been removed
+- Function `*VirtualMachinesUpdatePoller.Done` has been removed
+- Function `*SnapshotsRevokeAccessPoller.FinalResponse` has been removed
+- Function `*GalleryImagesCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*CapacityReservationGroupsListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachinesUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetExtensionsDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesListAllPager.NextPage` has been removed
+- Function `*DiskEncryptionSetsDeletePoller.FinalResponse` has been removed
+- Function `*CapacityReservationsUpdatePoller.Done` has been removed
+- Function `VirtualMachinesUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImageVersionsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*DiskEncryptionSetsListAssociatedResourcesPager.NextPage` has been removed
+- Function `VirtualMachinesCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*DisksUpdatePoller.Done` has been removed
+- Function `*SnapshotsGrantAccessPoller.Done` has been removed
+- Function `*CloudServiceRoleInstancesDeletePoller.ResumeToken` has been removed
+- Function `*CloudServicesDeleteInstancesPoller.Poll` has been removed
+- Function `*DiskAccessesDeletePollerResponse.Resume` has been removed
+- Function `*GalleryImagesDeletePoller.ResumeToken` has been removed
+- Function `*GalleryImageVersionsDeletePoller.Done` has been removed
+- Function `*CapacityReservationsDeletePoller.ResumeToken` has been removed
+- Function `*DiskEncryptionSetsListAssociatedResourcesPager.Err` has been removed
+- Function `*CloudServiceRoleInstancesRebuildPoller.FinalResponse` has been removed
+- Function `*VirtualMachinesCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsUpdatePoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetVMsRunCommandPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationsUpdatePoller.FinalResponse` has been removed
+- Function `*DiskEncryptionSetsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsReimageAllPoller.FinalResponse` has been removed
+- Function `*GalleriesDeletePoller.FinalResponse` has been removed
+- Function `*ImagesCreateOrUpdatePoller.Poll` has been removed
+- Function `*GalleryApplicationVersionsListByGalleryApplicationPager.Err` has been removed
+- Function `*CloudServicesUpdatePoller.Poll` has been removed
+- Function `*GalleryImagesCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsRunCommandPollerResponse.Resume` has been removed
+- Function `*CloudServiceRoleInstancesReimagePollerResponse.Resume` has been removed
+- Function `*CapacityReservationsUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesPowerOffPollerResponse.Resume` has been removed
+- Function `*DedicatedHostGroupsListByResourceGroupPager.NextPage` has been removed
+- Function `*GalleryImagesListByGalleryPager.PageResponse` has been removed
+- Function `*VirtualMachineRunCommandsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsDeletePoller.Poll` has been removed
+- Function `*DedicatedHostGroupsListBySubscriptionPager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMsRedeployPoller.Done` has been removed
+- Function `*GalleriesDeletePollerResponse.Resume` has been removed
+- Function `*DedicatedHostGroupsListByResourceGroupPager.PageResponse` has been removed
+- Function `*DisksDeletePoller.Poll` has been removed
+- Function `*DiskRestorePointRevokeAccessPoller.ResumeToken` has been removed
+- Function `*ImagesDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsPerformMaintenancePoller.FinalResponse` has been removed
+- Function `*DiskRestorePointRevokeAccessPoller.Poll` has been removed
+- Function `*DiskAccessesListPrivateEndpointConnectionsPager.NextPage` has been removed
+- Function `*SnapshotsCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsUpdateInstancesPoller.FinalResponse` has been removed
+- Function `*RestorePointsDeletePollerResponse.Resume` has been removed
+- Function `*CloudServiceOperatingSystemsListOSFamiliesPager.PageResponse` has been removed
+- Function `*SnapshotsDeletePollerResponse.Resume` has been removed
+- Function `*DedicatedHostsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsReimageAllPoller.FinalResponse` has been removed
+- Function `*CloudServiceRoleInstancesRestartPoller.Poll` has been removed
+- Function `*VirtualMachinesRestartPoller.Poll` has been removed
+- Function `CloudServicesDeleteInstancesPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePollerResponse.Resume` has been removed
+- Function `*CapacityReservationGroupsListBySubscriptionPager.Err` has been removed
+- Function `*GalleryApplicationsDeletePoller.Poll` has been removed
+- Function `*GalleryImagesDeletePoller.Poll` has been removed
+- Function `*CloudServicesUpdateDomainWalkUpdateDomainPoller.FinalResponse` has been removed
+- Function `*CloudServiceRolesListPager.PageResponse` has been removed
+- Function `*DiskEncryptionSetsUpdatePoller.Done` has been removed
+- Function `*ImagesListPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsListPager.NextPage` has been removed
+- Function `VirtualMachineScaleSetVMRunCommandsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineRunCommandsDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesReimagePoller.FinalResponse` has been removed
+- Function `SnapshotsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsRunCommandPoller.Done` has been removed
+- Function `GalleriesUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineRunCommandsUpdatePoller.Poll` has been removed
+- Function `*ImagesCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesRedeployPoller.Poll` has been removed
+- Function `*GalleriesListByResourceGroupPager.Err` has been removed
+- Function `*DiskEncryptionSetsDeletePoller.Poll` has been removed
+- Function `*SnapshotsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsUpdatePoller.FinalResponse` has been removed
+- Function `*DiskEncryptionSetsListByResourceGroupPager.PageResponse` has been removed
+- Function `*CloudServicesReimagePollerResponse.Resume` has been removed
+- Function `VirtualMachineScaleSetVMsStartPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsUpdatePoller.Done` has been removed
+- Function `*SnapshotsListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePoller.Poll` has been removed
+- Function `*DiskAccessesListPager.Err` has been removed
+- Function `*DisksUpdatePoller.FinalResponse` has been removed
+- Function `*CloudServiceRolesListPager.NextPage` has been removed
+- Function `*CloudServiceRoleInstancesListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*DiskRestorePointRevokeAccessPoller.Done` has been removed
+- Function `*VirtualMachinesReimagePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsDeleteInstancesPoller.Done` has been removed
+- Function `*RestorePointsCreatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsDeallocatePoller.FinalResponse` has been removed
+- Function `CloudServicesReimagePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceOperatingSystemsListOSVersionsPager.NextPage` has been removed
+- Function `*RestorePointsDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsReimageAllPollerResponse.Resume` has been removed
+- Function `*DisksUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationVersionsCreateOrUpdatePoller.Poll` has been removed
+- Function `*GalleriesCreateOrUpdatePoller.Poll` has been removed
+- Function `*SnapshotsDeletePoller.FinalResponse` has been removed
+- Function `*GalleryImagesDeletePollerResponse.Resume` has been removed
+- Function `*GallerySharingProfileUpdatePoller.ResumeToken` has been removed
+- Function `*GallerySharingProfileUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsStartPollerResponse.Resume` has been removed
+- Function `VirtualMachinesRunCommandPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsStartPollerResponse.Resume` has been removed
+- Function `*VirtualMachinesDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsListPager.PageResponse` has been removed
+- Function `*DisksGrantAccessPoller.Poll` has been removed
+- Function `*CloudServicesUpdatePoller.Done` has been removed
+- Function `VirtualMachineScaleSetVMExtensionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsDeallocatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineExtensionsDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsRedeployPoller.Poll` has been removed
+- Function `*GalleryImageVersionsDeletePoller.ResumeToken` has been removed
+- Function `SnapshotsRevokeAccessPollerResponse.PollUntilDone` has been removed
+- Function `*ResourceSKUsListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMsListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMsReimagePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsReimagePollerResponse.Resume` has been removed
+- Function `VirtualMachinesPowerOffPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationsCreateOrUpdatePoller.Poll` has been removed
+- Function `VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceRoleInstancesListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsDeleteInstancesPollerResponse.Resume` has been removed
+- Function `GalleryImagesDeletePollerResponse.PollUntilDone` has been removed
+- Function `*SnapshotsGrantAccessPoller.Poll` has been removed
+- Function `*GalleryImageVersionsListByGalleryImagePager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMsRedeployPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsPerformMaintenancePoller.ResumeToken` has been removed
+- Function `*RestorePointCollectionsListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsListByLocationPager.PageResponse` has been removed
+- Function `*GalleriesDeletePoller.Poll` has been removed
+- Function `*SnapshotsListByResourceGroupPager.PageResponse` has been removed
+- Function `*SharedGalleryImagesListPager.Err` has been removed
+- Function `*CloudServicesListPager.Err` has been removed
+- Function `*CloudServicesListPager.PageResponse` has been removed
+- Function `*DiskAccessesCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `RunCommandDocumentBase.MarshalJSON` has been removed
+- Function `*VirtualMachineScaleSetsPowerOffPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsReimageAllPoller.ResumeToken` has been removed
+- Function `SnapshotsDeletePollerResponse.PollUntilDone` has been removed
+- Function `RestorePointsDeletePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineReimageParameters.MarshalJSON` has been removed
+- Function `DiskAccessesUpdateAPrivateEndpointConnectionPollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceRoleInstancesReimagePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*CapacityReservationsCreateOrUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsReimagePoller.FinalResponse` has been removed
+- Function `*VirtualMachineExtensionsUpdatePoller.ResumeToken` has been removed
+- Function `*DisksListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMsDeallocatePollerResponse.Resume` has been removed
+- Function `*SnapshotsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `CloudServicesDeletePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetVMsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*RestorePointsCreatePoller.Poll` has been removed
+- Function `*SnapshotsRevokeAccessPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller.Poll` has been removed
+- Function `*LogAnalyticsExportThrottledRequestsPoller.FinalResponse` has been removed
+- Function `*VirtualMachinesReimagePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsStartPoller.ResumeToken` has been removed
+- Function `*CloudServiceRoleInstancesReimagePoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryImageVersionsUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesListByLocationPager.NextPage` has been removed
+- Function `*DiskAccessesListByResourceGroupPager.Err` has been removed
+- Function `*GalleryApplicationVersionsUpdatePoller.Done` has been removed
+- Function `*CloudServiceRoleInstancesDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller.Done` has been removed
+- Function `*DiskEncryptionSetsListByResourceGroupPager.Err` has been removed
+- Function `ImagesDeletePollerResponse.PollUntilDone` has been removed
+- Function `*RestorePointCollectionsDeletePoller.Done` has been removed
+- Function `*CloudServicesDeleteInstancesPollerResponse.Resume` has been removed
+- Function `VirtualMachineScaleSetsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CapacityReservationsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*CloudServicesStartPollerResponse.Resume` has been removed
+- Function `VirtualMachinesRestartPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsDeletePoller.ResumeToken` has been removed
+- Function `RestorePointCollectionsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*RestorePointsCreatePoller.Done` has been removed
+- Function `DisksCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*ImagesCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationVersionsDeletePoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetVMsReimageAllPollerResponse.PollUntilDone` has been removed
+- Function `*SnapshotsListByResourceGroupPager.Err` has been removed
+- Function `*CloudServiceRoleInstancesRestartPoller.FinalResponse` has been removed
+- Function `*DiskRestorePointGrantAccessPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsDeletePoller.Done` has been removed
+- Function `*GalleryApplicationsUpdatePoller.ResumeToken` has been removed
+- Function `*UsageListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsDeleteInstancesPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsDeletePoller.FinalResponse` has been removed
+- Function `*SnapshotsDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsDeallocatePoller.ResumeToken` has been removed
+- Function `*SSHPublicKeysListByResourceGroupPager.Err` has been removed
+- Function `*VirtualMachinesRestartPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsDeletePollerResponse.Resume` has been removed
+- Function `*DisksCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*ImagesDeletePollerResponse.Resume` has been removed
+- Function `*ProximityPlacementGroupsListBySubscriptionPager.Err` has been removed
+- Function `*VirtualMachinesDeletePoller.Done` has been removed
+- Function `*CloudServicesRestartPollerResponse.Resume` has been removed
+- Function `*LogAnalyticsExportRequestRateByIntervalPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsUpdatePoller.ResumeToken` has been removed
+- Function `*DiskRestorePointGrantAccessPoller.ResumeToken` has been removed
+- Function `CloudServicesRebuildPollerResponse.PollUntilDone` has been removed
+- Function `*DisksListByResourceGroupPager.NextPage` has been removed
+- Function `*GalleryImageVersionsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*SSHPublicKeysListBySubscriptionPager.PageResponse` has been removed
+- Function `*CapacityReservationsListByCapacityReservationGroupPager.PageResponse` has been removed
+- Function `*VirtualMachineRunCommandsListByVirtualMachinePager.PageResponse` has been removed
+- Function `*DiskRestorePointListByRestorePointPager.NextPage` has been removed
+- Function `*VirtualMachinesConvertToManagedDisksPoller.Done` has been removed
+- Function `*DisksRevokeAccessPoller.ResumeToken` has been removed
+- Function `*CloudServicesUpdateDomainListUpdateDomainsPager.Err` has been removed
+- Function `*AvailabilitySetsListBySubscriptionPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsSetOrchestrationServiceStatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsPowerOffPoller.Done` has been removed
+- Function `*GalleryApplicationsListByGalleryPager.Err` has been removed
+- Function `*ImagesUpdatePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsRestartPoller.FinalResponse` has been removed
+- Function `*GalleryImagesCreateOrUpdatePoller.Poll` has been removed
+- Function `*CloudServiceRoleInstancesReimagePoller.FinalResponse` has been removed
+- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsUpdateInstancesPoller.Poll` has been removed
+- Function `*DisksListPager.PageResponse` has been removed
+- Function `*ProximityPlacementGroupsListBySubscriptionPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePoller.Done` has been removed
+- Function `*GalleryApplicationVersionsDeletePoller.Done` has been removed
+- Function `*GalleryApplicationsCreateOrUpdatePoller.Done` has been removed
+- Function `*DisksListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetExtensionsListPager.Err` has been removed
+- Function `VirtualMachineScaleSetVMsRedeployPollerResponse.PollUntilDone` has been removed
+- Function `DiskAccessesDeletePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImageVersionsUpdatePoller.Done` has been removed
+- Function `*DiskEncryptionSetsUpdatePoller.ResumeToken` has been removed
+- Function `*GalleryApplicationsUpdatePoller.Done` has been removed
+- Function `*SnapshotsRevokeAccessPoller.Poll` has been removed
+- Function `*VirtualMachinesUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsStartPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsUpdatePoller.Poll` has been removed
+- Function `*VirtualMachinesRestartPollerResponse.Resume` has been removed
+- Function `CloudServicesStartPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsRestartPoller.Done` has been removed
+- Function `*GalleryImageVersionsDeletePollerResponse.Resume` has been removed
+- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPollerResponse.Resume` has been removed
+- Function `*CloudServicesStartPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesCancelPoller.Poll` has been removed
+- Function `*VirtualMachinesReimagePoller.Done` has been removed
+- Function `*DiskAccessesCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `GalleryImageVersionsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*ImagesUpdatePoller.ResumeToken` has been removed
+- Function `*RestorePointCollectionsDeletePoller.Poll` has been removed
+- Function `*DiskEncryptionSetsListByResourceGroupPager.NextPage` has been removed
+- Function `DisksGrantAccessPollerResponse.PollUntilDone` has been removed
+- Function `*CapacityReservationsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsUpdatePoller.Poll` has been removed
+- Function `*DiskAccessesListPager.PageResponse` has been removed
+- Function `*CapacityReservationsDeletePoller.FinalResponse` has been removed
+- Function `*SnapshotsUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsListPager.NextPage` has been removed
+- Function `GallerySharingProfileUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetExtensionsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*GalleryImageVersionsUpdatePoller.FinalResponse` has been removed
+- Function `VirtualMachineRunCommandsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetIPConfiguration.MarshalJSON` has been removed
+- Function `GalleryApplicationsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `GalleryImageVersionsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServiceRoleInstancesRebuildPoller.Done` has been removed
+- Function `VirtualMachinesRedeployPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesRunCommandPoller.Poll` has been removed
+- Function `*ProximityPlacementGroupsListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsListSKUsPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMsListPager.Err` has been removed
+- Function `*CloudServicesListAllPager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsListPager.Err` has been removed
+- Function `*CloudServicesPowerOffPollerResponse.Resume` has been removed
+- Function `*GalleriesListPager.PageResponse` has been removed
+- Function `*DiskAccessesDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesRestartPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsUpdateInstancesPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller.ResumeToken` has been removed
+- Function `*SnapshotsUpdatePoller.Poll` has been removed
+- Function `*GalleryImagesListByGalleryPager.NextPage` has been removed
+- Function `*SnapshotsUpdatePoller.Done` has been removed
+- Function `*GalleryImagesUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesDeletePoller.ResumeToken` has been removed
+- Function `*GalleryImageVersionsListByGalleryImagePager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMsDeallocatePoller.Done` has been removed
+- Function `*DiskEncryptionSetsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*CloudServicesPowerOffPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*DedicatedHostsCreateOrUpdatePoller.Poll` has been removed
+- Function `*SSHPublicKeysListBySubscriptionPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsReimageAllPoller.Done` has been removed
+- Function `DiskAccessesDeleteAPrivateEndpointConnectionPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsStartPoller.FinalResponse` has been removed
+- Function `*DiskAccessesUpdatePoller.Done` has been removed
+- Function `*VirtualMachinesInstallPatchesPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMsStartPoller.Done` has been removed
+- Function `ComputeOperationListResult.MarshalJSON` has been removed
+- Function `DisksUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*UsageListPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsPowerOffPoller.Done` has been removed
+- Function `*DisksGrantAccessPoller.Done` has been removed
+- Function `*GallerySharingProfileUpdatePoller.Done` has been removed
+- Function `*GalleryApplicationVersionsCreateOrUpdatePoller.Done` has been removed
+- Function `*LogAnalyticsExportThrottledRequestsPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsStartPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMsRestartPoller.Done` has been removed
+- Function `*DiskAccessesCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `VirtualMachineScaleSetExtension.MarshalJSON` has been removed
+- Function `*CloudServicesPowerOffPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsListPager.PageResponse` has been removed
+- Function `*SnapshotsGrantAccessPoller.ResumeToken` has been removed
+- Function `DiskEncryptionSetsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachinesReapplyPoller.ResumeToken` has been removed
+- Function `*CloudServicesDeletePoller.Poll` has been removed
+- Function `*VirtualMachinesInstallPatchesPoller.Poll` has been removed
+- Function `*LogAnalyticsExportRequestRateByIntervalPoller.FinalResponse` has been removed
+- Function `*VirtualMachineRunCommandsUpdatePoller.Done` has been removed
+- Function `VirtualMachineScaleSetsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesPowerOffPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsRestartPoller.ResumeToken` has been removed
+- Function `*GalleriesDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsListSKUsPager.Err` has been removed
+- Function `*VirtualMachinesAssessPatchesPoller.Done` has been removed
+- Function `*DedicatedHostsDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsUpdatePollerResponse.Resume` has been removed
+- Function `*LogAnalyticsExportRequestRateByIntervalPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsDeleteInstancesPoller.ResumeToken` has been removed
+- Function `*VirtualMachinesReapplyPoller.Done` has been removed
+- Function `*DiskAccessesUpdateAPrivateEndpointConnectionPoller.FinalResponse` has been removed
+- Function `*GalleryApplicationVersionsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `RestorePointsCreatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsReimageAllPoller.ResumeToken` has been removed
+- Function `*CapacityReservationsCreateOrUpdatePoller.Poll` has been removed
+- Function `VirtualMachineScaleSetVMsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*GalleriesListPager.Err` has been removed
+- Function `*RestorePointsDeletePoller.ResumeToken` has been removed
+- Function `*SnapshotsCreateOrUpdatePoller.Poll` has been removed
+- Function `SnapshotsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryImageVersionsUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsRedeployPoller.ResumeToken` has been removed
+- Function `*GalleryApplicationVersionsUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesRunCommandPoller.ResumeToken` has been removed
+- Function `*CloudServicesListPager.NextPage` has been removed
+- Function `*DiskAccessesListPager.NextPage` has been removed
+- Function `*VirtualMachinesPerformMaintenancePollerResponse.Resume` has been removed
+- Function `*DiskAccessesUpdatePoller.Poll` has been removed
+- Function `*VirtualMachinesReapplyPollerResponse.Resume` has been removed
+- Function `*GalleryApplicationsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*ResourceSKUsListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetVMsDeletePoller.Poll` has been removed
+- Function `*VirtualMachinesReapplyPoller.FinalResponse` has been removed
+- Function `*DedicatedHostsListByHostGroupPager.PageResponse` has been removed
+- Function `DiskEncryptionSetsDeletePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesListPager.PageResponse` has been removed
+- Function `*DedicatedHostsListByHostGroupPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetsRedeployPollerResponse.Resume` has been removed
+- Function `*SnapshotsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetExtensionsDeletePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsPerformMaintenancePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetVMExtensionsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsReimageAllPoller.Poll` has been removed
+- Function `*ImagesUpdatePoller.Poll` has been removed
+- Function `*RestorePointsCreatePoller.FinalResponse` has been removed
+- Function `*GalleryApplicationsDeletePoller.ResumeToken` has been removed
+- Function `*SharedGalleryImagesListPager.NextPage` has been removed
+- Function `*SnapshotsGrantAccessPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsRedeployPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesCancelPollerResponse.Resume` has been removed
+- Function `*CloudServicesStartPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsReimagePoller.ResumeToken` has been removed
+- Function `CloudServicesUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImagesDeletePoller.FinalResponse` has been removed
+- Function `VirtualMachineScaleSetsUpdateInstancesPollerResponse.PollUntilDone` has been removed
+- Function `*SSHPublicKeysListByResourceGroupPager.NextPage` has been removed
+- Function `*VirtualMachineExtensionsDeletePoller.Done` has been removed
+- Function `*VirtualMachineScaleSetsUpdateInstancesPollerResponse.Resume` has been removed
+- Function `DiskRestorePointRevokeAccessPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImagesUpdatePollerResponse.Resume` has been removed
+- Function `VirtualMachineScaleSetsSetOrchestrationServiceStatePollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPoller.Poll` has been removed
+- Function `*VirtualMachinesPowerOffPoller.Done` has been removed
+- Function `CloudServicesCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `GalleryImagesUpdatePollerResponse.PollUntilDone` has been removed
+- Function `DisksRevokeAccessPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineExtensionsCreateOrUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsGetOSUpgradeHistoryPager.Err` has been removed
+- Function `*ProximityPlacementGroupsListByResourceGroupPager.PageResponse` has been removed
+- Function `*DiskEncryptionSetsCreateOrUpdatePoller.Poll` has been removed
+- Function `*GallerySharingProfileUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsPerformMaintenancePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsRestartPoller.ResumeToken` has been removed
+- Function `*ImagesCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*CloudServiceRoleInstancesListPager.PageResponse` has been removed
+- Function `*GalleryApplicationsDeletePoller.Done` has been removed
+- Function `*DedicatedHostsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*UsageListPager.Err` has been removed
+- Function `*VirtualMachinesDeallocatePoller.Poll` has been removed
+- Function `*LogAnalyticsExportThrottledRequestsPoller.ResumeToken` has been removed
+- Function `*DisksRevokeAccessPoller.Done` has been removed
+- Function `*VirtualMachineRunCommandsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*DiskAccessesDeletePoller.Done` has been removed
+- Function `*CloudServiceOperatingSystemsListOSFamiliesPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMsPerformMaintenancePoller.ResumeToken` has been removed
+- Function `VirtualMachinesConvertToManagedDisksPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller.ResumeToken` has been removed
+- Function `*VirtualMachinesListByLocationPager.PageResponse` has been removed
+- Function `VirtualMachinesCapturePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller.FinalResponse` has been removed
+- Function `*GalleryApplicationsUpdatePollerResponse.Resume` has been removed
+- Function `*SnapshotsUpdatePoller.FinalResponse` has been removed
+- Function `*GalleryApplicationsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetExtensionsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPoller.Done` has been removed
+- Function `*LogAnalyticsExportRequestRateByIntervalPoller.Poll` has been removed
+- Function `SubResource.MarshalJSON` has been removed
+- Function `*VirtualMachineScaleSetVMsDeletePoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetsReimageAllPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationVersionsCreateOrUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsRedeployPoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsUpdatePoller.FinalResponse` has been removed
+- Function `DedicatedHostsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*CloudServicesDeleteInstancesPoller.Done` has been removed
+- Function `*VirtualMachineExtensionsDeletePoller.ResumeToken` has been removed
+- Function `*CapacityReservationsDeletePollerResponse.Resume` has been removed
+- Function `*RestorePointCollectionsDeletePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesInstallPatchesPoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsDeallocatePollerResponse.Resume` has been removed
+- Function `*VirtualMachinesAssessPatchesPoller.Poll` has been removed
+- Function `*VirtualMachinesDeallocatePoller.Done` has been removed
+- Function `VirtualMachineScaleSetVMsReimagePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsRunCommandPoller.Poll` has been removed
+- Function `*VirtualMachinesCreateOrUpdatePoller.Done` has been removed
+- Function `*DiskEncryptionSetsListPager.Err` has been removed
+- Function `*GalleriesCreateOrUpdatePoller.Done` has been removed
+- Function `DiskEncryptionSetsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryImageVersionsUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetVMsDeallocatePoller.FinalResponse` has been removed
+- Function `VirtualMachinesDeallocatePollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationsListByGalleryPager.NextPage` has been removed
+- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPoller.FinalResponse` has been removed
+- Function `*GalleryImageVersionsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsDeletePoller.Done` has been removed
+- Function `*DiskEncryptionSetsListPager.NextPage` has been removed
+- Function `*VirtualMachinesDeletePoller.Poll` has been removed
+- Function `*VirtualMachineExtensionsUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMsListPager.PageResponse` has been removed
+- Function `*CloudServicesUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsDeletePoller.Poll` has been removed
+- Function `*CapacityReservationGroupsListBySubscriptionPager.NextPage` has been removed
+- Function `*CloudServiceOperatingSystemsListOSVersionsPager.Err` has been removed
+- Function `*VirtualMachinesStartPoller.Done` has been removed
+- Function `*CloudServicesStartPoller.Done` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*SharedGalleriesListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachinesPowerOffPoller.ResumeToken` has been removed
+- Function `*DisksDeletePollerResponse.Resume` has been removed
+- Function `*GalleryImagesCreateOrUpdatePoller.Done` has been removed
+- Function `SubResourceWithColocationStatus.MarshalJSON` has been removed
+- Function `VirtualMachineScaleSetVMsRestartPollerResponse.PollUntilDone` has been removed
+- Function `*GalleryApplicationVersionsCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `ImagesCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetsPowerOffPoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesCancelPoller.ResumeToken` has been removed
+- Function `*ImagesListByResourceGroupPager.PageResponse` has been removed
+- Function `*VirtualMachinesCapturePoller.Poll` has been removed
+- Function `*ProximityPlacementGroupsListByResourceGroupPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsRedeployPoller.Poll` has been removed
+- Function `*SnapshotsRevokeAccessPoller.Done` has been removed
+- Function `CloudServicesRestartPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsUpdatePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetVMRunCommandsDeletePoller.ResumeToken` has been removed
+- Function `*VirtualMachineRunCommandsListPager.PageResponse` has been removed
+- Function `*GalleriesUpdatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetVMsPerformMaintenancePoller.Poll` has been removed
+- Function `CloudServiceRoleInstancesReimagePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetExtensionsUpdatePoller.Poll` has been removed
+- Function `*VirtualMachineScaleSetsReimagePoller.Poll` has been removed
+- Function `*DedicatedHostsDeletePoller.FinalResponse` has been removed
+- Function `*VirtualMachineScaleSetsListPager.PageResponse` has been removed
+- Function `*DiskAccessesUpdatePoller.ResumeToken` has been removed
+- Function `*SharedGalleriesListPager.PageResponse` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesCancelPoller.FinalResponse` has been removed
+- Function `*DisksListByResourceGroupPager.PageResponse` has been removed
+- Function `*VirtualMachineRunCommandsCreateOrUpdatePoller.Poll` has been removed
+- Function `*ImagesUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineExtensionsCreateOrUpdatePoller.FinalResponse` has been removed
+- Function `*RestorePointsDeletePoller.Poll` has been removed
+- Function `*DiskAccessesDeleteAPrivateEndpointConnectionPoller.ResumeToken` has been removed
+- Function `VirtualMachineScaleSetVMsPerformMaintenancePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsRestartPollerResponse.Resume` has been removed
+- Function `GalleryImagesCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesInstallPatchesPoller.Done` has been removed
+- Function `*VirtualMachinesStartPollerResponse.Resume` has been removed
+- Function `SnapshotsGrantAccessPollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineScaleSetVMsPowerOffPoller.FinalResponse` has been removed
+- Function `*DedicatedHostGroupsListBySubscriptionPager.NextPage` has been removed
+- Function `*ImagesListPager.NextPage` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller.Done` has been removed
+- Function `*DiskAccessesListByResourceGroupPager.PageResponse` has been removed
+- Function `GalleryImageVersionsCreateOrUpdatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachinesAssessPatchesPollerResponse.Resume` has been removed
+- Function `*CloudServiceRoleInstancesRestartPoller.Done` has been removed
+- Function `*CloudServicesCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineRunCommandsListPager.Err` has been removed
+- Function `*GalleriesListByResourceGroupPager.PageResponse` has been removed
+- Function `*GalleriesCreateOrUpdatePollerResponse.Resume` has been removed
+- Function `*GalleryApplicationVersionsDeletePoller.Poll` has been removed
+- Function `*CloudServicesRestartPoller.ResumeToken` has been removed
+- Function `*DiskRestorePointGrantAccessPoller.FinalResponse` has been removed
+- Function `*GalleryApplicationsUpdatePoller.Poll` has been removed
+- Function `*GalleryImagesDeletePoller.Done` has been removed
+- Function `*SnapshotsGrantAccessPollerResponse.Resume` has been removed
+- Function `*CloudServiceRolesListPager.Err` has been removed
+- Function `*VirtualMachinesDeallocatePollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsRestartPoller.Poll` has been removed
+- Function `*VirtualMachinesDeallocatePoller.ResumeToken` has been removed
+- Function `*VirtualMachineScaleSetsListAllPager.Err` has been removed
+- Function `VirtualMachineScaleSetsReimagePollerResponse.PollUntilDone` has been removed
+- Function `CloudServiceRoleInstancesDeletePollerResponse.PollUntilDone` has been removed
+- Function `*DiskEncryptionSetsDeletePoller.Done` has been removed
+- Function `*RestorePointCollectionsDeletePoller.ResumeToken` has been removed
+- Function `GalleryApplicationVersionsDeletePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetsDeletePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachinesReapplyPollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineExtensionsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `VirtualMachineScaleSetsDeallocatePollerResponse.PollUntilDone` has been removed
+- Function `*VirtualMachineExtensionsDeletePollerResponse.Resume` has been removed
+- Function `*GalleriesDeletePoller.Done` has been removed
+- Function `*CloudServicesRebuildPollerResponse.Resume` has been removed
+- Function `*RestorePointCollectionsListPager.Err` has been removed
+- Function `*VirtualMachineScaleSetsDeallocatePoller.Poll` has been removed
+- Function `*DiskRestorePointGrantAccessPollerResponse.Resume` has been removed
+- Function `*VirtualMachineScaleSetsStartPoller.FinalResponse` has been removed
+- Function `*GallerySharingProfileUpdatePoller.FinalResponse` has been removed
+- Function `*ProximityPlacementGroupsListBySubscriptionPager.NextPage` has been removed
+- Function `VirtualMachineRunCommandsUpdatePollerResponse.PollUntilDone` has been removed
+- Function `SubResourceReadOnly.MarshalJSON` has been removed
+- Function `*VirtualMachineScaleSetRollingUpgradesCancelPoller.Done` has been removed
+- Struct `AvailabilitySetsCreateOrUpdateOptions` has been removed
+- Struct `AvailabilitySetsCreateOrUpdateResponse` has been removed
+- Struct `AvailabilitySetsCreateOrUpdateResult` has been removed
+- Struct `AvailabilitySetsDeleteOptions` has been removed
+- Struct `AvailabilitySetsDeleteResponse` has been removed
+- Struct `AvailabilitySetsGetOptions` has been removed
+- Struct `AvailabilitySetsGetResponse` has been removed
+- Struct `AvailabilitySetsGetResult` has been removed
+- Struct `AvailabilitySetsListAvailableSizesOptions` has been removed
+- Struct `AvailabilitySetsListAvailableSizesResponse` has been removed
+- Struct `AvailabilitySetsListAvailableSizesResult` has been removed
+- Struct `AvailabilitySetsListBySubscriptionOptions` has been removed
+- Struct `AvailabilitySetsListBySubscriptionPager` has been removed
+- Struct `AvailabilitySetsListBySubscriptionResponse` has been removed
+- Struct `AvailabilitySetsListBySubscriptionResult` has been removed
+- Struct `AvailabilitySetsListOptions` has been removed
+- Struct `AvailabilitySetsListPager` has been removed
+- Struct `AvailabilitySetsListResponse` has been removed
+- Struct `AvailabilitySetsListResult` has been removed
+- Struct `AvailabilitySetsUpdateOptions` has been removed
+- Struct `AvailabilitySetsUpdateResponse` has been removed
+- Struct `AvailabilitySetsUpdateResult` has been removed
+- Struct `CapacityReservationGroupsCreateOrUpdateOptions` has been removed
+- Struct `CapacityReservationGroupsCreateOrUpdateResponse` has been removed
+- Struct `CapacityReservationGroupsCreateOrUpdateResult` has been removed
+- Struct `CapacityReservationGroupsDeleteOptions` has been removed
+- Struct `CapacityReservationGroupsDeleteResponse` has been removed
+- Struct `CapacityReservationGroupsGetOptions` has been removed
+- Struct `CapacityReservationGroupsGetResponse` has been removed
+- Struct `CapacityReservationGroupsGetResult` has been removed
+- Struct `CapacityReservationGroupsListByResourceGroupOptions` has been removed
+- Struct `CapacityReservationGroupsListByResourceGroupPager` has been removed
+- Struct `CapacityReservationGroupsListByResourceGroupResponse` has been removed
+- Struct `CapacityReservationGroupsListByResourceGroupResult` has been removed
+- Struct `CapacityReservationGroupsListBySubscriptionOptions` has been removed
+- Struct `CapacityReservationGroupsListBySubscriptionPager` has been removed
+- Struct `CapacityReservationGroupsListBySubscriptionResponse` has been removed
+- Struct `CapacityReservationGroupsListBySubscriptionResult` has been removed
+- Struct `CapacityReservationGroupsUpdateOptions` has been removed
+- Struct `CapacityReservationGroupsUpdateResponse` has been removed
+- Struct `CapacityReservationGroupsUpdateResult` has been removed
+- Struct `CapacityReservationsBeginCreateOrUpdateOptions` has been removed
+- Struct `CapacityReservationsBeginDeleteOptions` has been removed
+- Struct `CapacityReservationsBeginUpdateOptions` has been removed
+- Struct `CapacityReservationsCreateOrUpdatePoller` has been removed
+- Struct `CapacityReservationsCreateOrUpdatePollerResponse` has been removed
+- Struct `CapacityReservationsCreateOrUpdateResponse` has been removed
+- Struct `CapacityReservationsCreateOrUpdateResult` has been removed
+- Struct `CapacityReservationsDeletePoller` has been removed
+- Struct `CapacityReservationsDeletePollerResponse` has been removed
+- Struct `CapacityReservationsDeleteResponse` has been removed
+- Struct `CapacityReservationsGetOptions` has been removed
+- Struct `CapacityReservationsGetResponse` has been removed
+- Struct `CapacityReservationsGetResult` has been removed
+- Struct `CapacityReservationsListByCapacityReservationGroupOptions` has been removed
+- Struct `CapacityReservationsListByCapacityReservationGroupPager` has been removed
+- Struct `CapacityReservationsListByCapacityReservationGroupResponse` has been removed
+- Struct `CapacityReservationsListByCapacityReservationGroupResult` has been removed
+- Struct `CapacityReservationsUpdatePoller` has been removed
+- Struct `CapacityReservationsUpdatePollerResponse` has been removed
+- Struct `CapacityReservationsUpdateResponse` has been removed
+- Struct `CapacityReservationsUpdateResult` has been removed
+- Struct `CloudServiceOperatingSystemsGetOSFamilyOptions` has been removed
+- Struct `CloudServiceOperatingSystemsGetOSFamilyResponse` has been removed
+- Struct `CloudServiceOperatingSystemsGetOSFamilyResult` has been removed
+- Struct `CloudServiceOperatingSystemsGetOSVersionOptions` has been removed
+- Struct `CloudServiceOperatingSystemsGetOSVersionResponse` has been removed
+- Struct `CloudServiceOperatingSystemsGetOSVersionResult` has been removed
+- Struct `CloudServiceOperatingSystemsListOSFamiliesOptions` has been removed
+- Struct `CloudServiceOperatingSystemsListOSFamiliesPager` has been removed
+- Struct `CloudServiceOperatingSystemsListOSFamiliesResponse` has been removed
+- Struct `CloudServiceOperatingSystemsListOSFamiliesResult` has been removed
+- Struct `CloudServiceOperatingSystemsListOSVersionsOptions` has been removed
+- Struct `CloudServiceOperatingSystemsListOSVersionsPager` has been removed
+- Struct `CloudServiceOperatingSystemsListOSVersionsResponse` has been removed
+- Struct `CloudServiceOperatingSystemsListOSVersionsResult` has been removed
+- Struct `CloudServiceRoleInstancesBeginDeleteOptions` has been removed
+- Struct `CloudServiceRoleInstancesBeginRebuildOptions` has been removed
+- Struct `CloudServiceRoleInstancesBeginReimageOptions` has been removed
+- Struct `CloudServiceRoleInstancesBeginRestartOptions` has been removed
+- Struct `CloudServiceRoleInstancesDeletePoller` has been removed
+- Struct `CloudServiceRoleInstancesDeletePollerResponse` has been removed
+- Struct `CloudServiceRoleInstancesDeleteResponse` has been removed
+- Struct `CloudServiceRoleInstancesGetInstanceViewOptions` has been removed
+- Struct `CloudServiceRoleInstancesGetInstanceViewResponse` has been removed
+- Struct `CloudServiceRoleInstancesGetInstanceViewResult` has been removed
+- Struct `CloudServiceRoleInstancesGetOptions` has been removed
+- Struct `CloudServiceRoleInstancesGetRemoteDesktopFileOptions` has been removed
+- Struct `CloudServiceRoleInstancesGetRemoteDesktopFileResponse` has been removed
+- Struct `CloudServiceRoleInstancesGetResponse` has been removed
+- Struct `CloudServiceRoleInstancesGetResult` has been removed
+- Struct `CloudServiceRoleInstancesListOptions` has been removed
+- Struct `CloudServiceRoleInstancesListPager` has been removed
+- Struct `CloudServiceRoleInstancesListResponse` has been removed
+- Struct `CloudServiceRoleInstancesListResult` has been removed
+- Struct `CloudServiceRoleInstancesRebuildPoller` has been removed
+- Struct `CloudServiceRoleInstancesRebuildPollerResponse` has been removed
+- Struct `CloudServiceRoleInstancesRebuildResponse` has been removed
+- Struct `CloudServiceRoleInstancesReimagePoller` has been removed
+- Struct `CloudServiceRoleInstancesReimagePollerResponse` has been removed
+- Struct `CloudServiceRoleInstancesReimageResponse` has been removed
+- Struct `CloudServiceRoleInstancesRestartPoller` has been removed
+- Struct `CloudServiceRoleInstancesRestartPollerResponse` has been removed
+- Struct `CloudServiceRoleInstancesRestartResponse` has been removed
+- Struct `CloudServiceRolesGetOptions` has been removed
+- Struct `CloudServiceRolesGetResponse` has been removed
+- Struct `CloudServiceRolesGetResult` has been removed
+- Struct `CloudServiceRolesListOptions` has been removed
+- Struct `CloudServiceRolesListPager` has been removed
+- Struct `CloudServiceRolesListResponse` has been removed
+- Struct `CloudServiceRolesListResult` has been removed
+- Struct `CloudServicesBeginCreateOrUpdateOptions` has been removed
+- Struct `CloudServicesBeginDeleteInstancesOptions` has been removed
+- Struct `CloudServicesBeginDeleteOptions` has been removed
+- Struct `CloudServicesBeginPowerOffOptions` has been removed
+- Struct `CloudServicesBeginRebuildOptions` has been removed
+- Struct `CloudServicesBeginReimageOptions` has been removed
+- Struct `CloudServicesBeginRestartOptions` has been removed
+- Struct `CloudServicesBeginStartOptions` has been removed
+- Struct `CloudServicesBeginUpdateOptions` has been removed
+- Struct `CloudServicesCreateOrUpdatePoller` has been removed
+- Struct `CloudServicesCreateOrUpdatePollerResponse` has been removed
+- Struct `CloudServicesCreateOrUpdateResponse` has been removed
+- Struct `CloudServicesCreateOrUpdateResult` has been removed
+- Struct `CloudServicesDeleteInstancesPoller` has been removed
+- Struct `CloudServicesDeleteInstancesPollerResponse` has been removed
+- Struct `CloudServicesDeleteInstancesResponse` has been removed
+- Struct `CloudServicesDeletePoller` has been removed
+- Struct `CloudServicesDeletePollerResponse` has been removed
+- Struct `CloudServicesDeleteResponse` has been removed
+- Struct `CloudServicesGetInstanceViewOptions` has been removed
+- Struct `CloudServicesGetInstanceViewResponse` has been removed
+- Struct `CloudServicesGetInstanceViewResult` has been removed
+- Struct `CloudServicesGetOptions` has been removed
+- Struct `CloudServicesGetResponse` has been removed
+- Struct `CloudServicesGetResult` has been removed
+- Struct `CloudServicesListAllOptions` has been removed
+- Struct `CloudServicesListAllPager` has been removed
+- Struct `CloudServicesListAllResponse` has been removed
+- Struct `CloudServicesListAllResult` has been removed
+- Struct `CloudServicesListOptions` has been removed
+- Struct `CloudServicesListPager` has been removed
+- Struct `CloudServicesListResponse` has been removed
+- Struct `CloudServicesListResult` has been removed
+- Struct `CloudServicesPowerOffPoller` has been removed
+- Struct `CloudServicesPowerOffPollerResponse` has been removed
+- Struct `CloudServicesPowerOffResponse` has been removed
+- Struct `CloudServicesRebuildPoller` has been removed
+- Struct `CloudServicesRebuildPollerResponse` has been removed
+- Struct `CloudServicesRebuildResponse` has been removed
+- Struct `CloudServicesReimagePoller` has been removed
+- Struct `CloudServicesReimagePollerResponse` has been removed
+- Struct `CloudServicesReimageResponse` has been removed
+- Struct `CloudServicesRestartPoller` has been removed
+- Struct `CloudServicesRestartPollerResponse` has been removed
+- Struct `CloudServicesRestartResponse` has been removed
+- Struct `CloudServicesStartPoller` has been removed
+- Struct `CloudServicesStartPollerResponse` has been removed
+- Struct `CloudServicesStartResponse` has been removed
+- Struct `CloudServicesUpdateDomainBeginWalkUpdateDomainOptions` has been removed
+- Struct `CloudServicesUpdateDomainGetUpdateDomainOptions` has been removed
+- Struct `CloudServicesUpdateDomainGetUpdateDomainResponse` has been removed
+- Struct `CloudServicesUpdateDomainGetUpdateDomainResult` has been removed
+- Struct `CloudServicesUpdateDomainListUpdateDomainsOptions` has been removed
+- Struct `CloudServicesUpdateDomainListUpdateDomainsPager` has been removed
+- Struct `CloudServicesUpdateDomainListUpdateDomainsResponse` has been removed
+- Struct `CloudServicesUpdateDomainListUpdateDomainsResult` has been removed
+- Struct `CloudServicesUpdateDomainWalkUpdateDomainPoller` has been removed
+- Struct `CloudServicesUpdateDomainWalkUpdateDomainPollerResponse` has been removed
+- Struct `CloudServicesUpdateDomainWalkUpdateDomainResponse` has been removed
+- Struct `CloudServicesUpdatePoller` has been removed
+- Struct `CloudServicesUpdatePollerResponse` has been removed
+- Struct `CloudServicesUpdateResponse` has been removed
+- Struct `CloudServicesUpdateResult` has been removed
+- Struct `CommunityGalleriesGetOptions` has been removed
+- Struct `CommunityGalleriesGetResponse` has been removed
+- Struct `CommunityGalleriesGetResult` has been removed
+- Struct `CommunityGalleryImageVersionsGetOptions` has been removed
+- Struct `CommunityGalleryImageVersionsGetResponse` has been removed
+- Struct `CommunityGalleryImageVersionsGetResult` has been removed
+- Struct `CommunityGalleryImagesGetOptions` has been removed
+- Struct `CommunityGalleryImagesGetResponse` has been removed
+- Struct `CommunityGalleryImagesGetResult` has been removed
+- Struct `ComputeOperationListResult` has been removed
+- Struct `ComputeOperationValue` has been removed
+- Struct `ComputeOperationValueDisplay` has been removed
+- Struct `DedicatedHostGroupsCreateOrUpdateOptions` has been removed
+- Struct `DedicatedHostGroupsCreateOrUpdateResponse` has been removed
+- Struct `DedicatedHostGroupsCreateOrUpdateResult` has been removed
+- Struct `DedicatedHostGroupsDeleteOptions` has been removed
+- Struct `DedicatedHostGroupsDeleteResponse` has been removed
+- Struct `DedicatedHostGroupsGetOptions` has been removed
+- Struct `DedicatedHostGroupsGetResponse` has been removed
+- Struct `DedicatedHostGroupsGetResult` has been removed
+- Struct `DedicatedHostGroupsListByResourceGroupOptions` has been removed
+- Struct `DedicatedHostGroupsListByResourceGroupPager` has been removed
+- Struct `DedicatedHostGroupsListByResourceGroupResponse` has been removed
+- Struct `DedicatedHostGroupsListByResourceGroupResult` has been removed
+- Struct `DedicatedHostGroupsListBySubscriptionOptions` has been removed
+- Struct `DedicatedHostGroupsListBySubscriptionPager` has been removed
+- Struct `DedicatedHostGroupsListBySubscriptionResponse` has been removed
+- Struct `DedicatedHostGroupsListBySubscriptionResult` has been removed
+- Struct `DedicatedHostGroupsUpdateOptions` has been removed
+- Struct `DedicatedHostGroupsUpdateResponse` has been removed
+- Struct `DedicatedHostGroupsUpdateResult` has been removed
+- Struct `DedicatedHostsBeginCreateOrUpdateOptions` has been removed
+- Struct `DedicatedHostsBeginDeleteOptions` has been removed
+- Struct `DedicatedHostsBeginUpdateOptions` has been removed
+- Struct `DedicatedHostsCreateOrUpdatePoller` has been removed
+- Struct `DedicatedHostsCreateOrUpdatePollerResponse` has been removed
+- Struct `DedicatedHostsCreateOrUpdateResponse` has been removed
+- Struct `DedicatedHostsCreateOrUpdateResult` has been removed
+- Struct `DedicatedHostsDeletePoller` has been removed
+- Struct `DedicatedHostsDeletePollerResponse` has been removed
+- Struct `DedicatedHostsDeleteResponse` has been removed
+- Struct `DedicatedHostsGetOptions` has been removed
+- Struct `DedicatedHostsGetResponse` has been removed
+- Struct `DedicatedHostsGetResult` has been removed
+- Struct `DedicatedHostsListByHostGroupOptions` has been removed
+- Struct `DedicatedHostsListByHostGroupPager` has been removed
+- Struct `DedicatedHostsListByHostGroupResponse` has been removed
+- Struct `DedicatedHostsListByHostGroupResult` has been removed
+- Struct `DedicatedHostsUpdatePoller` has been removed
+- Struct `DedicatedHostsUpdatePollerResponse` has been removed
+- Struct `DedicatedHostsUpdateResponse` has been removed
+- Struct `DedicatedHostsUpdateResult` has been removed
+- Struct `DiskAccessesBeginCreateOrUpdateOptions` has been removed
+- Struct `DiskAccessesBeginDeleteAPrivateEndpointConnectionOptions` has been removed
+- Struct `DiskAccessesBeginDeleteOptions` has been removed
+- Struct `DiskAccessesBeginUpdateAPrivateEndpointConnectionOptions` has been removed
+- Struct `DiskAccessesBeginUpdateOptions` has been removed
+- Struct `DiskAccessesCreateOrUpdatePoller` has been removed
+- Struct `DiskAccessesCreateOrUpdatePollerResponse` has been removed
+- Struct `DiskAccessesCreateOrUpdateResponse` has been removed
+- Struct `DiskAccessesCreateOrUpdateResult` has been removed
+- Struct `DiskAccessesDeleteAPrivateEndpointConnectionPoller` has been removed
+- Struct `DiskAccessesDeleteAPrivateEndpointConnectionPollerResponse` has been removed
+- Struct `DiskAccessesDeleteAPrivateEndpointConnectionResponse` has been removed
+- Struct `DiskAccessesDeletePoller` has been removed
+- Struct `DiskAccessesDeletePollerResponse` has been removed
+- Struct `DiskAccessesDeleteResponse` has been removed
+- Struct `DiskAccessesGetAPrivateEndpointConnectionOptions` has been removed
+- Struct `DiskAccessesGetAPrivateEndpointConnectionResponse` has been removed
+- Struct `DiskAccessesGetAPrivateEndpointConnectionResult` has been removed
+- Struct `DiskAccessesGetOptions` has been removed
+- Struct `DiskAccessesGetPrivateLinkResourcesOptions` has been removed
+- Struct `DiskAccessesGetPrivateLinkResourcesResponse` has been removed
+- Struct `DiskAccessesGetPrivateLinkResourcesResult` has been removed
+- Struct `DiskAccessesGetResponse` has been removed
+- Struct `DiskAccessesGetResult` has been removed
+- Struct `DiskAccessesListByResourceGroupOptions` has been removed
+- Struct `DiskAccessesListByResourceGroupPager` has been removed
+- Struct `DiskAccessesListByResourceGroupResponse` has been removed
+- Struct `DiskAccessesListByResourceGroupResult` has been removed
+- Struct `DiskAccessesListOptions` has been removed
+- Struct `DiskAccessesListPager` has been removed
+- Struct `DiskAccessesListPrivateEndpointConnectionsOptions` has been removed
+- Struct `DiskAccessesListPrivateEndpointConnectionsPager` has been removed
+- Struct `DiskAccessesListPrivateEndpointConnectionsResponse` has been removed
+- Struct `DiskAccessesListPrivateEndpointConnectionsResult` has been removed
+- Struct `DiskAccessesListResponse` has been removed
+- Struct `DiskAccessesListResult` has been removed
+- Struct `DiskAccessesUpdateAPrivateEndpointConnectionPoller` has been removed
+- Struct `DiskAccessesUpdateAPrivateEndpointConnectionPollerResponse` has been removed
+- Struct `DiskAccessesUpdateAPrivateEndpointConnectionResponse` has been removed
+- Struct `DiskAccessesUpdateAPrivateEndpointConnectionResult` has been removed
+- Struct `DiskAccessesUpdatePoller` has been removed
+- Struct `DiskAccessesUpdatePollerResponse` has been removed
+- Struct `DiskAccessesUpdateResponse` has been removed
+- Struct `DiskAccessesUpdateResult` has been removed
+- Struct `DiskEncryptionSetsBeginCreateOrUpdateOptions` has been removed
+- Struct `DiskEncryptionSetsBeginDeleteOptions` has been removed
+- Struct `DiskEncryptionSetsBeginUpdateOptions` has been removed
+- Struct `DiskEncryptionSetsCreateOrUpdatePoller` has been removed
+- Struct `DiskEncryptionSetsCreateOrUpdatePollerResponse` has been removed
+- Struct `DiskEncryptionSetsCreateOrUpdateResponse` has been removed
+- Struct `DiskEncryptionSetsCreateOrUpdateResult` has been removed
+- Struct `DiskEncryptionSetsDeletePoller` has been removed
+- Struct `DiskEncryptionSetsDeletePollerResponse` has been removed
+- Struct `DiskEncryptionSetsDeleteResponse` has been removed
+- Struct `DiskEncryptionSetsGetOptions` has been removed
+- Struct `DiskEncryptionSetsGetResponse` has been removed
+- Struct `DiskEncryptionSetsGetResult` has been removed
+- Struct `DiskEncryptionSetsListAssociatedResourcesOptions` has been removed
+- Struct `DiskEncryptionSetsListAssociatedResourcesPager` has been removed
+- Struct `DiskEncryptionSetsListAssociatedResourcesResponse` has been removed
+- Struct `DiskEncryptionSetsListAssociatedResourcesResult` has been removed
+- Struct `DiskEncryptionSetsListByResourceGroupOptions` has been removed
+- Struct `DiskEncryptionSetsListByResourceGroupPager` has been removed
+- Struct `DiskEncryptionSetsListByResourceGroupResponse` has been removed
+- Struct `DiskEncryptionSetsListByResourceGroupResult` has been removed
+- Struct `DiskEncryptionSetsListOptions` has been removed
+- Struct `DiskEncryptionSetsListPager` has been removed
+- Struct `DiskEncryptionSetsListResponse` has been removed
+- Struct `DiskEncryptionSetsListResult` has been removed
+- Struct `DiskEncryptionSetsUpdatePoller` has been removed
+- Struct `DiskEncryptionSetsUpdatePollerResponse` has been removed
+- Struct `DiskEncryptionSetsUpdateResponse` has been removed
+- Struct `DiskEncryptionSetsUpdateResult` has been removed
+- Struct `DiskRestorePointBeginGrantAccessOptions` has been removed
+- Struct `DiskRestorePointBeginRevokeAccessOptions` has been removed
+- Struct `DiskRestorePointGetOptions` has been removed
+- Struct `DiskRestorePointGetResponse` has been removed
+- Struct `DiskRestorePointGetResult` has been removed
+- Struct `DiskRestorePointGrantAccessPoller` has been removed
+- Struct `DiskRestorePointGrantAccessPollerResponse` has been removed
+- Struct `DiskRestorePointGrantAccessResponse` has been removed
+- Struct `DiskRestorePointGrantAccessResult` has been removed
+- Struct `DiskRestorePointListByRestorePointOptions` has been removed
+- Struct `DiskRestorePointListByRestorePointPager` has been removed
+- Struct `DiskRestorePointListByRestorePointResponse` has been removed
+- Struct `DiskRestorePointListByRestorePointResult` has been removed
+- Struct `DiskRestorePointRevokeAccessPoller` has been removed
+- Struct `DiskRestorePointRevokeAccessPollerResponse` has been removed
+- Struct `DiskRestorePointRevokeAccessResponse` has been removed
+- Struct `DisksBeginCreateOrUpdateOptions` has been removed
+- Struct `DisksBeginDeleteOptions` has been removed
+- Struct `DisksBeginGrantAccessOptions` has been removed
+- Struct `DisksBeginRevokeAccessOptions` has been removed
+- Struct `DisksBeginUpdateOptions` has been removed
+- Struct `DisksCreateOrUpdatePoller` has been removed
+- Struct `DisksCreateOrUpdatePollerResponse` has been removed
+- Struct `DisksCreateOrUpdateResponse` has been removed
+- Struct `DisksCreateOrUpdateResult` has been removed
+- Struct `DisksDeletePoller` has been removed
+- Struct `DisksDeletePollerResponse` has been removed
+- Struct `DisksDeleteResponse` has been removed
+- Struct `DisksGetOptions` has been removed
+- Struct `DisksGetResponse` has been removed
+- Struct `DisksGetResult` has been removed
+- Struct `DisksGrantAccessPoller` has been removed
+- Struct `DisksGrantAccessPollerResponse` has been removed
+- Struct `DisksGrantAccessResponse` has been removed
+- Struct `DisksGrantAccessResult` has been removed
+- Struct `DisksListByResourceGroupOptions` has been removed
+- Struct `DisksListByResourceGroupPager` has been removed
+- Struct `DisksListByResourceGroupResponse` has been removed
+- Struct `DisksListByResourceGroupResult` has been removed
+- Struct `DisksListOptions` has been removed
+- Struct `DisksListPager` has been removed
+- Struct `DisksListResponse` has been removed
+- Struct `DisksListResult` has been removed
+- Struct `DisksRevokeAccessPoller` has been removed
+- Struct `DisksRevokeAccessPollerResponse` has been removed
+- Struct `DisksRevokeAccessResponse` has been removed
+- Struct `DisksUpdatePoller` has been removed
+- Struct `DisksUpdatePollerResponse` has been removed
+- Struct `DisksUpdateResponse` has been removed
+- Struct `DisksUpdateResult` has been removed
+- Struct `GalleriesBeginCreateOrUpdateOptions` has been removed
+- Struct `GalleriesBeginDeleteOptions` has been removed
+- Struct `GalleriesBeginUpdateOptions` has been removed
+- Struct `GalleriesCreateOrUpdatePoller` has been removed
+- Struct `GalleriesCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleriesCreateOrUpdateResponse` has been removed
+- Struct `GalleriesCreateOrUpdateResult` has been removed
+- Struct `GalleriesDeletePoller` has been removed
+- Struct `GalleriesDeletePollerResponse` has been removed
+- Struct `GalleriesDeleteResponse` has been removed
+- Struct `GalleriesGetOptions` has been removed
+- Struct `GalleriesGetResponse` has been removed
+- Struct `GalleriesGetResult` has been removed
+- Struct `GalleriesListByResourceGroupOptions` has been removed
+- Struct `GalleriesListByResourceGroupPager` has been removed
+- Struct `GalleriesListByResourceGroupResponse` has been removed
+- Struct `GalleriesListByResourceGroupResult` has been removed
+- Struct `GalleriesListOptions` has been removed
+- Struct `GalleriesListPager` has been removed
+- Struct `GalleriesListResponse` has been removed
+- Struct `GalleriesListResult` has been removed
+- Struct `GalleriesUpdatePoller` has been removed
+- Struct `GalleriesUpdatePollerResponse` has been removed
+- Struct `GalleriesUpdateResponse` has been removed
+- Struct `GalleriesUpdateResult` has been removed
+- Struct `GalleryApplicationVersionsBeginCreateOrUpdateOptions` has been removed
+- Struct `GalleryApplicationVersionsBeginDeleteOptions` has been removed
+- Struct `GalleryApplicationVersionsBeginUpdateOptions` has been removed
+- Struct `GalleryApplicationVersionsCreateOrUpdatePoller` has been removed
+- Struct `GalleryApplicationVersionsCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleryApplicationVersionsCreateOrUpdateResponse` has been removed
+- Struct `GalleryApplicationVersionsCreateOrUpdateResult` has been removed
+- Struct `GalleryApplicationVersionsDeletePoller` has been removed
+- Struct `GalleryApplicationVersionsDeletePollerResponse` has been removed
+- Struct `GalleryApplicationVersionsDeleteResponse` has been removed
+- Struct `GalleryApplicationVersionsGetOptions` has been removed
+- Struct `GalleryApplicationVersionsGetResponse` has been removed
+- Struct `GalleryApplicationVersionsGetResult` has been removed
+- Struct `GalleryApplicationVersionsListByGalleryApplicationOptions` has been removed
+- Struct `GalleryApplicationVersionsListByGalleryApplicationPager` has been removed
+- Struct `GalleryApplicationVersionsListByGalleryApplicationResponse` has been removed
+- Struct `GalleryApplicationVersionsListByGalleryApplicationResult` has been removed
+- Struct `GalleryApplicationVersionsUpdatePoller` has been removed
+- Struct `GalleryApplicationVersionsUpdatePollerResponse` has been removed
+- Struct `GalleryApplicationVersionsUpdateResponse` has been removed
+- Struct `GalleryApplicationVersionsUpdateResult` has been removed
+- Struct `GalleryApplicationsBeginCreateOrUpdateOptions` has been removed
+- Struct `GalleryApplicationsBeginDeleteOptions` has been removed
+- Struct `GalleryApplicationsBeginUpdateOptions` has been removed
+- Struct `GalleryApplicationsCreateOrUpdatePoller` has been removed
+- Struct `GalleryApplicationsCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleryApplicationsCreateOrUpdateResponse` has been removed
+- Struct `GalleryApplicationsCreateOrUpdateResult` has been removed
+- Struct `GalleryApplicationsDeletePoller` has been removed
+- Struct `GalleryApplicationsDeletePollerResponse` has been removed
+- Struct `GalleryApplicationsDeleteResponse` has been removed
+- Struct `GalleryApplicationsGetOptions` has been removed
+- Struct `GalleryApplicationsGetResponse` has been removed
+- Struct `GalleryApplicationsGetResult` has been removed
+- Struct `GalleryApplicationsListByGalleryOptions` has been removed
+- Struct `GalleryApplicationsListByGalleryPager` has been removed
+- Struct `GalleryApplicationsListByGalleryResponse` has been removed
+- Struct `GalleryApplicationsListByGalleryResult` has been removed
+- Struct `GalleryApplicationsUpdatePoller` has been removed
+- Struct `GalleryApplicationsUpdatePollerResponse` has been removed
+- Struct `GalleryApplicationsUpdateResponse` has been removed
+- Struct `GalleryApplicationsUpdateResult` has been removed
+- Struct `GalleryImageVersionsBeginCreateOrUpdateOptions` has been removed
+- Struct `GalleryImageVersionsBeginDeleteOptions` has been removed
+- Struct `GalleryImageVersionsBeginUpdateOptions` has been removed
+- Struct `GalleryImageVersionsCreateOrUpdatePoller` has been removed
+- Struct `GalleryImageVersionsCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleryImageVersionsCreateOrUpdateResponse` has been removed
+- Struct `GalleryImageVersionsCreateOrUpdateResult` has been removed
+- Struct `GalleryImageVersionsDeletePoller` has been removed
+- Struct `GalleryImageVersionsDeletePollerResponse` has been removed
+- Struct `GalleryImageVersionsDeleteResponse` has been removed
+- Struct `GalleryImageVersionsGetOptions` has been removed
+- Struct `GalleryImageVersionsGetResponse` has been removed
+- Struct `GalleryImageVersionsGetResult` has been removed
+- Struct `GalleryImageVersionsListByGalleryImageOptions` has been removed
+- Struct `GalleryImageVersionsListByGalleryImagePager` has been removed
+- Struct `GalleryImageVersionsListByGalleryImageResponse` has been removed
+- Struct `GalleryImageVersionsListByGalleryImageResult` has been removed
+- Struct `GalleryImageVersionsUpdatePoller` has been removed
+- Struct `GalleryImageVersionsUpdatePollerResponse` has been removed
+- Struct `GalleryImageVersionsUpdateResponse` has been removed
+- Struct `GalleryImageVersionsUpdateResult` has been removed
+- Struct `GalleryImagesBeginCreateOrUpdateOptions` has been removed
+- Struct `GalleryImagesBeginDeleteOptions` has been removed
+- Struct `GalleryImagesBeginUpdateOptions` has been removed
+- Struct `GalleryImagesCreateOrUpdatePoller` has been removed
+- Struct `GalleryImagesCreateOrUpdatePollerResponse` has been removed
+- Struct `GalleryImagesCreateOrUpdateResponse` has been removed
+- Struct `GalleryImagesCreateOrUpdateResult` has been removed
+- Struct `GalleryImagesDeletePoller` has been removed
+- Struct `GalleryImagesDeletePollerResponse` has been removed
+- Struct `GalleryImagesDeleteResponse` has been removed
+- Struct `GalleryImagesGetOptions` has been removed
+- Struct `GalleryImagesGetResponse` has been removed
+- Struct `GalleryImagesGetResult` has been removed
+- Struct `GalleryImagesListByGalleryOptions` has been removed
+- Struct `GalleryImagesListByGalleryPager` has been removed
+- Struct `GalleryImagesListByGalleryResponse` has been removed
+- Struct `GalleryImagesListByGalleryResult` has been removed
+- Struct `GalleryImagesUpdatePoller` has been removed
+- Struct `GalleryImagesUpdatePollerResponse` has been removed
+- Struct `GalleryImagesUpdateResponse` has been removed
+- Struct `GalleryImagesUpdateResult` has been removed
+- Struct `GallerySharingProfileBeginUpdateOptions` has been removed
+- Struct `GallerySharingProfileUpdatePoller` has been removed
+- Struct `GallerySharingProfileUpdatePollerResponse` has been removed
+- Struct `GallerySharingProfileUpdateResponse` has been removed
+- Struct `GallerySharingProfileUpdateResult` has been removed
+- Struct `ImagesBeginCreateOrUpdateOptions` has been removed
+- Struct `ImagesBeginDeleteOptions` has been removed
+- Struct `ImagesBeginUpdateOptions` has been removed
+- Struct `ImagesCreateOrUpdatePoller` has been removed
+- Struct `ImagesCreateOrUpdatePollerResponse` has been removed
+- Struct `ImagesCreateOrUpdateResponse` has been removed
+- Struct `ImagesCreateOrUpdateResult` has been removed
+- Struct `ImagesDeletePoller` has been removed
+- Struct `ImagesDeletePollerResponse` has been removed
+- Struct `ImagesDeleteResponse` has been removed
+- Struct `ImagesGetOptions` has been removed
+- Struct `ImagesGetResponse` has been removed
+- Struct `ImagesGetResult` has been removed
+- Struct `ImagesListByResourceGroupOptions` has been removed
+- Struct `ImagesListByResourceGroupPager` has been removed
+- Struct `ImagesListByResourceGroupResponse` has been removed
+- Struct `ImagesListByResourceGroupResult` has been removed
+- Struct `ImagesListOptions` has been removed
+- Struct `ImagesListPager` has been removed
+- Struct `ImagesListResponse` has been removed
+- Struct `ImagesListResult` has been removed
+- Struct `ImagesUpdatePoller` has been removed
+- Struct `ImagesUpdatePollerResponse` has been removed
+- Struct `ImagesUpdateResponse` has been removed
+- Struct `ImagesUpdateResult` has been removed
+- Struct `LogAnalyticsBeginExportRequestRateByIntervalOptions` has been removed
+- Struct `LogAnalyticsBeginExportThrottledRequestsOptions` has been removed
+- Struct `LogAnalyticsExportRequestRateByIntervalPoller` has been removed
+- Struct `LogAnalyticsExportRequestRateByIntervalPollerResponse` has been removed
+- Struct `LogAnalyticsExportRequestRateByIntervalResponse` has been removed
+- Struct `LogAnalyticsExportRequestRateByIntervalResult` has been removed
+- Struct `LogAnalyticsExportThrottledRequestsPoller` has been removed
+- Struct `LogAnalyticsExportThrottledRequestsPollerResponse` has been removed
+- Struct `LogAnalyticsExportThrottledRequestsResponse` has been removed
+- Struct `LogAnalyticsExportThrottledRequestsResult` has been removed
+- Struct `OperationsListOptions` has been removed
+- Struct `OperationsListResponse` has been removed
+- Struct `OperationsListResult` has been removed
+- Struct `ProximityPlacementGroupsCreateOrUpdateOptions` has been removed
+- Struct `ProximityPlacementGroupsCreateOrUpdateResponse` has been removed
+- Struct `ProximityPlacementGroupsCreateOrUpdateResult` has been removed
+- Struct `ProximityPlacementGroupsDeleteOptions` has been removed
+- Struct `ProximityPlacementGroupsDeleteResponse` has been removed
+- Struct `ProximityPlacementGroupsGetOptions` has been removed
+- Struct `ProximityPlacementGroupsGetResponse` has been removed
+- Struct `ProximityPlacementGroupsGetResult` has been removed
+- Struct `ProximityPlacementGroupsListByResourceGroupOptions` has been removed
+- Struct `ProximityPlacementGroupsListByResourceGroupPager` has been removed
+- Struct `ProximityPlacementGroupsListByResourceGroupResponse` has been removed
+- Struct `ProximityPlacementGroupsListByResourceGroupResult` has been removed
+- Struct `ProximityPlacementGroupsListBySubscriptionOptions` has been removed
+- Struct `ProximityPlacementGroupsListBySubscriptionPager` has been removed
+- Struct `ProximityPlacementGroupsListBySubscriptionResponse` has been removed
+- Struct `ProximityPlacementGroupsListBySubscriptionResult` has been removed
+- Struct `ProximityPlacementGroupsUpdateOptions` has been removed
+- Struct `ProximityPlacementGroupsUpdateResponse` has been removed
+- Struct `ProximityPlacementGroupsUpdateResult` has been removed
+- Struct `ResourceSKUsListOptions` has been removed
+- Struct `ResourceSKUsListPager` has been removed
+- Struct `ResourceSKUsListResponse` has been removed
+- Struct `ResourceSKUsListResult` has been removed
+- Struct `RestorePointCollectionsBeginDeleteOptions` has been removed
+- Struct `RestorePointCollectionsCreateOrUpdateOptions` has been removed
+- Struct `RestorePointCollectionsCreateOrUpdateResponse` has been removed
+- Struct `RestorePointCollectionsCreateOrUpdateResult` has been removed
+- Struct `RestorePointCollectionsDeletePoller` has been removed
+- Struct `RestorePointCollectionsDeletePollerResponse` has been removed
+- Struct `RestorePointCollectionsDeleteResponse` has been removed
+- Struct `RestorePointCollectionsGetOptions` has been removed
+- Struct `RestorePointCollectionsGetResponse` has been removed
+- Struct `RestorePointCollectionsGetResult` has been removed
+- Struct `RestorePointCollectionsListAllOptions` has been removed
+- Struct `RestorePointCollectionsListAllPager` has been removed
+- Struct `RestorePointCollectionsListAllResponse` has been removed
+- Struct `RestorePointCollectionsListAllResult` has been removed
+- Struct `RestorePointCollectionsListOptions` has been removed
+- Struct `RestorePointCollectionsListPager` has been removed
+- Struct `RestorePointCollectionsListResponse` has been removed
+- Struct `RestorePointCollectionsListResult` has been removed
+- Struct `RestorePointCollectionsUpdateOptions` has been removed
+- Struct `RestorePointCollectionsUpdateResponse` has been removed
+- Struct `RestorePointCollectionsUpdateResult` has been removed
+- Struct `RestorePointsBeginCreateOptions` has been removed
+- Struct `RestorePointsBeginDeleteOptions` has been removed
+- Struct `RestorePointsCreatePoller` has been removed
+- Struct `RestorePointsCreatePollerResponse` has been removed
+- Struct `RestorePointsCreateResponse` has been removed
+- Struct `RestorePointsCreateResult` has been removed
+- Struct `RestorePointsDeletePoller` has been removed
+- Struct `RestorePointsDeletePollerResponse` has been removed
+- Struct `RestorePointsDeleteResponse` has been removed
+- Struct `RestorePointsGetOptions` has been removed
+- Struct `RestorePointsGetResponse` has been removed
+- Struct `RestorePointsGetResult` has been removed
+- Struct `SSHPublicKeysCreateOptions` has been removed
+- Struct `SSHPublicKeysCreateResponse` has been removed
+- Struct `SSHPublicKeysCreateResult` has been removed
+- Struct `SSHPublicKeysDeleteOptions` has been removed
+- Struct `SSHPublicKeysDeleteResponse` has been removed
+- Struct `SSHPublicKeysGenerateKeyPairOptions` has been removed
+- Struct `SSHPublicKeysGenerateKeyPairResponse` has been removed
+- Struct `SSHPublicKeysGenerateKeyPairResult` has been removed
+- Struct `SSHPublicKeysGetOptions` has been removed
+- Struct `SSHPublicKeysGetResponse` has been removed
+- Struct `SSHPublicKeysGetResult` has been removed
+- Struct `SSHPublicKeysListByResourceGroupOptions` has been removed
+- Struct `SSHPublicKeysListByResourceGroupPager` has been removed
+- Struct `SSHPublicKeysListByResourceGroupResponse` has been removed
+- Struct `SSHPublicKeysListByResourceGroupResult` has been removed
+- Struct `SSHPublicKeysListBySubscriptionOptions` has been removed
+- Struct `SSHPublicKeysListBySubscriptionPager` has been removed
+- Struct `SSHPublicKeysListBySubscriptionResponse` has been removed
+- Struct `SSHPublicKeysListBySubscriptionResult` has been removed
+- Struct `SSHPublicKeysUpdateOptions` has been removed
+- Struct `SSHPublicKeysUpdateResponse` has been removed
+- Struct `SSHPublicKeysUpdateResult` has been removed
+- Struct `SharedGalleriesGetOptions` has been removed
+- Struct `SharedGalleriesGetResponse` has been removed
+- Struct `SharedGalleriesGetResult` has been removed
+- Struct `SharedGalleriesListOptions` has been removed
+- Struct `SharedGalleriesListPager` has been removed
+- Struct `SharedGalleriesListResponse` has been removed
+- Struct `SharedGalleriesListResult` has been removed
+- Struct `SharedGalleryImageVersionsGetOptions` has been removed
+- Struct `SharedGalleryImageVersionsGetResponse` has been removed
+- Struct `SharedGalleryImageVersionsGetResult` has been removed
+- Struct `SharedGalleryImageVersionsListOptions` has been removed
+- Struct `SharedGalleryImageVersionsListPager` has been removed
+- Struct `SharedGalleryImageVersionsListResponse` has been removed
+- Struct `SharedGalleryImageVersionsListResult` has been removed
+- Struct `SharedGalleryImagesGetOptions` has been removed
+- Struct `SharedGalleryImagesGetResponse` has been removed
+- Struct `SharedGalleryImagesGetResult` has been removed
+- Struct `SharedGalleryImagesListOptions` has been removed
+- Struct `SharedGalleryImagesListPager` has been removed
+- Struct `SharedGalleryImagesListResponse` has been removed
+- Struct `SharedGalleryImagesListResult` has been removed
+- Struct `SnapshotsBeginCreateOrUpdateOptions` has been removed
+- Struct `SnapshotsBeginDeleteOptions` has been removed
+- Struct `SnapshotsBeginGrantAccessOptions` has been removed
+- Struct `SnapshotsBeginRevokeAccessOptions` has been removed
+- Struct `SnapshotsBeginUpdateOptions` has been removed
+- Struct `SnapshotsCreateOrUpdatePoller` has been removed
+- Struct `SnapshotsCreateOrUpdatePollerResponse` has been removed
+- Struct `SnapshotsCreateOrUpdateResponse` has been removed
+- Struct `SnapshotsCreateOrUpdateResult` has been removed
+- Struct `SnapshotsDeletePoller` has been removed
+- Struct `SnapshotsDeletePollerResponse` has been removed
+- Struct `SnapshotsDeleteResponse` has been removed
+- Struct `SnapshotsGetOptions` has been removed
+- Struct `SnapshotsGetResponse` has been removed
+- Struct `SnapshotsGetResult` has been removed
+- Struct `SnapshotsGrantAccessPoller` has been removed
+- Struct `SnapshotsGrantAccessPollerResponse` has been removed
+- Struct `SnapshotsGrantAccessResponse` has been removed
+- Struct `SnapshotsGrantAccessResult` has been removed
+- Struct `SnapshotsListByResourceGroupOptions` has been removed
+- Struct `SnapshotsListByResourceGroupPager` has been removed
+- Struct `SnapshotsListByResourceGroupResponse` has been removed
+- Struct `SnapshotsListByResourceGroupResult` has been removed
+- Struct `SnapshotsListOptions` has been removed
+- Struct `SnapshotsListPager` has been removed
+- Struct `SnapshotsListResponse` has been removed
+- Struct `SnapshotsListResult` has been removed
+- Struct `SnapshotsRevokeAccessPoller` has been removed
+- Struct `SnapshotsRevokeAccessPollerResponse` has been removed
+- Struct `SnapshotsRevokeAccessResponse` has been removed
+- Struct `SnapshotsUpdatePoller` has been removed
+- Struct `SnapshotsUpdatePollerResponse` has been removed
+- Struct `SnapshotsUpdateResponse` has been removed
+- Struct `SnapshotsUpdateResult` has been removed
+- Struct `UsageListOptions` has been removed
+- Struct `UsageListPager` has been removed
+- Struct `UsageListResponse` has been removed
+- Struct `UsageListResult` has been removed
+- Struct `VirtualMachineExtensionImagesGetOptions` has been removed
+- Struct `VirtualMachineExtensionImagesGetResponse` has been removed
+- Struct `VirtualMachineExtensionImagesGetResult` has been removed
+- Struct `VirtualMachineExtensionImagesListTypesOptions` has been removed
+- Struct `VirtualMachineExtensionImagesListTypesResponse` has been removed
+- Struct `VirtualMachineExtensionImagesListTypesResult` has been removed
+- Struct `VirtualMachineExtensionImagesListVersionsOptions` has been removed
+- Struct `VirtualMachineExtensionImagesListVersionsResponse` has been removed
+- Struct `VirtualMachineExtensionImagesListVersionsResult` has been removed
+- Struct `VirtualMachineExtensionsBeginCreateOrUpdateOptions` has been removed
+- Struct `VirtualMachineExtensionsBeginDeleteOptions` has been removed
+- Struct `VirtualMachineExtensionsBeginUpdateOptions` has been removed
+- Struct `VirtualMachineExtensionsCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineExtensionsCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineExtensionsCreateOrUpdateResponse` has been removed
+- Struct `VirtualMachineExtensionsCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineExtensionsDeletePoller` has been removed
+- Struct `VirtualMachineExtensionsDeletePollerResponse` has been removed
+- Struct `VirtualMachineExtensionsDeleteResponse` has been removed
+- Struct `VirtualMachineExtensionsGetOptions` has been removed
+- Struct `VirtualMachineExtensionsGetResponse` has been removed
+- Struct `VirtualMachineExtensionsGetResult` has been removed
+- Struct `VirtualMachineExtensionsListOptions` has been removed
+- Struct `VirtualMachineExtensionsListResponse` has been removed
+- Struct `VirtualMachineExtensionsListResultEnvelope` has been removed
+- Struct `VirtualMachineExtensionsUpdatePoller` has been removed
+- Struct `VirtualMachineExtensionsUpdatePollerResponse` has been removed
+- Struct `VirtualMachineExtensionsUpdateResponse` has been removed
+- Struct `VirtualMachineExtensionsUpdateResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneGetOptions` has been removed
+- Struct `VirtualMachineImagesEdgeZoneGetResponse` has been removed
+- Struct `VirtualMachineImagesEdgeZoneGetResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListOffersOptions` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListOffersResponse` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListOffersResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListOptions` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListPublishersOptions` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListPublishersResponse` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListPublishersResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListResponse` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListResult` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListSKUsOptions` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListSKUsResponse` has been removed
+- Struct `VirtualMachineImagesEdgeZoneListSKUsResult` has been removed
+- Struct `VirtualMachineImagesGetOptions` has been removed
+- Struct `VirtualMachineImagesGetResponse` has been removed
+- Struct `VirtualMachineImagesGetResult` has been removed
+- Struct `VirtualMachineImagesListOffersOptions` has been removed
+- Struct `VirtualMachineImagesListOffersResponse` has been removed
+- Struct `VirtualMachineImagesListOffersResult` has been removed
+- Struct `VirtualMachineImagesListOptions` has been removed
+- Struct `VirtualMachineImagesListPublishersOptions` has been removed
+- Struct `VirtualMachineImagesListPublishersResponse` has been removed
+- Struct `VirtualMachineImagesListPublishersResult` has been removed
+- Struct `VirtualMachineImagesListResponse` has been removed
+- Struct `VirtualMachineImagesListResult` has been removed
+- Struct `VirtualMachineImagesListSKUsOptions` has been removed
+- Struct `VirtualMachineImagesListSKUsResponse` has been removed
+- Struct `VirtualMachineImagesListSKUsResult` has been removed
+- Struct `VirtualMachineRunCommandsBeginCreateOrUpdateOptions` has been removed
+- Struct `VirtualMachineRunCommandsBeginDeleteOptions` has been removed
+- Struct `VirtualMachineRunCommandsBeginUpdateOptions` has been removed
+- Struct `VirtualMachineRunCommandsCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineRunCommandsCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineRunCommandsCreateOrUpdateResponse` has been removed
+- Struct `VirtualMachineRunCommandsCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineRunCommandsDeletePoller` has been removed
+- Struct `VirtualMachineRunCommandsDeletePollerResponse` has been removed
+- Struct `VirtualMachineRunCommandsDeleteResponse` has been removed
+- Struct `VirtualMachineRunCommandsGetByVirtualMachineOptions` has been removed
+- Struct `VirtualMachineRunCommandsGetByVirtualMachineResponse` has been removed
+- Struct `VirtualMachineRunCommandsGetByVirtualMachineResult` has been removed
+- Struct `VirtualMachineRunCommandsGetOptions` has been removed
+- Struct `VirtualMachineRunCommandsGetResponse` has been removed
+- Struct `VirtualMachineRunCommandsGetResult` has been removed
+- Struct `VirtualMachineRunCommandsListByVirtualMachineOptions` has been removed
+- Struct `VirtualMachineRunCommandsListByVirtualMachinePager` has been removed
+- Struct `VirtualMachineRunCommandsListByVirtualMachineResponse` has been removed
+- Struct `VirtualMachineRunCommandsListByVirtualMachineResult` has been removed
+- Struct `VirtualMachineRunCommandsListOptions` has been removed
+- Struct `VirtualMachineRunCommandsListPager` has been removed
+- Struct `VirtualMachineRunCommandsListResponse` has been removed
+- Struct `VirtualMachineRunCommandsListResultEnvelope` has been removed
+- Struct `VirtualMachineRunCommandsUpdatePoller` has been removed
+- Struct `VirtualMachineRunCommandsUpdatePollerResponse` has been removed
+- Struct `VirtualMachineRunCommandsUpdateResponse` has been removed
+- Struct `VirtualMachineRunCommandsUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetExtensionsBeginCreateOrUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetExtensionsBeginDeleteOptions` has been removed
+- Struct `VirtualMachineScaleSetExtensionsBeginUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetExtensionsCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetExtensionsCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsCreateOrUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetExtensionsDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetExtensionsDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsDeleteResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsGetOptions` has been removed
+- Struct `VirtualMachineScaleSetExtensionsGetResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsGetResult` has been removed
+- Struct `VirtualMachineScaleSetExtensionsListOptions` has been removed
+- Struct `VirtualMachineScaleSetExtensionsListPager` has been removed
+- Struct `VirtualMachineScaleSetExtensionsListResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsListResult` has been removed
+- Struct `VirtualMachineScaleSetExtensionsUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetExtensionsUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetExtensionsUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesBeginCancelOptions` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesBeginStartExtensionUpgradeOptions` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesBeginStartOSUpgradeOptions` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesCancelPoller` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesCancelPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesCancelResponse` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesGetLatestOptions` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesGetLatestResponse` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesGetLatestResult` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePoller` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeResponse` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesStartOSUpgradePoller` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesStartOSUpgradePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetRollingUpgradesStartOSUpgradeResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsBeginCreateOrUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsBeginDeleteOptions` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsBeginUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsDeleteResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsGetOptions` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsGetResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsGetResult` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsListOptions` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsListResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsListResultEnvelope` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetVMExtensionsUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsBeginCreateOrUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsBeginDeleteOptions` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsBeginUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsDeleteResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsGetOptions` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsGetResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsGetResult` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsListOptions` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsListPager` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsListResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsListResult` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetVMRunCommandsUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginDeallocateOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginDeleteOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginPerformMaintenanceOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginPowerOffOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginRedeployOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginReimageAllOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginReimageOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginRestartOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginRunCommandOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginStartOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsBeginUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsDeallocatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsDeallocatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsDeallocateResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsDeleteResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsGetInstanceViewOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsGetInstanceViewResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsGetInstanceViewResult` has been removed
+- Struct `VirtualMachineScaleSetVMsGetOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsGetResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsGetResult` has been removed
+- Struct `VirtualMachineScaleSetVMsListOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsListPager` has been removed
+- Struct `VirtualMachineScaleSetVMsListResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsListResult` has been removed
+- Struct `VirtualMachineScaleSetVMsPerformMaintenancePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsPerformMaintenancePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsPerformMaintenanceResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsPowerOffPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsPowerOffPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsPowerOffResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsRedeployPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsRedeployPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsRedeployResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsReimageAllPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsReimageAllPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsReimageAllResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsReimagePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsReimagePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsReimageResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsRestartPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsRestartPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsRestartResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResult` has been removed
+- Struct `VirtualMachineScaleSetVMsRunCommandPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsRunCommandPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsRunCommandResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsRunCommandResult` has been removed
+- Struct `VirtualMachineScaleSetVMsSimulateEvictionOptions` has been removed
+- Struct `VirtualMachineScaleSetVMsSimulateEvictionResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsStartPoller` has been removed
+- Struct `VirtualMachineScaleSetVMsStartPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsStartResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetVMsUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetVMsUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetsBeginCreateOrUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginDeallocateOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginDeleteInstancesOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginDeleteOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginPerformMaintenanceOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginPowerOffOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginRedeployOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginReimageAllOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginReimageOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginRestartOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginSetOrchestrationServiceStateOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginStartOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginUpdateInstancesOptions` has been removed
+- Struct `VirtualMachineScaleSetsBeginUpdateOptions` has been removed
+- Struct `VirtualMachineScaleSetsConvertToSinglePlacementGroupOptions` has been removed
+- Struct `VirtualMachineScaleSetsConvertToSinglePlacementGroupResponse` has been removed
+- Struct `VirtualMachineScaleSetsCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetsCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsCreateOrUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetsCreateOrUpdateResult` has been removed
+- Struct `VirtualMachineScaleSetsDeallocatePoller` has been removed
+- Struct `VirtualMachineScaleSetsDeallocatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsDeallocateResponse` has been removed
+- Struct `VirtualMachineScaleSetsDeleteInstancesPoller` has been removed
+- Struct `VirtualMachineScaleSetsDeleteInstancesPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsDeleteInstancesResponse` has been removed
+- Struct `VirtualMachineScaleSetsDeletePoller` has been removed
+- Struct `VirtualMachineScaleSetsDeletePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsDeleteResponse` has been removed
+- Struct `VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions` has been removed
+- Struct `VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse` has been removed
+- Struct `VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResult` has been removed
+- Struct `VirtualMachineScaleSetsGetInstanceViewOptions` has been removed
+- Struct `VirtualMachineScaleSetsGetInstanceViewResponse` has been removed
+- Struct `VirtualMachineScaleSetsGetInstanceViewResult` has been removed
+- Struct `VirtualMachineScaleSetsGetOSUpgradeHistoryOptions` has been removed
+- Struct `VirtualMachineScaleSetsGetOSUpgradeHistoryPager` has been removed
+- Struct `VirtualMachineScaleSetsGetOSUpgradeHistoryResponse` has been removed
+- Struct `VirtualMachineScaleSetsGetOSUpgradeHistoryResult` has been removed
+- Struct `VirtualMachineScaleSetsGetOptions` has been removed
+- Struct `VirtualMachineScaleSetsGetResponse` has been removed
+- Struct `VirtualMachineScaleSetsGetResult` has been removed
+- Struct `VirtualMachineScaleSetsListAllOptions` has been removed
+- Struct `VirtualMachineScaleSetsListAllPager` has been removed
+- Struct `VirtualMachineScaleSetsListAllResponse` has been removed
+- Struct `VirtualMachineScaleSetsListAllResult` has been removed
+- Struct `VirtualMachineScaleSetsListByLocationOptions` has been removed
+- Struct `VirtualMachineScaleSetsListByLocationPager` has been removed
+- Struct `VirtualMachineScaleSetsListByLocationResponse` has been removed
+- Struct `VirtualMachineScaleSetsListByLocationResult` has been removed
+- Struct `VirtualMachineScaleSetsListOptions` has been removed
+- Struct `VirtualMachineScaleSetsListPager` has been removed
+- Struct `VirtualMachineScaleSetsListResponse` has been removed
+- Struct `VirtualMachineScaleSetsListResult` has been removed
+- Struct `VirtualMachineScaleSetsListSKUsOptions` has been removed
+- Struct `VirtualMachineScaleSetsListSKUsPager` has been removed
+- Struct `VirtualMachineScaleSetsListSKUsResponse` has been removed
+- Struct `VirtualMachineScaleSetsListSKUsResult` has been removed
+- Struct `VirtualMachineScaleSetsPerformMaintenancePoller` has been removed
+- Struct `VirtualMachineScaleSetsPerformMaintenancePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsPerformMaintenanceResponse` has been removed
+- Struct `VirtualMachineScaleSetsPowerOffPoller` has been removed
+- Struct `VirtualMachineScaleSetsPowerOffPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsPowerOffResponse` has been removed
+- Struct `VirtualMachineScaleSetsRedeployPoller` has been removed
+- Struct `VirtualMachineScaleSetsRedeployPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsRedeployResponse` has been removed
+- Struct `VirtualMachineScaleSetsReimageAllPoller` has been removed
+- Struct `VirtualMachineScaleSetsReimageAllPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsReimageAllResponse` has been removed
+- Struct `VirtualMachineScaleSetsReimagePoller` has been removed
+- Struct `VirtualMachineScaleSetsReimagePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsReimageResponse` has been removed
+- Struct `VirtualMachineScaleSetsRestartPoller` has been removed
+- Struct `VirtualMachineScaleSetsRestartPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsRestartResponse` has been removed
+- Struct `VirtualMachineScaleSetsSetOrchestrationServiceStatePoller` has been removed
+- Struct `VirtualMachineScaleSetsSetOrchestrationServiceStatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsSetOrchestrationServiceStateResponse` has been removed
+- Struct `VirtualMachineScaleSetsStartPoller` has been removed
+- Struct `VirtualMachineScaleSetsStartPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsStartResponse` has been removed
+- Struct `VirtualMachineScaleSetsUpdateInstancesPoller` has been removed
+- Struct `VirtualMachineScaleSetsUpdateInstancesPollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsUpdateInstancesResponse` has been removed
+- Struct `VirtualMachineScaleSetsUpdatePoller` has been removed
+- Struct `VirtualMachineScaleSetsUpdatePollerResponse` has been removed
+- Struct `VirtualMachineScaleSetsUpdateResponse` has been removed
+- Struct `VirtualMachineScaleSetsUpdateResult` has been removed
+- Struct `VirtualMachineSizesListOptions` has been removed
+- Struct `VirtualMachineSizesListResponse` has been removed
+- Struct `VirtualMachineSizesListResult` has been removed
+- Struct `VirtualMachinesAssessPatchesPoller` has been removed
+- Struct `VirtualMachinesAssessPatchesPollerResponse` has been removed
+- Struct `VirtualMachinesAssessPatchesResponse` has been removed
+- Struct `VirtualMachinesAssessPatchesResult` has been removed
+- Struct `VirtualMachinesBeginAssessPatchesOptions` has been removed
+- Struct `VirtualMachinesBeginCaptureOptions` has been removed
+- Struct `VirtualMachinesBeginConvertToManagedDisksOptions` has been removed
+- Struct `VirtualMachinesBeginCreateOrUpdateOptions` has been removed
+- Struct `VirtualMachinesBeginDeallocateOptions` has been removed
+- Struct `VirtualMachinesBeginDeleteOptions` has been removed
+- Struct `VirtualMachinesBeginInstallPatchesOptions` has been removed
+- Struct `VirtualMachinesBeginPerformMaintenanceOptions` has been removed
+- Struct `VirtualMachinesBeginPowerOffOptions` has been removed
+- Struct `VirtualMachinesBeginReapplyOptions` has been removed
+- Struct `VirtualMachinesBeginRedeployOptions` has been removed
+- Struct `VirtualMachinesBeginReimageOptions` has been removed
+- Struct `VirtualMachinesBeginRestartOptions` has been removed
+- Struct `VirtualMachinesBeginRunCommandOptions` has been removed
+- Struct `VirtualMachinesBeginStartOptions` has been removed
+- Struct `VirtualMachinesBeginUpdateOptions` has been removed
+- Struct `VirtualMachinesCapturePoller` has been removed
+- Struct `VirtualMachinesCapturePollerResponse` has been removed
+- Struct `VirtualMachinesCaptureResponse` has been removed
+- Struct `VirtualMachinesCaptureResult` has been removed
+- Struct `VirtualMachinesConvertToManagedDisksPoller` has been removed
+- Struct `VirtualMachinesConvertToManagedDisksPollerResponse` has been removed
+- Struct `VirtualMachinesConvertToManagedDisksResponse` has been removed
+- Struct `VirtualMachinesCreateOrUpdatePoller` has been removed
+- Struct `VirtualMachinesCreateOrUpdatePollerResponse` has been removed
+- Struct `VirtualMachinesCreateOrUpdateResponse` has been removed
+- Struct `VirtualMachinesCreateOrUpdateResult` has been removed
+- Struct `VirtualMachinesDeallocatePoller` has been removed
+- Struct `VirtualMachinesDeallocatePollerResponse` has been removed
+- Struct `VirtualMachinesDeallocateResponse` has been removed
+- Struct `VirtualMachinesDeletePoller` has been removed
+- Struct `VirtualMachinesDeletePollerResponse` has been removed
+- Struct `VirtualMachinesDeleteResponse` has been removed
+- Struct `VirtualMachinesGeneralizeOptions` has been removed
+- Struct `VirtualMachinesGeneralizeResponse` has been removed
+- Struct `VirtualMachinesGetOptions` has been removed
+- Struct `VirtualMachinesGetResponse` has been removed
+- Struct `VirtualMachinesGetResult` has been removed
+- Struct `VirtualMachinesInstallPatchesPoller` has been removed
+- Struct `VirtualMachinesInstallPatchesPollerResponse` has been removed
+- Struct `VirtualMachinesInstallPatchesResponse` has been removed
+- Struct `VirtualMachinesInstallPatchesResult` has been removed
+- Struct `VirtualMachinesInstanceViewOptions` has been removed
+- Struct `VirtualMachinesInstanceViewResponse` has been removed
+- Struct `VirtualMachinesInstanceViewResult` has been removed
+- Struct `VirtualMachinesListAllOptions` has been removed
+- Struct `VirtualMachinesListAllPager` has been removed
+- Struct `VirtualMachinesListAllResponse` has been removed
+- Struct `VirtualMachinesListAllResult` has been removed
+- Struct `VirtualMachinesListAvailableSizesOptions` has been removed
+- Struct `VirtualMachinesListAvailableSizesResponse` has been removed
+- Struct `VirtualMachinesListAvailableSizesResult` has been removed
+- Struct `VirtualMachinesListByLocationOptions` has been removed
+- Struct `VirtualMachinesListByLocationPager` has been removed
+- Struct `VirtualMachinesListByLocationResponse` has been removed
+- Struct `VirtualMachinesListByLocationResult` has been removed
+- Struct `VirtualMachinesListOptions` has been removed
+- Struct `VirtualMachinesListPager` has been removed
+- Struct `VirtualMachinesListResponse` has been removed
+- Struct `VirtualMachinesListResult` has been removed
+- Struct `VirtualMachinesPerformMaintenancePoller` has been removed
+- Struct `VirtualMachinesPerformMaintenancePollerResponse` has been removed
+- Struct `VirtualMachinesPerformMaintenanceResponse` has been removed
+- Struct `VirtualMachinesPowerOffPoller` has been removed
+- Struct `VirtualMachinesPowerOffPollerResponse` has been removed
+- Struct `VirtualMachinesPowerOffResponse` has been removed
+- Struct `VirtualMachinesReapplyPoller` has been removed
+- Struct `VirtualMachinesReapplyPollerResponse` has been removed
+- Struct `VirtualMachinesReapplyResponse` has been removed
+- Struct `VirtualMachinesRedeployPoller` has been removed
+- Struct `VirtualMachinesRedeployPollerResponse` has been removed
+- Struct `VirtualMachinesRedeployResponse` has been removed
+- Struct `VirtualMachinesReimagePoller` has been removed
+- Struct `VirtualMachinesReimagePollerResponse` has been removed
+- Struct `VirtualMachinesReimageResponse` has been removed
+- Struct `VirtualMachinesRestartPoller` has been removed
+- Struct `VirtualMachinesRestartPollerResponse` has been removed
+- Struct `VirtualMachinesRestartResponse` has been removed
+- Struct `VirtualMachinesRetrieveBootDiagnosticsDataOptions` has been removed
+- Struct `VirtualMachinesRetrieveBootDiagnosticsDataResponse` has been removed
+- Struct `VirtualMachinesRetrieveBootDiagnosticsDataResult` has been removed
+- Struct `VirtualMachinesRunCommandPoller` has been removed
+- Struct `VirtualMachinesRunCommandPollerResponse` has been removed
+- Struct `VirtualMachinesRunCommandResponse` has been removed
+- Struct `VirtualMachinesRunCommandResult` has been removed
+- Struct `VirtualMachinesSimulateEvictionOptions` has been removed
+- Struct `VirtualMachinesSimulateEvictionResponse` has been removed
+- Struct `VirtualMachinesStartPoller` has been removed
+- Struct `VirtualMachinesStartPollerResponse` has been removed
+- Struct `VirtualMachinesStartResponse` has been removed
+- Struct `VirtualMachinesUpdatePoller` has been removed
+- Struct `VirtualMachinesUpdatePollerResponse` has been removed
+- Struct `VirtualMachinesUpdateResponse` has been removed
+- Struct `VirtualMachinesUpdateResult` has been removed
+- Field `GalleryDiskImage` of struct `GalleryDataDiskImage` has been removed
+- Field `UpdateResource` of struct `DedicatedHostUpdate` has been removed
+- Field `GalleryArtifactPublishingProfileBase` of struct `GalleryApplicationVersionPublishingProfile` has been removed
+- Field `Resource` of struct `CapacityReservation` has been removed
+- Field `SubResource` of struct `VirtualMachineScaleSetNetworkConfiguration` has been removed
+- Field `Resource` of struct `Snapshot` has been removed
+- Field `PirCommunityGalleryResource` of struct `CommunityGalleryImage` has been removed
+- Field `UpdateResource` of struct `RestorePointCollectionUpdate` has been removed
+- Field `DedicatedHostInstanceView` of struct `DedicatedHostInstanceViewWithName` has been removed
+- Field `UpdateResource` of struct `AvailabilitySetUpdate` has been removed
+- Field `Resource` of struct `SSHPublicKeyResource` has been removed
+- Field `ProxyOnlyResource` of struct `DiskRestorePoint` has been removed
+- Field `GalleryArtifactPublishingProfileBase` of struct `GalleryImageVersionPublishingProfile` has been removed
+- Field `Resource` of struct `DedicatedHost` has been removed
+- Field `PirCommunityGalleryResource` of struct `CommunityGallery` has been removed
+- Field `Resource` of struct `Image` has been removed
+- Field `UpdateResource` of struct `ProximityPlacementGroupUpdate` has been removed
+- Field `Resource` of struct `GalleryImageVersion` has been removed
+- Field `ImageDisk` of struct `ImageOSDisk` has been removed
+- Field `UpdateResource` of struct `VirtualMachineRunCommandUpdate` has been removed
+- Field `RunCommandDocumentBase` of struct `RunCommandDocument` has been removed
+- Field `Resource` of struct `VirtualMachineRunCommand` has been removed
+- Field `Resource` of struct `GalleryImage` has been removed
+- Field `SubResource` of struct `SubResourceWithColocationStatus` has been removed
+- Field `SubResource` of struct `VirtualMachineCaptureResult` has been removed
+- Field `SubResource` of struct `ManagedDiskParameters` has been removed
+- Field `UpdateResource` of struct `VirtualMachineUpdate` has been removed
+- Field `UpdateResource` of struct `SSHPublicKeyUpdateResource` has been removed
+- Field `Resource` of struct `DedicatedHostGroup` has been removed
+- Field `VirtualMachineImageResource` of struct `VirtualMachineImage` has been removed
+- Field `SubResource` of struct `DiskEncryptionSetParameters` has been removed
+- Field `Resource` of struct `DiskEncryptionSet` has been removed
+- Field `SubResourceReadOnly` of struct `VirtualMachineScaleSetExtensionUpdate` has been removed
+- Field `UpdateResourceDefinition` of struct `GalleryUpdate` has been removed
+- Field `Resource` of struct `VirtualMachineScaleSet` has been removed
+- Field `UpdateResource` of struct `CapacityReservationGroupUpdate` has been removed
+- Field `UpdateResourceDefinition` of struct `GalleryImageVersionUpdate` has been removed
+- Field `ProxyResource` of struct `RestorePoint` has been removed
+- Field `UpdateResourceDefinition` of struct `GalleryImageUpdate` has been removed
+- Field `UpdateResource` of struct `VirtualMachineExtensionUpdate` has been removed
+- Field `Resource` of struct `AvailabilitySet` has been removed
+- Field `VirtualMachineReimageParameters` of struct `VirtualMachineScaleSetVMReimageParameters` has been removed
+- Field `UpdateResource` of struct `VirtualMachineScaleSetUpdate` has been removed
+- Field `Resource` of struct `RollingUpgradeStatusInfo` has been removed
+- Field `DiskImageEncryption` of struct `OSDiskImageEncryption` has been removed
+- Field `SubResource` of struct `ImageReference` has been removed
+- Field `Resource` of struct `Gallery` has been removed
+- Field `GalleryDiskImage` of struct `GalleryOSDiskImage` has been removed
+- Field `PirResource` of struct `PirSharedGalleryResource` has been removed
+- Field `Resource` of struct `GalleryApplicationVersion` has been removed
+- Field `PirSharedGalleryResource` of struct `SharedGalleryImage` has been removed
+- Field `UpdateResource` of struct `DedicatedHostGroupUpdate` has been removed
+- Field `SubResourceReadOnly` of struct `VirtualMachineScaleSetVMExtension` has been removed
+- Field `UpdateResource` of struct `ImageUpdate` has been removed
+- Field `Resource` of struct `VirtualMachine` has been removed
+- Field `Resource` of struct `CapacityReservationGroup` has been removed
+- Field `UpdateResourceDefinition` of struct `GalleryApplicationVersionUpdate` has been removed
+- Field `Resource` of struct `VirtualMachineExtensionImage` has been removed
+- Field `UpdateResourceDefinition` of struct `GalleryApplicationUpdate` has been removed
+- Field `SubResource` of struct `NetworkInterfaceReference` has been removed
+- Field `SubResource` of struct `VirtualMachineScaleSetIPConfiguration` has been removed
+- Field `InnerError` of struct `CloudError` has been removed
+- Field `ImageDisk` of struct `ImageDataDisk` has been removed
+- Field `Resource` of struct `RestorePointCollection` has been removed
+- Field `Resource` of struct `DiskAccess` has been removed
+- Field `Resource` of struct `VirtualMachineExtension` has been removed
+- Field `Resource` of struct `VirtualMachineScaleSetVM` has been removed
+- Field `LogAnalyticsInputBase` of struct `ThrottledRequestsInput` has been removed
+- Field `SubResourceReadOnly` of struct `VirtualMachineScaleSetVMExtensionUpdate` has been removed
+- Field `SubResource` of struct `VirtualMachineScaleSetUpdateNetworkConfiguration` has been removed
+- Field `SubResource` of struct `VirtualMachineScaleSetUpdateIPConfiguration` has been removed
+- Field `PirSharedGalleryResource` of struct `SharedGallery` has been removed
+- Field `LogAnalyticsInputBase` of struct `RequestRateByIntervalInput` has been removed
+- Field `DiskImageEncryption` of struct `DataDiskImageEncryption` has been removed
+- Field `SubResource` of struct `VirtualMachineImageResource` has been removed
+- Field `Resource` of struct `Disk` has been removed
+- Field `PirSharedGalleryResource` of struct `SharedGalleryImageVersion` has been removed
+- Field `PirCommunityGalleryResource` of struct `CommunityGalleryImageVersion` has been removed
+- Field `VirtualMachineScaleSetVMReimageParameters` of struct `VirtualMachineScaleSetReimageParameters` has been removed
+- Field `CapacityReservationInstanceView` of struct `CapacityReservationInstanceViewWithName` has been removed
+- Field `Resource` of struct `ProximityPlacementGroup` has been removed
+- Field `Resource` of struct `GalleryApplication` has been removed
+- Field `SubResourceReadOnly` of struct `VirtualMachineScaleSetExtension` has been removed
+- Field `UpdateResource` of struct `CapacityReservationUpdate` has been removed
+
+### Features Added
+
+- New const `DiskCreateOptionUploadPreparedSecure`
+- New const `DiskSecurityTypesConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey`
+- New const `DiskEncryptionSetTypeConfidentialVMEncryptedWithCustomerKey`
+- New const `DiskSecurityTypesConfidentialVMDiskEncryptedWithCustomerKey`
+- New const `DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey`
+- New const `DiskCreateOptionImportSecure`
+- New function `*UsageClientListPager.PageResponse() UsageClientListResponse`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.FinalResponse(context.Context) (VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse, error)`
+- New function `*ProximityPlacementGroupsClientListBySubscriptionPager.NextPage(context.Context) bool`
+- New function `*GalleryApplicationsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*DedicatedHostsClientListByHostGroupPager.PageResponse() DedicatedHostsClientListByHostGroupResponse`
+- New function `*GallerySharingProfileClientUpdatePollerResponse.Resume(context.Context, *GallerySharingProfileClient, string) error`
+- New function `*DiskEncryptionSetsClientDeletePollerResponse.Resume(context.Context, *DiskEncryptionSetsClient, string) error`
+- New function `*VirtualMachineExtensionsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*GalleryImagesClientListByGalleryPager.NextPage(context.Context) bool`
+- New function `*DisksClientGrantAccessPollerResponse.Resume(context.Context, *DisksClient, string) error`
+- New function `*GalleryApplicationVersionsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientPerformMaintenanceResponse, error)`
+- New function `VirtualMachinesClientPowerOffPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientPowerOffResponse, error)`
+- New function `*VirtualMachineScaleSetsClientListSKUsPager.NextPage(context.Context) bool`
+- New function `*SnapshotsClientRevokeAccessPoller.Done() bool`
+- New function `*VirtualMachineScaleSetExtensionsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetExtensionsClient, string) error`
+- New function `*GalleryApplicationsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineRunCommandsClientListPager.NextPage(context.Context) bool`
+- New function `*CloudServicesClientListAllPager.Err() error`
+- New function `*UsageClientListPager.Err() error`
+- New function `*ResourceSKUsClientListPager.Err() error`
+- New function `*CloudServicesClientPowerOffPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientListByLocationPager.NextPage(context.Context) bool`
+- New function `ImagesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (ImagesClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetsClientListSKUsPager.PageResponse() VirtualMachineScaleSetsClientListSKUsResponse`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.FinalResponse(context.Context) (VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse, error)`
+- New function `*VirtualMachineScaleSetsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.Done() bool`
+- New function `*UsageClientListPager.NextPage(context.Context) bool`
+- New function `*VirtualMachinesClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachinesClientCreateOrUpdateResponse, error)`
+- New function `*CapacityReservationsClientUpdatePoller.Done() bool`
+- New function `*GalleriesClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientUpdatePoller.Done() bool`
+- New function `CloudServicesClientRebuildPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientRebuildResponse, error)`
+- New function `*CloudServicesClientPowerOffPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.ResumeToken() (string, error)`
+- New function `*CloudServicesClientReimagePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientListByLocationPager.Err() error`
+- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.Done() bool`
+- New function `*AvailabilitySetsClientListPager.PageResponse() AvailabilitySetsClientListResponse`
+- New function `*GalleryImagesClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleryImagesClientCreateOrUpdateResponse, error)`
+- New function `VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetRollingUpgradesClientCancelResponse, error)`
+- New function `*CapacityReservationsClientListByCapacityReservationGroupPager.PageResponse() CapacityReservationsClientListByCapacityReservationGroupResponse`
+- New function `*CloudServiceRoleInstancesClientDeletePollerResponse.Resume(context.Context, *CloudServiceRoleInstancesClient, string) error`
+- New function `CapacityReservationsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (CapacityReservationsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientListPager.PageResponse() VirtualMachineScaleSetVMRunCommandsClientListResponse`
+- New function `VirtualMachineScaleSetVMsClientRunCommandPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientRunCommandResponse, error)`
+- New function `*VirtualMachinesClientDeletePoller.FinalResponse(context.Context) (VirtualMachinesClientDeleteResponse, error)`
+- New function `*DiskRestorePointClientGrantAccessPoller.FinalResponse(context.Context) (DiskRestorePointClientGrantAccessResponse, error)`
+- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse.Resume(context.Context, *CloudServicesUpdateDomainClient, string) error`
+- New function `OperationListResult.MarshalJSON() ([]byte, error)`
+- New function `*GalleriesClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*GallerySharingProfileClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientDeleteInstancesResponse, error)`
+- New function `*VirtualMachineExtensionsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientCapturePoller.Done() bool`
+- New function `*CloudServicesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*ImagesClientListByResourceGroupPager.Err() error`
+- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*DiskEncryptionSetsClientListAssociatedResourcesPager.PageResponse() DiskEncryptionSetsClientListAssociatedResourcesResponse`
+- New function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.PageResponse() VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse`
+- New function `*ResourceSKUsClientListPager.NextPage(context.Context) bool`
+- New function `*DiskAccessesClientUpdatePoller.Done() bool`
+- New function `*CapacityReservationsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*GalleriesClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `DiskEncryptionSetsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskEncryptionSetsClientUpdateResponse, error)`
+- New function `*DiskRestorePointClientRevokeAccessPoller.Done() bool`
+- New function `VirtualMachinesClientRedeployPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientRedeployResponse, error)`
+- New function `*VirtualMachinesClientRunCommandPoller.FinalResponse(context.Context) (VirtualMachinesClientRunCommandResponse, error)`
+- New function `*SnapshotsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*DedicatedHostGroupsClientListBySubscriptionPager.PageResponse() DedicatedHostGroupsClientListBySubscriptionResponse`
+- New function `*RestorePointCollectionsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMExtensionsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetsClientStartPoller.Done() bool`
+- New function `VirtualMachineScaleSetsClientReimageAllPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientReimageAllResponse, error)`
+- New function `*DedicatedHostsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientUpdateInstancesPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*RestorePointsClientCreatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientReimagePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*DiskEncryptionSetsClientUpdatePollerResponse.Resume(context.Context, *DiskEncryptionSetsClient, string) error`
+- New function `*DisksClientDeletePoller.FinalResponse(context.Context) (DisksClientDeleteResponse, error)`
+- New function `*GalleryApplicationsClientUpdatePoller.Done() bool`
+- New function `*DedicatedHostGroupsClientListByResourceGroupPager.Err() error`
+- New function `*CloudServicesClientStartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskEncryptionSetsClientListPager.PageResponse() DiskEncryptionSetsClientListResponse`
+- New function `*DiskAccessesClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientPowerOffPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientPowerOffResponse, error)`
+- New function `*VirtualMachineScaleSetsClientReimagePoller.Done() bool`
+- New function `*DiskEncryptionSetsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DedicatedHostsClientCreateOrUpdatePoller.Done() bool`
+- New function `*ImagesClientCreateOrUpdatePollerResponse.Resume(context.Context, *ImagesClient, string) error`
+- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetExtensionsClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientRedeployPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientRedeployResponse, error)`
+- New function `*VirtualMachinesClientPerformMaintenancePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.Err() error`
+- New function `*VirtualMachineScaleSetsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientStartPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `VirtualMachinesClientRunCommandPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientRunCommandResponse, error)`
+- New function `*RestorePointCollectionsClientDeletePollerResponse.Resume(context.Context, *RestorePointCollectionsClient, string) error`
+- New function `VirtualMachineScaleSetVMsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientUpdateResponse, error)`
+- New function `*DiskRestorePointClientGrantAccessPollerResponse.Resume(context.Context, *DiskRestorePointClient, string) error`
+- New function `*GalleryApplicationsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `VirtualMachinesClientDeallocatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientDeallocateResponse, error)`
+- New function `GalleryImagesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImagesClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineRunCommandsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientReimagePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*VirtualMachineScaleSetsClientPowerOffPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DedicatedHostsClientUpdatePoller.Done() bool`
+- New function `*VirtualMachineScaleSetsClientPerformMaintenancePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*CapacityReservationsClientUpdatePoller.FinalResponse(context.Context) (CapacityReservationsClientUpdateResponse, error)`
+- New function `VirtualMachineRunCommandsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineRunCommandsClientDeleteResponse, error)`
+- New function `*CloudServiceRoleInstancesClientRebuildPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMsClientListPager.PageResponse() VirtualMachineScaleSetVMsClientListResponse`
+- New function `GalleryImageVersionPublishingProfile.MarshalJSON() ([]byte, error)`
+- New function `*DedicatedHostsClientUpdatePollerResponse.Resume(context.Context, *DedicatedHostsClient, string) error`
+- New function `*DiskRestorePointClientRevokeAccessPollerResponse.Resume(context.Context, *DiskRestorePointClient, string) error`
+- New function `*ProximityPlacementGroupsClientListByResourceGroupPager.Err() error`
+- New function `*GalleryImageVersionsClientListByGalleryImagePager.Err() error`
+- New function `*DisksClientRevokeAccessPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientReapplyPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*VirtualMachineScaleSetExtensionsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetExtensionsClient, string) error`
+- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMExtensionsClient, string) error`
+- New function `*VirtualMachineRunCommandsClientUpdatePoller.Done() bool`
+- New function `*DisksClientDeletePollerResponse.Resume(context.Context, *DisksClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.Done() bool`
+- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineRunCommandsClientCreateOrUpdateResponse, error)`
+- New function `VirtualMachineScaleSetsClientUpdateInstancesPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientUpdateInstancesResponse, error)`
+- New function `*RestorePointCollectionsClientListPager.NextPage(context.Context) bool`
+- New function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*VirtualMachinesClientCreateOrUpdatePoller.Done() bool`
+- New function `DisksClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientCreateOrUpdateResponse, error)`
+- New function `*DiskEncryptionSetsClientUpdatePoller.Done() bool`
+- New function `*DiskEncryptionSetsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientStartPoller.FinalResponse(context.Context) (VirtualMachinesClientStartResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientRunCommandPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*RestorePointCollectionsClientListAllPager.PageResponse() RestorePointCollectionsClientListAllResponse`
+- New function `*VirtualMachinesClientStartPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*SnapshotsClientUpdatePoller.FinalResponse(context.Context) (SnapshotsClientUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse.Resume(context.Context, *VirtualMachineScaleSetRollingUpgradesClient, string) error`
+- New function `DisksClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientUpdateResponse, error)`
+- New function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetVMsClientListPager.NextPage(context.Context) bool`
+- New function `*AvailabilitySetsClientListBySubscriptionPager.Err() error`
+- New function `*DiskRestorePointClientRevokeAccessPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientCapturePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `GalleryApplicationVersionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationVersionsClientUpdateResponse, error)`
+- New function `*VirtualMachineExtensionsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineExtensionsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetsClientListPager.Err() error`
+- New function `CloudServicesClientStartPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientStartResponse, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServiceRoleInstancesClientReimagePoller.Done() bool`
+- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.Done() bool`
+- New function `*ImagesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.Done() bool`
+- New function `*CloudServicesClientDeleteInstancesPoller.ResumeToken() (string, error)`
+- New function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.PageResponse() GalleryApplicationVersionsClientListByGalleryApplicationResponse`
+- New function `*DisksClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*CloudServicesClientDeleteInstancesPoller.Done() bool`
+- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientListPager.PageResponse() CloudServicesClientListResponse`
+- New function `*VirtualMachineRunCommandsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineRunCommandsClient, string) error`
+- New function `*CapacityReservationGroupsClientListByResourceGroupPager.PageResponse() CapacityReservationGroupsClientListByResourceGroupResponse`
+- New function `*VirtualMachinesClientReimagePoller.FinalResponse(context.Context) (VirtualMachinesClientReimageResponse, error)`
+- New function `*VirtualMachinesClientRestartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleriesClientDeletePoller.FinalResponse(context.Context) (GalleriesClientDeleteResponse, error)`
+- New function `*CapacityReservationsClientCreateOrUpdatePollerResponse.Resume(context.Context, *CapacityReservationsClient, string) error`
+- New function `*DiskRestorePointClientListByRestorePointPager.NextPage(context.Context) bool`
+- New function `GalleryImagesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImagesClientDeleteResponse, error)`
+- New function `*GalleriesClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleriesClient, string) error`
+- New function `*SharedGalleryImagesClientListPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMExtensionsClient, string) error`
+- New function `*ProximityPlacementGroupsClientListBySubscriptionPager.Err() error`
+- New function `*GalleryImageVersionsClientUpdatePollerResponse.Resume(context.Context, *GalleryImageVersionsClient, string) error`
+- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.ResumeToken() (string, error)`
+- New function `*DisksClientListPager.Err() error`
+- New function `*DisksClientListByResourceGroupPager.Err() error`
+- New function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.Done() bool`
+- New function `*CloudServicesClientRestartPoller.Done() bool`
+- New function `*GalleriesClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `VirtualMachineScaleSetVMsClientPowerOffPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientPowerOffResponse, error)`
+- New function `*VirtualMachinesClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*ImagesClientDeletePollerResponse.Resume(context.Context, *ImagesClient, string) error`
+- New function `*DiskAccessesClientCreateOrUpdatePoller.FinalResponse(context.Context) (DiskAccessesClientCreateOrUpdateResponse, error)`
+- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.FinalResponse(context.Context) (DiskAccessesClientDeleteAPrivateEndpointConnectionResponse, error)`
+- New function `*VirtualMachinesClientListAllPager.PageResponse() VirtualMachinesClientListAllResponse`
+- New function `*DiskRestorePointClientGrantAccessPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleryImageVersionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DisksClientGrantAccessPoller.Done() bool`
+- New function `*GalleryImageVersionsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse.Resume(context.Context, *VirtualMachineScaleSetRollingUpgradesClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientPowerOffPoller.ResumeToken() (string, error)`
+- New function `*SnapshotsClientRevokeAccessPoller.FinalResponse(context.Context) (SnapshotsClientRevokeAccessResponse, error)`
+- New function `*VirtualMachinesClientRunCommandPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*CapacityReservationsClientListByCapacityReservationGroupPager.NextPage(context.Context) bool`
+- New function `*GalleryApplicationVersionsClientDeletePollerResponse.Resume(context.Context, *GalleryApplicationVersionsClient, string) error`
+- New function `*LogAnalyticsClientExportThrottledRequestsPoller.ResumeToken() (string, error)`
+- New function `*CloudServiceRoleInstancesClientListPager.Err() error`
+- New function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.PageResponse() CloudServicesUpdateDomainClientListUpdateDomainsResponse`
+- New function `*CloudServiceRoleInstancesClientRestartPoller.FinalResponse(context.Context) (CloudServiceRoleInstancesClientRestartResponse, error)`
+- New function `*RestorePointsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientUpdatePoller.Done() bool`
+- New function `GalleriesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleriesClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientListAllPager.PageResponse() CloudServicesClientListAllResponse`
+- New function `VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMRunCommandsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetsClientStartPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*VirtualMachineScaleSetsClientDeallocatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientRedeployPoller.Done() bool`
+- New function `*VirtualMachineScaleSetsClientReimageAllPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineExtensionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineRunCommandsClientDeletePoller.Done() bool`
+- New function `*ImagesClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*CloudServicesClientDeleteInstancesPoller.FinalResponse(context.Context) (CloudServicesClientDeleteInstancesResponse, error)`
+- New function `GalleryImageVersionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImageVersionsClientDeleteResponse, error)`
+- New function `*GalleryApplicationVersionsClientUpdatePoller.Done() bool`
+- New function `*SSHPublicKeysClientListByResourceGroupPager.Err() error`
+- New function `*SharedGalleryImageVersionsClientListPager.PageResponse() SharedGalleryImageVersionsClientListResponse`
+- New function `*DiskAccessesClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*CloudServiceOperatingSystemsClientListOSVersionsPager.PageResponse() CloudServiceOperatingSystemsClientListOSVersionsResponse`
+- New function `*VirtualMachinesClientPerformMaintenancePoller.ResumeToken() (string, error)`
+- New function `*ImagesClientCreateOrUpdatePoller.Done() bool`
+- New function `*ImagesClientListPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientUpdateResponse, error)`
+- New function `*CloudServicesClientRestartPollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `*DisksClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientPowerOffPoller.FinalResponse(context.Context) (VirtualMachinesClientPowerOffResponse, error)`
+- New function `*VirtualMachinesClientDeletePoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMRunCommandsClient, string) error`
+- New function `*ProximityPlacementGroupsClientListBySubscriptionPager.PageResponse() ProximityPlacementGroupsClientListBySubscriptionResponse`
+- New function `*DiskEncryptionSetsClientListByResourceGroupPager.Err() error`
+- New function `*VirtualMachinesClientPerformMaintenancePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServiceRoleInstancesClientReimagePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskRestorePointClientListByRestorePointPager.Err() error`
+- New function `*GalleryImageVersionsClientDeletePoller.Done() bool`
+- New function `*VirtualMachinesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientDeleteInstancesPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientRestartPoller.Done() bool`
+- New function `*DisksClientUpdatePoller.FinalResponse(context.Context) (DisksClientUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse, error)`
+- New function `*CloudServiceRoleInstancesClientRebuildPollerResponse.Resume(context.Context, *CloudServiceRoleInstancesClient, string) error`
+- New function `DedicatedHostsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (DedicatedHostsClientDeleteResponse, error)`
+- New function `*GalleryImageVersionsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*GalleryApplicationVersionsClientUpdatePollerResponse.Resume(context.Context, *GalleryApplicationVersionsClient, string) error`
+- New function `*DiskAccessesClientCreateOrUpdatePollerResponse.Resume(context.Context, *DiskAccessesClient, string) error`
+- New function `*VirtualMachineRunCommandsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*SharedGalleriesClientListPager.NextPage(context.Context) bool`
+- New function `*GalleryImagesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*SharedGalleriesClientListPager.PageResponse() SharedGalleriesClientListResponse`
+- New function `*GalleryApplicationsClientListByGalleryPager.PageResponse() GalleryApplicationsClientListByGalleryResponse`
+- New function `VirtualMachineScaleSetsClientStartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientStartResponse, error)`
+- New function `*CapacityReservationsClientCreateOrUpdatePoller.FinalResponse(context.Context) (CapacityReservationsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientPerformMaintenanceResponse, error)`
+- New function `*GalleriesClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*GalleriesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DedicatedHostsClientCreateOrUpdatePoller.FinalResponse(context.Context) (DedicatedHostsClientCreateOrUpdateResponse, error)`
+- New function `*CloudServiceRolesClientListPager.PageResponse() CloudServiceRolesClientListResponse`
+- New function `VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineRunCommandsClientCreateOrUpdateResponse, error)`
+- New function `LogAnalyticsClientExportThrottledRequestsPollerResponse.PollUntilDone(context.Context, time.Duration) (LogAnalyticsClientExportThrottledRequestsResponse, error)`
+- New function `*VirtualMachinesClientListPager.PageResponse() VirtualMachinesClientListResponse`
+- New function `*VirtualMachineScaleSetVMsClientRunCommandPoller.Done() bool`
+- New function `*CapacityReservationsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMsClientReimagePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleryApplicationVersionsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleriesClientListByResourceGroupPager.Err() error`
+- New function `RestorePointsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (RestorePointsClientDeleteResponse, error)`
+- New function `*VirtualMachinesClientListByLocationPager.PageResponse() VirtualMachinesClientListByLocationResponse`
+- New function `*SharedGalleriesClientListPager.Err() error`
+- New function `*VirtualMachinesClientPowerOffPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse, error)`
+- New function `*VirtualMachinesClientAssessPatchesPoller.FinalResponse(context.Context) (VirtualMachinesClientAssessPatchesResponse, error)`
+- New function `*SnapshotsClientGrantAccessPoller.Done() bool`
+- New function `*SSHPublicKeysClientListBySubscriptionPager.PageResponse() SSHPublicKeysClientListBySubscriptionResponse`
+- New function `DiskAccessesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMRunCommandsClientDeleteResponse, error)`
+- New function `VirtualMachineScaleSetVMsClientDeallocatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientDeallocateResponse, error)`
+- New function `*SnapshotsClientCreateOrUpdatePoller.FinalResponse(context.Context) (SnapshotsClientCreateOrUpdateResponse, error)`
+- New function `*DiskAccessesClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientReapplyPoller.ResumeToken() (string, error)`
+- New function `*DisksClientRevokeAccessPoller.Done() bool`
+- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*SnapshotsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*GalleryApplicationsClientDeletePollerResponse.Resume(context.Context, *GalleryApplicationsClient, string) error`
+- New function `*VirtualMachinesClientConvertToManagedDisksPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientRebuildPoller.ResumeToken() (string, error)`
+- New function `*SnapshotsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.Done() bool`
+- New function `*VirtualMachineRunCommandsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineRunCommandsClientUpdateResponse, error)`
+- New function `*DiskAccessesClientListPager.Err() error`
+- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.PageResponse() VirtualMachineRunCommandsClientListByVirtualMachineResponse`
+- New function `*VirtualMachinesClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMRunCommandsClientUpdateResponse, error)`
+- New function `DedicatedHostsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DedicatedHostsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientUpdatePoller.Done() bool`
+- New function `*GalleryImageVersionsClientCreateOrUpdatePoller.Done() bool`
+- New function `*DisksClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `CloudServicesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetsClientStartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `CloudServiceRoleInstancesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServiceRoleInstancesClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.Done() bool`
+- New function `*ImagesClientUpdatePoller.Done() bool`
+- New function `*VirtualMachinesClientListPager.Err() error`
+- New function `*GalleryApplicationsClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleryApplicationsClient, string) error`
+- New function `*CloudServicesClientRebuildPollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `*DisksClientGrantAccessPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineRunCommandsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineRunCommandsClientDeleteResponse, error)`
+- New function `*SnapshotsClientGrantAccessPoller.ResumeToken() (string, error)`
+- New function `*CapacityReservationsClientListByCapacityReservationGroupPager.Err() error`
+- New function `*VirtualMachineScaleSetVMsClientRestartPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientRestartResponse, error)`
+- New function `*CloudServiceRoleInstancesClientRestartPollerResponse.Resume(context.Context, *CloudServiceRoleInstancesClient, string) error`
+- New function `*VirtualMachineScaleSetsClientRestartPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientRestartResponse, error)`
+- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskAccessesClientCreateOrUpdatePoller.Done() bool`
+- New function `*GalleryImagesClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskAccessesClientDeletePoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.Done() bool`
+- New function `CloudServiceRoleInstancesClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServiceRoleInstancesClientRestartResponse, error)`
+- New function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.ResumeToken() (string, error)`
+- New function `SnapshotsClientGrantAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientGrantAccessResponse, error)`
+- New function `*VirtualMachineScaleSetsClientStartPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientStartResponse, error)`
+- New function `*ImagesClientDeletePoller.Done() bool`
+- New function `*GalleryApplicationsClientDeletePoller.FinalResponse(context.Context) (GalleryApplicationsClientDeleteResponse, error)`
+- New function `*VirtualMachinesClientPerformMaintenancePoller.Done() bool`
+- New function `*CapacityReservationGroupsClientListBySubscriptionPager.PageResponse() CapacityReservationGroupsClientListBySubscriptionResponse`
+- New function `*RestorePointCollectionsClientListAllPager.Err() error`
+- New function `*VirtualMachineExtensionsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineExtensionsClient, string) error`
+- New function `*VirtualMachinesClientRunCommandPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CapacityReservationsClientDeletePoller.Done() bool`
+- New function `*DedicatedHostGroupsClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*GalleryImagesClientUpdatePoller.FinalResponse(context.Context) (GalleryImagesClientUpdateResponse, error)`
+- New function `*CloudServicesClientListPager.NextPage(context.Context) bool`
+- New function `*DiskAccessesClientDeletePoller.ResumeToken() (string, error)`
+- New function `*RestorePointsClientCreatePoller.Done() bool`
+- New function `*DiskEncryptionSetsClientCreateOrUpdatePoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*ProximityPlacementGroupsClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.FinalResponse(context.Context) (CloudServicesUpdateDomainClientWalkUpdateDomainResponse, error)`
+- New function `VirtualMachineScaleSetsClientPerformMaintenancePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientPerformMaintenanceResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientRestartPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*DedicatedHostsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*DiskEncryptionSetsClientDeletePoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMsClientReimagePoller.Done() bool`
+- New function `VirtualMachineScaleSetsClientRedeployPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientRedeployResponse, error)`
+- New function `DiskAccessesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientUpdateResponse, error)`
+- New function `*DiskAccessesClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskRestorePointClientRevokeAccessPoller.FinalResponse(context.Context) (DiskRestorePointClientRevokeAccessResponse, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientDeallocatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleryImagesClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*SSHPublicKeysClientListBySubscriptionPager.Err() error`
+- New function `GalleryApplicationsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationsClientCreateOrUpdateResponse, error)`
+- New function `*ImagesClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientRestartPoller.ResumeToken() (string, error)`
+- New function `*DisksClientRevokeAccessPollerResponse.Resume(context.Context, *DisksClient, string) error`
+- New function `*VirtualMachinesClientDeletePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `VirtualMachineScaleSetsClientPowerOffPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientPowerOffResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientReimageAllPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientPowerOffPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*RestorePointCollectionsClientListPager.Err() error`
+- New function `*SnapshotsClientDeletePoller.FinalResponse(context.Context) (SnapshotsClientDeleteResponse, error)`
+- New function `*LogAnalyticsClientExportRequestRateByIntervalPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientReimagePoller.Done() bool`
+- New function `GalleryApplicationVersionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationVersionsClientDeleteResponse, error)`
+- New function `*GalleryImagesClientDeletePoller.ResumeToken() (string, error)`
+- New function `*GalleryImageVersionsClientListByGalleryImagePager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetsClientRedeployPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientRedeployResponse, error)`
+- New function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.ResumeToken() (string, error)`
+- New function `*GalleryImageVersionsClientDeletePoller.FinalResponse(context.Context) (GalleryImageVersionsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetExtensionsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientStartPoller.Done() bool`
+- New function `*VirtualMachineScaleSetsClientDeleteInstancesPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleryImagesClientListByGalleryPager.PageResponse() GalleryImagesClientListByGalleryResponse`
+- New function `*VirtualMachinesClientStartPoller.Done() bool`
+- New function `VirtualMachinesClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientRestartResponse, error)`
+- New function `*SnapshotsClientGrantAccessPoller.FinalResponse(context.Context) (SnapshotsClientGrantAccessResponse, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientListPager.Err() error`
+- New function `*VirtualMachinesClientInstallPatchesPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientRedeployPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientDeletePoller.FinalResponse(context.Context) (CloudServicesClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientRebuildPoller.Done() bool`
+- New function `*GalleryApplicationsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*CloudServicesClientRebuildPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMsClientStartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskAccessesClientDeletePollerResponse.Resume(context.Context, *DiskAccessesClient, string) error`
+- New function `*GallerySharingProfileClientUpdatePoller.FinalResponse(context.Context) (GallerySharingProfileClientUpdateResponse, error)`
+- New function `*GalleryImagesClientListByGalleryPager.Err() error`
+- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMExtensionsClientDeleteResponse, error)`
+- New function `DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientDeleteAPrivateEndpointConnectionResponse, error)`
+- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientRunCommandPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientRunCommandResponse, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMRunCommandsClient, string) error`
+- New function `*VirtualMachineScaleSetsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientDeleteResponse, error)`
+- New function `*GalleryImageVersionPublishingProfile.UnmarshalJSON([]byte) error`
+- New function `*VirtualMachinesClientDeallocatePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*GalleryImageVersionsClientDeletePollerResponse.Resume(context.Context, *GalleryImageVersionsClient, string) error`
+- New function `*DedicatedHostsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*CloudServicesClientReimagePollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `*GalleryImagesClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*SnapshotsClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*VirtualMachinesClientConvertToManagedDisksPoller.FinalResponse(context.Context) (VirtualMachinesClientConvertToManagedDisksResponse, error)`
+- New function `*VirtualMachinesClientReapplyPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskEncryptionSetsClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*DiskRestorePointClientGrantAccessPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientReimagePoller.ResumeToken() (string, error)`
+- New function `*DiskEncryptionSetsClientUpdatePoller.FinalResponse(context.Context) (DiskEncryptionSetsClientUpdateResponse, error)`
+- New function `*VirtualMachineRunCommandsClientListPager.PageResponse() VirtualMachineRunCommandsClientListResponse`
+- New function `*SSHPublicKeysClientListByResourceGroupPager.PageResponse() SSHPublicKeysClientListByResourceGroupResponse`
+- New function `*GalleryApplicationVersionsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*DedicatedHostsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientCreateOrUpdateResponse, error)`
+- New function `DiskAccessesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientDeleteResponse, error)`
+- New function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineExtensionsClientCreateOrUpdateResponse, error)`
+- New function `SnapshotsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientDeleteResponse, error)`
+- New function `*ImagesClientCreateOrUpdatePoller.FinalResponse(context.Context) (ImagesClientCreateOrUpdateResponse, error)`
+- New function `*LogAnalyticsClientExportThrottledRequestsPollerResponse.Resume(context.Context, *LogAnalyticsClient, string) error`
+- New function `*GalleryImageVersionsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*LogAnalyticsClientExportThrottledRequestsPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientDeleteInstancesPollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `*CapacityReservationGroupsClientListBySubscriptionPager.Err() error`
+- New function `*GalleryApplicationVersionsClientDeletePoller.FinalResponse(context.Context) (GalleryApplicationVersionsClientDeleteResponse, error)`
+- New function `*LogAnalyticsClientExportRequestRateByIntervalPoller.ResumeToken() (string, error)`
+- New function `VirtualMachineExtensionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineExtensionsClientUpdateResponse, error)`
+- New function `*VirtualMachinesClientInstallPatchesPoller.ResumeToken() (string, error)`
+- New function `*CapacityReservationsClientUpdatePollerResponse.Resume(context.Context, *CapacityReservationsClient, string) error`
+- New function `*GalleriesClientDeletePollerResponse.Resume(context.Context, *GalleriesClient, string) error`
+- New function `*GalleryImageVersionsClientUpdatePoller.Done() bool`
+- New function `*CloudServicesClientRestartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*ImagesClientListByResourceGroupPager.PageResponse() ImagesClientListByResourceGroupResponse`
+- New function `*VirtualMachineScaleSetsClientPowerOffPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*CloudServicesClientRebuildPoller.FinalResponse(context.Context) (CloudServicesClientRebuildResponse, error)`
+- New function `*VirtualMachinesClientDeallocatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMsClientDeletePoller.Done() bool`
+- New function `*GalleryImageVersionsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineExtensionsClientDeletePoller.Done() bool`
+- New function `*CloudServicesClientListAllPager.NextPage(context.Context) bool`
+- New function `*SnapshotsClientListPager.NextPage(context.Context) bool`
+- New function `RestorePointsClientCreatePollerResponse.PollUntilDone(context.Context, time.Duration) (RestorePointsClientCreateResponse, error)`
+- New function `*DiskAccessesClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*DedicatedHostGroupsClientListBySubscriptionPager.Err() error`
+- New function `*DiskEncryptionSetsClientListAssociatedResourcesPager.Err() error`
+- New function `*GalleryApplicationsClientUpdatePollerResponse.Resume(context.Context, *GalleryApplicationsClient, string) error`
+- New function `*DedicatedHostsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*AvailabilitySetsClientListPager.NextPage(context.Context) bool`
+- New function `*VirtualMachinesClientPowerOffPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServiceRoleInstancesClientRestartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientListSKUsPager.Err() error`
+- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.Done() bool`
+- New function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.Done() bool`
+- New function `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse, error)`
+- New function `CapacityReservationsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (CapacityReservationsClientUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMExtensionsClient, string) error`
+- New function `*DiskAccessesClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientPowerOffPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientAssessPatchesPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*GalleryImagesClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleryImagesClient, string) error`
+- New function `ImagesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (ImagesClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.Done() bool`
+- New function `*CapacityReservationsClientDeletePollerResponse.Resume(context.Context, *CapacityReservationsClient, string) error`
+- New function `*VirtualMachineScaleSetsClientPowerOffPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*RestorePointCollectionsClientListPager.PageResponse() RestorePointCollectionsClientListResponse`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.Done() bool`
+- New function `*SSHPublicKeysClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*SnapshotsClientRevokeAccessPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleryApplicationVersionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleryApplicationVersionsClient, string) error`
+- New function `*GalleryImageVersionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientRedeployPoller.ResumeToken() (string, error)`
+- New function `LogAnalyticsClientExportRequestRateByIntervalPollerResponse.PollUntilDone(context.Context, time.Duration) (LogAnalyticsClientExportRequestRateByIntervalResponse, error)`
+- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.Done() bool`
+- New function `*VirtualMachinesClientRunCommandPoller.ResumeToken() (string, error)`
+- New function `*SnapshotsClientCreateOrUpdatePollerResponse.Resume(context.Context, *SnapshotsClient, string) error`
+- New function `CapacityReservationsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (CapacityReservationsClientCreateOrUpdateResponse, error)`
+- New function `*DisksClientRevokeAccessPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientReimageAllPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientReimageAllResponse, error)`
+- New function `*GalleryApplicationsClientListByGalleryPager.Err() error`
+- New function `*VirtualMachinesClientConvertToManagedDisksPoller.ResumeToken() (string, error)`
+- New function `DisksClientGrantAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientGrantAccessResponse, error)`
+- New function `*LogAnalyticsClientExportThrottledRequestsPoller.Done() bool`
+- New function `*DedicatedHostsClientListByHostGroupPager.NextPage(context.Context) bool`
+- New function `*DedicatedHostsClientCreateOrUpdatePollerResponse.Resume(context.Context, *DedicatedHostsClient, string) error`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientListPager.NextPage(context.Context) bool`
+- New function `*LogAnalyticsClientExportRequestRateByIntervalPoller.Done() bool`
+- New function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.Done() bool`
+- New function `*CloudServicesClientStartPoller.Done() bool`
+- New function `*GalleriesClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleriesClientCreateOrUpdateResponse, error)`
+- New function `*CloudServiceRoleInstancesClientReimagePoller.FinalResponse(context.Context) (CloudServiceRoleInstancesClientReimageResponse, error)`
+- New function `*CloudServiceRoleInstancesClientRebuildPoller.Done() bool`
+- New function `*VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager.NextPage(context.Context) bool`
+- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPoller.Done() bool`
+- New function `*SnapshotsClientDeletePoller.Done() bool`
+- New function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.Err() error`
+- New function `*VirtualMachineRunCommandsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineRunCommandsClient, string) error`
+- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.Done() bool`
+- New function `VirtualMachineScaleSetsClientDeallocatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientDeallocateResponse, error)`
+- New function `*DiskEncryptionSetsClientDeletePoller.FinalResponse(context.Context) (DiskEncryptionSetsClientDeleteResponse, error)`
+- New function `*SnapshotsClientRevokeAccessPoller.ResumeToken() (string, error)`
+- New function `CloudServicesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleryApplicationVersionsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetsClientReimageAllPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientReimageAllResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientRedeployPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientPowerOffPoller.Done() bool`
+- New function `VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMExtensionsClientUpdateResponse, error)`
+- New function `*DedicatedHostsClientUpdatePoller.FinalResponse(context.Context) (DedicatedHostsClientUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetsClientListByLocationPager.NextPage(context.Context) bool`
+- New function `*ImagesClientListPager.PageResponse() ImagesClientListResponse`
+- New function `*DedicatedHostsClientListByHostGroupPager.Err() error`
+- New function `*VirtualMachinesClientDeallocatePoller.ResumeToken() (string, error)`
+- New function `*CloudServicesClientUpdatePollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `*RestorePointCollectionsClientDeletePoller.Done() bool`
+- New function `*DisksClientGrantAccessPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientStartPoller.ResumeToken() (string, error)`
+- New function `*ImagesClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `SnapshotsClientRevokeAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientRevokeAccessResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientReimageAllPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPoller.FinalResponse(context.Context) (DiskAccessesClientUpdateAPrivateEndpointConnectionResponse, error)`
+- New function `*VirtualMachinesClientReimagePoller.Poll(context.Context) (*http.Response, error)`
+- New function `VirtualMachineScaleSetVMsClientRedeployPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientRedeployResponse, error)`
+- New function `RestorePointCollectionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (RestorePointCollectionsClientDeleteResponse, error)`
+- New function `VirtualMachineScaleSetExtensionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetExtensionsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetsClientReimageAllPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientRestartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `DisksClientRevokeAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientRevokeAccessResponse, error)`
+- New function `*VirtualMachineScaleSetsClientDeallocatePoller.Done() bool`
+- New function `*VirtualMachineScaleSetsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*DisksClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*SnapshotsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleryApplicationVersionsClientListByGalleryApplicationPager.Err() error`
+- New function `*CapacityReservationGroupsClientListBySubscriptionPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetsClientReimagePoller.ResumeToken() (string, error)`
+- New function `*CloudServicesClientCreateOrUpdatePoller.Done() bool`
+- New function `*AvailabilitySetsClientListBySubscriptionPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetVMsClientDeallocatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMsClientRedeployPoller.Done() bool`
+- New function `ProximityPlacementGroupUpdate.MarshalJSON() ([]byte, error)`
+- New function `*SnapshotsClientGrantAccessPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GallerySharingProfileClientUpdatePoller.Done() bool`
+- New function `*VirtualMachinesClientReapplyPoller.Done() bool`
+- New function `VirtualMachineScaleSetVMsClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientRestartResponse, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMsClientReimagePoller.ResumeToken() (string, error)`
+- New function `VirtualMachineScaleSetVMsClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientReimageResponse, error)`
+- New function `*CloudServicesClientRestartPoller.FinalResponse(context.Context) (CloudServicesClientRestartResponse, error)`
+- New function `*CloudServicesClientDeletePollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientDeallocatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*DiskEncryptionSetsClientListAssociatedResourcesPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetVMsClientRestartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientDeallocatePoller.Done() bool`
+- New function `*GalleryApplicationsClientCreateOrUpdatePoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMExtensionsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMExtensionsClientUpdateResponse, error)`
+- New function `*SnapshotsClientListByResourceGroupPager.PageResponse() SnapshotsClientListByResourceGroupResponse`
+- New function `*SnapshotsClientListPager.Err() error`
+- New function `*VirtualMachineScaleSetVMsClientRestartPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineRunCommandsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*DiskAccessesClientUpdatePoller.FinalResponse(context.Context) (DiskAccessesClientUpdateResponse, error)`
+- New function `*CloudServiceRoleInstancesClientListPager.PageResponse() CloudServiceRoleInstancesClientListResponse`
+- New function `*VirtualMachineScaleSetVMsClientDeallocatePoller.Done() bool`
+- New function `*SnapshotsClientUpdatePoller.Done() bool`
+- New function `*GalleryApplicationsClientUpdatePoller.FinalResponse(context.Context) (GalleryApplicationsClientUpdateResponse, error)`
+- New function `*DiskEncryptionSetsClientCreateOrUpdatePoller.FinalResponse(context.Context) (DiskEncryptionSetsClientCreateOrUpdateResponse, error)`
+- New function `*SnapshotsClientListByResourceGroupPager.Err() error`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.Done() bool`
+- New function `*CloudServicesClientDeletePoller.ResumeToken() (string, error)`
+- New function `*GallerySharingProfileClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*DedicatedHostGroupsClientListBySubscriptionPager.NextPage(context.Context) bool`
+- New function `*CloudServicesClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientPerformMaintenancePoller.FinalResponse(context.Context) (VirtualMachinesClientPerformMaintenanceResponse, error)`
+- New function `*ProximityPlacementGroupsClientListByResourceGroupPager.PageResponse() ProximityPlacementGroupsClientListByResourceGroupResponse`
+- New function `*GalleriesClientUpdatePollerResponse.Resume(context.Context, *GalleriesClient, string) error`
+- New function `*VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `VirtualMachineScaleSetsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientUpdateResponse, error)`
+- New function `*DisksClientUpdatePollerResponse.Resume(context.Context, *DisksClient, string) error`
+- New function `VirtualMachineScaleSetsClientDeleteInstancesPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientDeleteInstancesResponse, error)`
+- New function `VirtualMachineScaleSetsClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientReimageResponse, error)`
+- New function `*ImagesClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientRedeployPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMsClientStartPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientDeletePoller.Done() bool`
+- New function `*SnapshotsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientRestartPoller.ResumeToken() (string, error)`
+- New function `*DiskAccessesClientListPager.NextPage(context.Context) bool`
+- New function `*GalleriesClientListPager.Err() error`
+- New function `*CapacityReservationsClientDeletePoller.FinalResponse(context.Context) (CapacityReservationsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.ResumeToken() (string, error)`
+- New function `*GalleryImageVersionsClientListByGalleryImagePager.PageResponse() GalleryImageVersionsClientListByGalleryImageResponse`
+- New function `*VirtualMachinesClientRedeployPoller.Done() bool`
+- New function `VirtualMachinesClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientDeleteResponse, error)`
+- New function `DiskRestorePointClientRevokeAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (DiskRestorePointClientRevokeAccessResponse, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientCreateOrUpdatePoller.FinalResponse(context.Context) (CloudServicesClientCreateOrUpdateResponse, error)`
+- New function `*DiskAccessesClientListPrivateEndpointConnectionsPager.PageResponse() DiskAccessesClientListPrivateEndpointConnectionsResponse`
+- New function `*CapacityReservationsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*ImagesClientDeletePoller.FinalResponse(context.Context) (ImagesClientDeleteResponse, error)`
+- New function `*CapacityReservationGroupsClientListByResourceGroupPager.Err() error`
+- New function `*CloudServiceOperatingSystemsClientListOSVersionsPager.Err() error`
+- New function `*GalleryApplicationsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesClientReimagePoller.Done() bool`
+- New function `*VirtualMachinesClientRestartPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `ImagesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (ImagesClientUpdateResponse, error)`
+- New function `ThrottledRequestsInput.MarshalJSON() ([]byte, error)`
+- New function `*VirtualMachinesClientConvertToManagedDisksPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*SharedGalleryImagesClientListPager.PageResponse() SharedGalleryImagesClientListResponse`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.FinalResponse(context.Context) (VirtualMachineScaleSetRollingUpgradesClientCancelResponse, error)`
+- New function `*VirtualMachineScaleSetsClientPowerOffPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientPowerOffResponse, error)`
+- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientRedeployPoller.ResumeToken() (string, error)`
+- New function `*DiskEncryptionSetsClientCreateOrUpdatePollerResponse.Resume(context.Context, *DiskEncryptionSetsClient, string) error`
+- New function `*GalleryImageVersionsClientUpdatePoller.FinalResponse(context.Context) (GalleryImageVersionsClientUpdateResponse, error)`
+- New function `*RestorePointCollectionsClientDeletePoller.FinalResponse(context.Context) (RestorePointCollectionsClientDeleteResponse, error)`
+- New function `GalleryApplicationsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationsClientUpdateResponse, error)`
+- New function `*CapacityReservationsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientReimagePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientReimageResponse, error)`
+- New function `*CloudServicesClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskRestorePointClientListByRestorePointPager.PageResponse() DiskRestorePointClientListByRestorePointResponse`
+- New function `*VirtualMachinesClientInstallPatchesPoller.Done() bool`
+- New function `*VirtualMachinesClientRedeployPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*VirtualMachineScaleSetsClientDeleteInstancesPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*CloudServiceRoleInstancesClientRestartPoller.Done() bool`
+- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*SharedGalleryImageVersionsClientListPager.NextPage(context.Context) bool`
+- New function `*CloudServiceRoleInstancesClientRebuildPoller.FinalResponse(context.Context) (CloudServiceRoleInstancesClientRebuildResponse, error)`
+- New function `*GalleryImageVersionsClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleryImageVersionsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.ResumeToken() (string, error)`
+- New function `*ImagesClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientListAllPager.NextPage(context.Context) bool`
+- New function `*DiskEncryptionSetsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientListPager.NextPage(context.Context) bool`
+- New function `*GalleryImagesClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientStartPoller.ResumeToken() (string, error)`
+- New function `*CloudServiceRoleInstancesClientRestartPoller.ResumeToken() (string, error)`
+- New function `VirtualMachinesClientAssessPatchesPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientAssessPatchesResponse, error)`
+- New function `*RestorePointsClientCreatePollerResponse.Resume(context.Context, *RestorePointsClient, string) error`
+- New function `CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesUpdateDomainClientWalkUpdateDomainResponse, error)`
+- New function `*SnapshotsClientDeletePollerResponse.Resume(context.Context, *SnapshotsClient, string) error`
+- New function `*CapacityReservationsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DedicatedHostsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientRunCommandPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*DisksClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*DisksClientCreateOrUpdatePoller.FinalResponse(context.Context) (DisksClientCreateOrUpdateResponse, error)`
+- New function `*CloudServiceRoleInstancesClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientPowerOffPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineRunCommandsClient, string) error`
+- New function `*CloudServiceOperatingSystemsClientListOSFamiliesPager.PageResponse() CloudServiceOperatingSystemsClientListOSFamiliesResponse`
+- New function `SnapshotsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientUpdateResponse, error)`
+- New function `*CloudServicesClientCreateOrUpdatePollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `DiskEncryptionSetsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskEncryptionSetsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `GalleryImageVersionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImageVersionsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientReimageAllPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientRunCommandPoller.Done() bool`
+- New function `*RestorePointsClientDeletePollerResponse.Resume(context.Context, *RestorePointsClient, string) error`
+- New function `*DisksClientDeletePoller.Done() bool`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientDeallocatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientDeallocateResponse, error)`
+- New function `*LogAnalyticsClientExportThrottledRequestsPoller.FinalResponse(context.Context) (LogAnalyticsClientExportThrottledRequestsResponse, error)`
+- New function `*VirtualMachineExtensionsClientUpdatePoller.Done() bool`
+- New function `*VirtualMachineScaleSetsClientDeallocatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DisksClientUpdatePoller.Done() bool`
+- New function `*CloudServiceRoleInstancesClientDeletePoller.Done() bool`
+- New function `*LogAnalyticsClientExportRequestRateByIntervalPoller.FinalResponse(context.Context) (LogAnalyticsClientExportRequestRateByIntervalResponse, error)`
+- New function `VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientCreateOrUpdateResponse, error)`
+- New function `*CloudServicesClientReimagePoller.Poll(context.Context) (*http.Response, error)`
+- New function `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachinesClientRestartPoller.FinalResponse(context.Context) (VirtualMachinesClientRestartResponse, error)`
+- New function `*VirtualMachinesClientStartPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CloudServiceRoleInstancesClientRebuildPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientDeallocatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMRunCommandsClientUpdateResponse, error)`
+- New function `*CloudServiceRolesClientListPager.Err() error`
+- New function `*VirtualMachineScaleSetVMsClientRedeployPollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*GalleryApplicationsClientDeletePoller.Done() bool`
+- New function `*VirtualMachineRunCommandsClientListPager.Err() error`
+- New function `*ImagesClientUpdatePoller.FinalResponse(context.Context) (ImagesClientUpdateResponse, error)`
+- New function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.Done() bool`
+- New function `*GalleriesClientDeletePoller.ResumeToken() (string, error)`
+- New function `*CloudServiceRolesClientListPager.NextPage(context.Context) bool`
+- New function `*CloudServicesClientPowerOffPoller.Done() bool`
+- New function `*GalleryImagesClientDeletePoller.Done() bool`
+- New function `VirtualMachinesClientReapplyPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientReapplyResponse, error)`
+- New function `*VirtualMachinesClientDeallocatePoller.FinalResponse(context.Context) (VirtualMachinesClientDeallocateResponse, error)`
+- New function `*GalleryImagesClientCreateOrUpdatePoller.Done() bool`
+- New function `*VirtualMachinesClientListAllPager.NextPage(context.Context) bool`
+- New function `*GalleryApplicationsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DedicatedHostGroupsClientListByResourceGroupPager.PageResponse() DedicatedHostGroupsClientListByResourceGroupResponse`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineRunCommandsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `VirtualMachinesClientConvertToManagedDisksPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientConvertToManagedDisksResponse, error)`
+- New function `*CloudServiceRoleInstancesClientReimagePoller.ResumeToken() (string, error)`
+- New function `VirtualMachinesClientPerformMaintenancePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientPerformMaintenanceResponse, error)`
+- New function `*VirtualMachineScaleSetVMExtensionsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*DiskAccessesClientListPrivateEndpointConnectionsPager.Err() error`
+- New function `VirtualMachinesClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientReimageResponse, error)`
+- New function `VirtualMachineScaleSetVMsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientDeleteResponse, error)`
+- New function `CloudServiceRoleInstancesClientRebuildPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServiceRoleInstancesClientRebuildResponse, error)`
+- New function `*GalleryImagesClientUpdatePoller.Done() bool`
+- New function `*VirtualMachineExtensionsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `DiskEncryptionSetsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DiskEncryptionSetsClientCreateOrUpdateResponse, error)`
+- New function `*DisksClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `GallerySharingProfileClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GallerySharingProfileClientUpdateResponse, error)`
+- New function `*DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse.Resume(context.Context, *DiskAccessesClient, string) error`
+- New function `*VirtualMachinesClientCapturePoller.FinalResponse(context.Context) (VirtualMachinesClientCaptureResponse, error)`
+- New function `*VirtualMachinesClientUpdatePollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*CloudServiceRoleInstancesClientListPager.NextPage(context.Context) bool`
+- New function `VirtualMachineScaleSetVMsClientStartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientStartResponse, error)`
+- New function `DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse.PollUntilDone(context.Context, time.Duration) (DiskAccessesClientUpdateAPrivateEndpointConnectionResponse, error)`
+- New function `*RestorePointsClientCreatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientListByLocationPager.Err() error`
+- New function `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse, error)`
+- New function `CloudServicesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientUpdateResponse, error)`
+- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientRestartPoller.Done() bool`
+- New function `*DiskEncryptionSetsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*SnapshotsClientUpdatePollerResponse.Resume(context.Context, *SnapshotsClient, string) error`
+- New function `*GalleriesClientListPager.PageResponse() GalleriesClientListResponse`
+- New function `VirtualMachinesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientUpdateResponse, error)`
+- New function `*CloudServicesUpdateDomainClientWalkUpdateDomainPoller.Poll(context.Context) (*http.Response, error)`
+- New function `VirtualMachinesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientCreateOrUpdateResponse, error)`
+- New function `*CloudServicesClientPowerOffPollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `*RestorePointCollectionsClientListAllPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetsClientReimageAllPoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMsClientUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*VirtualMachinesClientRedeployPoller.FinalResponse(context.Context) (VirtualMachinesClientRedeployResponse, error)`
+- New function `CloudServiceRoleInstancesClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServiceRoleInstancesClientReimageResponse, error)`
+- New function `VirtualMachinesClientInstallPatchesPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientInstallPatchesResponse, error)`
+- New function `*GalleryImagesClientUpdatePollerResponse.Resume(context.Context, *GalleryImagesClient, string) error`
+- New function `*CloudServicesClientListPager.Err() error`
+- New function `*GalleryApplicationVersionsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachinesClientReapplyPoller.FinalResponse(context.Context) (VirtualMachinesClientReapplyResponse, error)`
+- New function `*GalleryApplicationVersionsClientDeletePoller.Done() bool`
+- New function `*VirtualMachineScaleSetExtensionsClientListPager.PageResponse() VirtualMachineScaleSetExtensionsClientListResponse`
+- New function `VirtualMachineRunCommandsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineRunCommandsClientUpdateResponse, error)`
+- New function `*SSHPublicKeysClientListBySubscriptionPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetsClientReimagePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientReimageResponse, error)`
+- New function `*CloudServicesUpdateDomainClientListUpdateDomainsPager.Err() error`
+- New function `GalleryImageVersionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImageVersionsClientUpdateResponse, error)`
+- New function `*GalleriesClientListPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `CloudServicesClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientRestartResponse, error)`
+- New function `*DiskEncryptionSetsClientListPager.NextPage(context.Context) bool`
+- New function `*CapacityReservationsClientCreateOrUpdatePoller.Done() bool`
+- New function `*VirtualMachineExtensionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineExtensionsClient, string) error`
+- New function `*CloudServicesClientUpdatePoller.FinalResponse(context.Context) (CloudServicesClientUpdateResponse, error)`
+- New function `*CloudServicesClientPowerOffPoller.FinalResponse(context.Context) (CloudServicesClientPowerOffResponse, error)`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMRunCommandsClient, string) error`
+- New function `*DisksClientListPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineExtensionsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineExtensionsClientUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientDeletePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientUpdateInstancesResponse, error)`
+- New function `*VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientReimagePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*SnapshotsClientRevokeAccessPollerResponse.Resume(context.Context, *SnapshotsClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientListPager.Err() error`
+- New function `*VirtualMachineScaleSetsClientListAllPager.Err() error`
+- New function `*CloudServicesClientRestartPoller.ResumeToken() (string, error)`
+- New function `*DisksClientListPager.PageResponse() DisksClientListResponse`
+- New function `*DisksClientRevokeAccessPoller.FinalResponse(context.Context) (DisksClientRevokeAccessResponse, error)`
+- New function `*VirtualMachineScaleSetsClientListByLocationPager.PageResponse() VirtualMachineScaleSetsClientListByLocationResponse`
+- New function `*VirtualMachinesClientConvertToManagedDisksPoller.Done() bool`
+- New function `*GalleryApplicationVersionsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMsClientRedeployPoller.ResumeToken() (string, error)`
+- New function `GalleriesClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleriesClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetsClientPowerOffPoller.Done() bool`
+- New function `*GalleriesClientDeletePoller.Done() bool`
+- New function `*VirtualMachineScaleSetVMsClientDeallocatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientDeallocateResponse, error)`
+- New function `*VirtualMachineScaleSetsClientRedeployPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientUpdateResponse, error)`
+- New function `*GalleryImagesClientDeletePollerResponse.Resume(context.Context, *GalleryImagesClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientRunCommandPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientListPager.PageResponse() VirtualMachineScaleSetsClientListResponse`
+- New function `*VirtualMachinesClientListAllPager.Err() error`
+- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.Done() bool`
+- New function `GalleryImagesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryImagesClientUpdateResponse, error)`
+- New function `*VirtualMachinesClientInstallPatchesPoller.FinalResponse(context.Context) (VirtualMachinesClientInstallPatchesResponse, error)`
+- New function `*VirtualMachineScaleSetsClientReimageAllPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DisksClientGrantAccessPoller.FinalResponse(context.Context) (DisksClientGrantAccessResponse, error)`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller.ResumeToken() (string, error)`
+- New function `*SnapshotsClientGrantAccessPollerResponse.Resume(context.Context, *SnapshotsClient, string) error`
+- New function `*DiskEncryptionSetsClientListByResourceGroupPager.PageResponse() DiskEncryptionSetsClientListByResourceGroupResponse`
+- New function `*CloudServicesClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*DiskEncryptionSetsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetVMsClientPerformMaintenancePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientRestartPollerResponse.Resume(context.Context, *VirtualMachineScaleSetsClient, string) error`
+- New function `*DiskAccessesClientListPager.PageResponse() DiskAccessesClientListResponse`
+- New function `*RestorePointsClientDeletePoller.Done() bool`
+- New function `*DiskAccessesClientUpdatePollerResponse.Resume(context.Context, *DiskAccessesClient, string) error`
+- New function `*RestorePointsClientDeletePoller.FinalResponse(context.Context) (RestorePointsClientDeleteResponse, error)`
+- New function `GalleryApplicationVersionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationVersionsClientCreateOrUpdateResponse, error)`
+- New function `VirtualMachineScaleSetsClientRestartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientRestartResponse, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetExtensionsClientUpdateResponse, error)`
+- New function `*DiskAccessesClientDeletePoller.FinalResponse(context.Context) (DiskAccessesClientDeleteResponse, error)`
+- New function `*VirtualMachinesClientAssessPatchesPoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientAssessPatchesPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.Err() error`
+- New function `GalleriesClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleriesClientUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientRestartPoller.Done() bool`
+- New function `*DisksClientDeletePoller.ResumeToken() (string, error)`
+- New function `*GalleriesClientCreateOrUpdatePoller.Done() bool`
+- New function `*DiskEncryptionSetsClientListPager.Err() error`
+- New function `*ImagesClientListPager.Err() error`
+- New function `*VirtualMachineScaleSetExtensionsClientListPager.NextPage(context.Context) bool`
+- New function `*CloudServicesClientStartPollerResponse.Resume(context.Context, *CloudServicesClient, string) error`
+- New function `*CloudServiceOperatingSystemsClientListOSVersionsPager.NextPage(context.Context) bool`
+- New function `*VirtualMachineScaleSetsClientListAllPager.PageResponse() VirtualMachineScaleSetsClientListAllResponse`
+- New function `*DedicatedHostsClientDeletePollerResponse.Resume(context.Context, *DedicatedHostsClient, string) error`
+- New function `*VirtualMachineRunCommandsClientListByVirtualMachinePager.NextPage(context.Context) bool`
+- New function `*ImagesClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*DiskAccessesClientListByResourceGroupPager.PageResponse() DiskAccessesClientListByResourceGroupResponse`
+- New function `*VirtualMachineScaleSetVMsClientReimageAllPoller.Done() bool`
+- New function `*ResourceSKUsClientListPager.PageResponse() ResourceSKUsClientListResponse`
+- New function `*LogAnalyticsClientExportRequestRateByIntervalPollerResponse.Resume(context.Context, *LogAnalyticsClient, string) error`
+- New function `VirtualMachineScaleSetsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetsClientDeleteResponse, error)`
+- New function `*DiskRestorePointClientGrantAccessPoller.Done() bool`
+- New function `*VirtualMachinesClientInstallPatchesPollerResponse.Resume(context.Context, *VirtualMachinesClient, string) error`
+- New function `*AvailabilitySetsClientListBySubscriptionPager.PageResponse() AvailabilitySetsClientListBySubscriptionResponse`
+- New function `VirtualMachineScaleSetExtensionsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetExtensionsClientUpdateResponse, error)`
+- New function `*VirtualMachinesClientCapturePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachinesClientUpdatePoller.Done() bool`
+- New function `*ImagesClientUpdatePollerResponse.Resume(context.Context, *ImagesClient, string) error`
+- New function `*VirtualMachineScaleSetsClientDeletePoller.Done() bool`
+- New function `*DiskEncryptionSetsClientDeletePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DedicatedHostsClientDeletePoller.FinalResponse(context.Context) (DedicatedHostsClientDeleteResponse, error)`
+- New function `*CloudServiceRoleInstancesClientReimagePollerResponse.Resume(context.Context, *CloudServiceRoleInstancesClient, string) error`
+- New function `*RestorePointsClientDeletePoller.ResumeToken() (string, error)`
+- New function `*DisksClientCreateOrUpdatePollerResponse.Resume(context.Context, *DisksClient, string) error`
+- New function `*VirtualMachineScaleSetVMsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineScaleSetVMsClient, string) error`
+- New function `*RestorePointsClientCreatePoller.FinalResponse(context.Context) (RestorePointsClientCreateResponse, error)`
+- New function `*GalleryImageVersionsClientCreateOrUpdatePollerResponse.Resume(context.Context, *GalleryImageVersionsClient, string) error`
+- New function `VirtualMachinesClientStartPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientStartResponse, error)`
+- New function `DisksClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (DisksClientDeleteResponse, error)`
+- New function `*VirtualMachineScaleSetExtensionsClientListPager.Err() error`
+- New function `*GalleriesClientUpdatePoller.FinalResponse(context.Context) (GalleriesClientUpdateResponse, error)`
+- New function `*GalleriesClientListByResourceGroupPager.PageResponse() GalleriesClientListByResourceGroupResponse`
+- New function `*SnapshotsClientUpdatePoller.ResumeToken() (string, error)`
+- New function `*DedicatedHostsClientDeletePoller.Done() bool`
+- New function `VirtualMachineExtensionsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineExtensionsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineExtensionsClientDeletePollerResponse.Resume(context.Context, *VirtualMachineExtensionsClient, string) error`
+- New function `*SharedGalleryImagesClientListPager.Err() error`
+- New function `*DisksClientCreateOrUpdatePoller.Done() bool`
+- New function `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse, error)`
+- New function `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachineScaleSetsClientUpdateInstancesPoller.ResumeToken() (string, error)`
+- New function `*CloudServicesClientUpdatePoller.ResumeToken() (string, error)`
+- New function `DiskRestorePointClientGrantAccessPollerResponse.PollUntilDone(context.Context, time.Duration) (DiskRestorePointClientGrantAccessResponse, error)`
+- New function `VirtualMachineScaleSetVMsClientReimageAllPollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineScaleSetVMsClientReimageAllResponse, error)`
+- New function `VirtualMachinesClientCapturePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachinesClientCaptureResponse, error)`
+- New function `*CloudServicesClientReimagePoller.FinalResponse(context.Context) (CloudServicesClientReimageResponse, error)`
+- New function `SnapshotsClientCreateOrUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (SnapshotsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachinesClientCapturePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientReimagePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetsClientListPager.NextPage(context.Context) bool`
+- New function `*ThrottledRequestsInput.UnmarshalJSON([]byte) error`
+- New function `*VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse, error)`
+- New function `*VirtualMachinesClientUpdatePoller.FinalResponse(context.Context) (VirtualMachinesClientUpdateResponse, error)`
+- New function `*VirtualMachinesClientPowerOffPoller.Done() bool`
+- New function `*VirtualMachineExtensionsClientCreateOrUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*DiskAccessesClientListPrivateEndpointConnectionsPager.NextPage(context.Context) bool`
+- New function `CloudServicesClientDeleteInstancesPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientDeleteInstancesResponse, error)`
+- New function `*GalleryApplicationsClientCreateOrUpdatePoller.FinalResponse(context.Context) (GalleryApplicationsClientCreateOrUpdateResponse, error)`
+- New function `*SnapshotsClientCreateOrUpdatePoller.Done() bool`
+- New function `*VirtualMachineScaleSetsClientCreateOrUpdatePoller.ResumeToken() (string, error)`
+- New function `*GalleryApplicationVersionsClientUpdatePoller.FinalResponse(context.Context) (GalleryApplicationVersionsClientUpdateResponse, error)`
+- New function `GalleryApplicationsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (GalleryApplicationsClientDeleteResponse, error)`
+- New function `*DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse.Resume(context.Context, *DiskAccessesClient, string) error`
+- New function `*CloudServicesClientDeletePoller.Done() bool`
+- New function `*VirtualMachinesClientAssessPatchesPoller.Done() bool`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller.Done() bool`
+- New function `*VirtualMachineRunCommandsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*GalleryImagesClientDeletePoller.FinalResponse(context.Context) (GalleryImagesClientDeleteResponse, error)`
+- New function `*CloudServiceRoleInstancesClientDeletePoller.FinalResponse(context.Context) (CloudServiceRoleInstancesClientDeleteResponse, error)`
+- New function `CloudServicesClientPowerOffPollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientPowerOffResponse, error)`
+- New function `DedicatedHostsClientUpdatePollerResponse.PollUntilDone(context.Context, time.Duration) (DedicatedHostsClientUpdateResponse, error)`
+- New function `*DisksClientListByResourceGroupPager.PageResponse() DisksClientListByResourceGroupResponse`
+- New function `*AvailabilitySetsClientListPager.Err() error`
+- New function `*CloudServicesClientStartPoller.FinalResponse(context.Context) (CloudServicesClientStartResponse, error)`
+- New function `*CloudServiceRoleInstancesClientDeletePoller.ResumeToken() (string, error)`
+- New function `*VirtualMachineScaleSetsClientPerformMaintenancePoller.FinalResponse(context.Context) (VirtualMachineScaleSetsClientPerformMaintenanceResponse, error)`
+- New function `*VirtualMachineScaleSetVMsClientStartPoller.FinalResponse(context.Context) (VirtualMachineScaleSetVMsClientStartResponse, error)`
+- New function `*DiskRestorePointClientRevokeAccessPoller.Poll(context.Context) (*http.Response, error)`
+- New function `*CapacityReservationGroupsClientListByResourceGroupPager.NextPage(context.Context) bool`
+- New function `*SharedGalleryImageVersionsClientListPager.Err() error`
+- New function `CloudServicesClientReimagePollerResponse.PollUntilDone(context.Context, time.Duration) (CloudServicesClientReimageResponse, error)`
+- New function `*GalleryApplicationsClientListByGalleryPager.NextPage(context.Context) bool`
+- New function `*DiskAccessesClientListByResourceGroupPager.Err() error`
+- New function `*SnapshotsClientListPager.PageResponse() SnapshotsClientListResponse`
+- New function `VirtualMachineExtensionsClientDeletePollerResponse.PollUntilDone(context.Context, time.Duration) (VirtualMachineExtensionsClientDeleteResponse, error)`
+- New function `*CapacityReservationsClientUpdatePoller.Poll(context.Context) (*http.Response, error)`
+- New function `*VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse.Resume(context.Context, *VirtualMachineScaleSetRollingUpgradesClient, string) error`
+- New function `*GalleriesClientUpdatePoller.Done() bool`
+- New function `*CloudServicesClientStartPoller.ResumeToken() (string, error)`
+- New function `*RestorePointCollectionsClientDeletePoller.ResumeToken() (string, error)`
+- New struct `AvailabilitySetsClientCreateOrUpdateOptions`
+- New struct `AvailabilitySetsClientCreateOrUpdateResponse`
+- New struct `AvailabilitySetsClientCreateOrUpdateResult`
+- New struct `AvailabilitySetsClientDeleteOptions`
+- New struct `AvailabilitySetsClientDeleteResponse`
+- New struct `AvailabilitySetsClientGetOptions`
+- New struct `AvailabilitySetsClientGetResponse`
+- New struct `AvailabilitySetsClientGetResult`
+- New struct `AvailabilitySetsClientListAvailableSizesOptions`
+- New struct `AvailabilitySetsClientListAvailableSizesResponse`
+- New struct `AvailabilitySetsClientListAvailableSizesResult`
+- New struct `AvailabilitySetsClientListBySubscriptionOptions`
+- New struct `AvailabilitySetsClientListBySubscriptionPager`
+- New struct `AvailabilitySetsClientListBySubscriptionResponse`
+- New struct `AvailabilitySetsClientListBySubscriptionResult`
+- New struct `AvailabilitySetsClientListOptions`
+- New struct `AvailabilitySetsClientListPager`
+- New struct `AvailabilitySetsClientListResponse`
+- New struct `AvailabilitySetsClientListResult`
+- New struct `AvailabilitySetsClientUpdateOptions`
+- New struct `AvailabilitySetsClientUpdateResponse`
+- New struct `AvailabilitySetsClientUpdateResult`
+- New struct `CapacityReservationGroupsClientCreateOrUpdateOptions`
+- New struct `CapacityReservationGroupsClientCreateOrUpdateResponse`
+- New struct `CapacityReservationGroupsClientCreateOrUpdateResult`
+- New struct `CapacityReservationGroupsClientDeleteOptions`
+- New struct `CapacityReservationGroupsClientDeleteResponse`
+- New struct `CapacityReservationGroupsClientGetOptions`
+- New struct `CapacityReservationGroupsClientGetResponse`
+- New struct `CapacityReservationGroupsClientGetResult`
+- New struct `CapacityReservationGroupsClientListByResourceGroupOptions`
+- New struct `CapacityReservationGroupsClientListByResourceGroupPager`
+- New struct `CapacityReservationGroupsClientListByResourceGroupResponse`
+- New struct `CapacityReservationGroupsClientListByResourceGroupResult`
+- New struct `CapacityReservationGroupsClientListBySubscriptionOptions`
+- New struct `CapacityReservationGroupsClientListBySubscriptionPager`
+- New struct `CapacityReservationGroupsClientListBySubscriptionResponse`
+- New struct `CapacityReservationGroupsClientListBySubscriptionResult`
+- New struct `CapacityReservationGroupsClientUpdateOptions`
+- New struct `CapacityReservationGroupsClientUpdateResponse`
+- New struct `CapacityReservationGroupsClientUpdateResult`
+- New struct `CapacityReservationsClientBeginCreateOrUpdateOptions`
+- New struct `CapacityReservationsClientBeginDeleteOptions`
+- New struct `CapacityReservationsClientBeginUpdateOptions`
+- New struct `CapacityReservationsClientCreateOrUpdatePoller`
+- New struct `CapacityReservationsClientCreateOrUpdatePollerResponse`
+- New struct `CapacityReservationsClientCreateOrUpdateResponse`
+- New struct `CapacityReservationsClientCreateOrUpdateResult`
+- New struct `CapacityReservationsClientDeletePoller`
+- New struct `CapacityReservationsClientDeletePollerResponse`
+- New struct `CapacityReservationsClientDeleteResponse`
+- New struct `CapacityReservationsClientGetOptions`
+- New struct `CapacityReservationsClientGetResponse`
+- New struct `CapacityReservationsClientGetResult`
+- New struct `CapacityReservationsClientListByCapacityReservationGroupOptions`
+- New struct `CapacityReservationsClientListByCapacityReservationGroupPager`
+- New struct `CapacityReservationsClientListByCapacityReservationGroupResponse`
+- New struct `CapacityReservationsClientListByCapacityReservationGroupResult`
+- New struct `CapacityReservationsClientUpdatePoller`
+- New struct `CapacityReservationsClientUpdatePollerResponse`
+- New struct `CapacityReservationsClientUpdateResponse`
+- New struct `CapacityReservationsClientUpdateResult`
+- New struct `CloudServiceOperatingSystemsClientGetOSFamilyOptions`
+- New struct `CloudServiceOperatingSystemsClientGetOSFamilyResponse`
+- New struct `CloudServiceOperatingSystemsClientGetOSFamilyResult`
+- New struct `CloudServiceOperatingSystemsClientGetOSVersionOptions`
+- New struct `CloudServiceOperatingSystemsClientGetOSVersionResponse`
+- New struct `CloudServiceOperatingSystemsClientGetOSVersionResult`
+- New struct `CloudServiceOperatingSystemsClientListOSFamiliesOptions`
+- New struct `CloudServiceOperatingSystemsClientListOSFamiliesPager`
+- New struct `CloudServiceOperatingSystemsClientListOSFamiliesResponse`
+- New struct `CloudServiceOperatingSystemsClientListOSFamiliesResult`
+- New struct `CloudServiceOperatingSystemsClientListOSVersionsOptions`
+- New struct `CloudServiceOperatingSystemsClientListOSVersionsPager`
+- New struct `CloudServiceOperatingSystemsClientListOSVersionsResponse`
+- New struct `CloudServiceOperatingSystemsClientListOSVersionsResult`
+- New struct `CloudServiceRoleInstancesClientBeginDeleteOptions`
+- New struct `CloudServiceRoleInstancesClientBeginRebuildOptions`
+- New struct `CloudServiceRoleInstancesClientBeginReimageOptions`
+- New struct `CloudServiceRoleInstancesClientBeginRestartOptions`
+- New struct `CloudServiceRoleInstancesClientDeletePoller`
+- New struct `CloudServiceRoleInstancesClientDeletePollerResponse`
+- New struct `CloudServiceRoleInstancesClientDeleteResponse`
+- New struct `CloudServiceRoleInstancesClientGetInstanceViewOptions`
+- New struct `CloudServiceRoleInstancesClientGetInstanceViewResponse`
+- New struct `CloudServiceRoleInstancesClientGetInstanceViewResult`
+- New struct `CloudServiceRoleInstancesClientGetOptions`
+- New struct `CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions`
+- New struct `CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse`
+- New struct `CloudServiceRoleInstancesClientGetResponse`
+- New struct `CloudServiceRoleInstancesClientGetResult`
+- New struct `CloudServiceRoleInstancesClientListOptions`
+- New struct `CloudServiceRoleInstancesClientListPager`
+- New struct `CloudServiceRoleInstancesClientListResponse`
+- New struct `CloudServiceRoleInstancesClientListResult`
+- New struct `CloudServiceRoleInstancesClientRebuildPoller`
+- New struct `CloudServiceRoleInstancesClientRebuildPollerResponse`
+- New struct `CloudServiceRoleInstancesClientRebuildResponse`
+- New struct `CloudServiceRoleInstancesClientReimagePoller`
+- New struct `CloudServiceRoleInstancesClientReimagePollerResponse`
+- New struct `CloudServiceRoleInstancesClientReimageResponse`
+- New struct `CloudServiceRoleInstancesClientRestartPoller`
+- New struct `CloudServiceRoleInstancesClientRestartPollerResponse`
+- New struct `CloudServiceRoleInstancesClientRestartResponse`
+- New struct `CloudServiceRolesClientGetOptions`
+- New struct `CloudServiceRolesClientGetResponse`
+- New struct `CloudServiceRolesClientGetResult`
+- New struct `CloudServiceRolesClientListOptions`
+- New struct `CloudServiceRolesClientListPager`
+- New struct `CloudServiceRolesClientListResponse`
+- New struct `CloudServiceRolesClientListResult`
+- New struct `CloudServicesClientBeginCreateOrUpdateOptions`
+- New struct `CloudServicesClientBeginDeleteInstancesOptions`
+- New struct `CloudServicesClientBeginDeleteOptions`
+- New struct `CloudServicesClientBeginPowerOffOptions`
+- New struct `CloudServicesClientBeginRebuildOptions`
+- New struct `CloudServicesClientBeginReimageOptions`
+- New struct `CloudServicesClientBeginRestartOptions`
+- New struct `CloudServicesClientBeginStartOptions`
+- New struct `CloudServicesClientBeginUpdateOptions`
+- New struct `CloudServicesClientCreateOrUpdatePoller`
+- New struct `CloudServicesClientCreateOrUpdatePollerResponse`
+- New struct `CloudServicesClientCreateOrUpdateResponse`
+- New struct `CloudServicesClientCreateOrUpdateResult`
+- New struct `CloudServicesClientDeleteInstancesPoller`
+- New struct `CloudServicesClientDeleteInstancesPollerResponse`
+- New struct `CloudServicesClientDeleteInstancesResponse`
+- New struct `CloudServicesClientDeletePoller`
+- New struct `CloudServicesClientDeletePollerResponse`
+- New struct `CloudServicesClientDeleteResponse`
+- New struct `CloudServicesClientGetInstanceViewOptions`
+- New struct `CloudServicesClientGetInstanceViewResponse`
+- New struct `CloudServicesClientGetInstanceViewResult`
+- New struct `CloudServicesClientGetOptions`
+- New struct `CloudServicesClientGetResponse`
+- New struct `CloudServicesClientGetResult`
+- New struct `CloudServicesClientListAllOptions`
+- New struct `CloudServicesClientListAllPager`
+- New struct `CloudServicesClientListAllResponse`
+- New struct `CloudServicesClientListAllResult`
+- New struct `CloudServicesClientListOptions`
+- New struct `CloudServicesClientListPager`
+- New struct `CloudServicesClientListResponse`
+- New struct `CloudServicesClientListResult`
+- New struct `CloudServicesClientPowerOffPoller`
+- New struct `CloudServicesClientPowerOffPollerResponse`
+- New struct `CloudServicesClientPowerOffResponse`
+- New struct `CloudServicesClientRebuildPoller`
+- New struct `CloudServicesClientRebuildPollerResponse`
+- New struct `CloudServicesClientRebuildResponse`
+- New struct `CloudServicesClientReimagePoller`
+- New struct `CloudServicesClientReimagePollerResponse`
+- New struct `CloudServicesClientReimageResponse`
+- New struct `CloudServicesClientRestartPoller`
+- New struct `CloudServicesClientRestartPollerResponse`
+- New struct `CloudServicesClientRestartResponse`
+- New struct `CloudServicesClientStartPoller`
+- New struct `CloudServicesClientStartPollerResponse`
+- New struct `CloudServicesClientStartResponse`
+- New struct `CloudServicesClientUpdatePoller`
+- New struct `CloudServicesClientUpdatePollerResponse`
+- New struct `CloudServicesClientUpdateResponse`
+- New struct `CloudServicesClientUpdateResult`
+- New struct `CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions`
+- New struct `CloudServicesUpdateDomainClientGetUpdateDomainOptions`
+- New struct `CloudServicesUpdateDomainClientGetUpdateDomainResponse`
+- New struct `CloudServicesUpdateDomainClientGetUpdateDomainResult`
+- New struct `CloudServicesUpdateDomainClientListUpdateDomainsOptions`
+- New struct `CloudServicesUpdateDomainClientListUpdateDomainsPager`
+- New struct `CloudServicesUpdateDomainClientListUpdateDomainsResponse`
+- New struct `CloudServicesUpdateDomainClientListUpdateDomainsResult`
+- New struct `CloudServicesUpdateDomainClientWalkUpdateDomainPoller`
+- New struct `CloudServicesUpdateDomainClientWalkUpdateDomainPollerResponse`
+- New struct `CloudServicesUpdateDomainClientWalkUpdateDomainResponse`
+- New struct `CommunityGalleriesClientGetOptions`
+- New struct `CommunityGalleriesClientGetResponse`
+- New struct `CommunityGalleriesClientGetResult`
+- New struct `CommunityGalleryImageVersionsClientGetOptions`
+- New struct `CommunityGalleryImageVersionsClientGetResponse`
+- New struct `CommunityGalleryImageVersionsClientGetResult`
+- New struct `CommunityGalleryImagesClientGetOptions`
+- New struct `CommunityGalleryImagesClientGetResponse`
+- New struct `CommunityGalleryImagesClientGetResult`
+- New struct `DedicatedHostGroupsClientCreateOrUpdateOptions`
+- New struct `DedicatedHostGroupsClientCreateOrUpdateResponse`
+- New struct `DedicatedHostGroupsClientCreateOrUpdateResult`
+- New struct `DedicatedHostGroupsClientDeleteOptions`
+- New struct `DedicatedHostGroupsClientDeleteResponse`
+- New struct `DedicatedHostGroupsClientGetOptions`
+- New struct `DedicatedHostGroupsClientGetResponse`
+- New struct `DedicatedHostGroupsClientGetResult`
+- New struct `DedicatedHostGroupsClientListByResourceGroupOptions`
+- New struct `DedicatedHostGroupsClientListByResourceGroupPager`
+- New struct `DedicatedHostGroupsClientListByResourceGroupResponse`
+- New struct `DedicatedHostGroupsClientListByResourceGroupResult`
+- New struct `DedicatedHostGroupsClientListBySubscriptionOptions`
+- New struct `DedicatedHostGroupsClientListBySubscriptionPager`
+- New struct `DedicatedHostGroupsClientListBySubscriptionResponse`
+- New struct `DedicatedHostGroupsClientListBySubscriptionResult`
+- New struct `DedicatedHostGroupsClientUpdateOptions`
+- New struct `DedicatedHostGroupsClientUpdateResponse`
+- New struct `DedicatedHostGroupsClientUpdateResult`
+- New struct `DedicatedHostsClientBeginCreateOrUpdateOptions`
+- New struct `DedicatedHostsClientBeginDeleteOptions`
+- New struct `DedicatedHostsClientBeginUpdateOptions`
+- New struct `DedicatedHostsClientCreateOrUpdatePoller`
+- New struct `DedicatedHostsClientCreateOrUpdatePollerResponse`
+- New struct `DedicatedHostsClientCreateOrUpdateResponse`
+- New struct `DedicatedHostsClientCreateOrUpdateResult`
+- New struct `DedicatedHostsClientDeletePoller`
+- New struct `DedicatedHostsClientDeletePollerResponse`
+- New struct `DedicatedHostsClientDeleteResponse`
+- New struct `DedicatedHostsClientGetOptions`
+- New struct `DedicatedHostsClientGetResponse`
+- New struct `DedicatedHostsClientGetResult`
+- New struct `DedicatedHostsClientListByHostGroupOptions`
+- New struct `DedicatedHostsClientListByHostGroupPager`
+- New struct `DedicatedHostsClientListByHostGroupResponse`
+- New struct `DedicatedHostsClientListByHostGroupResult`
+- New struct `DedicatedHostsClientUpdatePoller`
+- New struct `DedicatedHostsClientUpdatePollerResponse`
+- New struct `DedicatedHostsClientUpdateResponse`
+- New struct `DedicatedHostsClientUpdateResult`
+- New struct `DiskAccessesClientBeginCreateOrUpdateOptions`
+- New struct `DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions`
+- New struct `DiskAccessesClientBeginDeleteOptions`
+- New struct `DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions`
+- New struct `DiskAccessesClientBeginUpdateOptions`
+- New struct `DiskAccessesClientCreateOrUpdatePoller`
+- New struct `DiskAccessesClientCreateOrUpdatePollerResponse`
+- New struct `DiskAccessesClientCreateOrUpdateResponse`
+- New struct `DiskAccessesClientCreateOrUpdateResult`
+- New struct `DiskAccessesClientDeleteAPrivateEndpointConnectionPoller`
+- New struct `DiskAccessesClientDeleteAPrivateEndpointConnectionPollerResponse`
+- New struct `DiskAccessesClientDeleteAPrivateEndpointConnectionResponse`
+- New struct `DiskAccessesClientDeletePoller`
+- New struct `DiskAccessesClientDeletePollerResponse`
+- New struct `DiskAccessesClientDeleteResponse`
+- New struct `DiskAccessesClientGetAPrivateEndpointConnectionOptions`
+- New struct `DiskAccessesClientGetAPrivateEndpointConnectionResponse`
+- New struct `DiskAccessesClientGetAPrivateEndpointConnectionResult`
+- New struct `DiskAccessesClientGetOptions`
+- New struct `DiskAccessesClientGetPrivateLinkResourcesOptions`
+- New struct `DiskAccessesClientGetPrivateLinkResourcesResponse`
+- New struct `DiskAccessesClientGetPrivateLinkResourcesResult`
+- New struct `DiskAccessesClientGetResponse`
+- New struct `DiskAccessesClientGetResult`
+- New struct `DiskAccessesClientListByResourceGroupOptions`
+- New struct `DiskAccessesClientListByResourceGroupPager`
+- New struct `DiskAccessesClientListByResourceGroupResponse`
+- New struct `DiskAccessesClientListByResourceGroupResult`
+- New struct `DiskAccessesClientListOptions`
+- New struct `DiskAccessesClientListPager`
+- New struct `DiskAccessesClientListPrivateEndpointConnectionsOptions`
+- New struct `DiskAccessesClientListPrivateEndpointConnectionsPager`
+- New struct `DiskAccessesClientListPrivateEndpointConnectionsResponse`
+- New struct `DiskAccessesClientListPrivateEndpointConnectionsResult`
+- New struct `DiskAccessesClientListResponse`
+- New struct `DiskAccessesClientListResult`
+- New struct `DiskAccessesClientUpdateAPrivateEndpointConnectionPoller`
+- New struct `DiskAccessesClientUpdateAPrivateEndpointConnectionPollerResponse`
+- New struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResponse`
+- New struct `DiskAccessesClientUpdateAPrivateEndpointConnectionResult`
+- New struct `DiskAccessesClientUpdatePoller`
+- New struct `DiskAccessesClientUpdatePollerResponse`
+- New struct `DiskAccessesClientUpdateResponse`
+- New struct `DiskAccessesClientUpdateResult`
+- New struct `DiskEncryptionSetsClientBeginCreateOrUpdateOptions`
+- New struct `DiskEncryptionSetsClientBeginDeleteOptions`
+- New struct `DiskEncryptionSetsClientBeginUpdateOptions`
+- New struct `DiskEncryptionSetsClientCreateOrUpdatePoller`
+- New struct `DiskEncryptionSetsClientCreateOrUpdatePollerResponse`
+- New struct `DiskEncryptionSetsClientCreateOrUpdateResponse`
+- New struct `DiskEncryptionSetsClientCreateOrUpdateResult`
+- New struct `DiskEncryptionSetsClientDeletePoller`
+- New struct `DiskEncryptionSetsClientDeletePollerResponse`
+- New struct `DiskEncryptionSetsClientDeleteResponse`
+- New struct `DiskEncryptionSetsClientGetOptions`
+- New struct `DiskEncryptionSetsClientGetResponse`
+- New struct `DiskEncryptionSetsClientGetResult`
+- New struct `DiskEncryptionSetsClientListAssociatedResourcesOptions`
+- New struct `DiskEncryptionSetsClientListAssociatedResourcesPager`
+- New struct `DiskEncryptionSetsClientListAssociatedResourcesResponse`
+- New struct `DiskEncryptionSetsClientListAssociatedResourcesResult`
+- New struct `DiskEncryptionSetsClientListByResourceGroupOptions`
+- New struct `DiskEncryptionSetsClientListByResourceGroupPager`
+- New struct `DiskEncryptionSetsClientListByResourceGroupResponse`
+- New struct `DiskEncryptionSetsClientListByResourceGroupResult`
+- New struct `DiskEncryptionSetsClientListOptions`
+- New struct `DiskEncryptionSetsClientListPager`
+- New struct `DiskEncryptionSetsClientListResponse`
+- New struct `DiskEncryptionSetsClientListResult`
+- New struct `DiskEncryptionSetsClientUpdatePoller`
+- New struct `DiskEncryptionSetsClientUpdatePollerResponse`
+- New struct `DiskEncryptionSetsClientUpdateResponse`
+- New struct `DiskEncryptionSetsClientUpdateResult`
+- New struct `DiskRestorePointClientBeginGrantAccessOptions`
+- New struct `DiskRestorePointClientBeginRevokeAccessOptions`
+- New struct `DiskRestorePointClientGetOptions`
+- New struct `DiskRestorePointClientGetResponse`
+- New struct `DiskRestorePointClientGetResult`
+- New struct `DiskRestorePointClientGrantAccessPoller`
+- New struct `DiskRestorePointClientGrantAccessPollerResponse`
+- New struct `DiskRestorePointClientGrantAccessResponse`
+- New struct `DiskRestorePointClientGrantAccessResult`
+- New struct `DiskRestorePointClientListByRestorePointOptions`
+- New struct `DiskRestorePointClientListByRestorePointPager`
+- New struct `DiskRestorePointClientListByRestorePointResponse`
+- New struct `DiskRestorePointClientListByRestorePointResult`
+- New struct `DiskRestorePointClientRevokeAccessPoller`
+- New struct `DiskRestorePointClientRevokeAccessPollerResponse`
+- New struct `DiskRestorePointClientRevokeAccessResponse`
+- New struct `DisksClientBeginCreateOrUpdateOptions`
+- New struct `DisksClientBeginDeleteOptions`
+- New struct `DisksClientBeginGrantAccessOptions`
+- New struct `DisksClientBeginRevokeAccessOptions`
+- New struct `DisksClientBeginUpdateOptions`
+- New struct `DisksClientCreateOrUpdatePoller`
+- New struct `DisksClientCreateOrUpdatePollerResponse`
+- New struct `DisksClientCreateOrUpdateResponse`
+- New struct `DisksClientCreateOrUpdateResult`
+- New struct `DisksClientDeletePoller`
+- New struct `DisksClientDeletePollerResponse`
+- New struct `DisksClientDeleteResponse`
+- New struct `DisksClientGetOptions`
+- New struct `DisksClientGetResponse`
+- New struct `DisksClientGetResult`
+- New struct `DisksClientGrantAccessPoller`
+- New struct `DisksClientGrantAccessPollerResponse`
+- New struct `DisksClientGrantAccessResponse`
+- New struct `DisksClientGrantAccessResult`
+- New struct `DisksClientListByResourceGroupOptions`
+- New struct `DisksClientListByResourceGroupPager`
+- New struct `DisksClientListByResourceGroupResponse`
+- New struct `DisksClientListByResourceGroupResult`
+- New struct `DisksClientListOptions`
+- New struct `DisksClientListPager`
+- New struct `DisksClientListResponse`
+- New struct `DisksClientListResult`
+- New struct `DisksClientRevokeAccessPoller`
+- New struct `DisksClientRevokeAccessPollerResponse`
+- New struct `DisksClientRevokeAccessResponse`
+- New struct `DisksClientUpdatePoller`
+- New struct `DisksClientUpdatePollerResponse`
+- New struct `DisksClientUpdateResponse`
+- New struct `DisksClientUpdateResult`
+- New struct `GalleriesClientBeginCreateOrUpdateOptions`
+- New struct `GalleriesClientBeginDeleteOptions`
+- New struct `GalleriesClientBeginUpdateOptions`
+- New struct `GalleriesClientCreateOrUpdatePoller`
+- New struct `GalleriesClientCreateOrUpdatePollerResponse`
+- New struct `GalleriesClientCreateOrUpdateResponse`
+- New struct `GalleriesClientCreateOrUpdateResult`
+- New struct `GalleriesClientDeletePoller`
+- New struct `GalleriesClientDeletePollerResponse`
+- New struct `GalleriesClientDeleteResponse`
+- New struct `GalleriesClientGetOptions`
+- New struct `GalleriesClientGetResponse`
+- New struct `GalleriesClientGetResult`
+- New struct `GalleriesClientListByResourceGroupOptions`
+- New struct `GalleriesClientListByResourceGroupPager`
+- New struct `GalleriesClientListByResourceGroupResponse`
+- New struct `GalleriesClientListByResourceGroupResult`
+- New struct `GalleriesClientListOptions`
+- New struct `GalleriesClientListPager`
+- New struct `GalleriesClientListResponse`
+- New struct `GalleriesClientListResult`
+- New struct `GalleriesClientUpdatePoller`
+- New struct `GalleriesClientUpdatePollerResponse`
+- New struct `GalleriesClientUpdateResponse`
+- New struct `GalleriesClientUpdateResult`
+- New struct `GalleryApplicationVersionsClientBeginCreateOrUpdateOptions`
+- New struct `GalleryApplicationVersionsClientBeginDeleteOptions`
+- New struct `GalleryApplicationVersionsClientBeginUpdateOptions`
+- New struct `GalleryApplicationVersionsClientCreateOrUpdatePoller`
+- New struct `GalleryApplicationVersionsClientCreateOrUpdatePollerResponse`
+- New struct `GalleryApplicationVersionsClientCreateOrUpdateResponse`
+- New struct `GalleryApplicationVersionsClientCreateOrUpdateResult`
+- New struct `GalleryApplicationVersionsClientDeletePoller`
+- New struct `GalleryApplicationVersionsClientDeletePollerResponse`
+- New struct `GalleryApplicationVersionsClientDeleteResponse`
+- New struct `GalleryApplicationVersionsClientGetOptions`
+- New struct `GalleryApplicationVersionsClientGetResponse`
+- New struct `GalleryApplicationVersionsClientGetResult`
+- New struct `GalleryApplicationVersionsClientListByGalleryApplicationOptions`
+- New struct `GalleryApplicationVersionsClientListByGalleryApplicationPager`
+- New struct `GalleryApplicationVersionsClientListByGalleryApplicationResponse`
+- New struct `GalleryApplicationVersionsClientListByGalleryApplicationResult`
+- New struct `GalleryApplicationVersionsClientUpdatePoller`
+- New struct `GalleryApplicationVersionsClientUpdatePollerResponse`
+- New struct `GalleryApplicationVersionsClientUpdateResponse`
+- New struct `GalleryApplicationVersionsClientUpdateResult`
+- New struct `GalleryApplicationsClientBeginCreateOrUpdateOptions`
+- New struct `GalleryApplicationsClientBeginDeleteOptions`
+- New struct `GalleryApplicationsClientBeginUpdateOptions`
+- New struct `GalleryApplicationsClientCreateOrUpdatePoller`
+- New struct `GalleryApplicationsClientCreateOrUpdatePollerResponse`
+- New struct `GalleryApplicationsClientCreateOrUpdateResponse`
+- New struct `GalleryApplicationsClientCreateOrUpdateResult`
+- New struct `GalleryApplicationsClientDeletePoller`
+- New struct `GalleryApplicationsClientDeletePollerResponse`
+- New struct `GalleryApplicationsClientDeleteResponse`
+- New struct `GalleryApplicationsClientGetOptions`
+- New struct `GalleryApplicationsClientGetResponse`
+- New struct `GalleryApplicationsClientGetResult`
+- New struct `GalleryApplicationsClientListByGalleryOptions`
+- New struct `GalleryApplicationsClientListByGalleryPager`
+- New struct `GalleryApplicationsClientListByGalleryResponse`
+- New struct `GalleryApplicationsClientListByGalleryResult`
+- New struct `GalleryApplicationsClientUpdatePoller`
+- New struct `GalleryApplicationsClientUpdatePollerResponse`
+- New struct `GalleryApplicationsClientUpdateResponse`
+- New struct `GalleryApplicationsClientUpdateResult`
+- New struct `GalleryImageVersionsClientBeginCreateOrUpdateOptions`
+- New struct `GalleryImageVersionsClientBeginDeleteOptions`
+- New struct `GalleryImageVersionsClientBeginUpdateOptions`
+- New struct `GalleryImageVersionsClientCreateOrUpdatePoller`
+- New struct `GalleryImageVersionsClientCreateOrUpdatePollerResponse`
+- New struct `GalleryImageVersionsClientCreateOrUpdateResponse`
+- New struct `GalleryImageVersionsClientCreateOrUpdateResult`
+- New struct `GalleryImageVersionsClientDeletePoller`
+- New struct `GalleryImageVersionsClientDeletePollerResponse`
+- New struct `GalleryImageVersionsClientDeleteResponse`
+- New struct `GalleryImageVersionsClientGetOptions`
+- New struct `GalleryImageVersionsClientGetResponse`
+- New struct `GalleryImageVersionsClientGetResult`
+- New struct `GalleryImageVersionsClientListByGalleryImageOptions`
+- New struct `GalleryImageVersionsClientListByGalleryImagePager`
+- New struct `GalleryImageVersionsClientListByGalleryImageResponse`
+- New struct `GalleryImageVersionsClientListByGalleryImageResult`
+- New struct `GalleryImageVersionsClientUpdatePoller`
+- New struct `GalleryImageVersionsClientUpdatePollerResponse`
+- New struct `GalleryImageVersionsClientUpdateResponse`
+- New struct `GalleryImageVersionsClientUpdateResult`
+- New struct `GalleryImagesClientBeginCreateOrUpdateOptions`
+- New struct `GalleryImagesClientBeginDeleteOptions`
+- New struct `GalleryImagesClientBeginUpdateOptions`
+- New struct `GalleryImagesClientCreateOrUpdatePoller`
+- New struct `GalleryImagesClientCreateOrUpdatePollerResponse`
+- New struct `GalleryImagesClientCreateOrUpdateResponse`
+- New struct `GalleryImagesClientCreateOrUpdateResult`
+- New struct `GalleryImagesClientDeletePoller`
+- New struct `GalleryImagesClientDeletePollerResponse`
+- New struct `GalleryImagesClientDeleteResponse`
+- New struct `GalleryImagesClientGetOptions`
+- New struct `GalleryImagesClientGetResponse`
+- New struct `GalleryImagesClientGetResult`
+- New struct `GalleryImagesClientListByGalleryOptions`
+- New struct `GalleryImagesClientListByGalleryPager`
+- New struct `GalleryImagesClientListByGalleryResponse`
+- New struct `GalleryImagesClientListByGalleryResult`
+- New struct `GalleryImagesClientUpdatePoller`
+- New struct `GalleryImagesClientUpdatePollerResponse`
+- New struct `GalleryImagesClientUpdateResponse`
+- New struct `GalleryImagesClientUpdateResult`
+- New struct `GallerySharingProfileClientBeginUpdateOptions`
+- New struct `GallerySharingProfileClientUpdatePoller`
+- New struct `GallerySharingProfileClientUpdatePollerResponse`
+- New struct `GallerySharingProfileClientUpdateResponse`
+- New struct `GallerySharingProfileClientUpdateResult`
+- New struct `ImagesClientBeginCreateOrUpdateOptions`
+- New struct `ImagesClientBeginDeleteOptions`
+- New struct `ImagesClientBeginUpdateOptions`
+- New struct `ImagesClientCreateOrUpdatePoller`
+- New struct `ImagesClientCreateOrUpdatePollerResponse`
+- New struct `ImagesClientCreateOrUpdateResponse`
+- New struct `ImagesClientCreateOrUpdateResult`
+- New struct `ImagesClientDeletePoller`
+- New struct `ImagesClientDeletePollerResponse`
+- New struct `ImagesClientDeleteResponse`
+- New struct `ImagesClientGetOptions`
+- New struct `ImagesClientGetResponse`
+- New struct `ImagesClientGetResult`
+- New struct `ImagesClientListByResourceGroupOptions`
+- New struct `ImagesClientListByResourceGroupPager`
+- New struct `ImagesClientListByResourceGroupResponse`
+- New struct `ImagesClientListByResourceGroupResult`
+- New struct `ImagesClientListOptions`
+- New struct `ImagesClientListPager`
+- New struct `ImagesClientListResponse`
+- New struct `ImagesClientListResult`
+- New struct `ImagesClientUpdatePoller`
+- New struct `ImagesClientUpdatePollerResponse`
+- New struct `ImagesClientUpdateResponse`
+- New struct `ImagesClientUpdateResult`
+- New struct `LogAnalyticsClientBeginExportRequestRateByIntervalOptions`
+- New struct `LogAnalyticsClientBeginExportThrottledRequestsOptions`
+- New struct `LogAnalyticsClientExportRequestRateByIntervalPoller`
+- New struct `LogAnalyticsClientExportRequestRateByIntervalPollerResponse`
+- New struct `LogAnalyticsClientExportRequestRateByIntervalResponse`
+- New struct `LogAnalyticsClientExportRequestRateByIntervalResult`
+- New struct `LogAnalyticsClientExportThrottledRequestsPoller`
+- New struct `LogAnalyticsClientExportThrottledRequestsPollerResponse`
+- New struct `LogAnalyticsClientExportThrottledRequestsResponse`
+- New struct `LogAnalyticsClientExportThrottledRequestsResult`
+- New struct `OperationListResult`
+- New struct `OperationValue`
+- New struct `OperationValueDisplay`
+- New struct `OperationsClientListOptions`
+- New struct `OperationsClientListResponse`
+- New struct `OperationsClientListResult`
+- New struct `ProximityPlacementGroupsClientCreateOrUpdateOptions`
+- New struct `ProximityPlacementGroupsClientCreateOrUpdateResponse`
+- New struct `ProximityPlacementGroupsClientCreateOrUpdateResult`
+- New struct `ProximityPlacementGroupsClientDeleteOptions`
+- New struct `ProximityPlacementGroupsClientDeleteResponse`
+- New struct `ProximityPlacementGroupsClientGetOptions`
+- New struct `ProximityPlacementGroupsClientGetResponse`
+- New struct `ProximityPlacementGroupsClientGetResult`
+- New struct `ProximityPlacementGroupsClientListByResourceGroupOptions`
+- New struct `ProximityPlacementGroupsClientListByResourceGroupPager`
+- New struct `ProximityPlacementGroupsClientListByResourceGroupResponse`
+- New struct `ProximityPlacementGroupsClientListByResourceGroupResult`
+- New struct `ProximityPlacementGroupsClientListBySubscriptionOptions`
+- New struct `ProximityPlacementGroupsClientListBySubscriptionPager`
+- New struct `ProximityPlacementGroupsClientListBySubscriptionResponse`
+- New struct `ProximityPlacementGroupsClientListBySubscriptionResult`
+- New struct `ProximityPlacementGroupsClientUpdateOptions`
+- New struct `ProximityPlacementGroupsClientUpdateResponse`
+- New struct `ProximityPlacementGroupsClientUpdateResult`
+- New struct `ResourceSKUsClientListOptions`
+- New struct `ResourceSKUsClientListPager`
+- New struct `ResourceSKUsClientListResponse`
+- New struct `ResourceSKUsClientListResult`
+- New struct `RestorePointCollectionsClientBeginDeleteOptions`
+- New struct `RestorePointCollectionsClientCreateOrUpdateOptions`
+- New struct `RestorePointCollectionsClientCreateOrUpdateResponse`
+- New struct `RestorePointCollectionsClientCreateOrUpdateResult`
+- New struct `RestorePointCollectionsClientDeletePoller`
+- New struct `RestorePointCollectionsClientDeletePollerResponse`
+- New struct `RestorePointCollectionsClientDeleteResponse`
+- New struct `RestorePointCollectionsClientGetOptions`
+- New struct `RestorePointCollectionsClientGetResponse`
+- New struct `RestorePointCollectionsClientGetResult`
+- New struct `RestorePointCollectionsClientListAllOptions`
+- New struct `RestorePointCollectionsClientListAllPager`
+- New struct `RestorePointCollectionsClientListAllResponse`
+- New struct `RestorePointCollectionsClientListAllResult`
+- New struct `RestorePointCollectionsClientListOptions`
+- New struct `RestorePointCollectionsClientListPager`
+- New struct `RestorePointCollectionsClientListResponse`
+- New struct `RestorePointCollectionsClientListResult`
+- New struct `RestorePointCollectionsClientUpdateOptions`
+- New struct `RestorePointCollectionsClientUpdateResponse`
+- New struct `RestorePointCollectionsClientUpdateResult`
+- New struct `RestorePointsClientBeginCreateOptions`
+- New struct `RestorePointsClientBeginDeleteOptions`
+- New struct `RestorePointsClientCreatePoller`
+- New struct `RestorePointsClientCreatePollerResponse`
+- New struct `RestorePointsClientCreateResponse`
+- New struct `RestorePointsClientCreateResult`
+- New struct `RestorePointsClientDeletePoller`
+- New struct `RestorePointsClientDeletePollerResponse`
+- New struct `RestorePointsClientDeleteResponse`
+- New struct `RestorePointsClientGetOptions`
+- New struct `RestorePointsClientGetResponse`
+- New struct `RestorePointsClientGetResult`
+- New struct `SSHPublicKeysClientCreateOptions`
+- New struct `SSHPublicKeysClientCreateResponse`
+- New struct `SSHPublicKeysClientCreateResult`
+- New struct `SSHPublicKeysClientDeleteOptions`
+- New struct `SSHPublicKeysClientDeleteResponse`
+- New struct `SSHPublicKeysClientGenerateKeyPairOptions`
+- New struct `SSHPublicKeysClientGenerateKeyPairResponse`
+- New struct `SSHPublicKeysClientGenerateKeyPairResult`
+- New struct `SSHPublicKeysClientGetOptions`
+- New struct `SSHPublicKeysClientGetResponse`
+- New struct `SSHPublicKeysClientGetResult`
+- New struct `SSHPublicKeysClientListByResourceGroupOptions`
+- New struct `SSHPublicKeysClientListByResourceGroupPager`
+- New struct `SSHPublicKeysClientListByResourceGroupResponse`
+- New struct `SSHPublicKeysClientListByResourceGroupResult`
+- New struct `SSHPublicKeysClientListBySubscriptionOptions`
+- New struct `SSHPublicKeysClientListBySubscriptionPager`
+- New struct `SSHPublicKeysClientListBySubscriptionResponse`
+- New struct `SSHPublicKeysClientListBySubscriptionResult`
+- New struct `SSHPublicKeysClientUpdateOptions`
+- New struct `SSHPublicKeysClientUpdateResponse`
+- New struct `SSHPublicKeysClientUpdateResult`
+- New struct `SharedGalleriesClientGetOptions`
+- New struct `SharedGalleriesClientGetResponse`
+- New struct `SharedGalleriesClientGetResult`
+- New struct `SharedGalleriesClientListOptions`
+- New struct `SharedGalleriesClientListPager`
+- New struct `SharedGalleriesClientListResponse`
+- New struct `SharedGalleriesClientListResult`
+- New struct `SharedGalleryImageVersionsClientGetOptions`
+- New struct `SharedGalleryImageVersionsClientGetResponse`
+- New struct `SharedGalleryImageVersionsClientGetResult`
+- New struct `SharedGalleryImageVersionsClientListOptions`
+- New struct `SharedGalleryImageVersionsClientListPager`
+- New struct `SharedGalleryImageVersionsClientListResponse`
+- New struct `SharedGalleryImageVersionsClientListResult`
+- New struct `SharedGalleryImagesClientGetOptions`
+- New struct `SharedGalleryImagesClientGetResponse`
+- New struct `SharedGalleryImagesClientGetResult`
+- New struct `SharedGalleryImagesClientListOptions`
+- New struct `SharedGalleryImagesClientListPager`
+- New struct `SharedGalleryImagesClientListResponse`
+- New struct `SharedGalleryImagesClientListResult`
+- New struct `SnapshotsClientBeginCreateOrUpdateOptions`
+- New struct `SnapshotsClientBeginDeleteOptions`
+- New struct `SnapshotsClientBeginGrantAccessOptions`
+- New struct `SnapshotsClientBeginRevokeAccessOptions`
+- New struct `SnapshotsClientBeginUpdateOptions`
+- New struct `SnapshotsClientCreateOrUpdatePoller`
+- New struct `SnapshotsClientCreateOrUpdatePollerResponse`
+- New struct `SnapshotsClientCreateOrUpdateResponse`
+- New struct `SnapshotsClientCreateOrUpdateResult`
+- New struct `SnapshotsClientDeletePoller`
+- New struct `SnapshotsClientDeletePollerResponse`
+- New struct `SnapshotsClientDeleteResponse`
+- New struct `SnapshotsClientGetOptions`
+- New struct `SnapshotsClientGetResponse`
+- New struct `SnapshotsClientGetResult`
+- New struct `SnapshotsClientGrantAccessPoller`
+- New struct `SnapshotsClientGrantAccessPollerResponse`
+- New struct `SnapshotsClientGrantAccessResponse`
+- New struct `SnapshotsClientGrantAccessResult`
+- New struct `SnapshotsClientListByResourceGroupOptions`
+- New struct `SnapshotsClientListByResourceGroupPager`
+- New struct `SnapshotsClientListByResourceGroupResponse`
+- New struct `SnapshotsClientListByResourceGroupResult`
+- New struct `SnapshotsClientListOptions`
+- New struct `SnapshotsClientListPager`
+- New struct `SnapshotsClientListResponse`
+- New struct `SnapshotsClientListResult`
+- New struct `SnapshotsClientRevokeAccessPoller`
+- New struct `SnapshotsClientRevokeAccessPollerResponse`
+- New struct `SnapshotsClientRevokeAccessResponse`
+- New struct `SnapshotsClientUpdatePoller`
+- New struct `SnapshotsClientUpdatePollerResponse`
+- New struct `SnapshotsClientUpdateResponse`
+- New struct `SnapshotsClientUpdateResult`
+- New struct `UsageClientListOptions`
+- New struct `UsageClientListPager`
+- New struct `UsageClientListResponse`
+- New struct `UsageClientListResult`
+- New struct `VirtualMachineExtensionImagesClientGetOptions`
+- New struct `VirtualMachineExtensionImagesClientGetResponse`
+- New struct `VirtualMachineExtensionImagesClientGetResult`
+- New struct `VirtualMachineExtensionImagesClientListTypesOptions`
+- New struct `VirtualMachineExtensionImagesClientListTypesResponse`
+- New struct `VirtualMachineExtensionImagesClientListTypesResult`
+- New struct `VirtualMachineExtensionImagesClientListVersionsOptions`
+- New struct `VirtualMachineExtensionImagesClientListVersionsResponse`
+- New struct `VirtualMachineExtensionImagesClientListVersionsResult`
+- New struct `VirtualMachineExtensionsClientBeginCreateOrUpdateOptions`
+- New struct `VirtualMachineExtensionsClientBeginDeleteOptions`
+- New struct `VirtualMachineExtensionsClientBeginUpdateOptions`
+- New struct `VirtualMachineExtensionsClientCreateOrUpdatePoller`
+- New struct `VirtualMachineExtensionsClientCreateOrUpdatePollerResponse`
+- New struct `VirtualMachineExtensionsClientCreateOrUpdateResponse`
+- New struct `VirtualMachineExtensionsClientCreateOrUpdateResult`
+- New struct `VirtualMachineExtensionsClientDeletePoller`
+- New struct `VirtualMachineExtensionsClientDeletePollerResponse`
+- New struct `VirtualMachineExtensionsClientDeleteResponse`
+- New struct `VirtualMachineExtensionsClientGetOptions`
+- New struct `VirtualMachineExtensionsClientGetResponse`
+- New struct `VirtualMachineExtensionsClientGetResult`
+- New struct `VirtualMachineExtensionsClientListOptions`
+- New struct `VirtualMachineExtensionsClientListResponse`
+- New struct `VirtualMachineExtensionsClientListResult`
+- New struct `VirtualMachineExtensionsClientUpdatePoller`
+- New struct `VirtualMachineExtensionsClientUpdatePollerResponse`
+- New struct `VirtualMachineExtensionsClientUpdateResponse`
+- New struct `VirtualMachineExtensionsClientUpdateResult`
+- New struct `VirtualMachineImagesClientGetOptions`
+- New struct `VirtualMachineImagesClientGetResponse`
+- New struct `VirtualMachineImagesClientGetResult`
+- New struct `VirtualMachineImagesClientListOffersOptions`
+- New struct `VirtualMachineImagesClientListOffersResponse`
+- New struct `VirtualMachineImagesClientListOffersResult`
+- New struct `VirtualMachineImagesClientListOptions`
+- New struct `VirtualMachineImagesClientListPublishersOptions`
+- New struct `VirtualMachineImagesClientListPublishersResponse`
+- New struct `VirtualMachineImagesClientListPublishersResult`
+- New struct `VirtualMachineImagesClientListResponse`
+- New struct `VirtualMachineImagesClientListResult`
+- New struct `VirtualMachineImagesClientListSKUsOptions`
+- New struct `VirtualMachineImagesClientListSKUsResponse`
+- New struct `VirtualMachineImagesClientListSKUsResult`
+- New struct `VirtualMachineImagesEdgeZoneClientGetOptions`
+- New struct `VirtualMachineImagesEdgeZoneClientGetResponse`
+- New struct `VirtualMachineImagesEdgeZoneClientGetResult`
+- New struct `VirtualMachineImagesEdgeZoneClientListOffersOptions`
+- New struct `VirtualMachineImagesEdgeZoneClientListOffersResponse`
+- New struct `VirtualMachineImagesEdgeZoneClientListOffersResult`
+- New struct `VirtualMachineImagesEdgeZoneClientListOptions`
+- New struct `VirtualMachineImagesEdgeZoneClientListPublishersOptions`
+- New struct `VirtualMachineImagesEdgeZoneClientListPublishersResponse`
+- New struct `VirtualMachineImagesEdgeZoneClientListPublishersResult`
+- New struct `VirtualMachineImagesEdgeZoneClientListResponse`
+- New struct `VirtualMachineImagesEdgeZoneClientListResult`
+- New struct `VirtualMachineImagesEdgeZoneClientListSKUsOptions`
+- New struct `VirtualMachineImagesEdgeZoneClientListSKUsResponse`
+- New struct `VirtualMachineImagesEdgeZoneClientListSKUsResult`
+- New struct `VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions`
+- New struct `VirtualMachineRunCommandsClientBeginDeleteOptions`
+- New struct `VirtualMachineRunCommandsClientBeginUpdateOptions`
+- New struct `VirtualMachineRunCommandsClientCreateOrUpdatePoller`
+- New struct `VirtualMachineRunCommandsClientCreateOrUpdatePollerResponse`
+- New struct `VirtualMachineRunCommandsClientCreateOrUpdateResponse`
+- New struct `VirtualMachineRunCommandsClientCreateOrUpdateResult`
+- New struct `VirtualMachineRunCommandsClientDeletePoller`
+- New struct `VirtualMachineRunCommandsClientDeletePollerResponse`
+- New struct `VirtualMachineRunCommandsClientDeleteResponse`
+- New struct `VirtualMachineRunCommandsClientGetByVirtualMachineOptions`
+- New struct `VirtualMachineRunCommandsClientGetByVirtualMachineResponse`
+- New struct `VirtualMachineRunCommandsClientGetByVirtualMachineResult`
+- New struct `VirtualMachineRunCommandsClientGetOptions`
+- New struct `VirtualMachineRunCommandsClientGetResponse`
+- New struct `VirtualMachineRunCommandsClientGetResult`
+- New struct `VirtualMachineRunCommandsClientListByVirtualMachineOptions`
+- New struct `VirtualMachineRunCommandsClientListByVirtualMachinePager`
+- New struct `VirtualMachineRunCommandsClientListByVirtualMachineResponse`
+- New struct `VirtualMachineRunCommandsClientListByVirtualMachineResult`
+- New struct `VirtualMachineRunCommandsClientListOptions`
+- New struct `VirtualMachineRunCommandsClientListPager`
+- New struct `VirtualMachineRunCommandsClientListResponse`
+- New struct `VirtualMachineRunCommandsClientListResult`
+- New struct `VirtualMachineRunCommandsClientUpdatePoller`
+- New struct `VirtualMachineRunCommandsClientUpdatePollerResponse`
+- New struct `VirtualMachineRunCommandsClientUpdateResponse`
+- New struct `VirtualMachineRunCommandsClientUpdateResult`
+- New struct `VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions`
+- New struct `VirtualMachineScaleSetExtensionsClientBeginDeleteOptions`
+- New struct `VirtualMachineScaleSetExtensionsClientBeginUpdateOptions`
+- New struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePoller`
+- New struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse`
+- New struct `VirtualMachineScaleSetExtensionsClientCreateOrUpdateResult`
+- New struct `VirtualMachineScaleSetExtensionsClientDeletePoller`
+- New struct `VirtualMachineScaleSetExtensionsClientDeletePollerResponse`
+- New struct `VirtualMachineScaleSetExtensionsClientDeleteResponse`
+- New struct `VirtualMachineScaleSetExtensionsClientGetOptions`
+- New struct `VirtualMachineScaleSetExtensionsClientGetResponse`
+- New struct `VirtualMachineScaleSetExtensionsClientGetResult`
+- New struct `VirtualMachineScaleSetExtensionsClientListOptions`
+- New struct `VirtualMachineScaleSetExtensionsClientListPager`
+- New struct `VirtualMachineScaleSetExtensionsClientListResponse`
+- New struct `VirtualMachineScaleSetExtensionsClientListResult`
+- New struct `VirtualMachineScaleSetExtensionsClientUpdatePoller`
+- New struct `VirtualMachineScaleSetExtensionsClientUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetExtensionsClientUpdateResponse`
+- New struct `VirtualMachineScaleSetExtensionsClientUpdateResult`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientCancelPoller`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientCancelPollerResponse`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientCancelResponse`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientGetLatestResult`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePoller`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradePollerResponse`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePoller`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradePollerResponse`
+- New struct `VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions`
+- New struct `VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions`
+- New struct `VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions`
+- New struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePoller`
+- New struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResult`
+- New struct `VirtualMachineScaleSetVMExtensionsClientDeletePoller`
+- New struct `VirtualMachineScaleSetVMExtensionsClientDeletePollerResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientDeleteResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientGetOptions`
+- New struct `VirtualMachineScaleSetVMExtensionsClientGetResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientGetResult`
+- New struct `VirtualMachineScaleSetVMExtensionsClientListOptions`
+- New struct `VirtualMachineScaleSetVMExtensionsClientListResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientListResult`
+- New struct `VirtualMachineScaleSetVMExtensionsClientUpdatePoller`
+- New struct `VirtualMachineScaleSetVMExtensionsClientUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientUpdateResponse`
+- New struct `VirtualMachineScaleSetVMExtensionsClientUpdateResult`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePoller`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResult`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientDeletePoller`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientDeletePollerResponse`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientDeleteResponse`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientGetOptions`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientGetResponse`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientGetResult`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientListOptions`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientListPager`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientListResponse`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientListResult`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientUpdatePoller`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResponse`
+- New struct `VirtualMachineScaleSetVMRunCommandsClientUpdateResult`
+- New struct `VirtualMachineScaleSetVMsClientBeginDeallocateOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginDeleteOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginPowerOffOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginRedeployOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginReimageAllOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginReimageOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginRestartOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginRunCommandOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginStartOptions`
+- New struct `VirtualMachineScaleSetVMsClientBeginUpdateOptions`
+- New struct `VirtualMachineScaleSetVMsClientDeallocatePoller`
+- New struct `VirtualMachineScaleSetVMsClientDeallocatePollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientDeallocateResponse`
+- New struct `VirtualMachineScaleSetVMsClientDeletePoller`
+- New struct `VirtualMachineScaleSetVMsClientDeletePollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientDeleteResponse`
+- New struct `VirtualMachineScaleSetVMsClientGetInstanceViewOptions`
+- New struct `VirtualMachineScaleSetVMsClientGetInstanceViewResponse`
+- New struct `VirtualMachineScaleSetVMsClientGetInstanceViewResult`
+- New struct `VirtualMachineScaleSetVMsClientGetOptions`
+- New struct `VirtualMachineScaleSetVMsClientGetResponse`
+- New struct `VirtualMachineScaleSetVMsClientGetResult`
+- New struct `VirtualMachineScaleSetVMsClientListOptions`
+- New struct `VirtualMachineScaleSetVMsClientListPager`
+- New struct `VirtualMachineScaleSetVMsClientListResponse`
+- New struct `VirtualMachineScaleSetVMsClientListResult`
+- New struct `VirtualMachineScaleSetVMsClientPerformMaintenancePoller`
+- New struct `VirtualMachineScaleSetVMsClientPerformMaintenancePollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientPerformMaintenanceResponse`
+- New struct `VirtualMachineScaleSetVMsClientPowerOffPoller`
+- New struct `VirtualMachineScaleSetVMsClientPowerOffPollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientPowerOffResponse`
+- New struct `VirtualMachineScaleSetVMsClientRedeployPoller`
+- New struct `VirtualMachineScaleSetVMsClientRedeployPollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientRedeployResponse`
+- New struct `VirtualMachineScaleSetVMsClientReimageAllPoller`
+- New struct `VirtualMachineScaleSetVMsClientReimageAllPollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientReimageAllResponse`
+- New struct `VirtualMachineScaleSetVMsClientReimagePoller`
+- New struct `VirtualMachineScaleSetVMsClientReimagePollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientReimageResponse`
+- New struct `VirtualMachineScaleSetVMsClientRestartPoller`
+- New struct `VirtualMachineScaleSetVMsClientRestartPollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientRestartResponse`
+- New struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions`
+- New struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse`
+- New struct `VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResult`
+- New struct `VirtualMachineScaleSetVMsClientRunCommandPoller`
+- New struct `VirtualMachineScaleSetVMsClientRunCommandPollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientRunCommandResponse`
+- New struct `VirtualMachineScaleSetVMsClientRunCommandResult`
+- New struct `VirtualMachineScaleSetVMsClientSimulateEvictionOptions`
+- New struct `VirtualMachineScaleSetVMsClientSimulateEvictionResponse`
+- New struct `VirtualMachineScaleSetVMsClientStartPoller`
+- New struct `VirtualMachineScaleSetVMsClientStartPollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientStartResponse`
+- New struct `VirtualMachineScaleSetVMsClientUpdatePoller`
+- New struct `VirtualMachineScaleSetVMsClientUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetVMsClientUpdateResponse`
+- New struct `VirtualMachineScaleSetVMsClientUpdateResult`
+- New struct `VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions`
+- New struct `VirtualMachineScaleSetsClientBeginDeallocateOptions`
+- New struct `VirtualMachineScaleSetsClientBeginDeleteInstancesOptions`
+- New struct `VirtualMachineScaleSetsClientBeginDeleteOptions`
+- New struct `VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions`
+- New struct `VirtualMachineScaleSetsClientBeginPowerOffOptions`
+- New struct `VirtualMachineScaleSetsClientBeginRedeployOptions`
+- New struct `VirtualMachineScaleSetsClientBeginReimageAllOptions`
+- New struct `VirtualMachineScaleSetsClientBeginReimageOptions`
+- New struct `VirtualMachineScaleSetsClientBeginRestartOptions`
+- New struct `VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions`
+- New struct `VirtualMachineScaleSetsClientBeginStartOptions`
+- New struct `VirtualMachineScaleSetsClientBeginUpdateInstancesOptions`
+- New struct `VirtualMachineScaleSetsClientBeginUpdateOptions`
+- New struct `VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions`
+- New struct `VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse`
+- New struct `VirtualMachineScaleSetsClientCreateOrUpdatePoller`
+- New struct `VirtualMachineScaleSetsClientCreateOrUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetsClientCreateOrUpdateResponse`
+- New struct `VirtualMachineScaleSetsClientCreateOrUpdateResult`
+- New struct `VirtualMachineScaleSetsClientDeallocatePoller`
+- New struct `VirtualMachineScaleSetsClientDeallocatePollerResponse`
+- New struct `VirtualMachineScaleSetsClientDeallocateResponse`
+- New struct `VirtualMachineScaleSetsClientDeleteInstancesPoller`
+- New struct `VirtualMachineScaleSetsClientDeleteInstancesPollerResponse`
+- New struct `VirtualMachineScaleSetsClientDeleteInstancesResponse`
+- New struct `VirtualMachineScaleSetsClientDeletePoller`
+- New struct `VirtualMachineScaleSetsClientDeletePollerResponse`
+- New struct `VirtualMachineScaleSetsClientDeleteResponse`
+- New struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions`
+- New struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse`
+- New struct `VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResult`
+- New struct `VirtualMachineScaleSetsClientGetInstanceViewOptions`
+- New struct `VirtualMachineScaleSetsClientGetInstanceViewResponse`
+- New struct `VirtualMachineScaleSetsClientGetInstanceViewResult`
+- New struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions`
+- New struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryPager`
+- New struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse`
+- New struct `VirtualMachineScaleSetsClientGetOSUpgradeHistoryResult`
+- New struct `VirtualMachineScaleSetsClientGetOptions`
+- New struct `VirtualMachineScaleSetsClientGetResponse`
+- New struct `VirtualMachineScaleSetsClientGetResult`
+- New struct `VirtualMachineScaleSetsClientListAllOptions`
+- New struct `VirtualMachineScaleSetsClientListAllPager`
+- New struct `VirtualMachineScaleSetsClientListAllResponse`
+- New struct `VirtualMachineScaleSetsClientListAllResult`
+- New struct `VirtualMachineScaleSetsClientListByLocationOptions`
+- New struct `VirtualMachineScaleSetsClientListByLocationPager`
+- New struct `VirtualMachineScaleSetsClientListByLocationResponse`
+- New struct `VirtualMachineScaleSetsClientListByLocationResult`
+- New struct `VirtualMachineScaleSetsClientListOptions`
+- New struct `VirtualMachineScaleSetsClientListPager`
+- New struct `VirtualMachineScaleSetsClientListResponse`
+- New struct `VirtualMachineScaleSetsClientListResult`
+- New struct `VirtualMachineScaleSetsClientListSKUsOptions`
+- New struct `VirtualMachineScaleSetsClientListSKUsPager`
+- New struct `VirtualMachineScaleSetsClientListSKUsResponse`
+- New struct `VirtualMachineScaleSetsClientListSKUsResult`
+- New struct `VirtualMachineScaleSetsClientPerformMaintenancePoller`
+- New struct `VirtualMachineScaleSetsClientPerformMaintenancePollerResponse`
+- New struct `VirtualMachineScaleSetsClientPerformMaintenanceResponse`
+- New struct `VirtualMachineScaleSetsClientPowerOffPoller`
+- New struct `VirtualMachineScaleSetsClientPowerOffPollerResponse`
+- New struct `VirtualMachineScaleSetsClientPowerOffResponse`
+- New struct `VirtualMachineScaleSetsClientRedeployPoller`
+- New struct `VirtualMachineScaleSetsClientRedeployPollerResponse`
+- New struct `VirtualMachineScaleSetsClientRedeployResponse`
+- New struct `VirtualMachineScaleSetsClientReimageAllPoller`
+- New struct `VirtualMachineScaleSetsClientReimageAllPollerResponse`
+- New struct `VirtualMachineScaleSetsClientReimageAllResponse`
+- New struct `VirtualMachineScaleSetsClientReimagePoller`
+- New struct `VirtualMachineScaleSetsClientReimagePollerResponse`
+- New struct `VirtualMachineScaleSetsClientReimageResponse`
+- New struct `VirtualMachineScaleSetsClientRestartPoller`
+- New struct `VirtualMachineScaleSetsClientRestartPollerResponse`
+- New struct `VirtualMachineScaleSetsClientRestartResponse`
+- New struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePoller`
+- New struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStatePollerResponse`
+- New struct `VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse`
+- New struct `VirtualMachineScaleSetsClientStartPoller`
+- New struct `VirtualMachineScaleSetsClientStartPollerResponse`
+- New struct `VirtualMachineScaleSetsClientStartResponse`
+- New struct `VirtualMachineScaleSetsClientUpdateInstancesPoller`
+- New struct `VirtualMachineScaleSetsClientUpdateInstancesPollerResponse`
+- New struct `VirtualMachineScaleSetsClientUpdateInstancesResponse`
+- New struct `VirtualMachineScaleSetsClientUpdatePoller`
+- New struct `VirtualMachineScaleSetsClientUpdatePollerResponse`
+- New struct `VirtualMachineScaleSetsClientUpdateResponse`
+- New struct `VirtualMachineScaleSetsClientUpdateResult`
+- New struct `VirtualMachineSizesClientListOptions`
+- New struct `VirtualMachineSizesClientListResponse`
+- New struct `VirtualMachineSizesClientListResult`
+- New struct `VirtualMachinesClientAssessPatchesPoller`
+- New struct `VirtualMachinesClientAssessPatchesPollerResponse`
+- New struct `VirtualMachinesClientAssessPatchesResponse`
+- New struct `VirtualMachinesClientAssessPatchesResult`
+- New struct `VirtualMachinesClientBeginAssessPatchesOptions`
+- New struct `VirtualMachinesClientBeginCaptureOptions`
+- New struct `VirtualMachinesClientBeginConvertToManagedDisksOptions`
+- New struct `VirtualMachinesClientBeginCreateOrUpdateOptions`
+- New struct `VirtualMachinesClientBeginDeallocateOptions`
+- New struct `VirtualMachinesClientBeginDeleteOptions`
+- New struct `VirtualMachinesClientBeginInstallPatchesOptions`
+- New struct `VirtualMachinesClientBeginPerformMaintenanceOptions`
+- New struct `VirtualMachinesClientBeginPowerOffOptions`
+- New struct `VirtualMachinesClientBeginReapplyOptions`
+- New struct `VirtualMachinesClientBeginRedeployOptions`
+- New struct `VirtualMachinesClientBeginReimageOptions`
+- New struct `VirtualMachinesClientBeginRestartOptions`
+- New struct `VirtualMachinesClientBeginRunCommandOptions`
+- New struct `VirtualMachinesClientBeginStartOptions`
+- New struct `VirtualMachinesClientBeginUpdateOptions`
+- New struct `VirtualMachinesClientCapturePoller`
+- New struct `VirtualMachinesClientCapturePollerResponse`
+- New struct `VirtualMachinesClientCaptureResponse`
+- New struct `VirtualMachinesClientCaptureResult`
+- New struct `VirtualMachinesClientConvertToManagedDisksPoller`
+- New struct `VirtualMachinesClientConvertToManagedDisksPollerResponse`
+- New struct `VirtualMachinesClientConvertToManagedDisksResponse`
+- New struct `VirtualMachinesClientCreateOrUpdatePoller`
+- New struct `VirtualMachinesClientCreateOrUpdatePollerResponse`
+- New struct `VirtualMachinesClientCreateOrUpdateResponse`
+- New struct `VirtualMachinesClientCreateOrUpdateResult`
+- New struct `VirtualMachinesClientDeallocatePoller`
+- New struct `VirtualMachinesClientDeallocatePollerResponse`
+- New struct `VirtualMachinesClientDeallocateResponse`
+- New struct `VirtualMachinesClientDeletePoller`
+- New struct `VirtualMachinesClientDeletePollerResponse`
+- New struct `VirtualMachinesClientDeleteResponse`
+- New struct `VirtualMachinesClientGeneralizeOptions`
+- New struct `VirtualMachinesClientGeneralizeResponse`
+- New struct `VirtualMachinesClientGetOptions`
+- New struct `VirtualMachinesClientGetResponse`
+- New struct `VirtualMachinesClientGetResult`
+- New struct `VirtualMachinesClientInstallPatchesPoller`
+- New struct `VirtualMachinesClientInstallPatchesPollerResponse`
+- New struct `VirtualMachinesClientInstallPatchesResponse`
+- New struct `VirtualMachinesClientInstallPatchesResult`
+- New struct `VirtualMachinesClientInstanceViewOptions`
+- New struct `VirtualMachinesClientInstanceViewResponse`
+- New struct `VirtualMachinesClientInstanceViewResult`
+- New struct `VirtualMachinesClientListAllOptions`
+- New struct `VirtualMachinesClientListAllPager`
+- New struct `VirtualMachinesClientListAllResponse`
+- New struct `VirtualMachinesClientListAllResult`
+- New struct `VirtualMachinesClientListAvailableSizesOptions`
+- New struct `VirtualMachinesClientListAvailableSizesResponse`
+- New struct `VirtualMachinesClientListAvailableSizesResult`
+- New struct `VirtualMachinesClientListByLocationOptions`
+- New struct `VirtualMachinesClientListByLocationPager`
+- New struct `VirtualMachinesClientListByLocationResponse`
+- New struct `VirtualMachinesClientListByLocationResult`
+- New struct `VirtualMachinesClientListOptions`
+- New struct `VirtualMachinesClientListPager`
+- New struct `VirtualMachinesClientListResponse`
+- New struct `VirtualMachinesClientListResult`
+- New struct `VirtualMachinesClientPerformMaintenancePoller`
+- New struct `VirtualMachinesClientPerformMaintenancePollerResponse`
+- New struct `VirtualMachinesClientPerformMaintenanceResponse`
+- New struct `VirtualMachinesClientPowerOffPoller`
+- New struct `VirtualMachinesClientPowerOffPollerResponse`
+- New struct `VirtualMachinesClientPowerOffResponse`
+- New struct `VirtualMachinesClientReapplyPoller`
+- New struct `VirtualMachinesClientReapplyPollerResponse`
+- New struct `VirtualMachinesClientReapplyResponse`
+- New struct `VirtualMachinesClientRedeployPoller`
+- New struct `VirtualMachinesClientRedeployPollerResponse`
+- New struct `VirtualMachinesClientRedeployResponse`
+- New struct `VirtualMachinesClientReimagePoller`
+- New struct `VirtualMachinesClientReimagePollerResponse`
+- New struct `VirtualMachinesClientReimageResponse`
+- New struct `VirtualMachinesClientRestartPoller`
+- New struct `VirtualMachinesClientRestartPollerResponse`
+- New struct `VirtualMachinesClientRestartResponse`
+- New struct `VirtualMachinesClientRetrieveBootDiagnosticsDataOptions`
+- New struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResponse`
+- New struct `VirtualMachinesClientRetrieveBootDiagnosticsDataResult`
+- New struct `VirtualMachinesClientRunCommandPoller`
+- New struct `VirtualMachinesClientRunCommandPollerResponse`
+- New struct `VirtualMachinesClientRunCommandResponse`
+- New struct `VirtualMachinesClientRunCommandResult`
+- New struct `VirtualMachinesClientSimulateEvictionOptions`
+- New struct `VirtualMachinesClientSimulateEvictionResponse`
+- New struct `VirtualMachinesClientStartPoller`
+- New struct `VirtualMachinesClientStartPollerResponse`
+- New struct `VirtualMachinesClientStartResponse`
+- New struct `VirtualMachinesClientUpdatePoller`
+- New struct `VirtualMachinesClientUpdatePollerResponse`
+- New struct `VirtualMachinesClientUpdateResponse`
+- New struct `VirtualMachinesClientUpdateResult`
+- New field `Tags` in struct `CapacityReservationUpdate`
+- New field `SupportedCapabilities` in struct `SnapshotUpdateProperties`
+- New field `Tags` in struct `AvailabilitySetUpdate`
+- New field `Location` in struct `Image`
+- New field `Tags` in struct `Image`
+- New field `ID` in struct `Image`
+- New field `Name` in struct `Image`
+- New field `Type` in struct `Image`
+- New field `Name` in struct `RestorePoint`
+- New field `Type` in struct `RestorePoint`
+- New field `ID` in struct `RestorePoint`
+- New field `Location` in struct `SSHPublicKeyResource`
+- New field `Tags` in struct `SSHPublicKeyResource`
+- New field `ID` in struct `SSHPublicKeyResource`
+- New field `Name` in struct `SSHPublicKeyResource`
+- New field `Type` in struct `SSHPublicKeyResource`
+- New field `Tags` in struct `SSHPublicKeyUpdateResource`
+- New field `ID` in struct `VirtualMachineImageResource`
+- New field `BlobContainerSasURI` in struct `RequestRateByIntervalInput`
+- New field `FromTime` in struct `RequestRateByIntervalInput`
+- New field `ToTime` in struct `RequestRateByIntervalInput`
+- New field `GroupByOperationName` in struct `RequestRateByIntervalInput`
+- New field `GroupByClientApplicationID` in struct `RequestRateByIntervalInput`
+- New field `GroupByResourceName` in struct `RequestRateByIntervalInput`
+- New field `GroupByThrottlePolicy` in struct `RequestRateByIntervalInput`
+- New field `GroupByUserAgent` in struct `RequestRateByIntervalInput`
+- New field `Tags` in struct `DedicatedHostGroupUpdate`
+- New field `Name` in struct `VirtualMachineScaleSet`
+- New field `Location` in struct `VirtualMachineScaleSet`
+- New field `ID` in struct `VirtualMachineScaleSet`
+- New field `Type` in struct `VirtualMachineScaleSet`
+- New field `Tags` in struct `VirtualMachineScaleSet`
+- New field `Location` in struct `Gallery`
+- New field `Tags` in struct `Gallery`
+- New field `ID` in struct `Gallery`
+- New field `Name` in struct `Gallery`
+- New field `Type` in struct `Gallery`
+- New field `ID` in struct `SubResourceWithColocationStatus`
+- New field `SecurityProfile` in struct `SnapshotProperties`
+- New field `Tags` in struct `CapacityReservationGroupUpdate`
+- New field `Name` in struct `CapacityReservationGroup`
+- New field `Type` in struct `CapacityReservationGroup`
+- New field `Location` in struct `CapacityReservationGroup`
+- New field `Tags` in struct `CapacityReservationGroup`
+- New field `ID` in struct `CapacityReservationGroup`
+- New field `Tags` in struct `ProximityPlacementGroupUpdate`
+- New field `Tags` in struct `VirtualMachineExtensionUpdate`
+- New field `Tags` in struct `VirtualMachineRunCommandUpdate`
+- New field `ID` in struct `VirtualMachineScaleSetExtension`
+- New field `TempDisk` in struct `VirtualMachineScaleSetReimageParameters`
+- New field `Type` in struct `RollingUpgradeStatusInfo`
+- New field `Location` in struct `RollingUpgradeStatusInfo`
+- New field `Tags` in struct `RollingUpgradeStatusInfo`
+- New field `ID` in struct `RollingUpgradeStatusInfo`
+- New field `Name` in struct `RollingUpgradeStatusInfo`
+- New field `Tags` in struct `GalleryApplicationVersionUpdate`
+- New field `ID` in struct `GalleryApplicationVersionUpdate`
+- New field `Name` in struct `GalleryApplicationVersionUpdate`
+- New field `Type` in struct `GalleryApplicationVersionUpdate`
+- New field `SecurityDataURI` in struct `CreationData`
+- New field `StorageAccountType` in struct `ImageOSDisk`
+- New field `BlobURI` in struct `ImageOSDisk`
+- New field `Caching` in struct `ImageOSDisk`
+- New field `DiskEncryptionSet` in struct `ImageOSDisk`
+- New field `DiskSizeGB` in struct `ImageOSDisk`
+- New field `Snapshot` in struct `ImageOSDisk`
+- New field `ManagedDisk` in struct `ImageOSDisk`
+- New field `UtilizationInfo` in struct `CapacityReservationInstanceViewWithName`
+- New field `Statuses` in struct `CapacityReservationInstanceViewWithName`
+- New field `Location` in struct `Snapshot`
+- New field `ID` in struct `Snapshot`
+- New field `Type` in struct `Snapshot`
+- New field `Tags` in struct `Snapshot`
+- New field `Name` in struct `Snapshot`
+- New field `HostCaching` in struct `GalleryDataDiskImage`
+- New field `Source` in struct `GalleryDataDiskImage`
+- New field `SizeInGB` in struct `GalleryDataDiskImage`
+- New field `ID` in struct `GalleryImageVersion`
+- New field `Name` in struct `GalleryImageVersion`
+- New field `Type` in struct `GalleryImageVersion`
+- New field `Location` in struct `GalleryImageVersion`
+- New field `Tags` in struct `GalleryImageVersion`
+- New field `Location` in struct `DedicatedHost`
+- New field `Tags` in struct `DedicatedHost`
+- New field `ID` in struct `DedicatedHost`
+- New field `Name` in struct `DedicatedHost`
+- New field `Type` in struct `DedicatedHost`
+- New field `ID` in struct `VirtualMachineCaptureResult`
+- New field `ID` in struct `GalleryApplicationUpdate`
+- New field `Name` in struct `GalleryApplicationUpdate`
+- New field `Type` in struct `GalleryApplicationUpdate`
+- New field `Tags` in struct `GalleryApplicationUpdate`
+- New field `ID` in struct `GalleryImageVersionUpdate`
+- New field `Name` in struct `GalleryImageVersionUpdate`
+- New field `Type` in struct `GalleryImageVersionUpdate`
+- New field `Tags` in struct `GalleryImageVersionUpdate`
+- New field `ID` in struct `VirtualMachineScaleSetVMExtensionUpdate`
+- New field `ID` in struct `VirtualMachineScaleSetNetworkConfiguration`
+- New field `Tags` in struct `RestorePointCollectionUpdate`
+- New field `ID` in struct `DiskEncryptionSetParameters`
+- New field `ID` in struct `VirtualMachineScaleSetVMExtension`
+- New field `Type` in struct `VirtualMachine`
+- New field `Tags` in struct `VirtualMachine`
+- New field `Location` in struct `VirtualMachine`
+- New field `ID` in struct `VirtualMachine`
+- New field `Name` in struct `VirtualMachine`
+- New field `ID` in struct `DiskEncryptionSet`
+- New field `Name` in struct `DiskEncryptionSet`
+- New field `Type` in struct `DiskEncryptionSet`
+- New field `Location` in struct `DiskEncryptionSet`
+- New field `Tags` in struct `DiskEncryptionSet`
+- New field `Tags` in struct `ImageUpdate`
+- New field `DiskEncryptionSetID` in struct `OSDiskImageEncryption`
+- New field `Tags` in struct `GalleryUpdate`
+- New field `ID` in struct `GalleryUpdate`
+- New field `Name` in struct `GalleryUpdate`
+- New field `Type` in struct `GalleryUpdate`
+- New field `Name` in struct `CapacityReservation`
+- New field `Type` in struct `CapacityReservation`
+- New field `Location` in struct `CapacityReservation`
+- New field `Tags` in struct `CapacityReservation`
+- New field `ID` in struct `CapacityReservation`
+- New field `Tags` in struct `VirtualMachineUpdate`
+- New field `ID` in struct `ManagedDiskParameters`
+- New field `Identifier` in struct `CommunityGallery`
+- New field `Location` in struct `CommunityGallery`
+- New field `Name` in struct `CommunityGallery`
+- New field `Type` in struct `CommunityGallery`
+- New field `DiskSizeGB` in struct `ImageDataDisk`
+- New field `ManagedDisk` in struct `ImageDataDisk`
+- New field `Snapshot` in struct `ImageDataDisk`
+- New field `StorageAccountType` in struct `ImageDataDisk`
+- New field `BlobURI` in struct `ImageDataDisk`
+- New field `Caching` in struct `ImageDataDisk`
+- New field `DiskEncryptionSet` in struct `ImageDataDisk`
+- New field `HostCaching` in struct `GalleryOSDiskImage`
+- New field `Source` in struct `GalleryOSDiskImage`
+- New field `SizeInGB` in struct `GalleryOSDiskImage`
+- New field `GetSecureVMGuestStateSAS` in struct `GrantAccessData`
+- New field `ID` in struct `VirtualMachineScaleSetUpdateIPConfiguration`
+- New field `Name` in struct `VirtualMachineExtensionImage`
+- New field `Type` in struct `VirtualMachineExtensionImage`
+- New field `Location` in struct `VirtualMachineExtensionImage`
+- New field `Tags` in struct `VirtualMachineExtensionImage`
+- New field `ID` in struct `VirtualMachineExtensionImage`
+- New field `ID` in struct `VirtualMachineScaleSetIPConfiguration`
+- New field `Location` in struct `PirSharedGalleryResource`
+- New field `Name` in struct `PirSharedGalleryResource`
+- New field `SecurityDataAccessSAS` in struct `AccessURI`
+- New field `Tags` in struct `VirtualMachineExtension`
+- New field `ID` in struct `VirtualMachineExtension`
+- New field `Name` in struct `VirtualMachineExtension`
+- New field `Type` in struct `VirtualMachineExtension`
+- New field `Location` in struct `VirtualMachineExtension`
+- New field `Name` in struct `DedicatedHostGroup`
+- New field `Type` in struct `DedicatedHostGroup`
+- New field `Location` in struct `DedicatedHostGroup`
+- New field `Tags` in struct `DedicatedHostGroup`
+- New field `ID` in struct `DedicatedHostGroup`
+- New field `Tags` in struct `GalleryImageUpdate`
+- New field `ID` in struct `GalleryImageUpdate`
+- New field `Name` in struct `GalleryImageUpdate`
+- New field `Type` in struct `GalleryImageUpdate`
+- New field `Tags` in struct `VirtualMachineScaleSetVM`
+- New field `ID` in struct `VirtualMachineScaleSetVM`
+- New field `Location` in struct `VirtualMachineScaleSetVM`
+- New field `Name` in struct `VirtualMachineScaleSetVM`
+- New field `Type` in struct `VirtualMachineScaleSetVM`
+- New field `ExtendedLocation` in struct `VirtualMachineImage`
+- New field `ID` in struct `VirtualMachineImage`
+- New field `Tags` in struct `VirtualMachineImage`
+- New field `Location` in struct `VirtualMachineImage`
+- New field `Name` in struct `VirtualMachineImage`
+- New field `ID` in struct `ProximityPlacementGroup`
+- New field `Name` in struct `ProximityPlacementGroup`
+- New field `Type` in struct `ProximityPlacementGroup`
+- New field `Location` in struct `ProximityPlacementGroup`
+- New field `Tags` in struct `ProximityPlacementGroup`
+- New field `Type` in struct `VirtualMachineRunCommand`
+- New field `Location` in struct `VirtualMachineRunCommand`
+- New field `Tags` in struct `VirtualMachineRunCommand`
+- New field `ID` in struct `VirtualMachineRunCommand`
+- New field `Name` in struct `VirtualMachineRunCommand`
+- New field `ID` in struct `RunCommandDocument`
+- New field `Label` in struct `RunCommandDocument`
+- New field `OSType` in struct `RunCommandDocument`
+- New field `Schema` in struct `RunCommandDocument`
+- New field `Description` in struct `RunCommandDocument`
+- New field `ReplicationMode` in struct `GalleryApplicationVersionPublishingProfile`
+- New field `StorageAccountType` in struct `GalleryApplicationVersionPublishingProfile`
+- New field `TargetRegions` in struct `GalleryApplicationVersionPublishingProfile`
+- New field `ExcludeFromLatest` in struct `GalleryApplicationVersionPublishingProfile`
+- New field `PublishedDate` in struct `GalleryApplicationVersionPublishingProfile`
+- New field `EndOfLifeDate` in struct `GalleryApplicationVersionPublishingProfile`
+- New field `ReplicaCount` in struct `GalleryApplicationVersionPublishingProfile`
+- New field `ID` in struct `ImageReference`
+- New field `Tags` in struct `DedicatedHostUpdate`
+- New field `Location` in struct `AvailabilitySet`
+- New field `Tags` in struct `AvailabilitySet`
+- New field `ID` in struct `AvailabilitySet`
+- New field `Name` in struct `AvailabilitySet`
+- New field `Type` in struct `AvailabilitySet`
+- New field `DiskEncryptionSetID` in struct `DataDiskImageEncryption`
+- New field `Identifier` in struct `SharedGallery`
+- New field `Location` in struct `SharedGallery`
+- New field `Name` in struct `SharedGallery`
+- New field `ID` in struct `DiskRestorePoint`
+- New field `Name` in struct `DiskRestorePoint`
+- New field `Type` in struct `DiskRestorePoint`
+- New field `SourceResourceLocation` in struct `DiskRestorePointProperties`
+- New field `ReplicationState` in struct `DiskRestorePointProperties`
+- New field `Error` in struct `CloudError`
+- New field `EndOfLifeDate` in struct `GalleryImageVersionPublishingProfile`
+- New field `ExcludeFromLatest` in struct `GalleryImageVersionPublishingProfile`
+- New field `ReplicaCount` in struct `GalleryImageVersionPublishingProfile`
+- New field `ReplicationMode` in struct `GalleryImageVersionPublishingProfile`
+- New field `StorageAccountType` in struct `GalleryImageVersionPublishingProfile`
+- New field `TargetRegions` in struct `GalleryImageVersionPublishingProfile`
+- New field `PublishedDate` in struct `GalleryImageVersionPublishingProfile`
+- New field `ID` in struct `RestorePointCollection`
+- New field `Name` in struct `RestorePointCollection`
+- New field `Type` in struct `RestorePointCollection`
+- New field `Location` in struct `RestorePointCollection`
+- New field `Tags` in struct `RestorePointCollection`
+- New field `SecureVMDiskEncryptionSetID` in struct `DiskSecurityProfile`
+- New field `Tags` in struct `VirtualMachineScaleSetUpdate`
+- New field `Identifier` in struct `SharedGalleryImage`
+- New field `Location` in struct `SharedGalleryImage`
+- New field `Name` in struct `SharedGalleryImage`
+- New field `Location` in struct `GalleryApplication`
+- New field `Tags` in struct `GalleryApplication`
+- New field `ID` in struct `GalleryApplication`
+- New field `Name` in struct `GalleryApplication`
+- New field `Type` in struct `GalleryApplication`
+- New field `Location` in struct `CommunityGalleryImage`
+- New field `Name` in struct `CommunityGalleryImage`
+- New field `Type` in struct `CommunityGalleryImage`
+- New field `Identifier` in struct `CommunityGalleryImage`
+- New field `ID` in struct `VirtualMachineScaleSetExtensionUpdate`
+- New field `Location` in struct `DiskAccess`
+- New field `Tags` in struct `DiskAccess`
+- New field `ID` in struct `DiskAccess`
+- New field `Name` in struct `DiskAccess`
+- New field `Type` in struct `DiskAccess`
+- New field `ToTime` in struct `ThrottledRequestsInput`
+- New field `GroupByClientApplicationID` in struct `ThrottledRequestsInput`
+- New field `GroupByOperationName` in struct `ThrottledRequestsInput`
+- New field `GroupByResourceName` in struct `ThrottledRequestsInput`
+- New field `GroupByThrottlePolicy` in struct `ThrottledRequestsInput`
+- New field `GroupByUserAgent` in struct `ThrottledRequestsInput`
+- New field `BlobContainerSasURI` in struct `ThrottledRequestsInput`
+- New field `FromTime` in struct `ThrottledRequestsInput`
+- New field `ID` in struct `NetworkInterfaceReference`
+- New field `TempDisk` in struct `VirtualMachineScaleSetVMReimageParameters`
+- New field `Identifier` in struct `SharedGalleryImageVersion`
+- New field `Location` in struct `SharedGalleryImageVersion`
+- New field `Name` in struct `SharedGalleryImageVersion`
+- New field `AssetID` in struct `DedicatedHostInstanceViewWithName`
+- New field `AvailableCapacity` in struct `DedicatedHostInstanceViewWithName`
+- New field `Statuses` in struct `DedicatedHostInstanceViewWithName`
+- New field `Tags` in struct `GalleryImage`
+- New field `ID` in struct `GalleryImage`
+- New field `Name` in struct `GalleryImage`
+- New field `Type` in struct `GalleryImage`
+- New field `Location` in struct `GalleryImage`
+- New field `Type` in struct `GalleryApplicationVersion`
+- New field `Location` in struct `GalleryApplicationVersion`
+- New field `Tags` in struct `GalleryApplicationVersion`
+- New field `ID` in struct `GalleryApplicationVersion`
+- New field `Name` in struct `GalleryApplicationVersion`
+- New field `Identifier` in struct `CommunityGalleryImageVersion`
+- New field `Location` in struct `CommunityGalleryImageVersion`
+- New field `Name` in struct `CommunityGalleryImageVersion`
+- New field `Type` in struct `CommunityGalleryImageVersion`
+- New field `Location` in struct `Disk`
+- New field `ID` in struct `Disk`
+- New field `Type` in struct `Disk`
+- New field `Tags` in struct `Disk`
+- New field `Name` in struct `Disk`
+- New field `ID` in struct `VirtualMachineScaleSetUpdateNetworkConfiguration`
+
+
+## 0.2.1 (2021-11-26)
+
+### Other Changes
+
+- Now use `github.com/Azure/azure-sdk-for-go/sdk/azidentity@v0.12.0` explicitly.
+
+## 0.2.0 (2021-10-29)
+
+### Breaking Changes
+
+- `arm.Connection` has been removed in `github.com/Azure/azure-sdk-for-go/sdk/azcore/v0.20.0`
+- The parameters of `NewXXXClient` has been changed from `(con *arm.Connection, subscriptionID string)` to `(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions)`
+
+## 0.1.0 (2021-09-29)
+- To better align with the Azure SDK guidelines (https://azure.github.io/azure-sdk/general_introduction.html), we have decided to change the module path to "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute". Therefore, we are deprecating the old module path (which is "github.com/Azure/azure-sdk-for-go/sdk/compute/armcompute") to avoid confusion.
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/LICENSE.txt b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/LICENSE.txt
new file mode 100644
index 0000000000..dc0c2ffb3d
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/LICENSE.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Microsoft Corporation. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/README.md
new file mode 100644
index 0000000000..7ccd1f8662
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/README.md
@@ -0,0 +1,88 @@
+# Azure Compute Module for Go
+
+[](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute)
+
+The `armcompute` module provides operations for working with Azure Compute.
+
+[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/compute/armcompute)
+
+# Getting started
+
+## Prerequisites
+
+- an [Azure subscription](https://azure.microsoft.com/free/)
+- Go 1.18 or above
+
+## Install the package
+
+This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management.
+
+Install the Azure Compute module:
+
+```sh
+go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute
+```
+
+## Authorization
+
+When creating a client, you will need to provide a credential for authenticating with Azure Compute. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.
+
+```go
+cred, err := azidentity.NewDefaultAzureCredential(nil)
+```
+
+For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity).
+
+## Clients
+
+Azure Compute modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential.
+
+```go
+client, err := armcompute.NewLogAnalyticsClient(, cred, nil)
+```
+
+You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore).
+
+```go
+options := arm.ClientOptions {
+ ClientOptions: azcore.ClientOptions {
+ Cloud: cloud.AzureChina,
+ },
+}
+client, err := armcompute.NewLogAnalyticsClient(, cred, &options)
+```
+
+## More sample code
+
+- [Availability Set](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/availabilityset)
+- [Virtual Machine](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/createVM)
+- [Dedicated Host](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/dedicated_host)
+- [Disk](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/disk)
+- [Gallery](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/gallery)
+- [Proximity Placement Group](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/proximity)
+- [Snapshot](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/snapshot)
+- [Virtual Machine Scale Set](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/compute/vmscaleset)
+
+## Provide Feedback
+
+If you encounter bugs or have suggestions, please
+[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `Compute` label.
+
+# Contributing
+
+This project welcomes contributions and suggestions. Most contributions require
+you to agree to a Contributor License Agreement (CLA) declaring that you have
+the right to, and actually do, grant us the rights to use your contribution.
+For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
+
+When you submit a pull request, a CLA-bot will automatically determine whether
+you need to provide a CLA and decorate the PR appropriately (e.g., label,
+comment). Simply follow the instructions provided by the bot. You will only
+need to do this once across all repos using our CLA.
+
+This project has adopted the
+[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
+For more information, see the
+[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
+or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any
+additional questions or comments.
\ No newline at end of file
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/autorest.md
new file mode 100644
index 0000000000..6586bd0dd3
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/autorest.md
@@ -0,0 +1,12 @@
+### AutoRest Configuration
+
+> see https://aka.ms/autorest
+
+``` yaml
+azure-arm: true
+require:
+- https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/compute/resource-manager/readme.md
+- https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/compute/resource-manager/readme.go.md
+license-header: MICROSOFT_MIT_NO_VERSION
+module-version: 1.0.0
+```
\ No newline at end of file
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/build.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/build.go
new file mode 100644
index 0000000000..78362d4425
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/build.go
@@ -0,0 +1,7 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+
+// This file enables 'go generate' to regenerate this specific SDK
+//go:generate pwsh.exe ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate resourcemanager/compute/armcompute
+
+package armcompute
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/ci.yml b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/ci.yml
new file mode 100644
index 0000000000..084ed1b49e
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/ci.yml
@@ -0,0 +1,28 @@
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+trigger:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/resourcemanager/compute/armcompute/
+
+pr:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/resourcemanager/compute/armcompute/
+
+stages:
+- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
+ parameters:
+ IncludeRelease: true
+ ServiceDirectory: 'resourcemanager/compute/armcompute'
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_availabilitysets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_availabilitysets_client.go
new file mode 100644
index 0000000000..595afa8539
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_availabilitysets_client.go
@@ -0,0 +1,466 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// AvailabilitySetsClient contains the methods for the AvailabilitySets group.
+// Don't use this type directly, use NewAvailabilitySetsClient() instead.
+type AvailabilitySetsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewAvailabilitySetsClient creates a new instance of AvailabilitySetsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewAvailabilitySetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailabilitySetsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &AvailabilitySetsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// CreateOrUpdate - Create or update an availability set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// availabilitySetName - The name of the availability set.
+// parameters - Parameters supplied to the Create Availability Set operation.
+// options - AvailabilitySetsClientCreateOrUpdateOptions contains the optional parameters for the AvailabilitySetsClient.CreateOrUpdate
+// method.
+func (client *AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, availabilitySetName string, parameters AvailabilitySet, options *AvailabilitySetsClientCreateOrUpdateOptions) (AvailabilitySetsClientCreateOrUpdateResponse, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, availabilitySetName, parameters, options)
+ if err != nil {
+ return AvailabilitySetsClientCreateOrUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return AvailabilitySetsClientCreateOrUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return AvailabilitySetsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.createOrUpdateHandleResponse(resp)
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *AvailabilitySetsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, availabilitySetName string, parameters AvailabilitySet, options *AvailabilitySetsClientCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if availabilitySetName == "" {
+ return nil, errors.New("parameter availabilitySetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{availabilitySetName}", url.PathEscape(availabilitySetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// createOrUpdateHandleResponse handles the CreateOrUpdate response.
+func (client *AvailabilitySetsClient) createOrUpdateHandleResponse(resp *http.Response) (AvailabilitySetsClientCreateOrUpdateResponse, error) {
+ result := AvailabilitySetsClientCreateOrUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.AvailabilitySet); err != nil {
+ return AvailabilitySetsClientCreateOrUpdateResponse{}, err
+ }
+ return result, nil
+}
+
+// Delete - Delete an availability set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// availabilitySetName - The name of the availability set.
+// options - AvailabilitySetsClientDeleteOptions contains the optional parameters for the AvailabilitySetsClient.Delete method.
+func (client *AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientDeleteOptions) (AvailabilitySetsClientDeleteResponse, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, availabilitySetName, options)
+ if err != nil {
+ return AvailabilitySetsClientDeleteResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return AvailabilitySetsClientDeleteResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) {
+ return AvailabilitySetsClientDeleteResponse{}, runtime.NewResponseError(resp)
+ }
+ return AvailabilitySetsClientDeleteResponse{}, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *AvailabilitySetsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if availabilitySetName == "" {
+ return nil, errors.New("parameter availabilitySetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{availabilitySetName}", url.PathEscape(availabilitySetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about an availability set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// availabilitySetName - The name of the availability set.
+// options - AvailabilitySetsClientGetOptions contains the optional parameters for the AvailabilitySetsClient.Get method.
+func (client *AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientGetOptions) (AvailabilitySetsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, availabilitySetName, options)
+ if err != nil {
+ return AvailabilitySetsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return AvailabilitySetsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return AvailabilitySetsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *AvailabilitySetsClient) getCreateRequest(ctx context.Context, resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if availabilitySetName == "" {
+ return nil, errors.New("parameter availabilitySetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{availabilitySetName}", url.PathEscape(availabilitySetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *AvailabilitySetsClient) getHandleResponse(resp *http.Response) (AvailabilitySetsClientGetResponse, error) {
+ result := AvailabilitySetsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.AvailabilitySet); err != nil {
+ return AvailabilitySetsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Lists all availability sets in a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - AvailabilitySetsClientListOptions contains the optional parameters for the AvailabilitySetsClient.List method.
+func (client *AvailabilitySetsClient) NewListPager(resourceGroupName string, options *AvailabilitySetsClientListOptions) *runtime.Pager[AvailabilitySetsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[AvailabilitySetsClientListResponse]{
+ More: func(page AvailabilitySetsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *AvailabilitySetsClientListResponse) (AvailabilitySetsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return AvailabilitySetsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return AvailabilitySetsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return AvailabilitySetsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *AvailabilitySetsClient) listCreateRequest(ctx context.Context, resourceGroupName string, options *AvailabilitySetsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *AvailabilitySetsClient) listHandleResponse(resp *http.Response) (AvailabilitySetsClientListResponse, error) {
+ result := AvailabilitySetsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.AvailabilitySetListResult); err != nil {
+ return AvailabilitySetsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListAvailableSizesPager - Lists all available virtual machine sizes that can be used to create a new virtual machine
+// in an existing availability set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// availabilitySetName - The name of the availability set.
+// options - AvailabilitySetsClientListAvailableSizesOptions contains the optional parameters for the AvailabilitySetsClient.ListAvailableSizes
+// method.
+func (client *AvailabilitySetsClient) NewListAvailableSizesPager(resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientListAvailableSizesOptions) *runtime.Pager[AvailabilitySetsClientListAvailableSizesResponse] {
+ return runtime.NewPager(runtime.PagingHandler[AvailabilitySetsClientListAvailableSizesResponse]{
+ More: func(page AvailabilitySetsClientListAvailableSizesResponse) bool {
+ return false
+ },
+ Fetcher: func(ctx context.Context, page *AvailabilitySetsClientListAvailableSizesResponse) (AvailabilitySetsClientListAvailableSizesResponse, error) {
+ req, err := client.listAvailableSizesCreateRequest(ctx, resourceGroupName, availabilitySetName, options)
+ if err != nil {
+ return AvailabilitySetsClientListAvailableSizesResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return AvailabilitySetsClientListAvailableSizesResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return AvailabilitySetsClientListAvailableSizesResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listAvailableSizesHandleResponse(resp)
+ },
+ })
+}
+
+// listAvailableSizesCreateRequest creates the ListAvailableSizes request.
+func (client *AvailabilitySetsClient) listAvailableSizesCreateRequest(ctx context.Context, resourceGroupName string, availabilitySetName string, options *AvailabilitySetsClientListAvailableSizesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if availabilitySetName == "" {
+ return nil, errors.New("parameter availabilitySetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{availabilitySetName}", url.PathEscape(availabilitySetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listAvailableSizesHandleResponse handles the ListAvailableSizes response.
+func (client *AvailabilitySetsClient) listAvailableSizesHandleResponse(resp *http.Response) (AvailabilitySetsClientListAvailableSizesResponse, error) {
+ result := AvailabilitySetsClientListAvailableSizesResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineSizeListResult); err != nil {
+ return AvailabilitySetsClientListAvailableSizesResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListBySubscriptionPager - Lists all availability sets in a subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - AvailabilitySetsClientListBySubscriptionOptions contains the optional parameters for the AvailabilitySetsClient.ListBySubscription
+// method.
+func (client *AvailabilitySetsClient) NewListBySubscriptionPager(options *AvailabilitySetsClientListBySubscriptionOptions) *runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse] {
+ return runtime.NewPager(runtime.PagingHandler[AvailabilitySetsClientListBySubscriptionResponse]{
+ More: func(page AvailabilitySetsClientListBySubscriptionResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *AvailabilitySetsClientListBySubscriptionResponse) (AvailabilitySetsClientListBySubscriptionResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listBySubscriptionCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return AvailabilitySetsClientListBySubscriptionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return AvailabilitySetsClientListBySubscriptionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return AvailabilitySetsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listBySubscriptionHandleResponse(resp)
+ },
+ })
+}
+
+// listBySubscriptionCreateRequest creates the ListBySubscription request.
+func (client *AvailabilitySetsClient) listBySubscriptionCreateRequest(ctx context.Context, options *AvailabilitySetsClientListBySubscriptionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listBySubscriptionHandleResponse handles the ListBySubscription response.
+func (client *AvailabilitySetsClient) listBySubscriptionHandleResponse(resp *http.Response) (AvailabilitySetsClientListBySubscriptionResponse, error) {
+ result := AvailabilitySetsClientListBySubscriptionResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.AvailabilitySetListResult); err != nil {
+ return AvailabilitySetsClientListBySubscriptionResponse{}, err
+ }
+ return result, nil
+}
+
+// Update - Update an availability set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// availabilitySetName - The name of the availability set.
+// parameters - Parameters supplied to the Update Availability Set operation.
+// options - AvailabilitySetsClientUpdateOptions contains the optional parameters for the AvailabilitySetsClient.Update method.
+func (client *AvailabilitySetsClient) Update(ctx context.Context, resourceGroupName string, availabilitySetName string, parameters AvailabilitySetUpdate, options *AvailabilitySetsClientUpdateOptions) (AvailabilitySetsClientUpdateResponse, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, availabilitySetName, parameters, options)
+ if err != nil {
+ return AvailabilitySetsClientUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return AvailabilitySetsClientUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return AvailabilitySetsClientUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.updateHandleResponse(resp)
+}
+
+// updateCreateRequest creates the Update request.
+func (client *AvailabilitySetsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, availabilitySetName string, parameters AvailabilitySetUpdate, options *AvailabilitySetsClientUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if availabilitySetName == "" {
+ return nil, errors.New("parameter availabilitySetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{availabilitySetName}", url.PathEscape(availabilitySetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// updateHandleResponse handles the Update response.
+func (client *AvailabilitySetsClient) updateHandleResponse(resp *http.Response) (AvailabilitySetsClientUpdateResponse, error) {
+ result := AvailabilitySetsClientUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.AvailabilitySet); err != nil {
+ return AvailabilitySetsClientUpdateResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservationgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservationgroups_client.go
new file mode 100644
index 0000000000..f698a3a552
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservationgroups_client.go
@@ -0,0 +1,418 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CapacityReservationGroupsClient contains the methods for the CapacityReservationGroups group.
+// Don't use this type directly, use NewCapacityReservationGroupsClient() instead.
+type CapacityReservationGroupsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCapacityReservationGroupsClient creates a new instance of CapacityReservationGroupsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCapacityReservationGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CapacityReservationGroupsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CapacityReservationGroupsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// CreateOrUpdate - The operation to create or update a capacity reservation group. When updating a capacity reservation group,
+// only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more
+// details.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// parameters - Parameters supplied to the Create capacity reservation Group.
+// options - CapacityReservationGroupsClientCreateOrUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.CreateOrUpdate
+// method.
+func (client *CapacityReservationGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, parameters CapacityReservationGroup, options *CapacityReservationGroupsClientCreateOrUpdateOptions) (CapacityReservationGroupsClientCreateOrUpdateResponse, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, parameters, options)
+ if err != nil {
+ return CapacityReservationGroupsClientCreateOrUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CapacityReservationGroupsClientCreateOrUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return CapacityReservationGroupsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.createOrUpdateHandleResponse(resp)
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *CapacityReservationGroupsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, parameters CapacityReservationGroup, options *CapacityReservationGroupsClientCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// createOrUpdateHandleResponse handles the CreateOrUpdate response.
+func (client *CapacityReservationGroupsClient) createOrUpdateHandleResponse(resp *http.Response) (CapacityReservationGroupsClientCreateOrUpdateResponse, error) {
+ result := CapacityReservationGroupsClientCreateOrUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CapacityReservationGroup); err != nil {
+ return CapacityReservationGroupsClientCreateOrUpdateResponse{}, err
+ }
+ return result, nil
+}
+
+// Delete - The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources
+// are disassociated from the reservation group and all capacity reservations under
+// the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// options - CapacityReservationGroupsClientDeleteOptions contains the optional parameters for the CapacityReservationGroupsClient.Delete
+// method.
+func (client *CapacityReservationGroupsClient) Delete(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationGroupsClientDeleteOptions) (CapacityReservationGroupsClientDeleteResponse, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, options)
+ if err != nil {
+ return CapacityReservationGroupsClientDeleteResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CapacityReservationGroupsClientDeleteResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) {
+ return CapacityReservationGroupsClientDeleteResponse{}, runtime.NewResponseError(resp)
+ }
+ return CapacityReservationGroupsClientDeleteResponse{}, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *CapacityReservationGroupsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationGroupsClientDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - The operation that retrieves information about a capacity reservation group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// options - CapacityReservationGroupsClientGetOptions contains the optional parameters for the CapacityReservationGroupsClient.Get
+// method.
+func (client *CapacityReservationGroupsClient) Get(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationGroupsClientGetOptions) (CapacityReservationGroupsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, options)
+ if err != nil {
+ return CapacityReservationGroupsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CapacityReservationGroupsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CapacityReservationGroupsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *CapacityReservationGroupsClient) getCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationGroupsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *CapacityReservationGroupsClient) getHandleResponse(resp *http.Response) (CapacityReservationGroupsClientGetResponse, error) {
+ result := CapacityReservationGroupsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CapacityReservationGroup); err != nil {
+ return CapacityReservationGroupsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Lists all of the capacity reservation groups in the specified resource group. Use the nextLink
+// property in the response to get the next page of capacity reservation groups.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - CapacityReservationGroupsClientListByResourceGroupOptions contains the optional parameters for the CapacityReservationGroupsClient.ListByResourceGroup
+// method.
+func (client *CapacityReservationGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *CapacityReservationGroupsClientListByResourceGroupOptions) *runtime.Pager[CapacityReservationGroupsClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CapacityReservationGroupsClientListByResourceGroupResponse]{
+ More: func(page CapacityReservationGroupsClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CapacityReservationGroupsClientListByResourceGroupResponse) (CapacityReservationGroupsClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CapacityReservationGroupsClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CapacityReservationGroupsClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CapacityReservationGroupsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *CapacityReservationGroupsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *CapacityReservationGroupsClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *CapacityReservationGroupsClient) listByResourceGroupHandleResponse(resp *http.Response) (CapacityReservationGroupsClientListByResourceGroupResponse, error) {
+ result := CapacityReservationGroupsClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CapacityReservationGroupListResult); err != nil {
+ return CapacityReservationGroupsClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListBySubscriptionPager - Lists all of the capacity reservation groups in the subscription. Use the nextLink property
+// in the response to get the next page of capacity reservation groups.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - CapacityReservationGroupsClientListBySubscriptionOptions contains the optional parameters for the CapacityReservationGroupsClient.ListBySubscription
+// method.
+func (client *CapacityReservationGroupsClient) NewListBySubscriptionPager(options *CapacityReservationGroupsClientListBySubscriptionOptions) *runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CapacityReservationGroupsClientListBySubscriptionResponse]{
+ More: func(page CapacityReservationGroupsClientListBySubscriptionResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CapacityReservationGroupsClientListBySubscriptionResponse) (CapacityReservationGroupsClientListBySubscriptionResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listBySubscriptionCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CapacityReservationGroupsClientListBySubscriptionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CapacityReservationGroupsClientListBySubscriptionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CapacityReservationGroupsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listBySubscriptionHandleResponse(resp)
+ },
+ })
+}
+
+// listBySubscriptionCreateRequest creates the ListBySubscription request.
+func (client *CapacityReservationGroupsClient) listBySubscriptionCreateRequest(ctx context.Context, options *CapacityReservationGroupsClientListBySubscriptionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listBySubscriptionHandleResponse handles the ListBySubscription response.
+func (client *CapacityReservationGroupsClient) listBySubscriptionHandleResponse(resp *http.Response) (CapacityReservationGroupsClientListBySubscriptionResponse, error) {
+ result := CapacityReservationGroupsClientListBySubscriptionResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CapacityReservationGroupListResult); err != nil {
+ return CapacityReservationGroupsClientListBySubscriptionResponse{}, err
+ }
+ return result, nil
+}
+
+// Update - The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may
+// be modified.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// parameters - Parameters supplied to the Update capacity reservation Group operation.
+// options - CapacityReservationGroupsClientUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.Update
+// method.
+func (client *CapacityReservationGroupsClient) Update(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, parameters CapacityReservationGroupUpdate, options *CapacityReservationGroupsClientUpdateOptions) (CapacityReservationGroupsClientUpdateResponse, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, parameters, options)
+ if err != nil {
+ return CapacityReservationGroupsClientUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CapacityReservationGroupsClientUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CapacityReservationGroupsClientUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.updateHandleResponse(resp)
+}
+
+// updateCreateRequest creates the Update request.
+func (client *CapacityReservationGroupsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, parameters CapacityReservationGroupUpdate, options *CapacityReservationGroupsClientUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// updateHandleResponse handles the Update response.
+func (client *CapacityReservationGroupsClient) updateHandleResponse(resp *http.Response) (CapacityReservationGroupsClientUpdateResponse, error) {
+ result := CapacityReservationGroupsClientUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CapacityReservationGroup); err != nil {
+ return CapacityReservationGroupsClientUpdateResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservations_client.go
new file mode 100644
index 0000000000..cc613b8016
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_capacityreservations_client.go
@@ -0,0 +1,406 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CapacityReservationsClient contains the methods for the CapacityReservations group.
+// Don't use this type directly, use NewCapacityReservationsClient() instead.
+type CapacityReservationsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCapacityReservationsClient creates a new instance of CapacityReservationsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCapacityReservationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CapacityReservationsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CapacityReservationsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - The operation to create or update a capacity reservation. Please note some properties can be set
+// only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more
+// details.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// capacityReservationName - The name of the capacity reservation.
+// parameters - Parameters supplied to the Create capacity reservation.
+// options - CapacityReservationsClientBeginCreateOrUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginCreateOrUpdate
+// method.
+func (client *CapacityReservationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservation, options *CapacityReservationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[CapacityReservationsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CapacityReservationsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CapacityReservationsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - The operation to create or update a capacity reservation. Please note some properties can be set only
+// during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more
+// details.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *CapacityReservationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservation, options *CapacityReservationsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *CapacityReservationsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservation, options *CapacityReservationsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if capacityReservationName == "" {
+ return nil, errors.New("parameter capacityReservationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationName}", url.PathEscape(capacityReservationName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginDelete - The operation to delete a capacity reservation. This operation is allowed only when all the associated resources
+// are disassociated from the capacity reservation. Please refer to
+// https://aka.ms/CapacityReservation for more details.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// capacityReservationName - The name of the capacity reservation.
+// options - CapacityReservationsClientBeginDeleteOptions contains the optional parameters for the CapacityReservationsClient.BeginDelete
+// method.
+func (client *CapacityReservationsClient) BeginDelete(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientBeginDeleteOptions) (*runtime.Poller[CapacityReservationsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CapacityReservationsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CapacityReservationsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete a capacity reservation. This operation is allowed only when all the associated resources
+// are disassociated from the capacity reservation. Please refer to
+// https://aka.ms/CapacityReservation for more details.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *CapacityReservationsClient) deleteOperation(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *CapacityReservationsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if capacityReservationName == "" {
+ return nil, errors.New("parameter capacityReservationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationName}", url.PathEscape(capacityReservationName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - The operation that retrieves information about the capacity reservation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// capacityReservationName - The name of the capacity reservation.
+// options - CapacityReservationsClientGetOptions contains the optional parameters for the CapacityReservationsClient.Get
+// method.
+func (client *CapacityReservationsClient) Get(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientGetOptions) (CapacityReservationsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, options)
+ if err != nil {
+ return CapacityReservationsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CapacityReservationsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CapacityReservationsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *CapacityReservationsClient) getCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if capacityReservationName == "" {
+ return nil, errors.New("parameter capacityReservationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationName}", url.PathEscape(capacityReservationName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *CapacityReservationsClient) getHandleResponse(resp *http.Response) (CapacityReservationsClientGetResponse, error) {
+ result := CapacityReservationsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CapacityReservation); err != nil {
+ return CapacityReservationsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByCapacityReservationGroupPager - Lists all of the capacity reservations in the specified capacity reservation group.
+// Use the nextLink property in the response to get the next page of capacity reservations.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// options - CapacityReservationsClientListByCapacityReservationGroupOptions contains the optional parameters for the CapacityReservationsClient.ListByCapacityReservationGroup
+// method.
+func (client *CapacityReservationsClient) NewListByCapacityReservationGroupPager(resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationsClientListByCapacityReservationGroupOptions) *runtime.Pager[CapacityReservationsClientListByCapacityReservationGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CapacityReservationsClientListByCapacityReservationGroupResponse]{
+ More: func(page CapacityReservationsClientListByCapacityReservationGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CapacityReservationsClientListByCapacityReservationGroupResponse) (CapacityReservationsClientListByCapacityReservationGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByCapacityReservationGroupCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CapacityReservationsClientListByCapacityReservationGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CapacityReservationsClientListByCapacityReservationGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CapacityReservationsClientListByCapacityReservationGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByCapacityReservationGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByCapacityReservationGroupCreateRequest creates the ListByCapacityReservationGroup request.
+func (client *CapacityReservationsClient) listByCapacityReservationGroupCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, options *CapacityReservationsClientListByCapacityReservationGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByCapacityReservationGroupHandleResponse handles the ListByCapacityReservationGroup response.
+func (client *CapacityReservationsClient) listByCapacityReservationGroupHandleResponse(resp *http.Response) (CapacityReservationsClientListByCapacityReservationGroupResponse, error) {
+ result := CapacityReservationsClientListByCapacityReservationGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CapacityReservationListResult); err != nil {
+ return CapacityReservationsClientListByCapacityReservationGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - The operation to update a capacity reservation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// capacityReservationGroupName - The name of the capacity reservation group.
+// capacityReservationName - The name of the capacity reservation.
+// parameters - Parameters supplied to the Update capacity reservation operation.
+// options - CapacityReservationsClientBeginUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginUpdate
+// method.
+func (client *CapacityReservationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservationUpdate, options *CapacityReservationsClientBeginUpdateOptions) (*runtime.Poller[CapacityReservationsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CapacityReservationsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CapacityReservationsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - The operation to update a capacity reservation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *CapacityReservationsClient) update(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservationUpdate, options *CapacityReservationsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *CapacityReservationsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservationUpdate, options *CapacityReservationsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if capacityReservationGroupName == "" {
+ return nil, errors.New("parameter capacityReservationGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationGroupName}", url.PathEscape(capacityReservationGroupName))
+ if capacityReservationName == "" {
+ return nil, errors.New("parameter capacityReservationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{capacityReservationName}", url.PathEscape(capacityReservationName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceoperatingsystems_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceoperatingsystems_client.go
new file mode 100644
index 0000000000..16515cffb8
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceoperatingsystems_client.go
@@ -0,0 +1,306 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CloudServiceOperatingSystemsClient contains the methods for the CloudServiceOperatingSystems group.
+// Don't use this type directly, use NewCloudServiceOperatingSystemsClient() instead.
+type CloudServiceOperatingSystemsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCloudServiceOperatingSystemsClient creates a new instance of CloudServiceOperatingSystemsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCloudServiceOperatingSystemsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServiceOperatingSystemsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CloudServiceOperatingSystemsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// GetOSFamily - Gets properties of a guest operating system family that can be specified in the XML service configuration
+// (.cscfg) for a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// location - Name of the location that the OS family pertains to.
+// osFamilyName - Name of the OS family.
+// options - CloudServiceOperatingSystemsClientGetOSFamilyOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSFamily
+// method.
+func (client *CloudServiceOperatingSystemsClient) GetOSFamily(ctx context.Context, location string, osFamilyName string, options *CloudServiceOperatingSystemsClientGetOSFamilyOptions) (CloudServiceOperatingSystemsClientGetOSFamilyResponse, error) {
+ req, err := client.getOSFamilyCreateRequest(ctx, location, osFamilyName, options)
+ if err != nil {
+ return CloudServiceOperatingSystemsClientGetOSFamilyResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceOperatingSystemsClientGetOSFamilyResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceOperatingSystemsClientGetOSFamilyResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getOSFamilyHandleResponse(resp)
+}
+
+// getOSFamilyCreateRequest creates the GetOSFamily request.
+func (client *CloudServiceOperatingSystemsClient) getOSFamilyCreateRequest(ctx context.Context, location string, osFamilyName string, options *CloudServiceOperatingSystemsClientGetOSFamilyOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if osFamilyName == "" {
+ return nil, errors.New("parameter osFamilyName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{osFamilyName}", url.PathEscape(osFamilyName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getOSFamilyHandleResponse handles the GetOSFamily response.
+func (client *CloudServiceOperatingSystemsClient) getOSFamilyHandleResponse(resp *http.Response) (CloudServiceOperatingSystemsClientGetOSFamilyResponse, error) {
+ result := CloudServiceOperatingSystemsClientGetOSFamilyResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.OSFamily); err != nil {
+ return CloudServiceOperatingSystemsClientGetOSFamilyResponse{}, err
+ }
+ return result, nil
+}
+
+// GetOSVersion - Gets properties of a guest operating system version that can be specified in the XML service configuration
+// (.cscfg) for a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// location - Name of the location that the OS version pertains to.
+// osVersionName - Name of the OS version.
+// options - CloudServiceOperatingSystemsClientGetOSVersionOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSVersion
+// method.
+func (client *CloudServiceOperatingSystemsClient) GetOSVersion(ctx context.Context, location string, osVersionName string, options *CloudServiceOperatingSystemsClientGetOSVersionOptions) (CloudServiceOperatingSystemsClientGetOSVersionResponse, error) {
+ req, err := client.getOSVersionCreateRequest(ctx, location, osVersionName, options)
+ if err != nil {
+ return CloudServiceOperatingSystemsClientGetOSVersionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceOperatingSystemsClientGetOSVersionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceOperatingSystemsClientGetOSVersionResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getOSVersionHandleResponse(resp)
+}
+
+// getOSVersionCreateRequest creates the GetOSVersion request.
+func (client *CloudServiceOperatingSystemsClient) getOSVersionCreateRequest(ctx context.Context, location string, osVersionName string, options *CloudServiceOperatingSystemsClientGetOSVersionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if osVersionName == "" {
+ return nil, errors.New("parameter osVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{osVersionName}", url.PathEscape(osVersionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getOSVersionHandleResponse handles the GetOSVersion response.
+func (client *CloudServiceOperatingSystemsClient) getOSVersionHandleResponse(resp *http.Response) (CloudServiceOperatingSystemsClientGetOSVersionResponse, error) {
+ result := CloudServiceOperatingSystemsClientGetOSVersionResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.OSVersion); err != nil {
+ return CloudServiceOperatingSystemsClientGetOSVersionResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListOSFamiliesPager - Gets a list of all guest operating system families available to be specified in the XML service
+// configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page
+// of OS Families. Do this till nextLink is null to fetch all the OS Families.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// location - Name of the location that the OS families pertain to.
+// options - CloudServiceOperatingSystemsClientListOSFamiliesOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.ListOSFamilies
+// method.
+func (client *CloudServiceOperatingSystemsClient) NewListOSFamiliesPager(location string, options *CloudServiceOperatingSystemsClientListOSFamiliesOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSFamiliesResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CloudServiceOperatingSystemsClientListOSFamiliesResponse]{
+ More: func(page CloudServiceOperatingSystemsClientListOSFamiliesResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CloudServiceOperatingSystemsClientListOSFamiliesResponse) (CloudServiceOperatingSystemsClientListOSFamiliesResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listOSFamiliesCreateRequest(ctx, location, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CloudServiceOperatingSystemsClientListOSFamiliesResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceOperatingSystemsClientListOSFamiliesResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceOperatingSystemsClientListOSFamiliesResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listOSFamiliesHandleResponse(resp)
+ },
+ })
+}
+
+// listOSFamiliesCreateRequest creates the ListOSFamilies request.
+func (client *CloudServiceOperatingSystemsClient) listOSFamiliesCreateRequest(ctx context.Context, location string, options *CloudServiceOperatingSystemsClientListOSFamiliesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listOSFamiliesHandleResponse handles the ListOSFamilies response.
+func (client *CloudServiceOperatingSystemsClient) listOSFamiliesHandleResponse(resp *http.Response) (CloudServiceOperatingSystemsClientListOSFamiliesResponse, error) {
+ result := CloudServiceOperatingSystemsClientListOSFamiliesResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.OSFamilyListResult); err != nil {
+ return CloudServiceOperatingSystemsClientListOSFamiliesResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListOSVersionsPager - Gets a list of all guest operating system versions available to be specified in the XML service
+// configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page
+// of OS versions. Do this till nextLink is null to fetch all the OS versions.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// location - Name of the location that the OS versions pertain to.
+// options - CloudServiceOperatingSystemsClientListOSVersionsOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.ListOSVersions
+// method.
+func (client *CloudServiceOperatingSystemsClient) NewListOSVersionsPager(location string, options *CloudServiceOperatingSystemsClientListOSVersionsOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSVersionsResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CloudServiceOperatingSystemsClientListOSVersionsResponse]{
+ More: func(page CloudServiceOperatingSystemsClientListOSVersionsResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CloudServiceOperatingSystemsClientListOSVersionsResponse) (CloudServiceOperatingSystemsClientListOSVersionsResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listOSVersionsCreateRequest(ctx, location, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CloudServiceOperatingSystemsClientListOSVersionsResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceOperatingSystemsClientListOSVersionsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceOperatingSystemsClientListOSVersionsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listOSVersionsHandleResponse(resp)
+ },
+ })
+}
+
+// listOSVersionsCreateRequest creates the ListOSVersions request.
+func (client *CloudServiceOperatingSystemsClient) listOSVersionsCreateRequest(ctx context.Context, location string, options *CloudServiceOperatingSystemsClientListOSVersionsOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listOSVersionsHandleResponse handles the ListOSVersions response.
+func (client *CloudServiceOperatingSystemsClient) listOSVersionsHandleResponse(resp *http.Response) (CloudServiceOperatingSystemsClientListOSVersionsResponse, error) {
+ result := CloudServiceOperatingSystemsClientListOSVersionsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.OSVersionListResult); err != nil {
+ return CloudServiceOperatingSystemsClientListOSVersionsResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroleinstances_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroleinstances_client.go
new file mode 100644
index 0000000000..a7b01de462
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroleinstances_client.go
@@ -0,0 +1,573 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CloudServiceRoleInstancesClient contains the methods for the CloudServiceRoleInstances group.
+// Don't use this type directly, use NewCloudServiceRoleInstancesClient() instead.
+type CloudServiceRoleInstancesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCloudServiceRoleInstancesClient creates a new instance of CloudServiceRoleInstancesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCloudServiceRoleInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServiceRoleInstancesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CloudServiceRoleInstancesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginDelete - Deletes a role instance from a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// roleInstanceName - Name of the role instance.
+// options - CloudServiceRoleInstancesClientBeginDeleteOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginDelete
+// method.
+func (client *CloudServiceRoleInstancesClient) BeginDelete(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginDeleteOptions) (*runtime.Poller[CloudServiceRoleInstancesClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServiceRoleInstancesClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServiceRoleInstancesClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes a role instance from a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServiceRoleInstancesClient) deleteOperation(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *CloudServiceRoleInstancesClient) deleteCreateRequest(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}"
+ if roleInstanceName == "" {
+ return nil, errors.New("parameter roleInstanceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{roleInstanceName}", url.PathEscape(roleInstanceName))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Gets a role instance from a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// roleInstanceName - Name of the role instance.
+// options - CloudServiceRoleInstancesClientGetOptions contains the optional parameters for the CloudServiceRoleInstancesClient.Get
+// method.
+func (client *CloudServiceRoleInstancesClient) Get(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetOptions) (CloudServiceRoleInstancesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return CloudServiceRoleInstancesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceRoleInstancesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceRoleInstancesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *CloudServiceRoleInstancesClient) getCreateRequest(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}"
+ if roleInstanceName == "" {
+ return nil, errors.New("parameter roleInstanceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{roleInstanceName}", url.PathEscape(roleInstanceName))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *CloudServiceRoleInstancesClient) getHandleResponse(resp *http.Response) (CloudServiceRoleInstancesClientGetResponse, error) {
+ result := CloudServiceRoleInstancesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RoleInstance); err != nil {
+ return CloudServiceRoleInstancesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// GetInstanceView - Retrieves information about the run-time state of a role instance in a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// roleInstanceName - Name of the role instance.
+// options - CloudServiceRoleInstancesClientGetInstanceViewOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetInstanceView
+// method.
+func (client *CloudServiceRoleInstancesClient) GetInstanceView(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetInstanceViewOptions) (CloudServiceRoleInstancesClientGetInstanceViewResponse, error) {
+ req, err := client.getInstanceViewCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return CloudServiceRoleInstancesClientGetInstanceViewResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceRoleInstancesClientGetInstanceViewResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceRoleInstancesClientGetInstanceViewResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getInstanceViewHandleResponse(resp)
+}
+
+// getInstanceViewCreateRequest creates the GetInstanceView request.
+func (client *CloudServiceRoleInstancesClient) getInstanceViewCreateRequest(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetInstanceViewOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView"
+ if roleInstanceName == "" {
+ return nil, errors.New("parameter roleInstanceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{roleInstanceName}", url.PathEscape(roleInstanceName))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getInstanceViewHandleResponse handles the GetInstanceView response.
+func (client *CloudServiceRoleInstancesClient) getInstanceViewHandleResponse(resp *http.Response) (CloudServiceRoleInstancesClientGetInstanceViewResponse, error) {
+ result := CloudServiceRoleInstancesClientGetInstanceViewResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RoleInstanceView); err != nil {
+ return CloudServiceRoleInstancesClientGetInstanceViewResponse{}, err
+ }
+ return result, nil
+}
+
+// GetRemoteDesktopFile - Gets a remote desktop file for a role instance in a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// roleInstanceName - Name of the role instance.
+// options - CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetRemoteDesktopFile
+// method.
+func (client *CloudServiceRoleInstancesClient) GetRemoteDesktopFile(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions) (CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse, error) {
+ req, err := client.getRemoteDesktopFileCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{}, runtime.NewResponseError(resp)
+ }
+ return CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse{Body: resp.Body}, nil
+}
+
+// getRemoteDesktopFileCreateRequest creates the GetRemoteDesktopFile request.
+func (client *CloudServiceRoleInstancesClient) getRemoteDesktopFileCreateRequest(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile"
+ if roleInstanceName == "" {
+ return nil, errors.New("parameter roleInstanceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{roleInstanceName}", url.PathEscape(roleInstanceName))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ runtime.SkipBodyDownload(req)
+ req.Raw().Header["Accept"] = []string{"application/x-rdp"}
+ return req, nil
+}
+
+// NewListPager - Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the
+// next page of role instances. Do this till nextLink is null to fetch all the role instances.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// options - CloudServiceRoleInstancesClientListOptions contains the optional parameters for the CloudServiceRoleInstancesClient.List
+// method.
+func (client *CloudServiceRoleInstancesClient) NewListPager(resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientListOptions) *runtime.Pager[CloudServiceRoleInstancesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CloudServiceRoleInstancesClientListResponse]{
+ More: func(page CloudServiceRoleInstancesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CloudServiceRoleInstancesClientListResponse) (CloudServiceRoleInstancesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CloudServiceRoleInstancesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceRoleInstancesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceRoleInstancesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *CloudServiceRoleInstancesClient) listCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *CloudServiceRoleInstancesClient) listHandleResponse(resp *http.Response) (CloudServiceRoleInstancesClientListResponse, error) {
+ result := CloudServiceRoleInstancesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RoleInstanceListResult); err != nil {
+ return CloudServiceRoleInstancesClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginRebuild - The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles
+// or worker roles and initializes the storage resources that are used by them. If you do not
+// want to initialize storage resources, you can use Reimage Role Instance.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// roleInstanceName - Name of the role instance.
+// options - CloudServiceRoleInstancesClientBeginRebuildOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRebuild
+// method.
+func (client *CloudServiceRoleInstancesClient) BeginRebuild(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRebuildOptions) (*runtime.Poller[CloudServiceRoleInstancesClientRebuildResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.rebuild(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServiceRoleInstancesClientRebuildResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServiceRoleInstancesClientRebuildResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Rebuild - The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or
+// worker roles and initializes the storage resources that are used by them. If you do not
+// want to initialize storage resources, you can use Reimage Role Instance.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServiceRoleInstancesClient) rebuild(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRebuildOptions) (*http.Response, error) {
+ req, err := client.rebuildCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// rebuildCreateRequest creates the Rebuild request.
+func (client *CloudServiceRoleInstancesClient) rebuildCreateRequest(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRebuildOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild"
+ if roleInstanceName == "" {
+ return nil, errors.New("parameter roleInstanceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{roleInstanceName}", url.PathEscape(roleInstanceName))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginReimage - The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles
+// or worker roles.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// roleInstanceName - Name of the role instance.
+// options - CloudServiceRoleInstancesClientBeginReimageOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginReimage
+// method.
+func (client *CloudServiceRoleInstancesClient) BeginReimage(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginReimageOptions) (*runtime.Poller[CloudServiceRoleInstancesClientReimageResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reimage(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServiceRoleInstancesClientReimageResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServiceRoleInstancesClientReimageResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Reimage - The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or
+// worker roles.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServiceRoleInstancesClient) reimage(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginReimageOptions) (*http.Response, error) {
+ req, err := client.reimageCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// reimageCreateRequest creates the Reimage request.
+func (client *CloudServiceRoleInstancesClient) reimageCreateRequest(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginReimageOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage"
+ if roleInstanceName == "" {
+ return nil, errors.New("parameter roleInstanceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{roleInstanceName}", url.PathEscape(roleInstanceName))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginRestart - The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// roleInstanceName - Name of the role instance.
+// options - CloudServiceRoleInstancesClientBeginRestartOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRestart
+// method.
+func (client *CloudServiceRoleInstancesClient) BeginRestart(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRestartOptions) (*runtime.Poller[CloudServiceRoleInstancesClientRestartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.restart(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServiceRoleInstancesClientRestartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServiceRoleInstancesClientRestartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Restart - The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServiceRoleInstancesClient) restart(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRestartOptions) (*http.Response, error) {
+ req, err := client.restartCreateRequest(ctx, roleInstanceName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// restartCreateRequest creates the Restart request.
+func (client *CloudServiceRoleInstancesClient) restartCreateRequest(ctx context.Context, roleInstanceName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRoleInstancesClientBeginRestartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart"
+ if roleInstanceName == "" {
+ return nil, errors.New("parameter roleInstanceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{roleInstanceName}", url.PathEscape(roleInstanceName))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroles_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroles_client.go
new file mode 100644
index 0000000000..19cec89583
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudserviceroles_client.go
@@ -0,0 +1,183 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CloudServiceRolesClient contains the methods for the CloudServiceRoles group.
+// Don't use this type directly, use NewCloudServiceRolesClient() instead.
+type CloudServiceRolesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCloudServiceRolesClient creates a new instance of CloudServiceRolesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCloudServiceRolesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServiceRolesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CloudServiceRolesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Gets a role from a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// roleName - Name of the role.
+// options - CloudServiceRolesClientGetOptions contains the optional parameters for the CloudServiceRolesClient.Get method.
+func (client *CloudServiceRolesClient) Get(ctx context.Context, roleName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRolesClientGetOptions) (CloudServiceRolesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, roleName, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return CloudServiceRolesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceRolesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceRolesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *CloudServiceRolesClient) getCreateRequest(ctx context.Context, roleName string, resourceGroupName string, cloudServiceName string, options *CloudServiceRolesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}"
+ if roleName == "" {
+ return nil, errors.New("parameter roleName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{roleName}", url.PathEscape(roleName))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *CloudServiceRolesClient) getHandleResponse(resp *http.Response) (CloudServiceRolesClientGetResponse, error) {
+ result := CloudServiceRolesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CloudServiceRole); err != nil {
+ return CloudServiceRolesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page
+// of roles. Do this till nextLink is null to fetch all the roles.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// options - CloudServiceRolesClientListOptions contains the optional parameters for the CloudServiceRolesClient.List method.
+func (client *CloudServiceRolesClient) NewListPager(resourceGroupName string, cloudServiceName string, options *CloudServiceRolesClientListOptions) *runtime.Pager[CloudServiceRolesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CloudServiceRolesClientListResponse]{
+ More: func(page CloudServiceRolesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CloudServiceRolesClientListResponse) (CloudServiceRolesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CloudServiceRolesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServiceRolesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServiceRolesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *CloudServiceRolesClient) listCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServiceRolesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *CloudServiceRolesClient) listHandleResponse(resp *http.Response) (CloudServiceRolesClientListResponse, error) {
+ result := CloudServiceRolesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CloudServiceRoleListResult); err != nil {
+ return CloudServiceRolesClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservices_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservices_client.go
new file mode 100644
index 0000000000..6923162c20
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservices_client.go
@@ -0,0 +1,886 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CloudServicesClient contains the methods for the CloudServices group.
+// Don't use this type directly, use NewCloudServicesClient() instead.
+type CloudServicesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCloudServicesClient creates a new instance of CloudServicesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCloudServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServicesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CloudServicesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Create or update a cloud service. Please note some properties can be set only during cloud service
+// creation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudServicesClient.BeginCreateOrUpdate
+// method.
+func (client *CloudServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[CloudServicesClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update a cloud service. Please note some properties can be set only during cloud service creation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) createOrUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *CloudServicesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.Parameters != nil {
+ return req, runtime.MarshalAsJSON(req, *options.Parameters)
+ }
+ return req, nil
+}
+
+// BeginDelete - Deletes a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginDeleteOptions contains the optional parameters for the CloudServicesClient.BeginDelete
+// method.
+func (client *CloudServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteOptions) (*runtime.Poller[CloudServicesClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) deleteOperation(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *CloudServicesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginDeleteInstances - Deletes role instances in a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginDeleteInstancesOptions contains the optional parameters for the CloudServicesClient.BeginDeleteInstances
+// method.
+func (client *CloudServicesClient) BeginDeleteInstances(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteInstancesOptions) (*runtime.Poller[CloudServicesClientDeleteInstancesResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteInstances(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientDeleteInstancesResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientDeleteInstancesResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// DeleteInstances - Deletes role instances in a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) deleteInstances(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteInstancesOptions) (*http.Response, error) {
+ req, err := client.deleteInstancesCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteInstancesCreateRequest creates the DeleteInstances request.
+func (client *CloudServicesClient) deleteInstancesCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginDeleteInstancesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.Parameters != nil {
+ return req, runtime.MarshalAsJSON(req, *options.Parameters)
+ }
+ return req, nil
+}
+
+// Get - Display information about a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientGetOptions contains the optional parameters for the CloudServicesClient.Get method.
+func (client *CloudServicesClient) Get(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientGetOptions) (CloudServicesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return CloudServicesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServicesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServicesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *CloudServicesClient) getCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *CloudServicesClient) getHandleResponse(resp *http.Response) (CloudServicesClientGetResponse, error) {
+ result := CloudServicesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CloudService); err != nil {
+ return CloudServicesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// GetInstanceView - Gets the status of a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientGetInstanceViewOptions contains the optional parameters for the CloudServicesClient.GetInstanceView
+// method.
+func (client *CloudServicesClient) GetInstanceView(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientGetInstanceViewOptions) (CloudServicesClientGetInstanceViewResponse, error) {
+ req, err := client.getInstanceViewCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return CloudServicesClientGetInstanceViewResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServicesClientGetInstanceViewResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServicesClientGetInstanceViewResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getInstanceViewHandleResponse(resp)
+}
+
+// getInstanceViewCreateRequest creates the GetInstanceView request.
+func (client *CloudServicesClient) getInstanceViewCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientGetInstanceViewOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getInstanceViewHandleResponse handles the GetInstanceView response.
+func (client *CloudServicesClient) getInstanceViewHandleResponse(resp *http.Response) (CloudServicesClientGetInstanceViewResponse, error) {
+ result := CloudServicesClientGetInstanceViewResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CloudServiceInstanceView); err != nil {
+ return CloudServicesClientGetInstanceViewResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the
+// next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// options - CloudServicesClientListOptions contains the optional parameters for the CloudServicesClient.List method.
+func (client *CloudServicesClient) NewListPager(resourceGroupName string, options *CloudServicesClientListOptions) *runtime.Pager[CloudServicesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CloudServicesClientListResponse]{
+ More: func(page CloudServicesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CloudServicesClientListResponse) (CloudServicesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CloudServicesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServicesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServicesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *CloudServicesClient) listCreateRequest(ctx context.Context, resourceGroupName string, options *CloudServicesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *CloudServicesClient) listHandleResponse(resp *http.Response) (CloudServicesClientListResponse, error) {
+ result := CloudServicesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CloudServiceListResult); err != nil {
+ return CloudServicesClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListAllPager - Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use
+// nextLink property in the response to get the next page of Cloud Services. Do this till nextLink
+// is null to fetch all the Cloud Services.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// options - CloudServicesClientListAllOptions contains the optional parameters for the CloudServicesClient.ListAll method.
+func (client *CloudServicesClient) NewListAllPager(options *CloudServicesClientListAllOptions) *runtime.Pager[CloudServicesClientListAllResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CloudServicesClientListAllResponse]{
+ More: func(page CloudServicesClientListAllResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CloudServicesClientListAllResponse) (CloudServicesClientListAllResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listAllCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CloudServicesClientListAllResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServicesClientListAllResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServicesClientListAllResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listAllHandleResponse(resp)
+ },
+ })
+}
+
+// listAllCreateRequest creates the ListAll request.
+func (client *CloudServicesClient) listAllCreateRequest(ctx context.Context, options *CloudServicesClientListAllOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listAllHandleResponse handles the ListAll response.
+func (client *CloudServicesClient) listAllHandleResponse(resp *http.Response) (CloudServicesClientListAllResponse, error) {
+ result := CloudServicesClientListAllResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CloudServiceListResult); err != nil {
+ return CloudServicesClientListAllResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginPowerOff - Power off the cloud service. Note that resources are still attached and you are getting charged for the
+// resources.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginPowerOffOptions contains the optional parameters for the CloudServicesClient.BeginPowerOff
+// method.
+func (client *CloudServicesClient) BeginPowerOff(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginPowerOffOptions) (*runtime.Poller[CloudServicesClientPowerOffResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.powerOff(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientPowerOffResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientPowerOffResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// PowerOff - Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) powerOff(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginPowerOffOptions) (*http.Response, error) {
+ req, err := client.powerOffCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// powerOffCreateRequest creates the PowerOff request.
+func (client *CloudServicesClient) powerOffCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginPowerOffOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginRebuild - Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes
+// the storage resources that are used by them. If you do not want to initialize storage
+// resources, you can use Reimage Role Instances.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginRebuildOptions contains the optional parameters for the CloudServicesClient.BeginRebuild
+// method.
+func (client *CloudServicesClient) BeginRebuild(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRebuildOptions) (*runtime.Poller[CloudServicesClientRebuildResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.rebuild(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientRebuildResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientRebuildResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Rebuild - Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes
+// the storage resources that are used by them. If you do not want to initialize storage
+// resources, you can use Reimage Role Instances.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) rebuild(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRebuildOptions) (*http.Response, error) {
+ req, err := client.rebuildCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// rebuildCreateRequest creates the Rebuild request.
+func (client *CloudServicesClient) rebuildCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRebuildOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.Parameters != nil {
+ return req, runtime.MarshalAsJSON(req, *options.Parameters)
+ }
+ return req, nil
+}
+
+// BeginReimage - Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginReimageOptions contains the optional parameters for the CloudServicesClient.BeginReimage
+// method.
+func (client *CloudServicesClient) BeginReimage(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginReimageOptions) (*runtime.Poller[CloudServicesClientReimageResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reimage(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientReimageResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientReimageResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Reimage - Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) reimage(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginReimageOptions) (*http.Response, error) {
+ req, err := client.reimageCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// reimageCreateRequest creates the Reimage request.
+func (client *CloudServicesClient) reimageCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginReimageOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.Parameters != nil {
+ return req, runtime.MarshalAsJSON(req, *options.Parameters)
+ }
+ return req, nil
+}
+
+// BeginRestart - Restarts one or more role instances in a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginRestartOptions contains the optional parameters for the CloudServicesClient.BeginRestart
+// method.
+func (client *CloudServicesClient) BeginRestart(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRestartOptions) (*runtime.Poller[CloudServicesClientRestartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.restart(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientRestartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientRestartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Restart - Restarts one or more role instances in a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) restart(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRestartOptions) (*http.Response, error) {
+ req, err := client.restartCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// restartCreateRequest creates the Restart request.
+func (client *CloudServicesClient) restartCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginRestartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.Parameters != nil {
+ return req, runtime.MarshalAsJSON(req, *options.Parameters)
+ }
+ return req, nil
+}
+
+// BeginStart - Starts the cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginStartOptions contains the optional parameters for the CloudServicesClient.BeginStart
+// method.
+func (client *CloudServicesClient) BeginStart(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginStartOptions) (*runtime.Poller[CloudServicesClientStartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.start(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientStartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientStartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Start - Starts the cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) start(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginStartOptions) (*http.Response, error) {
+ req, err := client.startCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// startCreateRequest creates the Start request.
+func (client *CloudServicesClient) startCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginStartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginUpdate - Update a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesClientBeginUpdateOptions contains the optional parameters for the CloudServicesClient.BeginUpdate
+// method.
+func (client *CloudServicesClient) BeginUpdate(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginUpdateOptions) (*runtime.Poller[CloudServicesClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesClient) update(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *CloudServicesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.Parameters != nil {
+ return req, runtime.MarshalAsJSON(req, *options.Parameters)
+ }
+ return req, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservicesupdatedomain_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservicesupdatedomain_client.go
new file mode 100644
index 0000000000..85103704b6
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_cloudservicesupdatedomain_client.go
@@ -0,0 +1,257 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// CloudServicesUpdateDomainClient contains the methods for the CloudServicesUpdateDomain group.
+// Don't use this type directly, use NewCloudServicesUpdateDomainClient() instead.
+type CloudServicesUpdateDomainClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCloudServicesUpdateDomainClient creates a new instance of CloudServicesUpdateDomainClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCloudServicesUpdateDomainClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudServicesUpdateDomainClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CloudServicesUpdateDomainClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// GetUpdateDomain - Gets the specified update domain of a cloud service. Use nextLink property in the response to get the
+// next page of update domains. Do this till nextLink is null to fetch all the update domains.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// updateDomain - Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based
+// index: the first update domain has an ID of 0, the second has an ID of 1, and so on.
+// options - CloudServicesUpdateDomainClientGetUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.GetUpdateDomain
+// method.
+func (client *CloudServicesUpdateDomainClient) GetUpdateDomain(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientGetUpdateDomainOptions) (CloudServicesUpdateDomainClientGetUpdateDomainResponse, error) {
+ req, err := client.getUpdateDomainCreateRequest(ctx, resourceGroupName, cloudServiceName, updateDomain, options)
+ if err != nil {
+ return CloudServicesUpdateDomainClientGetUpdateDomainResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServicesUpdateDomainClientGetUpdateDomainResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServicesUpdateDomainClientGetUpdateDomainResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getUpdateDomainHandleResponse(resp)
+}
+
+// getUpdateDomainCreateRequest creates the GetUpdateDomain request.
+func (client *CloudServicesUpdateDomainClient) getUpdateDomainCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientGetUpdateDomainOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ urlPath = strings.ReplaceAll(urlPath, "{updateDomain}", url.PathEscape(strconv.FormatInt(int64(updateDomain), 10)))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getUpdateDomainHandleResponse handles the GetUpdateDomain response.
+func (client *CloudServicesUpdateDomainClient) getUpdateDomainHandleResponse(resp *http.Response) (CloudServicesUpdateDomainClientGetUpdateDomainResponse, error) {
+ result := CloudServicesUpdateDomainClientGetUpdateDomainResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.UpdateDomain); err != nil {
+ return CloudServicesUpdateDomainClientGetUpdateDomainResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListUpdateDomainsPager - Gets a list of all update domains in a cloud service.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// options - CloudServicesUpdateDomainClientListUpdateDomainsOptions contains the optional parameters for the CloudServicesUpdateDomainClient.ListUpdateDomains
+// method.
+func (client *CloudServicesUpdateDomainClient) NewListUpdateDomainsPager(resourceGroupName string, cloudServiceName string, options *CloudServicesUpdateDomainClientListUpdateDomainsOptions) *runtime.Pager[CloudServicesUpdateDomainClientListUpdateDomainsResponse] {
+ return runtime.NewPager(runtime.PagingHandler[CloudServicesUpdateDomainClientListUpdateDomainsResponse]{
+ More: func(page CloudServicesUpdateDomainClientListUpdateDomainsResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *CloudServicesUpdateDomainClientListUpdateDomainsResponse) (CloudServicesUpdateDomainClientListUpdateDomainsResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listUpdateDomainsCreateRequest(ctx, resourceGroupName, cloudServiceName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return CloudServicesUpdateDomainClientListUpdateDomainsResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CloudServicesUpdateDomainClientListUpdateDomainsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CloudServicesUpdateDomainClientListUpdateDomainsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listUpdateDomainsHandleResponse(resp)
+ },
+ })
+}
+
+// listUpdateDomainsCreateRequest creates the ListUpdateDomains request.
+func (client *CloudServicesUpdateDomainClient) listUpdateDomainsCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, options *CloudServicesUpdateDomainClientListUpdateDomainsOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listUpdateDomainsHandleResponse handles the ListUpdateDomains response.
+func (client *CloudServicesUpdateDomainClient) listUpdateDomainsHandleResponse(resp *http.Response) (CloudServicesUpdateDomainClientListUpdateDomainsResponse, error) {
+ result := CloudServicesUpdateDomainClientListUpdateDomainsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.UpdateDomainListResult); err != nil {
+ return CloudServicesUpdateDomainClientListUpdateDomainsResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginWalkUpdateDomain - Updates the role instances in the specified update domain.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+// resourceGroupName - Name of the resource group.
+// cloudServiceName - Name of the cloud service.
+// updateDomain - Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based
+// index: the first update domain has an ID of 0, the second has an ID of 1, and so on.
+// options - CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.BeginWalkUpdateDomain
+// method.
+func (client *CloudServicesUpdateDomainClient) BeginWalkUpdateDomain(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*runtime.Poller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.walkUpdateDomain(ctx, resourceGroupName, cloudServiceName, updateDomain, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[CloudServicesUpdateDomainClientWalkUpdateDomainResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[CloudServicesUpdateDomainClientWalkUpdateDomainResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// WalkUpdateDomain - Updates the role instances in the specified update domain.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-03-01
+func (client *CloudServicesUpdateDomainClient) walkUpdateDomain(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*http.Response, error) {
+ req, err := client.walkUpdateDomainCreateRequest(ctx, resourceGroupName, cloudServiceName, updateDomain, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// walkUpdateDomainCreateRequest creates the WalkUpdateDomain request.
+func (client *CloudServicesUpdateDomainClient) walkUpdateDomainCreateRequest(ctx context.Context, resourceGroupName string, cloudServiceName string, updateDomain int32, options *CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if cloudServiceName == "" {
+ return nil, errors.New("parameter cloudServiceName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{cloudServiceName}", url.PathEscape(cloudServiceName))
+ urlPath = strings.ReplaceAll(urlPath, "{updateDomain}", url.PathEscape(strconv.FormatInt(int64(updateDomain), 10)))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.Parameters != nil {
+ return req, runtime.MarshalAsJSON(req, *options.Parameters)
+ }
+ return req, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleries_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleries_client.go
new file mode 100644
index 0000000000..0c45e908bc
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleries_client.go
@@ -0,0 +1,112 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CommunityGalleriesClient contains the methods for the CommunityGalleries group.
+// Don't use this type directly, use NewCommunityGalleriesClient() instead.
+type CommunityGalleriesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCommunityGalleriesClient creates a new instance of CommunityGalleriesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCommunityGalleriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityGalleriesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CommunityGalleriesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Get a community gallery by gallery public name.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// publicGalleryName - The public name of the community gallery.
+// options - CommunityGalleriesClientGetOptions contains the optional parameters for the CommunityGalleriesClient.Get method.
+func (client *CommunityGalleriesClient) Get(ctx context.Context, location string, publicGalleryName string, options *CommunityGalleriesClientGetOptions) (CommunityGalleriesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, publicGalleryName, options)
+ if err != nil {
+ return CommunityGalleriesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CommunityGalleriesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CommunityGalleriesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *CommunityGalleriesClient) getCreateRequest(ctx context.Context, location string, publicGalleryName string, options *CommunityGalleriesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publicGalleryName == "" {
+ return nil, errors.New("parameter publicGalleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *CommunityGalleriesClient) getHandleResponse(resp *http.Response) (CommunityGalleriesClientGetResponse, error) {
+ result := CommunityGalleriesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGallery); err != nil {
+ return CommunityGalleriesClientGetResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimages_client.go
new file mode 100644
index 0000000000..cffc731a3a
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimages_client.go
@@ -0,0 +1,118 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CommunityGalleryImagesClient contains the methods for the CommunityGalleryImages group.
+// Don't use this type directly, use NewCommunityGalleryImagesClient() instead.
+type CommunityGalleryImagesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCommunityGalleryImagesClient creates a new instance of CommunityGalleryImagesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCommunityGalleryImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityGalleryImagesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CommunityGalleryImagesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Get a community gallery image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// publicGalleryName - The public name of the community gallery.
+// galleryImageName - The name of the community gallery image definition.
+// options - CommunityGalleryImagesClientGetOptions contains the optional parameters for the CommunityGalleryImagesClient.Get
+// method.
+func (client *CommunityGalleryImagesClient) Get(ctx context.Context, location string, publicGalleryName string, galleryImageName string, options *CommunityGalleryImagesClientGetOptions) (CommunityGalleryImagesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, publicGalleryName, galleryImageName, options)
+ if err != nil {
+ return CommunityGalleryImagesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CommunityGalleryImagesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CommunityGalleryImagesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *CommunityGalleryImagesClient) getCreateRequest(ctx context.Context, location string, publicGalleryName string, galleryImageName string, options *CommunityGalleryImagesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publicGalleryName == "" {
+ return nil, errors.New("parameter publicGalleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *CommunityGalleryImagesClient) getHandleResponse(resp *http.Response) (CommunityGalleryImagesClientGetResponse, error) {
+ result := CommunityGalleryImagesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGalleryImage); err != nil {
+ return CommunityGalleryImagesClientGetResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimageversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimageversions_client.go
new file mode 100644
index 0000000000..d4287c90e3
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_communitygalleryimageversions_client.go
@@ -0,0 +1,125 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// CommunityGalleryImageVersionsClient contains the methods for the CommunityGalleryImageVersions group.
+// Don't use this type directly, use NewCommunityGalleryImageVersionsClient() instead.
+type CommunityGalleryImageVersionsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewCommunityGalleryImageVersionsClient creates a new instance of CommunityGalleryImageVersionsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewCommunityGalleryImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityGalleryImageVersionsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &CommunityGalleryImageVersionsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Get a community gallery image version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// publicGalleryName - The public name of the community gallery.
+// galleryImageName - The name of the community gallery image definition.
+// galleryImageVersionName - The name of the community gallery image version. Needs to follow semantic version name pattern:
+// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer.
+// Format: ..
+// options - CommunityGalleryImageVersionsClientGetOptions contains the optional parameters for the CommunityGalleryImageVersionsClient.Get
+// method.
+func (client *CommunityGalleryImageVersionsClient) Get(ctx context.Context, location string, publicGalleryName string, galleryImageName string, galleryImageVersionName string, options *CommunityGalleryImageVersionsClientGetOptions) (CommunityGalleryImageVersionsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, publicGalleryName, galleryImageName, galleryImageVersionName, options)
+ if err != nil {
+ return CommunityGalleryImageVersionsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return CommunityGalleryImageVersionsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return CommunityGalleryImageVersionsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *CommunityGalleryImageVersionsClient) getCreateRequest(ctx context.Context, location string, publicGalleryName string, galleryImageName string, galleryImageVersionName string, options *CommunityGalleryImageVersionsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publicGalleryName == "" {
+ return nil, errors.New("parameter publicGalleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publicGalleryName}", url.PathEscape(publicGalleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ if galleryImageVersionName == "" {
+ return nil, errors.New("parameter galleryImageVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *CommunityGalleryImageVersionsClient) getHandleResponse(resp *http.Response) (CommunityGalleryImageVersionsClientGetResponse, error) {
+ result := CommunityGalleryImageVersionsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.CommunityGalleryImageVersion); err != nil {
+ return CommunityGalleryImageVersionsClientGetResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_constants.go
new file mode 100644
index 0000000000..024379ab75
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_constants.go
@@ -0,0 +1,2495 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+const (
+ moduleName = "armcompute"
+ moduleVersion = "v1.0.0"
+)
+
+type AccessLevel string
+
+const (
+ AccessLevelNone AccessLevel = "None"
+ AccessLevelRead AccessLevel = "Read"
+ AccessLevelWrite AccessLevel = "Write"
+)
+
+// PossibleAccessLevelValues returns the possible values for the AccessLevel const type.
+func PossibleAccessLevelValues() []AccessLevel {
+ return []AccessLevel{
+ AccessLevelNone,
+ AccessLevelRead,
+ AccessLevelWrite,
+ }
+}
+
+// AggregatedReplicationState - This is the aggregated replication status based on all the regional replication status flags.
+type AggregatedReplicationState string
+
+const (
+ AggregatedReplicationStateCompleted AggregatedReplicationState = "Completed"
+ AggregatedReplicationStateFailed AggregatedReplicationState = "Failed"
+ AggregatedReplicationStateInProgress AggregatedReplicationState = "InProgress"
+ AggregatedReplicationStateUnknown AggregatedReplicationState = "Unknown"
+)
+
+// PossibleAggregatedReplicationStateValues returns the possible values for the AggregatedReplicationState const type.
+func PossibleAggregatedReplicationStateValues() []AggregatedReplicationState {
+ return []AggregatedReplicationState{
+ AggregatedReplicationStateCompleted,
+ AggregatedReplicationStateFailed,
+ AggregatedReplicationStateInProgress,
+ AggregatedReplicationStateUnknown,
+ }
+}
+
+// Architecture - The architecture of the image. Applicable to OS disks only.
+type Architecture string
+
+const (
+ ArchitectureArm64 Architecture = "Arm64"
+ ArchitectureX64 Architecture = "x64"
+)
+
+// PossibleArchitectureValues returns the possible values for the Architecture const type.
+func PossibleArchitectureValues() []Architecture {
+ return []Architecture{
+ ArchitectureArm64,
+ ArchitectureX64,
+ }
+}
+
+// ArchitectureTypes - Specifies the Architecture Type
+type ArchitectureTypes string
+
+const (
+ ArchitectureTypesArm64 ArchitectureTypes = "Arm64"
+ ArchitectureTypesX64 ArchitectureTypes = "x64"
+)
+
+// PossibleArchitectureTypesValues returns the possible values for the ArchitectureTypes const type.
+func PossibleArchitectureTypesValues() []ArchitectureTypes {
+ return []ArchitectureTypes{
+ ArchitectureTypesArm64,
+ ArchitectureTypesX64,
+ }
+}
+
+// AvailabilitySetSKUTypes - Specifies the sku of an Availability Set. Use 'Aligned' for virtual machines with managed disks
+// and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
+type AvailabilitySetSKUTypes string
+
+const (
+ AvailabilitySetSKUTypesAligned AvailabilitySetSKUTypes = "Aligned"
+ AvailabilitySetSKUTypesClassic AvailabilitySetSKUTypes = "Classic"
+)
+
+// PossibleAvailabilitySetSKUTypesValues returns the possible values for the AvailabilitySetSKUTypes const type.
+func PossibleAvailabilitySetSKUTypesValues() []AvailabilitySetSKUTypes {
+ return []AvailabilitySetSKUTypes{
+ AvailabilitySetSKUTypesAligned,
+ AvailabilitySetSKUTypesClassic,
+ }
+}
+
+// CachingTypes - Specifies the caching requirements.
+// Possible values are:
+// None
+// ReadOnly
+// ReadWrite
+// Default: None for Standard storage. ReadOnly for Premium storage
+type CachingTypes string
+
+const (
+ CachingTypesNone CachingTypes = "None"
+ CachingTypesReadOnly CachingTypes = "ReadOnly"
+ CachingTypesReadWrite CachingTypes = "ReadWrite"
+)
+
+// PossibleCachingTypesValues returns the possible values for the CachingTypes const type.
+func PossibleCachingTypesValues() []CachingTypes {
+ return []CachingTypes{
+ CachingTypesNone,
+ CachingTypesReadOnly,
+ CachingTypesReadWrite,
+ }
+}
+
+type CapacityReservationGroupInstanceViewTypes string
+
+const (
+ CapacityReservationGroupInstanceViewTypesInstanceView CapacityReservationGroupInstanceViewTypes = "instanceView"
+)
+
+// PossibleCapacityReservationGroupInstanceViewTypesValues returns the possible values for the CapacityReservationGroupInstanceViewTypes const type.
+func PossibleCapacityReservationGroupInstanceViewTypesValues() []CapacityReservationGroupInstanceViewTypes {
+ return []CapacityReservationGroupInstanceViewTypes{
+ CapacityReservationGroupInstanceViewTypesInstanceView,
+ }
+}
+
+type CapacityReservationInstanceViewTypes string
+
+const (
+ CapacityReservationInstanceViewTypesInstanceView CapacityReservationInstanceViewTypes = "instanceView"
+)
+
+// PossibleCapacityReservationInstanceViewTypesValues returns the possible values for the CapacityReservationInstanceViewTypes const type.
+func PossibleCapacityReservationInstanceViewTypesValues() []CapacityReservationInstanceViewTypes {
+ return []CapacityReservationInstanceViewTypes{
+ CapacityReservationInstanceViewTypesInstanceView,
+ }
+}
+
+// CloudServiceUpgradeMode - Update mode for the cloud service. Role instances are allocated to update domains when the service
+// is deployed. Updates can be initiated manually in each update domain or initiated automatically in
+// all update domains. Possible Values are
+// Auto
+// Manual
+// Simultaneous
+// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If
+// set to Auto, the update is automatically applied to each update domain in
+// sequence.
+type CloudServiceUpgradeMode string
+
+const (
+ CloudServiceUpgradeModeAuto CloudServiceUpgradeMode = "Auto"
+ CloudServiceUpgradeModeManual CloudServiceUpgradeMode = "Manual"
+ CloudServiceUpgradeModeSimultaneous CloudServiceUpgradeMode = "Simultaneous"
+)
+
+// PossibleCloudServiceUpgradeModeValues returns the possible values for the CloudServiceUpgradeMode const type.
+func PossibleCloudServiceUpgradeModeValues() []CloudServiceUpgradeMode {
+ return []CloudServiceUpgradeMode{
+ CloudServiceUpgradeModeAuto,
+ CloudServiceUpgradeModeManual,
+ CloudServiceUpgradeModeSimultaneous,
+ }
+}
+
+// ConfidentialVMEncryptionType - confidential VM encryption types
+type ConfidentialVMEncryptionType string
+
+const (
+ ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk ConfidentialVMEncryptionType = "EncryptedVMGuestStateOnlyWithPmk"
+ ConfidentialVMEncryptionTypeEncryptedWithCmk ConfidentialVMEncryptionType = "EncryptedWithCmk"
+ ConfidentialVMEncryptionTypeEncryptedWithPmk ConfidentialVMEncryptionType = "EncryptedWithPmk"
+)
+
+// PossibleConfidentialVMEncryptionTypeValues returns the possible values for the ConfidentialVMEncryptionType const type.
+func PossibleConfidentialVMEncryptionTypeValues() []ConfidentialVMEncryptionType {
+ return []ConfidentialVMEncryptionType{
+ ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk,
+ ConfidentialVMEncryptionTypeEncryptedWithCmk,
+ ConfidentialVMEncryptionTypeEncryptedWithPmk,
+ }
+}
+
+// ConsistencyModeTypes - ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point.
+// For now, only CrashConsistent is accepted as a valid input. Please refer to
+// https://aka.ms/RestorePoints for more details.
+type ConsistencyModeTypes string
+
+const (
+ ConsistencyModeTypesApplicationConsistent ConsistencyModeTypes = "ApplicationConsistent"
+ ConsistencyModeTypesCrashConsistent ConsistencyModeTypes = "CrashConsistent"
+ ConsistencyModeTypesFileSystemConsistent ConsistencyModeTypes = "FileSystemConsistent"
+)
+
+// PossibleConsistencyModeTypesValues returns the possible values for the ConsistencyModeTypes const type.
+func PossibleConsistencyModeTypesValues() []ConsistencyModeTypes {
+ return []ConsistencyModeTypes{
+ ConsistencyModeTypesApplicationConsistent,
+ ConsistencyModeTypesCrashConsistent,
+ ConsistencyModeTypesFileSystemConsistent,
+ }
+}
+
+// DataAccessAuthMode - Additional authentication requirements when exporting or uploading to a disk or snapshot.
+type DataAccessAuthMode string
+
+const (
+ // DataAccessAuthModeAzureActiveDirectory - When export/upload URL is used, the system checks if the user has an identity
+ // in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth.
+ DataAccessAuthModeAzureActiveDirectory DataAccessAuthMode = "AzureActiveDirectory"
+ // DataAccessAuthModeNone - No additional authentication would be performed when accessing export/upload URL.
+ DataAccessAuthModeNone DataAccessAuthMode = "None"
+)
+
+// PossibleDataAccessAuthModeValues returns the possible values for the DataAccessAuthMode const type.
+func PossibleDataAccessAuthModeValues() []DataAccessAuthMode {
+ return []DataAccessAuthMode{
+ DataAccessAuthModeAzureActiveDirectory,
+ DataAccessAuthModeNone,
+ }
+}
+
+// DedicatedHostLicenseTypes - Specifies the software license type that will be applied to the VMs deployed on the dedicated
+// host.
+// Possible values are:
+// None
+// WindowsServerHybrid
+// WindowsServerPerpetual
+// Default: None
+type DedicatedHostLicenseTypes string
+
+const (
+ DedicatedHostLicenseTypesNone DedicatedHostLicenseTypes = "None"
+ DedicatedHostLicenseTypesWindowsServerHybrid DedicatedHostLicenseTypes = "Windows_Server_Hybrid"
+ DedicatedHostLicenseTypesWindowsServerPerpetual DedicatedHostLicenseTypes = "Windows_Server_Perpetual"
+)
+
+// PossibleDedicatedHostLicenseTypesValues returns the possible values for the DedicatedHostLicenseTypes const type.
+func PossibleDedicatedHostLicenseTypesValues() []DedicatedHostLicenseTypes {
+ return []DedicatedHostLicenseTypes{
+ DedicatedHostLicenseTypesNone,
+ DedicatedHostLicenseTypesWindowsServerHybrid,
+ DedicatedHostLicenseTypesWindowsServerPerpetual,
+ }
+}
+
+// DeleteOptions - Specify what happens to the network interface when the VM is deleted
+type DeleteOptions string
+
+const (
+ DeleteOptionsDelete DeleteOptions = "Delete"
+ DeleteOptionsDetach DeleteOptions = "Detach"
+)
+
+// PossibleDeleteOptionsValues returns the possible values for the DeleteOptions const type.
+func PossibleDeleteOptionsValues() []DeleteOptions {
+ return []DeleteOptions{
+ DeleteOptionsDelete,
+ DeleteOptionsDetach,
+ }
+}
+
+// DiffDiskOptions - Specifies the ephemeral disk option for operating system disk.
+type DiffDiskOptions string
+
+const (
+ DiffDiskOptionsLocal DiffDiskOptions = "Local"
+)
+
+// PossibleDiffDiskOptionsValues returns the possible values for the DiffDiskOptions const type.
+func PossibleDiffDiskOptionsValues() []DiffDiskOptions {
+ return []DiffDiskOptions{
+ DiffDiskOptionsLocal,
+ }
+}
+
+// DiffDiskPlacement - Specifies the ephemeral disk placement for operating system disk. This property can be used by user
+// in the request to choose the location i.e, cache disk or resource disk space for Ephemeral OS disk
+// provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements
+// for Windows VM at
+// https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at
+// https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements
+type DiffDiskPlacement string
+
+const (
+ DiffDiskPlacementCacheDisk DiffDiskPlacement = "CacheDisk"
+ DiffDiskPlacementResourceDisk DiffDiskPlacement = "ResourceDisk"
+)
+
+// PossibleDiffDiskPlacementValues returns the possible values for the DiffDiskPlacement const type.
+func PossibleDiffDiskPlacementValues() []DiffDiskPlacement {
+ return []DiffDiskPlacement{
+ DiffDiskPlacementCacheDisk,
+ DiffDiskPlacementResourceDisk,
+ }
+}
+
+// DiskCreateOption - This enumerates the possible sources of a disk's creation.
+type DiskCreateOption string
+
+const (
+ // DiskCreateOptionAttach - Disk will be attached to a VM.
+ DiskCreateOptionAttach DiskCreateOption = "Attach"
+ // DiskCreateOptionCopy - Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.
+ DiskCreateOptionCopy DiskCreateOption = "Copy"
+ // DiskCreateOptionCopyStart - Create a new disk by using a deep copy process, where the resource creation is considered complete
+ // only after all data has been copied from the source.
+ DiskCreateOptionCopyStart DiskCreateOption = "CopyStart"
+ // DiskCreateOptionEmpty - Create an empty data disk of a size given by diskSizeGB.
+ DiskCreateOptionEmpty DiskCreateOption = "Empty"
+ // DiskCreateOptionFromImage - Create a new disk from a platform image specified by the given imageReference or galleryImageReference.
+ DiskCreateOptionFromImage DiskCreateOption = "FromImage"
+ // DiskCreateOptionImport - Create a disk by importing from a blob specified by a sourceUri in a storage account specified
+ // by storageAccountId.
+ DiskCreateOptionImport DiskCreateOption = "Import"
+ // DiskCreateOptionImportSecure - Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported
+ // disk by importing additional blob for VM guest state specified by securityDataUri in storage account specified by storageAccountId
+ DiskCreateOptionImportSecure DiskCreateOption = "ImportSecure"
+ // DiskCreateOptionRestore - Create a new disk by copying from a backup recovery point.
+ DiskCreateOptionRestore DiskCreateOption = "Restore"
+ // DiskCreateOptionUpload - Create a new disk by obtaining a write token and using it to directly upload the contents of the
+ // disk.
+ DiskCreateOptionUpload DiskCreateOption = "Upload"
+ // DiskCreateOptionUploadPreparedSecure - Similar to Upload create option. Create a new Trusted Launch VM or Confidential
+ // VM supported disk and upload using write token in both disk and VM guest state
+ DiskCreateOptionUploadPreparedSecure DiskCreateOption = "UploadPreparedSecure"
+)
+
+// PossibleDiskCreateOptionValues returns the possible values for the DiskCreateOption const type.
+func PossibleDiskCreateOptionValues() []DiskCreateOption {
+ return []DiskCreateOption{
+ DiskCreateOptionAttach,
+ DiskCreateOptionCopy,
+ DiskCreateOptionCopyStart,
+ DiskCreateOptionEmpty,
+ DiskCreateOptionFromImage,
+ DiskCreateOptionImport,
+ DiskCreateOptionImportSecure,
+ DiskCreateOptionRestore,
+ DiskCreateOptionUpload,
+ DiskCreateOptionUploadPreparedSecure,
+ }
+}
+
+// DiskCreateOptionTypes - Specifies how the virtual machine should be created.
+// Possible values are:
+// Attach \u2013 This value is used when you are using a specialized disk to create the virtual machine.
+// FromImage \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform
+// image, you also use the imageReference element described above. If you are
+// using a marketplace image, you also use the plan element previously described.
+type DiskCreateOptionTypes string
+
+const (
+ DiskCreateOptionTypesAttach DiskCreateOptionTypes = "Attach"
+ DiskCreateOptionTypesEmpty DiskCreateOptionTypes = "Empty"
+ DiskCreateOptionTypesFromImage DiskCreateOptionTypes = "FromImage"
+)
+
+// PossibleDiskCreateOptionTypesValues returns the possible values for the DiskCreateOptionTypes const type.
+func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes {
+ return []DiskCreateOptionTypes{
+ DiskCreateOptionTypesAttach,
+ DiskCreateOptionTypesEmpty,
+ DiskCreateOptionTypesFromImage,
+ }
+}
+
+// DiskDeleteOptionTypes - Specifies the behavior of the managed disk when the VM gets deleted i.e whether the managed disk
+// is deleted or detached. Supported values:
+// Delete If this value is used, the managed disk is deleted when VM gets deleted.
+// Detach If this value is used, the managed disk is retained after VM gets deleted.
+// Minimum api-version: 2021-03-01
+type DiskDeleteOptionTypes string
+
+const (
+ DiskDeleteOptionTypesDelete DiskDeleteOptionTypes = "Delete"
+ DiskDeleteOptionTypesDetach DiskDeleteOptionTypes = "Detach"
+)
+
+// PossibleDiskDeleteOptionTypesValues returns the possible values for the DiskDeleteOptionTypes const type.
+func PossibleDiskDeleteOptionTypesValues() []DiskDeleteOptionTypes {
+ return []DiskDeleteOptionTypes{
+ DiskDeleteOptionTypesDelete,
+ DiskDeleteOptionTypesDetach,
+ }
+}
+
+// DiskDetachOptionTypes - Specifies the detach behavior to be used while detaching a disk or which is already in the process
+// of detachment from the virtual machine. Supported values: ForceDetach.
+// detachOption: ForceDetach is applicable only for managed data disks. If a previous detachment attempt of the data disk
+// did not complete due to an unexpected failure from the virtual machine and the
+// disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes
+// might not have been flushed when using this detach behavior.
+// This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update
+// toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.
+type DiskDetachOptionTypes string
+
+const (
+ DiskDetachOptionTypesForceDetach DiskDetachOptionTypes = "ForceDetach"
+)
+
+// PossibleDiskDetachOptionTypesValues returns the possible values for the DiskDetachOptionTypes const type.
+func PossibleDiskDetachOptionTypesValues() []DiskDetachOptionTypes {
+ return []DiskDetachOptionTypes{
+ DiskDetachOptionTypesForceDetach,
+ }
+}
+
+// DiskEncryptionSetIdentityType - The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported
+// for new creations. Disk Encryption Sets can be updated with Identity type None during migration of
+// subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys.
+type DiskEncryptionSetIdentityType string
+
+const (
+ DiskEncryptionSetIdentityTypeNone DiskEncryptionSetIdentityType = "None"
+ DiskEncryptionSetIdentityTypeSystemAssigned DiskEncryptionSetIdentityType = "SystemAssigned"
+)
+
+// PossibleDiskEncryptionSetIdentityTypeValues returns the possible values for the DiskEncryptionSetIdentityType const type.
+func PossibleDiskEncryptionSetIdentityTypeValues() []DiskEncryptionSetIdentityType {
+ return []DiskEncryptionSetIdentityType{
+ DiskEncryptionSetIdentityTypeNone,
+ DiskEncryptionSetIdentityTypeSystemAssigned,
+ }
+}
+
+// DiskEncryptionSetType - The type of key used to encrypt the data of the disk.
+type DiskEncryptionSetType string
+
+const (
+ // DiskEncryptionSetTypeConfidentialVMEncryptedWithCustomerKey - Confidential VM supported disk and VM guest state would be
+ // encrypted with customer managed key.
+ DiskEncryptionSetTypeConfidentialVMEncryptedWithCustomerKey DiskEncryptionSetType = "ConfidentialVmEncryptedWithCustomerKey"
+ // DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey - Resource using diskEncryptionSet would be encrypted at rest with
+ // Customer managed key that can be changed and revoked by a customer.
+ DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey DiskEncryptionSetType = "EncryptionAtRestWithCustomerKey"
+ // DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys - Resource using diskEncryptionSet would be encrypted
+ // at rest with two layers of encryption. One of the keys is Customer managed and the other key is Platform managed.
+ DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys DiskEncryptionSetType = "EncryptionAtRestWithPlatformAndCustomerKeys"
+)
+
+// PossibleDiskEncryptionSetTypeValues returns the possible values for the DiskEncryptionSetType const type.
+func PossibleDiskEncryptionSetTypeValues() []DiskEncryptionSetType {
+ return []DiskEncryptionSetType{
+ DiskEncryptionSetTypeConfidentialVMEncryptedWithCustomerKey,
+ DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey,
+ DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys,
+ }
+}
+
+// DiskSecurityTypes - Specifies the SecurityType of the VM. Applicable for OS disks only.
+type DiskSecurityTypes string
+
+const (
+ // DiskSecurityTypesConfidentialVMDiskEncryptedWithCustomerKey - Indicates Confidential VM disk with both OS disk and VM guest
+ // state encrypted with a customer managed key
+ DiskSecurityTypesConfidentialVMDiskEncryptedWithCustomerKey DiskSecurityTypes = "ConfidentialVM_DiskEncryptedWithCustomerKey"
+ // DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey - Indicates Confidential VM disk with both OS disk and VM guest
+ // state encrypted with a platform managed key
+ DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey DiskSecurityTypes = "ConfidentialVM_DiskEncryptedWithPlatformKey"
+ // DiskSecurityTypesConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey - Indicates Confidential VM disk with only VM guest
+ // state encrypted
+ DiskSecurityTypesConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey DiskSecurityTypes = "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey"
+ // DiskSecurityTypesTrustedLaunch - Trusted Launch provides security features such as secure boot and virtual Trusted Platform
+ // Module (vTPM)
+ DiskSecurityTypesTrustedLaunch DiskSecurityTypes = "TrustedLaunch"
+)
+
+// PossibleDiskSecurityTypesValues returns the possible values for the DiskSecurityTypes const type.
+func PossibleDiskSecurityTypesValues() []DiskSecurityTypes {
+ return []DiskSecurityTypes{
+ DiskSecurityTypesConfidentialVMDiskEncryptedWithCustomerKey,
+ DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey,
+ DiskSecurityTypesConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey,
+ DiskSecurityTypesTrustedLaunch,
+ }
+}
+
+// DiskState - This enumerates the possible state of the disk.
+type DiskState string
+
+const (
+ // DiskStateActiveSAS - The disk currently has an Active SAS Uri associated with it.
+ DiskStateActiveSAS DiskState = "ActiveSAS"
+ // DiskStateActiveSASFrozen - The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.
+ DiskStateActiveSASFrozen DiskState = "ActiveSASFrozen"
+ // DiskStateActiveUpload - A disk is created for upload and a write token has been issued for uploading to it.
+ DiskStateActiveUpload DiskState = "ActiveUpload"
+ // DiskStateAttached - The disk is currently attached to a running VM.
+ DiskStateAttached DiskState = "Attached"
+ // DiskStateFrozen - The disk is attached to a VM which is in hibernated state.
+ DiskStateFrozen DiskState = "Frozen"
+ // DiskStateReadyToUpload - A disk is ready to be created by upload by requesting a write token.
+ DiskStateReadyToUpload DiskState = "ReadyToUpload"
+ // DiskStateReserved - The disk is attached to a stopped-deallocated VM.
+ DiskStateReserved DiskState = "Reserved"
+ // DiskStateUnattached - The disk is not being used and can be attached to a VM.
+ DiskStateUnattached DiskState = "Unattached"
+)
+
+// PossibleDiskStateValues returns the possible values for the DiskState const type.
+func PossibleDiskStateValues() []DiskState {
+ return []DiskState{
+ DiskStateActiveSAS,
+ DiskStateActiveSASFrozen,
+ DiskStateActiveUpload,
+ DiskStateAttached,
+ DiskStateFrozen,
+ DiskStateReadyToUpload,
+ DiskStateReserved,
+ DiskStateUnattached,
+ }
+}
+
+// DiskStorageAccountTypes - The sku name.
+type DiskStorageAccountTypes string
+
+const (
+ // DiskStorageAccountTypesPremiumLRS - Premium SSD locally redundant storage. Best for production and performance sensitive
+ // workloads.
+ DiskStorageAccountTypesPremiumLRS DiskStorageAccountTypes = "Premium_LRS"
+ // DiskStorageAccountTypesPremiumZRS - Premium SSD zone redundant storage. Best for the production workloads that need storage
+ // resiliency against zone failures.
+ DiskStorageAccountTypesPremiumZRS DiskStorageAccountTypes = "Premium_ZRS"
+ // DiskStorageAccountTypesStandardLRS - Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent
+ // access.
+ DiskStorageAccountTypesStandardLRS DiskStorageAccountTypes = "Standard_LRS"
+ // DiskStorageAccountTypesStandardSSDLRS - Standard SSD locally redundant storage. Best for web servers, lightly used enterprise
+ // applications and dev/test.
+ DiskStorageAccountTypesStandardSSDLRS DiskStorageAccountTypes = "StandardSSD_LRS"
+ // DiskStorageAccountTypesStandardSSDZRS - Standard SSD zone redundant storage. Best for web servers, lightly used enterprise
+ // applications and dev/test that need storage resiliency against zone failures.
+ DiskStorageAccountTypesStandardSSDZRS DiskStorageAccountTypes = "StandardSSD_ZRS"
+ // DiskStorageAccountTypesUltraSSDLRS - Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA,
+ // top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads.
+ DiskStorageAccountTypesUltraSSDLRS DiskStorageAccountTypes = "UltraSSD_LRS"
+)
+
+// PossibleDiskStorageAccountTypesValues returns the possible values for the DiskStorageAccountTypes const type.
+func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes {
+ return []DiskStorageAccountTypes{
+ DiskStorageAccountTypesPremiumLRS,
+ DiskStorageAccountTypesPremiumZRS,
+ DiskStorageAccountTypesStandardLRS,
+ DiskStorageAccountTypesStandardSSDLRS,
+ DiskStorageAccountTypesStandardSSDZRS,
+ DiskStorageAccountTypesUltraSSDLRS,
+ }
+}
+
+// EncryptionType - The type of key used to encrypt the data of the disk.
+type EncryptionType string
+
+const (
+ // EncryptionTypeEncryptionAtRestWithCustomerKey - Disk is encrypted at rest with Customer managed key that can be changed
+ // and revoked by a customer.
+ EncryptionTypeEncryptionAtRestWithCustomerKey EncryptionType = "EncryptionAtRestWithCustomerKey"
+ // EncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys - Disk is encrypted at rest with 2 layers of encryption. One
+ // of the keys is Customer managed and the other key is Platform managed.
+ EncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys EncryptionType = "EncryptionAtRestWithPlatformAndCustomerKeys"
+ // EncryptionTypeEncryptionAtRestWithPlatformKey - Disk is encrypted at rest with Platform managed key. It is the default
+ // encryption type. This is not a valid encryption type for disk encryption sets.
+ EncryptionTypeEncryptionAtRestWithPlatformKey EncryptionType = "EncryptionAtRestWithPlatformKey"
+)
+
+// PossibleEncryptionTypeValues returns the possible values for the EncryptionType const type.
+func PossibleEncryptionTypeValues() []EncryptionType {
+ return []EncryptionType{
+ EncryptionTypeEncryptionAtRestWithCustomerKey,
+ EncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys,
+ EncryptionTypeEncryptionAtRestWithPlatformKey,
+ }
+}
+
+// ExecutionState - Script execution status.
+type ExecutionState string
+
+const (
+ ExecutionStateCanceled ExecutionState = "Canceled"
+ ExecutionStateFailed ExecutionState = "Failed"
+ ExecutionStatePending ExecutionState = "Pending"
+ ExecutionStateRunning ExecutionState = "Running"
+ ExecutionStateSucceeded ExecutionState = "Succeeded"
+ ExecutionStateTimedOut ExecutionState = "TimedOut"
+ ExecutionStateUnknown ExecutionState = "Unknown"
+)
+
+// PossibleExecutionStateValues returns the possible values for the ExecutionState const type.
+func PossibleExecutionStateValues() []ExecutionState {
+ return []ExecutionState{
+ ExecutionStateCanceled,
+ ExecutionStateFailed,
+ ExecutionStatePending,
+ ExecutionStateRunning,
+ ExecutionStateSucceeded,
+ ExecutionStateTimedOut,
+ ExecutionStateUnknown,
+ }
+}
+
+type ExpandTypesForGetCapacityReservationGroups string
+
+const (
+ ExpandTypesForGetCapacityReservationGroupsVirtualMachineScaleSetVMsRef ExpandTypesForGetCapacityReservationGroups = "virtualMachineScaleSetVMs/$ref"
+ ExpandTypesForGetCapacityReservationGroupsVirtualMachinesRef ExpandTypesForGetCapacityReservationGroups = "virtualMachines/$ref"
+)
+
+// PossibleExpandTypesForGetCapacityReservationGroupsValues returns the possible values for the ExpandTypesForGetCapacityReservationGroups const type.
+func PossibleExpandTypesForGetCapacityReservationGroupsValues() []ExpandTypesForGetCapacityReservationGroups {
+ return []ExpandTypesForGetCapacityReservationGroups{
+ ExpandTypesForGetCapacityReservationGroupsVirtualMachineScaleSetVMsRef,
+ ExpandTypesForGetCapacityReservationGroupsVirtualMachinesRef,
+ }
+}
+
+type ExpandTypesForGetVMScaleSets string
+
+const (
+ ExpandTypesForGetVMScaleSetsUserData ExpandTypesForGetVMScaleSets = "userData"
+)
+
+// PossibleExpandTypesForGetVMScaleSetsValues returns the possible values for the ExpandTypesForGetVMScaleSets const type.
+func PossibleExpandTypesForGetVMScaleSetsValues() []ExpandTypesForGetVMScaleSets {
+ return []ExpandTypesForGetVMScaleSets{
+ ExpandTypesForGetVMScaleSetsUserData,
+ }
+}
+
+// ExtendedLocationType - The type of the extended location.
+type ExtendedLocationType string
+
+const (
+ ExtendedLocationTypeEdgeZone ExtendedLocationType = "EdgeZone"
+)
+
+// PossibleExtendedLocationTypeValues returns the possible values for the ExtendedLocationType const type.
+func PossibleExtendedLocationTypeValues() []ExtendedLocationType {
+ return []ExtendedLocationType{
+ ExtendedLocationTypeEdgeZone,
+ }
+}
+
+// ExtendedLocationTypes - The type of extendedLocation.
+type ExtendedLocationTypes string
+
+const (
+ ExtendedLocationTypesEdgeZone ExtendedLocationTypes = "EdgeZone"
+)
+
+// PossibleExtendedLocationTypesValues returns the possible values for the ExtendedLocationTypes const type.
+func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes {
+ return []ExtendedLocationTypes{
+ ExtendedLocationTypesEdgeZone,
+ }
+}
+
+// GalleryApplicationVersionPropertiesProvisioningState - The provisioning state, which only appears in the response.
+type GalleryApplicationVersionPropertiesProvisioningState string
+
+const (
+ GalleryApplicationVersionPropertiesProvisioningStateCreating GalleryApplicationVersionPropertiesProvisioningState = "Creating"
+ GalleryApplicationVersionPropertiesProvisioningStateDeleting GalleryApplicationVersionPropertiesProvisioningState = "Deleting"
+ GalleryApplicationVersionPropertiesProvisioningStateFailed GalleryApplicationVersionPropertiesProvisioningState = "Failed"
+ GalleryApplicationVersionPropertiesProvisioningStateMigrating GalleryApplicationVersionPropertiesProvisioningState = "Migrating"
+ GalleryApplicationVersionPropertiesProvisioningStateSucceeded GalleryApplicationVersionPropertiesProvisioningState = "Succeeded"
+ GalleryApplicationVersionPropertiesProvisioningStateUpdating GalleryApplicationVersionPropertiesProvisioningState = "Updating"
+)
+
+// PossibleGalleryApplicationVersionPropertiesProvisioningStateValues returns the possible values for the GalleryApplicationVersionPropertiesProvisioningState const type.
+func PossibleGalleryApplicationVersionPropertiesProvisioningStateValues() []GalleryApplicationVersionPropertiesProvisioningState {
+ return []GalleryApplicationVersionPropertiesProvisioningState{
+ GalleryApplicationVersionPropertiesProvisioningStateCreating,
+ GalleryApplicationVersionPropertiesProvisioningStateDeleting,
+ GalleryApplicationVersionPropertiesProvisioningStateFailed,
+ GalleryApplicationVersionPropertiesProvisioningStateMigrating,
+ GalleryApplicationVersionPropertiesProvisioningStateSucceeded,
+ GalleryApplicationVersionPropertiesProvisioningStateUpdating,
+ }
+}
+
+type GalleryExpandParams string
+
+const (
+ GalleryExpandParamsSharingProfileGroups GalleryExpandParams = "SharingProfile/Groups"
+)
+
+// PossibleGalleryExpandParamsValues returns the possible values for the GalleryExpandParams const type.
+func PossibleGalleryExpandParamsValues() []GalleryExpandParams {
+ return []GalleryExpandParams{
+ GalleryExpandParamsSharingProfileGroups,
+ }
+}
+
+// GalleryExtendedLocationType - It is type of the extended location.
+type GalleryExtendedLocationType string
+
+const (
+ GalleryExtendedLocationTypeEdgeZone GalleryExtendedLocationType = "EdgeZone"
+ GalleryExtendedLocationTypeUnknown GalleryExtendedLocationType = "Unknown"
+)
+
+// PossibleGalleryExtendedLocationTypeValues returns the possible values for the GalleryExtendedLocationType const type.
+func PossibleGalleryExtendedLocationTypeValues() []GalleryExtendedLocationType {
+ return []GalleryExtendedLocationType{
+ GalleryExtendedLocationTypeEdgeZone,
+ GalleryExtendedLocationTypeUnknown,
+ }
+}
+
+// GalleryImagePropertiesProvisioningState - The provisioning state, which only appears in the response.
+type GalleryImagePropertiesProvisioningState string
+
+const (
+ GalleryImagePropertiesProvisioningStateCreating GalleryImagePropertiesProvisioningState = "Creating"
+ GalleryImagePropertiesProvisioningStateDeleting GalleryImagePropertiesProvisioningState = "Deleting"
+ GalleryImagePropertiesProvisioningStateFailed GalleryImagePropertiesProvisioningState = "Failed"
+ GalleryImagePropertiesProvisioningStateMigrating GalleryImagePropertiesProvisioningState = "Migrating"
+ GalleryImagePropertiesProvisioningStateSucceeded GalleryImagePropertiesProvisioningState = "Succeeded"
+ GalleryImagePropertiesProvisioningStateUpdating GalleryImagePropertiesProvisioningState = "Updating"
+)
+
+// PossibleGalleryImagePropertiesProvisioningStateValues returns the possible values for the GalleryImagePropertiesProvisioningState const type.
+func PossibleGalleryImagePropertiesProvisioningStateValues() []GalleryImagePropertiesProvisioningState {
+ return []GalleryImagePropertiesProvisioningState{
+ GalleryImagePropertiesProvisioningStateCreating,
+ GalleryImagePropertiesProvisioningStateDeleting,
+ GalleryImagePropertiesProvisioningStateFailed,
+ GalleryImagePropertiesProvisioningStateMigrating,
+ GalleryImagePropertiesProvisioningStateSucceeded,
+ GalleryImagePropertiesProvisioningStateUpdating,
+ }
+}
+
+// GalleryImageVersionPropertiesProvisioningState - The provisioning state, which only appears in the response.
+type GalleryImageVersionPropertiesProvisioningState string
+
+const (
+ GalleryImageVersionPropertiesProvisioningStateCreating GalleryImageVersionPropertiesProvisioningState = "Creating"
+ GalleryImageVersionPropertiesProvisioningStateDeleting GalleryImageVersionPropertiesProvisioningState = "Deleting"
+ GalleryImageVersionPropertiesProvisioningStateFailed GalleryImageVersionPropertiesProvisioningState = "Failed"
+ GalleryImageVersionPropertiesProvisioningStateMigrating GalleryImageVersionPropertiesProvisioningState = "Migrating"
+ GalleryImageVersionPropertiesProvisioningStateSucceeded GalleryImageVersionPropertiesProvisioningState = "Succeeded"
+ GalleryImageVersionPropertiesProvisioningStateUpdating GalleryImageVersionPropertiesProvisioningState = "Updating"
+)
+
+// PossibleGalleryImageVersionPropertiesProvisioningStateValues returns the possible values for the GalleryImageVersionPropertiesProvisioningState const type.
+func PossibleGalleryImageVersionPropertiesProvisioningStateValues() []GalleryImageVersionPropertiesProvisioningState {
+ return []GalleryImageVersionPropertiesProvisioningState{
+ GalleryImageVersionPropertiesProvisioningStateCreating,
+ GalleryImageVersionPropertiesProvisioningStateDeleting,
+ GalleryImageVersionPropertiesProvisioningStateFailed,
+ GalleryImageVersionPropertiesProvisioningStateMigrating,
+ GalleryImageVersionPropertiesProvisioningStateSucceeded,
+ GalleryImageVersionPropertiesProvisioningStateUpdating,
+ }
+}
+
+// GalleryPropertiesProvisioningState - The provisioning state, which only appears in the response.
+type GalleryPropertiesProvisioningState string
+
+const (
+ GalleryPropertiesProvisioningStateCreating GalleryPropertiesProvisioningState = "Creating"
+ GalleryPropertiesProvisioningStateDeleting GalleryPropertiesProvisioningState = "Deleting"
+ GalleryPropertiesProvisioningStateFailed GalleryPropertiesProvisioningState = "Failed"
+ GalleryPropertiesProvisioningStateMigrating GalleryPropertiesProvisioningState = "Migrating"
+ GalleryPropertiesProvisioningStateSucceeded GalleryPropertiesProvisioningState = "Succeeded"
+ GalleryPropertiesProvisioningStateUpdating GalleryPropertiesProvisioningState = "Updating"
+)
+
+// PossibleGalleryPropertiesProvisioningStateValues returns the possible values for the GalleryPropertiesProvisioningState const type.
+func PossibleGalleryPropertiesProvisioningStateValues() []GalleryPropertiesProvisioningState {
+ return []GalleryPropertiesProvisioningState{
+ GalleryPropertiesProvisioningStateCreating,
+ GalleryPropertiesProvisioningStateDeleting,
+ GalleryPropertiesProvisioningStateFailed,
+ GalleryPropertiesProvisioningStateMigrating,
+ GalleryPropertiesProvisioningStateSucceeded,
+ GalleryPropertiesProvisioningStateUpdating,
+ }
+}
+
+// GallerySharingPermissionTypes - This property allows you to specify the permission of sharing gallery.
+// Possible values are:
+// Private
+// Groups
+type GallerySharingPermissionTypes string
+
+const (
+ GallerySharingPermissionTypesGroups GallerySharingPermissionTypes = "Groups"
+ GallerySharingPermissionTypesPrivate GallerySharingPermissionTypes = "Private"
+)
+
+// PossibleGallerySharingPermissionTypesValues returns the possible values for the GallerySharingPermissionTypes const type.
+func PossibleGallerySharingPermissionTypesValues() []GallerySharingPermissionTypes {
+ return []GallerySharingPermissionTypes{
+ GallerySharingPermissionTypesGroups,
+ GallerySharingPermissionTypesPrivate,
+ }
+}
+
+// HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
+type HostCaching string
+
+const (
+ HostCachingNone HostCaching = "None"
+ HostCachingReadOnly HostCaching = "ReadOnly"
+ HostCachingReadWrite HostCaching = "ReadWrite"
+)
+
+// PossibleHostCachingValues returns the possible values for the HostCaching const type.
+func PossibleHostCachingValues() []HostCaching {
+ return []HostCaching{
+ HostCachingNone,
+ HostCachingReadOnly,
+ HostCachingReadWrite,
+ }
+}
+
+// HyperVGeneration - The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
+type HyperVGeneration string
+
+const (
+ HyperVGenerationV1 HyperVGeneration = "V1"
+ HyperVGenerationV2 HyperVGeneration = "V2"
+)
+
+// PossibleHyperVGenerationValues returns the possible values for the HyperVGeneration const type.
+func PossibleHyperVGenerationValues() []HyperVGeneration {
+ return []HyperVGeneration{
+ HyperVGenerationV1,
+ HyperVGenerationV2,
+ }
+}
+
+// HyperVGenerationType - Specifies the HyperVGeneration Type associated with a resource
+type HyperVGenerationType string
+
+const (
+ HyperVGenerationTypeV1 HyperVGenerationType = "V1"
+ HyperVGenerationTypeV2 HyperVGenerationType = "V2"
+)
+
+// PossibleHyperVGenerationTypeValues returns the possible values for the HyperVGenerationType const type.
+func PossibleHyperVGenerationTypeValues() []HyperVGenerationType {
+ return []HyperVGenerationType{
+ HyperVGenerationTypeV1,
+ HyperVGenerationTypeV2,
+ }
+}
+
+// HyperVGenerationTypes - Specifies the HyperVGeneration Type
+type HyperVGenerationTypes string
+
+const (
+ HyperVGenerationTypesV1 HyperVGenerationTypes = "V1"
+ HyperVGenerationTypesV2 HyperVGenerationTypes = "V2"
+)
+
+// PossibleHyperVGenerationTypesValues returns the possible values for the HyperVGenerationTypes const type.
+func PossibleHyperVGenerationTypesValues() []HyperVGenerationTypes {
+ return []HyperVGenerationTypes{
+ HyperVGenerationTypesV1,
+ HyperVGenerationTypesV2,
+ }
+}
+
+// IPVersion - Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or
+// IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+type IPVersion string
+
+const (
+ IPVersionIPv4 IPVersion = "IPv4"
+ IPVersionIPv6 IPVersion = "IPv6"
+)
+
+// PossibleIPVersionValues returns the possible values for the IPVersion const type.
+func PossibleIPVersionValues() []IPVersion {
+ return []IPVersion{
+ IPVersionIPv4,
+ IPVersionIPv6,
+ }
+}
+
+// IPVersions - Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4
+// or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+type IPVersions string
+
+const (
+ IPVersionsIPv4 IPVersions = "IPv4"
+ IPVersionsIPv6 IPVersions = "IPv6"
+)
+
+// PossibleIPVersionsValues returns the possible values for the IPVersions const type.
+func PossibleIPVersionsValues() []IPVersions {
+ return []IPVersions{
+ IPVersionsIPv4,
+ IPVersionsIPv6,
+ }
+}
+
+type InstanceViewTypes string
+
+const (
+ InstanceViewTypesInstanceView InstanceViewTypes = "instanceView"
+ InstanceViewTypesUserData InstanceViewTypes = "userData"
+)
+
+// PossibleInstanceViewTypesValues returns the possible values for the InstanceViewTypes const type.
+func PossibleInstanceViewTypesValues() []InstanceViewTypes {
+ return []InstanceViewTypes{
+ InstanceViewTypesInstanceView,
+ InstanceViewTypesUserData,
+ }
+}
+
+// IntervalInMins - Interval value in minutes used to create LogAnalytics call rate logs.
+type IntervalInMins string
+
+const (
+ IntervalInMinsThreeMins IntervalInMins = "ThreeMins"
+ IntervalInMinsFiveMins IntervalInMins = "FiveMins"
+ IntervalInMinsThirtyMins IntervalInMins = "ThirtyMins"
+ IntervalInMinsSixtyMins IntervalInMins = "SixtyMins"
+)
+
+// PossibleIntervalInMinsValues returns the possible values for the IntervalInMins const type.
+func PossibleIntervalInMinsValues() []IntervalInMins {
+ return []IntervalInMins{
+ IntervalInMinsThreeMins,
+ IntervalInMinsFiveMins,
+ IntervalInMinsThirtyMins,
+ IntervalInMinsSixtyMins,
+ }
+}
+
+// LinuxPatchAssessmentMode - Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.
+// Possible values are:
+// ImageDefault - You control the timing of patch assessments on a virtual machine.
+// AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
+type LinuxPatchAssessmentMode string
+
+const (
+ LinuxPatchAssessmentModeAutomaticByPlatform LinuxPatchAssessmentMode = "AutomaticByPlatform"
+ LinuxPatchAssessmentModeImageDefault LinuxPatchAssessmentMode = "ImageDefault"
+)
+
+// PossibleLinuxPatchAssessmentModeValues returns the possible values for the LinuxPatchAssessmentMode const type.
+func PossibleLinuxPatchAssessmentModeValues() []LinuxPatchAssessmentMode {
+ return []LinuxPatchAssessmentMode{
+ LinuxPatchAssessmentModeAutomaticByPlatform,
+ LinuxPatchAssessmentModeImageDefault,
+ }
+}
+
+// LinuxVMGuestPatchAutomaticByPlatformRebootSetting - Specifies the reboot setting for all AutomaticByPlatform patch installation
+// operations.
+type LinuxVMGuestPatchAutomaticByPlatformRebootSetting string
+
+const (
+ LinuxVMGuestPatchAutomaticByPlatformRebootSettingAlways LinuxVMGuestPatchAutomaticByPlatformRebootSetting = "Always"
+ LinuxVMGuestPatchAutomaticByPlatformRebootSettingIfRequired LinuxVMGuestPatchAutomaticByPlatformRebootSetting = "IfRequired"
+ LinuxVMGuestPatchAutomaticByPlatformRebootSettingNever LinuxVMGuestPatchAutomaticByPlatformRebootSetting = "Never"
+ LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown LinuxVMGuestPatchAutomaticByPlatformRebootSetting = "Unknown"
+)
+
+// PossibleLinuxVMGuestPatchAutomaticByPlatformRebootSettingValues returns the possible values for the LinuxVMGuestPatchAutomaticByPlatformRebootSetting const type.
+func PossibleLinuxVMGuestPatchAutomaticByPlatformRebootSettingValues() []LinuxVMGuestPatchAutomaticByPlatformRebootSetting {
+ return []LinuxVMGuestPatchAutomaticByPlatformRebootSetting{
+ LinuxVMGuestPatchAutomaticByPlatformRebootSettingAlways,
+ LinuxVMGuestPatchAutomaticByPlatformRebootSettingIfRequired,
+ LinuxVMGuestPatchAutomaticByPlatformRebootSettingNever,
+ LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown,
+ }
+}
+
+// LinuxVMGuestPatchMode - Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated
+// to virtual machine scale set with OrchestrationMode as Flexible.
+// Possible values are:
+// ImageDefault - The virtual machine's default patching configuration is used.
+// AutomaticByPlatform - The virtual machine will be automatically updated by the platform. The property provisionVMAgent
+// must be true
+type LinuxVMGuestPatchMode string
+
+const (
+ LinuxVMGuestPatchModeAutomaticByPlatform LinuxVMGuestPatchMode = "AutomaticByPlatform"
+ LinuxVMGuestPatchModeImageDefault LinuxVMGuestPatchMode = "ImageDefault"
+)
+
+// PossibleLinuxVMGuestPatchModeValues returns the possible values for the LinuxVMGuestPatchMode const type.
+func PossibleLinuxVMGuestPatchModeValues() []LinuxVMGuestPatchMode {
+ return []LinuxVMGuestPatchMode{
+ LinuxVMGuestPatchModeAutomaticByPlatform,
+ LinuxVMGuestPatchModeImageDefault,
+ }
+}
+
+// MaintenanceOperationResultCodeTypes - The Last Maintenance Operation Result Code.
+type MaintenanceOperationResultCodeTypes string
+
+const (
+ MaintenanceOperationResultCodeTypesNone MaintenanceOperationResultCodeTypes = "None"
+ MaintenanceOperationResultCodeTypesRetryLater MaintenanceOperationResultCodeTypes = "RetryLater"
+ MaintenanceOperationResultCodeTypesMaintenanceAborted MaintenanceOperationResultCodeTypes = "MaintenanceAborted"
+ MaintenanceOperationResultCodeTypesMaintenanceCompleted MaintenanceOperationResultCodeTypes = "MaintenanceCompleted"
+)
+
+// PossibleMaintenanceOperationResultCodeTypesValues returns the possible values for the MaintenanceOperationResultCodeTypes const type.
+func PossibleMaintenanceOperationResultCodeTypesValues() []MaintenanceOperationResultCodeTypes {
+ return []MaintenanceOperationResultCodeTypes{
+ MaintenanceOperationResultCodeTypesNone,
+ MaintenanceOperationResultCodeTypesRetryLater,
+ MaintenanceOperationResultCodeTypesMaintenanceAborted,
+ MaintenanceOperationResultCodeTypesMaintenanceCompleted,
+ }
+}
+
+// NetworkAPIVersion - specifies the Microsoft.Network API version used when creating networking resources in the Network
+// Interface Configurations
+type NetworkAPIVersion string
+
+const (
+ NetworkAPIVersionTwoThousandTwenty1101 NetworkAPIVersion = "2020-11-01"
+)
+
+// PossibleNetworkAPIVersionValues returns the possible values for the NetworkAPIVersion const type.
+func PossibleNetworkAPIVersionValues() []NetworkAPIVersion {
+ return []NetworkAPIVersion{
+ NetworkAPIVersionTwoThousandTwenty1101,
+ }
+}
+
+// NetworkAccessPolicy - Policy for accessing the disk via network.
+type NetworkAccessPolicy string
+
+const (
+ // NetworkAccessPolicyAllowAll - The disk can be exported or uploaded to from any network.
+ NetworkAccessPolicyAllowAll NetworkAccessPolicy = "AllowAll"
+ // NetworkAccessPolicyAllowPrivate - The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.
+ NetworkAccessPolicyAllowPrivate NetworkAccessPolicy = "AllowPrivate"
+ // NetworkAccessPolicyDenyAll - The disk cannot be exported.
+ NetworkAccessPolicyDenyAll NetworkAccessPolicy = "DenyAll"
+)
+
+// PossibleNetworkAccessPolicyValues returns the possible values for the NetworkAccessPolicy const type.
+func PossibleNetworkAccessPolicyValues() []NetworkAccessPolicy {
+ return []NetworkAccessPolicy{
+ NetworkAccessPolicyAllowAll,
+ NetworkAccessPolicyAllowPrivate,
+ NetworkAccessPolicyDenyAll,
+ }
+}
+
+// OperatingSystemStateTypes - This property allows the user to specify whether the virtual machines created under this image
+// are 'Generalized' or 'Specialized'.
+type OperatingSystemStateTypes string
+
+const (
+ OperatingSystemStateTypesGeneralized OperatingSystemStateTypes = "Generalized"
+ OperatingSystemStateTypesSpecialized OperatingSystemStateTypes = "Specialized"
+)
+
+// PossibleOperatingSystemStateTypesValues returns the possible values for the OperatingSystemStateTypes const type.
+func PossibleOperatingSystemStateTypesValues() []OperatingSystemStateTypes {
+ return []OperatingSystemStateTypes{
+ OperatingSystemStateTypesGeneralized,
+ OperatingSystemStateTypesSpecialized,
+ }
+}
+
+// OperatingSystemType - Gets the Operating System type.
+type OperatingSystemType string
+
+const (
+ OperatingSystemTypeLinux OperatingSystemType = "Linux"
+ OperatingSystemTypeWindows OperatingSystemType = "Windows"
+)
+
+// PossibleOperatingSystemTypeValues returns the possible values for the OperatingSystemType const type.
+func PossibleOperatingSystemTypeValues() []OperatingSystemType {
+ return []OperatingSystemType{
+ OperatingSystemTypeLinux,
+ OperatingSystemTypeWindows,
+ }
+}
+
+// OperatingSystemTypes - This property allows you to specify the type of the OS that is included in the disk when creating
+// a VM from a managed image.
+// Possible values are:
+// Windows
+// Linux
+type OperatingSystemTypes string
+
+const (
+ OperatingSystemTypesWindows OperatingSystemTypes = "Windows"
+ OperatingSystemTypesLinux OperatingSystemTypes = "Linux"
+)
+
+// PossibleOperatingSystemTypesValues returns the possible values for the OperatingSystemTypes const type.
+func PossibleOperatingSystemTypesValues() []OperatingSystemTypes {
+ return []OperatingSystemTypes{
+ OperatingSystemTypesWindows,
+ OperatingSystemTypesLinux,
+ }
+}
+
+// OrchestrationMode - Specifies the orchestration mode for the virtual machine scale set.
+type OrchestrationMode string
+
+const (
+ OrchestrationModeFlexible OrchestrationMode = "Flexible"
+ OrchestrationModeUniform OrchestrationMode = "Uniform"
+)
+
+// PossibleOrchestrationModeValues returns the possible values for the OrchestrationMode const type.
+func PossibleOrchestrationModeValues() []OrchestrationMode {
+ return []OrchestrationMode{
+ OrchestrationModeFlexible,
+ OrchestrationModeUniform,
+ }
+}
+
+// OrchestrationServiceNames - The name of the service.
+type OrchestrationServiceNames string
+
+const (
+ OrchestrationServiceNamesAutomaticRepairs OrchestrationServiceNames = "AutomaticRepairs"
+)
+
+// PossibleOrchestrationServiceNamesValues returns the possible values for the OrchestrationServiceNames const type.
+func PossibleOrchestrationServiceNamesValues() []OrchestrationServiceNames {
+ return []OrchestrationServiceNames{
+ OrchestrationServiceNamesAutomaticRepairs,
+ }
+}
+
+// OrchestrationServiceState - The current state of the service.
+type OrchestrationServiceState string
+
+const (
+ OrchestrationServiceStateNotRunning OrchestrationServiceState = "NotRunning"
+ OrchestrationServiceStateRunning OrchestrationServiceState = "Running"
+ OrchestrationServiceStateSuspended OrchestrationServiceState = "Suspended"
+)
+
+// PossibleOrchestrationServiceStateValues returns the possible values for the OrchestrationServiceState const type.
+func PossibleOrchestrationServiceStateValues() []OrchestrationServiceState {
+ return []OrchestrationServiceState{
+ OrchestrationServiceStateNotRunning,
+ OrchestrationServiceStateRunning,
+ OrchestrationServiceStateSuspended,
+ }
+}
+
+// OrchestrationServiceStateAction - The action to be performed.
+type OrchestrationServiceStateAction string
+
+const (
+ OrchestrationServiceStateActionResume OrchestrationServiceStateAction = "Resume"
+ OrchestrationServiceStateActionSuspend OrchestrationServiceStateAction = "Suspend"
+)
+
+// PossibleOrchestrationServiceStateActionValues returns the possible values for the OrchestrationServiceStateAction const type.
+func PossibleOrchestrationServiceStateActionValues() []OrchestrationServiceStateAction {
+ return []OrchestrationServiceStateAction{
+ OrchestrationServiceStateActionResume,
+ OrchestrationServiceStateActionSuspend,
+ }
+}
+
+// PatchAssessmentState - Describes the availability of a given patch.
+type PatchAssessmentState string
+
+const (
+ PatchAssessmentStateAvailable PatchAssessmentState = "Available"
+ PatchAssessmentStateUnknown PatchAssessmentState = "Unknown"
+)
+
+// PossiblePatchAssessmentStateValues returns the possible values for the PatchAssessmentState const type.
+func PossiblePatchAssessmentStateValues() []PatchAssessmentState {
+ return []PatchAssessmentState{
+ PatchAssessmentStateAvailable,
+ PatchAssessmentStateUnknown,
+ }
+}
+
+// PatchInstallationState - The state of the patch after the installation operation completed.
+type PatchInstallationState string
+
+const (
+ PatchInstallationStateExcluded PatchInstallationState = "Excluded"
+ PatchInstallationStateFailed PatchInstallationState = "Failed"
+ PatchInstallationStateInstalled PatchInstallationState = "Installed"
+ PatchInstallationStateNotSelected PatchInstallationState = "NotSelected"
+ PatchInstallationStatePending PatchInstallationState = "Pending"
+ PatchInstallationStateUnknown PatchInstallationState = "Unknown"
+)
+
+// PossiblePatchInstallationStateValues returns the possible values for the PatchInstallationState const type.
+func PossiblePatchInstallationStateValues() []PatchInstallationState {
+ return []PatchInstallationState{
+ PatchInstallationStateExcluded,
+ PatchInstallationStateFailed,
+ PatchInstallationStateInstalled,
+ PatchInstallationStateNotSelected,
+ PatchInstallationStatePending,
+ PatchInstallationStateUnknown,
+ }
+}
+
+// PatchOperationStatus - The overall success or failure status of the operation. It remains "InProgress" until the operation
+// completes. At that point it will become "Unknown", "Failed", "Succeeded", or
+// "CompletedWithWarnings."
+type PatchOperationStatus string
+
+const (
+ PatchOperationStatusCompletedWithWarnings PatchOperationStatus = "CompletedWithWarnings"
+ PatchOperationStatusFailed PatchOperationStatus = "Failed"
+ PatchOperationStatusInProgress PatchOperationStatus = "InProgress"
+ PatchOperationStatusSucceeded PatchOperationStatus = "Succeeded"
+ PatchOperationStatusUnknown PatchOperationStatus = "Unknown"
+)
+
+// PossiblePatchOperationStatusValues returns the possible values for the PatchOperationStatus const type.
+func PossiblePatchOperationStatusValues() []PatchOperationStatus {
+ return []PatchOperationStatus{
+ PatchOperationStatusCompletedWithWarnings,
+ PatchOperationStatusFailed,
+ PatchOperationStatusInProgress,
+ PatchOperationStatusSucceeded,
+ PatchOperationStatusUnknown,
+ }
+}
+
+// PrivateEndpointConnectionProvisioningState - The current provisioning state.
+type PrivateEndpointConnectionProvisioningState string
+
+const (
+ PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating"
+ PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting"
+ PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed"
+ PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
+)
+
+// PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
+func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState {
+ return []PrivateEndpointConnectionProvisioningState{
+ PrivateEndpointConnectionProvisioningStateCreating,
+ PrivateEndpointConnectionProvisioningStateDeleting,
+ PrivateEndpointConnectionProvisioningStateFailed,
+ PrivateEndpointConnectionProvisioningStateSucceeded,
+ }
+}
+
+// PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
+type PrivateEndpointServiceConnectionStatus string
+
+const (
+ PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
+ PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending"
+ PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
+)
+
+// PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
+func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus {
+ return []PrivateEndpointServiceConnectionStatus{
+ PrivateEndpointServiceConnectionStatusApproved,
+ PrivateEndpointServiceConnectionStatusPending,
+ PrivateEndpointServiceConnectionStatusRejected,
+ }
+}
+
+// ProtocolTypes - Specifies the protocol of WinRM listener.
+// Possible values are:
+// http
+// https
+type ProtocolTypes string
+
+const (
+ ProtocolTypesHTTP ProtocolTypes = "Http"
+ ProtocolTypesHTTPS ProtocolTypes = "Https"
+)
+
+// PossibleProtocolTypesValues returns the possible values for the ProtocolTypes const type.
+func PossibleProtocolTypesValues() []ProtocolTypes {
+ return []ProtocolTypes{
+ ProtocolTypesHTTP,
+ ProtocolTypesHTTPS,
+ }
+}
+
+// ProximityPlacementGroupType - Specifies the type of the proximity placement group.
+// Possible values are:
+// Standard : Co-locate resources within an Azure region or Availability Zone.
+// Ultra : For future use.
+type ProximityPlacementGroupType string
+
+const (
+ ProximityPlacementGroupTypeStandard ProximityPlacementGroupType = "Standard"
+ ProximityPlacementGroupTypeUltra ProximityPlacementGroupType = "Ultra"
+)
+
+// PossibleProximityPlacementGroupTypeValues returns the possible values for the ProximityPlacementGroupType const type.
+func PossibleProximityPlacementGroupTypeValues() []ProximityPlacementGroupType {
+ return []ProximityPlacementGroupType{
+ ProximityPlacementGroupTypeStandard,
+ ProximityPlacementGroupTypeUltra,
+ }
+}
+
+// PublicIPAddressSKUName - Specify public IP sku name
+type PublicIPAddressSKUName string
+
+const (
+ PublicIPAddressSKUNameBasic PublicIPAddressSKUName = "Basic"
+ PublicIPAddressSKUNameStandard PublicIPAddressSKUName = "Standard"
+)
+
+// PossiblePublicIPAddressSKUNameValues returns the possible values for the PublicIPAddressSKUName const type.
+func PossiblePublicIPAddressSKUNameValues() []PublicIPAddressSKUName {
+ return []PublicIPAddressSKUName{
+ PublicIPAddressSKUNameBasic,
+ PublicIPAddressSKUNameStandard,
+ }
+}
+
+// PublicIPAddressSKUTier - Specify public IP sku tier
+type PublicIPAddressSKUTier string
+
+const (
+ PublicIPAddressSKUTierGlobal PublicIPAddressSKUTier = "Global"
+ PublicIPAddressSKUTierRegional PublicIPAddressSKUTier = "Regional"
+)
+
+// PossiblePublicIPAddressSKUTierValues returns the possible values for the PublicIPAddressSKUTier const type.
+func PossiblePublicIPAddressSKUTierValues() []PublicIPAddressSKUTier {
+ return []PublicIPAddressSKUTier{
+ PublicIPAddressSKUTierGlobal,
+ PublicIPAddressSKUTierRegional,
+ }
+}
+
+// PublicIPAllocationMethod - Specify the public IP allocation type
+type PublicIPAllocationMethod string
+
+const (
+ PublicIPAllocationMethodDynamic PublicIPAllocationMethod = "Dynamic"
+ PublicIPAllocationMethodStatic PublicIPAllocationMethod = "Static"
+)
+
+// PossiblePublicIPAllocationMethodValues returns the possible values for the PublicIPAllocationMethod const type.
+func PossiblePublicIPAllocationMethodValues() []PublicIPAllocationMethod {
+ return []PublicIPAllocationMethod{
+ PublicIPAllocationMethodDynamic,
+ PublicIPAllocationMethodStatic,
+ }
+}
+
+// PublicNetworkAccess - Policy for controlling export on the disk.
+type PublicNetworkAccess string
+
+const (
+ // PublicNetworkAccessDisabled - You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy
+ // is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy
+ // is set to AllowPrivate.
+ PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
+ // PublicNetworkAccessEnabled - You can generate a SAS URI to access the underlying data of the disk publicly on the internet
+ // when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET
+ // when NetworkAccessPolicy is set to AllowPrivate.
+ PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
+)
+
+// PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
+func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
+ return []PublicNetworkAccess{
+ PublicNetworkAccessDisabled,
+ PublicNetworkAccessEnabled,
+ }
+}
+
+// RepairAction - Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines
+// in the scale set. Default value is replace.
+type RepairAction string
+
+const (
+ RepairActionReimage RepairAction = "Reimage"
+ RepairActionReplace RepairAction = "Replace"
+ RepairActionRestart RepairAction = "Restart"
+)
+
+// PossibleRepairActionValues returns the possible values for the RepairAction const type.
+func PossibleRepairActionValues() []RepairAction {
+ return []RepairAction{
+ RepairActionReimage,
+ RepairActionReplace,
+ RepairActionRestart,
+ }
+}
+
+// ReplicationMode - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
+type ReplicationMode string
+
+const (
+ ReplicationModeFull ReplicationMode = "Full"
+ ReplicationModeShallow ReplicationMode = "Shallow"
+)
+
+// PossibleReplicationModeValues returns the possible values for the ReplicationMode const type.
+func PossibleReplicationModeValues() []ReplicationMode {
+ return []ReplicationMode{
+ ReplicationModeFull,
+ ReplicationModeShallow,
+ }
+}
+
+// ReplicationState - This is the regional replication state.
+type ReplicationState string
+
+const (
+ ReplicationStateCompleted ReplicationState = "Completed"
+ ReplicationStateFailed ReplicationState = "Failed"
+ ReplicationStateReplicating ReplicationState = "Replicating"
+ ReplicationStateUnknown ReplicationState = "Unknown"
+)
+
+// PossibleReplicationStateValues returns the possible values for the ReplicationState const type.
+func PossibleReplicationStateValues() []ReplicationState {
+ return []ReplicationState{
+ ReplicationStateCompleted,
+ ReplicationStateFailed,
+ ReplicationStateReplicating,
+ ReplicationStateUnknown,
+ }
+}
+
+type ReplicationStatusTypes string
+
+const (
+ ReplicationStatusTypesReplicationStatus ReplicationStatusTypes = "ReplicationStatus"
+)
+
+// PossibleReplicationStatusTypesValues returns the possible values for the ReplicationStatusTypes const type.
+func PossibleReplicationStatusTypesValues() []ReplicationStatusTypes {
+ return []ReplicationStatusTypes{
+ ReplicationStatusTypesReplicationStatus,
+ }
+}
+
+// ResourceIdentityType - The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned'
+// includes both an implicitly created identity and a set of user assigned identities. The type 'None'
+// will remove any identities from the virtual machine scale set.
+type ResourceIdentityType string
+
+const (
+ ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
+ ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
+ ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
+ ResourceIdentityTypeNone ResourceIdentityType = "None"
+)
+
+// PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
+func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
+ return []ResourceIdentityType{
+ ResourceIdentityTypeSystemAssigned,
+ ResourceIdentityTypeUserAssigned,
+ ResourceIdentityTypeSystemAssignedUserAssigned,
+ ResourceIdentityTypeNone,
+ }
+}
+
+// ResourceSKUCapacityScaleType - The scale type applicable to the sku.
+type ResourceSKUCapacityScaleType string
+
+const (
+ ResourceSKUCapacityScaleTypeAutomatic ResourceSKUCapacityScaleType = "Automatic"
+ ResourceSKUCapacityScaleTypeManual ResourceSKUCapacityScaleType = "Manual"
+ ResourceSKUCapacityScaleTypeNone ResourceSKUCapacityScaleType = "None"
+)
+
+// PossibleResourceSKUCapacityScaleTypeValues returns the possible values for the ResourceSKUCapacityScaleType const type.
+func PossibleResourceSKUCapacityScaleTypeValues() []ResourceSKUCapacityScaleType {
+ return []ResourceSKUCapacityScaleType{
+ ResourceSKUCapacityScaleTypeAutomatic,
+ ResourceSKUCapacityScaleTypeManual,
+ ResourceSKUCapacityScaleTypeNone,
+ }
+}
+
+// ResourceSKURestrictionsReasonCode - The reason for restriction.
+type ResourceSKURestrictionsReasonCode string
+
+const (
+ ResourceSKURestrictionsReasonCodeQuotaID ResourceSKURestrictionsReasonCode = "QuotaId"
+ ResourceSKURestrictionsReasonCodeNotAvailableForSubscription ResourceSKURestrictionsReasonCode = "NotAvailableForSubscription"
+)
+
+// PossibleResourceSKURestrictionsReasonCodeValues returns the possible values for the ResourceSKURestrictionsReasonCode const type.
+func PossibleResourceSKURestrictionsReasonCodeValues() []ResourceSKURestrictionsReasonCode {
+ return []ResourceSKURestrictionsReasonCode{
+ ResourceSKURestrictionsReasonCodeQuotaID,
+ ResourceSKURestrictionsReasonCodeNotAvailableForSubscription,
+ }
+}
+
+// ResourceSKURestrictionsType - The type of restrictions.
+type ResourceSKURestrictionsType string
+
+const (
+ ResourceSKURestrictionsTypeLocation ResourceSKURestrictionsType = "Location"
+ ResourceSKURestrictionsTypeZone ResourceSKURestrictionsType = "Zone"
+)
+
+// PossibleResourceSKURestrictionsTypeValues returns the possible values for the ResourceSKURestrictionsType const type.
+func PossibleResourceSKURestrictionsTypeValues() []ResourceSKURestrictionsType {
+ return []ResourceSKURestrictionsType{
+ ResourceSKURestrictionsTypeLocation,
+ ResourceSKURestrictionsTypeZone,
+ }
+}
+
+type RestorePointCollectionExpandOptions string
+
+const (
+ RestorePointCollectionExpandOptionsRestorePoints RestorePointCollectionExpandOptions = "restorePoints"
+)
+
+// PossibleRestorePointCollectionExpandOptionsValues returns the possible values for the RestorePointCollectionExpandOptions const type.
+func PossibleRestorePointCollectionExpandOptionsValues() []RestorePointCollectionExpandOptions {
+ return []RestorePointCollectionExpandOptions{
+ RestorePointCollectionExpandOptionsRestorePoints,
+ }
+}
+
+type RestorePointExpandOptions string
+
+const (
+ RestorePointExpandOptionsInstanceView RestorePointExpandOptions = "instanceView"
+)
+
+// PossibleRestorePointExpandOptionsValues returns the possible values for the RestorePointExpandOptions const type.
+func PossibleRestorePointExpandOptionsValues() []RestorePointExpandOptions {
+ return []RestorePointExpandOptions{
+ RestorePointExpandOptionsInstanceView,
+ }
+}
+
+// RollingUpgradeActionType - The last action performed on the rolling upgrade.
+type RollingUpgradeActionType string
+
+const (
+ RollingUpgradeActionTypeStart RollingUpgradeActionType = "Start"
+ RollingUpgradeActionTypeCancel RollingUpgradeActionType = "Cancel"
+)
+
+// PossibleRollingUpgradeActionTypeValues returns the possible values for the RollingUpgradeActionType const type.
+func PossibleRollingUpgradeActionTypeValues() []RollingUpgradeActionType {
+ return []RollingUpgradeActionType{
+ RollingUpgradeActionTypeStart,
+ RollingUpgradeActionTypeCancel,
+ }
+}
+
+// RollingUpgradeStatusCode - Code indicating the current status of the upgrade.
+type RollingUpgradeStatusCode string
+
+const (
+ RollingUpgradeStatusCodeRollingForward RollingUpgradeStatusCode = "RollingForward"
+ RollingUpgradeStatusCodeCancelled RollingUpgradeStatusCode = "Cancelled"
+ RollingUpgradeStatusCodeCompleted RollingUpgradeStatusCode = "Completed"
+ RollingUpgradeStatusCodeFaulted RollingUpgradeStatusCode = "Faulted"
+)
+
+// PossibleRollingUpgradeStatusCodeValues returns the possible values for the RollingUpgradeStatusCode const type.
+func PossibleRollingUpgradeStatusCodeValues() []RollingUpgradeStatusCode {
+ return []RollingUpgradeStatusCode{
+ RollingUpgradeStatusCodeRollingForward,
+ RollingUpgradeStatusCodeCancelled,
+ RollingUpgradeStatusCodeCompleted,
+ RollingUpgradeStatusCodeFaulted,
+ }
+}
+
+// SecurityEncryptionTypes - Specifies the EncryptionType of the managed disk.
+// It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly
+// for encryption of just the VMGuestState blob.
+// NOTE: It can be set for only Confidential VMs.
+type SecurityEncryptionTypes string
+
+const (
+ SecurityEncryptionTypesDiskWithVMGuestState SecurityEncryptionTypes = "DiskWithVMGuestState"
+ SecurityEncryptionTypesVMGuestStateOnly SecurityEncryptionTypes = "VMGuestStateOnly"
+)
+
+// PossibleSecurityEncryptionTypesValues returns the possible values for the SecurityEncryptionTypes const type.
+func PossibleSecurityEncryptionTypesValues() []SecurityEncryptionTypes {
+ return []SecurityEncryptionTypes{
+ SecurityEncryptionTypesDiskWithVMGuestState,
+ SecurityEncryptionTypesVMGuestStateOnly,
+ }
+}
+
+// SecurityTypes - Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.
+// Default: UefiSettings will not be enabled unless this property is set.
+type SecurityTypes string
+
+const (
+ SecurityTypesConfidentialVM SecurityTypes = "ConfidentialVM"
+ SecurityTypesTrustedLaunch SecurityTypes = "TrustedLaunch"
+)
+
+// PossibleSecurityTypesValues returns the possible values for the SecurityTypes const type.
+func PossibleSecurityTypesValues() []SecurityTypes {
+ return []SecurityTypes{
+ SecurityTypesConfidentialVM,
+ SecurityTypesTrustedLaunch,
+ }
+}
+
+type SelectPermissions string
+
+const (
+ SelectPermissionsPermissions SelectPermissions = "Permissions"
+)
+
+// PossibleSelectPermissionsValues returns the possible values for the SelectPermissions const type.
+func PossibleSelectPermissionsValues() []SelectPermissions {
+ return []SelectPermissions{
+ SelectPermissionsPermissions,
+ }
+}
+
+// SettingNames - Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands
+// and AutoLogon.
+type SettingNames string
+
+const (
+ SettingNamesAutoLogon SettingNames = "AutoLogon"
+ SettingNamesFirstLogonCommands SettingNames = "FirstLogonCommands"
+)
+
+// PossibleSettingNamesValues returns the possible values for the SettingNames const type.
+func PossibleSettingNamesValues() []SettingNames {
+ return []SettingNames{
+ SettingNamesAutoLogon,
+ SettingNamesFirstLogonCommands,
+ }
+}
+
+type SharedToValues string
+
+const (
+ SharedToValuesTenant SharedToValues = "tenant"
+)
+
+// PossibleSharedToValuesValues returns the possible values for the SharedToValues const type.
+func PossibleSharedToValuesValues() []SharedToValues {
+ return []SharedToValues{
+ SharedToValuesTenant,
+ }
+}
+
+// SharingProfileGroupTypes - This property allows you to specify the type of sharing group.
+// Possible values are:
+// Subscriptions
+// AADTenants
+// Community
+type SharingProfileGroupTypes string
+
+const (
+ SharingProfileGroupTypesAADTenants SharingProfileGroupTypes = "AADTenants"
+ SharingProfileGroupTypesCommunity SharingProfileGroupTypes = "Community"
+ SharingProfileGroupTypesSubscriptions SharingProfileGroupTypes = "Subscriptions"
+)
+
+// PossibleSharingProfileGroupTypesValues returns the possible values for the SharingProfileGroupTypes const type.
+func PossibleSharingProfileGroupTypesValues() []SharingProfileGroupTypes {
+ return []SharingProfileGroupTypes{
+ SharingProfileGroupTypesAADTenants,
+ SharingProfileGroupTypesCommunity,
+ SharingProfileGroupTypesSubscriptions,
+ }
+}
+
+// SharingState - The sharing state of the gallery, which only appears in the response.
+type SharingState string
+
+const (
+ SharingStateFailed SharingState = "Failed"
+ SharingStateInProgress SharingState = "InProgress"
+ SharingStateSucceeded SharingState = "Succeeded"
+ SharingStateUnknown SharingState = "Unknown"
+)
+
+// PossibleSharingStateValues returns the possible values for the SharingState const type.
+func PossibleSharingStateValues() []SharingState {
+ return []SharingState{
+ SharingStateFailed,
+ SharingStateInProgress,
+ SharingStateSucceeded,
+ SharingStateUnknown,
+ }
+}
+
+// SharingUpdateOperationTypes - This property allows you to specify the operation type of gallery sharing update.
+// Possible values are:
+// Add
+// Remove
+// Reset
+type SharingUpdateOperationTypes string
+
+const (
+ SharingUpdateOperationTypesAdd SharingUpdateOperationTypes = "Add"
+ SharingUpdateOperationTypesEnableCommunity SharingUpdateOperationTypes = "EnableCommunity"
+ SharingUpdateOperationTypesRemove SharingUpdateOperationTypes = "Remove"
+ SharingUpdateOperationTypesReset SharingUpdateOperationTypes = "Reset"
+)
+
+// PossibleSharingUpdateOperationTypesValues returns the possible values for the SharingUpdateOperationTypes const type.
+func PossibleSharingUpdateOperationTypesValues() []SharingUpdateOperationTypes {
+ return []SharingUpdateOperationTypes{
+ SharingUpdateOperationTypesAdd,
+ SharingUpdateOperationTypesEnableCommunity,
+ SharingUpdateOperationTypesRemove,
+ SharingUpdateOperationTypesReset,
+ }
+}
+
+// SnapshotStorageAccountTypes - The sku name.
+type SnapshotStorageAccountTypes string
+
+const (
+ // SnapshotStorageAccountTypesPremiumLRS - Premium SSD locally redundant storage
+ SnapshotStorageAccountTypesPremiumLRS SnapshotStorageAccountTypes = "Premium_LRS"
+ // SnapshotStorageAccountTypesStandardLRS - Standard HDD locally redundant storage
+ SnapshotStorageAccountTypesStandardLRS SnapshotStorageAccountTypes = "Standard_LRS"
+ // SnapshotStorageAccountTypesStandardZRS - Standard zone redundant storage
+ SnapshotStorageAccountTypesStandardZRS SnapshotStorageAccountTypes = "Standard_ZRS"
+)
+
+// PossibleSnapshotStorageAccountTypesValues returns the possible values for the SnapshotStorageAccountTypes const type.
+func PossibleSnapshotStorageAccountTypesValues() []SnapshotStorageAccountTypes {
+ return []SnapshotStorageAccountTypes{
+ SnapshotStorageAccountTypesPremiumLRS,
+ SnapshotStorageAccountTypesStandardLRS,
+ SnapshotStorageAccountTypesStandardZRS,
+ }
+}
+
+// StatusLevelTypes - The level code.
+type StatusLevelTypes string
+
+const (
+ StatusLevelTypesInfo StatusLevelTypes = "Info"
+ StatusLevelTypesWarning StatusLevelTypes = "Warning"
+ StatusLevelTypesError StatusLevelTypes = "Error"
+)
+
+// PossibleStatusLevelTypesValues returns the possible values for the StatusLevelTypes const type.
+func PossibleStatusLevelTypesValues() []StatusLevelTypes {
+ return []StatusLevelTypes{
+ StatusLevelTypesInfo,
+ StatusLevelTypesWarning,
+ StatusLevelTypesError,
+ }
+}
+
+// StorageAccountType - Specifies the storage account type to be used to store the image. This property is not updatable.
+type StorageAccountType string
+
+const (
+ StorageAccountTypePremiumLRS StorageAccountType = "Premium_LRS"
+ StorageAccountTypeStandardLRS StorageAccountType = "Standard_LRS"
+ StorageAccountTypeStandardZRS StorageAccountType = "Standard_ZRS"
+)
+
+// PossibleStorageAccountTypeValues returns the possible values for the StorageAccountType const type.
+func PossibleStorageAccountTypeValues() []StorageAccountType {
+ return []StorageAccountType{
+ StorageAccountTypePremiumLRS,
+ StorageAccountTypeStandardLRS,
+ StorageAccountTypeStandardZRS,
+ }
+}
+
+// StorageAccountTypes - Specifies the storage account type for the managed disk. Managed OS disk storage account type can
+// only be set when you create the scale set. NOTE: UltraSSDLRS can only be used with data disks. It
+// cannot be used with OS Disk. StandardLRS uses Standard HDD. StandardSSDLRS uses Standard SSD. PremiumLRS uses Premium SSD.
+// UltraSSDLRS uses Ultra disk. PremiumZRS uses Premium SSD zone redundant
+// storage. StandardSSD_ZRS uses Standard SSD zone redundant storage. For more information regarding disks supported for Windows
+// Virtual Machines, refer to
+// https://docs.microsoft.com/azure/virtual-machines/windows/disks-types and, for Linux Virtual Machines, refer to https://docs.microsoft.com/azure/virtual-machines/linux/disks-types
+type StorageAccountTypes string
+
+const (
+ StorageAccountTypesPremiumLRS StorageAccountTypes = "Premium_LRS"
+ StorageAccountTypesPremiumV2LRS StorageAccountTypes = "PremiumV2_LRS"
+ StorageAccountTypesPremiumZRS StorageAccountTypes = "Premium_ZRS"
+ StorageAccountTypesStandardLRS StorageAccountTypes = "Standard_LRS"
+ StorageAccountTypesStandardSSDLRS StorageAccountTypes = "StandardSSD_LRS"
+ StorageAccountTypesStandardSSDZRS StorageAccountTypes = "StandardSSD_ZRS"
+ StorageAccountTypesUltraSSDLRS StorageAccountTypes = "UltraSSD_LRS"
+)
+
+// PossibleStorageAccountTypesValues returns the possible values for the StorageAccountTypes const type.
+func PossibleStorageAccountTypesValues() []StorageAccountTypes {
+ return []StorageAccountTypes{
+ StorageAccountTypesPremiumLRS,
+ StorageAccountTypesPremiumV2LRS,
+ StorageAccountTypesPremiumZRS,
+ StorageAccountTypesStandardLRS,
+ StorageAccountTypesStandardSSDLRS,
+ StorageAccountTypesStandardSSDZRS,
+ StorageAccountTypesUltraSSDLRS,
+ }
+}
+
+// UpgradeMode - Specifies the mode of an upgrade to virtual machines in the scale set.
+// Possible values are:
+// Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade
+// action.
+// Automatic - All virtual machines in the scale set are automatically updated at the same time.
+type UpgradeMode string
+
+const (
+ UpgradeModeAutomatic UpgradeMode = "Automatic"
+ UpgradeModeManual UpgradeMode = "Manual"
+ UpgradeModeRolling UpgradeMode = "Rolling"
+)
+
+// PossibleUpgradeModeValues returns the possible values for the UpgradeMode const type.
+func PossibleUpgradeModeValues() []UpgradeMode {
+ return []UpgradeMode{
+ UpgradeModeAutomatic,
+ UpgradeModeManual,
+ UpgradeModeRolling,
+ }
+}
+
+// UpgradeOperationInvoker - Invoker of the Upgrade Operation
+type UpgradeOperationInvoker string
+
+const (
+ UpgradeOperationInvokerUnknown UpgradeOperationInvoker = "Unknown"
+ UpgradeOperationInvokerUser UpgradeOperationInvoker = "User"
+ UpgradeOperationInvokerPlatform UpgradeOperationInvoker = "Platform"
+)
+
+// PossibleUpgradeOperationInvokerValues returns the possible values for the UpgradeOperationInvoker const type.
+func PossibleUpgradeOperationInvokerValues() []UpgradeOperationInvoker {
+ return []UpgradeOperationInvoker{
+ UpgradeOperationInvokerUnknown,
+ UpgradeOperationInvokerUser,
+ UpgradeOperationInvokerPlatform,
+ }
+}
+
+// UpgradeState - Code indicating the current status of the upgrade.
+type UpgradeState string
+
+const (
+ UpgradeStateRollingForward UpgradeState = "RollingForward"
+ UpgradeStateCancelled UpgradeState = "Cancelled"
+ UpgradeStateCompleted UpgradeState = "Completed"
+ UpgradeStateFaulted UpgradeState = "Faulted"
+)
+
+// PossibleUpgradeStateValues returns the possible values for the UpgradeState const type.
+func PossibleUpgradeStateValues() []UpgradeState {
+ return []UpgradeState{
+ UpgradeStateRollingForward,
+ UpgradeStateCancelled,
+ UpgradeStateCompleted,
+ UpgradeStateFaulted,
+ }
+}
+
+// VMDiskTypes - VM disk types which are disallowed.
+type VMDiskTypes string
+
+const (
+ VMDiskTypesNone VMDiskTypes = "None"
+ VMDiskTypesUnmanaged VMDiskTypes = "Unmanaged"
+)
+
+// PossibleVMDiskTypesValues returns the possible values for the VMDiskTypes const type.
+func PossibleVMDiskTypesValues() []VMDiskTypes {
+ return []VMDiskTypes{
+ VMDiskTypesNone,
+ VMDiskTypesUnmanaged,
+ }
+}
+
+type VMGuestPatchClassificationLinux string
+
+const (
+ VMGuestPatchClassificationLinuxCritical VMGuestPatchClassificationLinux = "Critical"
+ VMGuestPatchClassificationLinuxOther VMGuestPatchClassificationLinux = "Other"
+ VMGuestPatchClassificationLinuxSecurity VMGuestPatchClassificationLinux = "Security"
+)
+
+// PossibleVMGuestPatchClassificationLinuxValues returns the possible values for the VMGuestPatchClassificationLinux const type.
+func PossibleVMGuestPatchClassificationLinuxValues() []VMGuestPatchClassificationLinux {
+ return []VMGuestPatchClassificationLinux{
+ VMGuestPatchClassificationLinuxCritical,
+ VMGuestPatchClassificationLinuxOther,
+ VMGuestPatchClassificationLinuxSecurity,
+ }
+}
+
+type VMGuestPatchClassificationWindows string
+
+const (
+ VMGuestPatchClassificationWindowsCritical VMGuestPatchClassificationWindows = "Critical"
+ VMGuestPatchClassificationWindowsDefinition VMGuestPatchClassificationWindows = "Definition"
+ VMGuestPatchClassificationWindowsFeaturePack VMGuestPatchClassificationWindows = "FeaturePack"
+ VMGuestPatchClassificationWindowsSecurity VMGuestPatchClassificationWindows = "Security"
+ VMGuestPatchClassificationWindowsServicePack VMGuestPatchClassificationWindows = "ServicePack"
+ VMGuestPatchClassificationWindowsTools VMGuestPatchClassificationWindows = "Tools"
+ VMGuestPatchClassificationWindowsUpdateRollUp VMGuestPatchClassificationWindows = "UpdateRollUp"
+ VMGuestPatchClassificationWindowsUpdates VMGuestPatchClassificationWindows = "Updates"
+)
+
+// PossibleVMGuestPatchClassificationWindowsValues returns the possible values for the VMGuestPatchClassificationWindows const type.
+func PossibleVMGuestPatchClassificationWindowsValues() []VMGuestPatchClassificationWindows {
+ return []VMGuestPatchClassificationWindows{
+ VMGuestPatchClassificationWindowsCritical,
+ VMGuestPatchClassificationWindowsDefinition,
+ VMGuestPatchClassificationWindowsFeaturePack,
+ VMGuestPatchClassificationWindowsSecurity,
+ VMGuestPatchClassificationWindowsServicePack,
+ VMGuestPatchClassificationWindowsTools,
+ VMGuestPatchClassificationWindowsUpdateRollUp,
+ VMGuestPatchClassificationWindowsUpdates,
+ }
+}
+
+// VMGuestPatchRebootBehavior - Describes the reboot requirements of the patch.
+type VMGuestPatchRebootBehavior string
+
+const (
+ VMGuestPatchRebootBehaviorAlwaysRequiresReboot VMGuestPatchRebootBehavior = "AlwaysRequiresReboot"
+ VMGuestPatchRebootBehaviorCanRequestReboot VMGuestPatchRebootBehavior = "CanRequestReboot"
+ VMGuestPatchRebootBehaviorNeverReboots VMGuestPatchRebootBehavior = "NeverReboots"
+ VMGuestPatchRebootBehaviorUnknown VMGuestPatchRebootBehavior = "Unknown"
+)
+
+// PossibleVMGuestPatchRebootBehaviorValues returns the possible values for the VMGuestPatchRebootBehavior const type.
+func PossibleVMGuestPatchRebootBehaviorValues() []VMGuestPatchRebootBehavior {
+ return []VMGuestPatchRebootBehavior{
+ VMGuestPatchRebootBehaviorAlwaysRequiresReboot,
+ VMGuestPatchRebootBehaviorCanRequestReboot,
+ VMGuestPatchRebootBehaviorNeverReboots,
+ VMGuestPatchRebootBehaviorUnknown,
+ }
+}
+
+// VMGuestPatchRebootSetting - Defines when it is acceptable to reboot a VM during a software update operation.
+type VMGuestPatchRebootSetting string
+
+const (
+ VMGuestPatchRebootSettingAlways VMGuestPatchRebootSetting = "Always"
+ VMGuestPatchRebootSettingIfRequired VMGuestPatchRebootSetting = "IfRequired"
+ VMGuestPatchRebootSettingNever VMGuestPatchRebootSetting = "Never"
+)
+
+// PossibleVMGuestPatchRebootSettingValues returns the possible values for the VMGuestPatchRebootSetting const type.
+func PossibleVMGuestPatchRebootSettingValues() []VMGuestPatchRebootSetting {
+ return []VMGuestPatchRebootSetting{
+ VMGuestPatchRebootSettingAlways,
+ VMGuestPatchRebootSettingIfRequired,
+ VMGuestPatchRebootSettingNever,
+ }
+}
+
+// VMGuestPatchRebootStatus - The reboot state of the VM following completion of the operation.
+type VMGuestPatchRebootStatus string
+
+const (
+ VMGuestPatchRebootStatusCompleted VMGuestPatchRebootStatus = "Completed"
+ VMGuestPatchRebootStatusFailed VMGuestPatchRebootStatus = "Failed"
+ VMGuestPatchRebootStatusNotNeeded VMGuestPatchRebootStatus = "NotNeeded"
+ VMGuestPatchRebootStatusRequired VMGuestPatchRebootStatus = "Required"
+ VMGuestPatchRebootStatusStarted VMGuestPatchRebootStatus = "Started"
+ VMGuestPatchRebootStatusUnknown VMGuestPatchRebootStatus = "Unknown"
+)
+
+// PossibleVMGuestPatchRebootStatusValues returns the possible values for the VMGuestPatchRebootStatus const type.
+func PossibleVMGuestPatchRebootStatusValues() []VMGuestPatchRebootStatus {
+ return []VMGuestPatchRebootStatus{
+ VMGuestPatchRebootStatusCompleted,
+ VMGuestPatchRebootStatusFailed,
+ VMGuestPatchRebootStatusNotNeeded,
+ VMGuestPatchRebootStatusRequired,
+ VMGuestPatchRebootStatusStarted,
+ VMGuestPatchRebootStatusUnknown,
+ }
+}
+
+// VirtualMachineEvictionPolicyTypes - Specifies the eviction policy for the Azure Spot VM/VMSS
+type VirtualMachineEvictionPolicyTypes string
+
+const (
+ VirtualMachineEvictionPolicyTypesDeallocate VirtualMachineEvictionPolicyTypes = "Deallocate"
+ VirtualMachineEvictionPolicyTypesDelete VirtualMachineEvictionPolicyTypes = "Delete"
+)
+
+// PossibleVirtualMachineEvictionPolicyTypesValues returns the possible values for the VirtualMachineEvictionPolicyTypes const type.
+func PossibleVirtualMachineEvictionPolicyTypesValues() []VirtualMachineEvictionPolicyTypes {
+ return []VirtualMachineEvictionPolicyTypes{
+ VirtualMachineEvictionPolicyTypesDeallocate,
+ VirtualMachineEvictionPolicyTypesDelete,
+ }
+}
+
+// VirtualMachinePriorityTypes - Specifies the priority for a standalone virtual machine or the virtual machines in the scale
+// set.
+// 'Low' enum will be deprecated in the future, please use 'Spot' as the enum to deploy Azure Spot VM/VMSS.
+type VirtualMachinePriorityTypes string
+
+const (
+ VirtualMachinePriorityTypesLow VirtualMachinePriorityTypes = "Low"
+ VirtualMachinePriorityTypesRegular VirtualMachinePriorityTypes = "Regular"
+ VirtualMachinePriorityTypesSpot VirtualMachinePriorityTypes = "Spot"
+)
+
+// PossibleVirtualMachinePriorityTypesValues returns the possible values for the VirtualMachinePriorityTypes const type.
+func PossibleVirtualMachinePriorityTypesValues() []VirtualMachinePriorityTypes {
+ return []VirtualMachinePriorityTypes{
+ VirtualMachinePriorityTypesLow,
+ VirtualMachinePriorityTypesRegular,
+ VirtualMachinePriorityTypesSpot,
+ }
+}
+
+// VirtualMachineScaleSetSKUScaleType - The scale type applicable to the sku.
+type VirtualMachineScaleSetSKUScaleType string
+
+const (
+ VirtualMachineScaleSetSKUScaleTypeAutomatic VirtualMachineScaleSetSKUScaleType = "Automatic"
+ VirtualMachineScaleSetSKUScaleTypeNone VirtualMachineScaleSetSKUScaleType = "None"
+)
+
+// PossibleVirtualMachineScaleSetSKUScaleTypeValues returns the possible values for the VirtualMachineScaleSetSKUScaleType const type.
+func PossibleVirtualMachineScaleSetSKUScaleTypeValues() []VirtualMachineScaleSetSKUScaleType {
+ return []VirtualMachineScaleSetSKUScaleType{
+ VirtualMachineScaleSetSKUScaleTypeAutomatic,
+ VirtualMachineScaleSetSKUScaleTypeNone,
+ }
+}
+
+type VirtualMachineScaleSetScaleInRules string
+
+const (
+ VirtualMachineScaleSetScaleInRulesDefault VirtualMachineScaleSetScaleInRules = "Default"
+ VirtualMachineScaleSetScaleInRulesNewestVM VirtualMachineScaleSetScaleInRules = "NewestVM"
+ VirtualMachineScaleSetScaleInRulesOldestVM VirtualMachineScaleSetScaleInRules = "OldestVM"
+)
+
+// PossibleVirtualMachineScaleSetScaleInRulesValues returns the possible values for the VirtualMachineScaleSetScaleInRules const type.
+func PossibleVirtualMachineScaleSetScaleInRulesValues() []VirtualMachineScaleSetScaleInRules {
+ return []VirtualMachineScaleSetScaleInRules{
+ VirtualMachineScaleSetScaleInRulesDefault,
+ VirtualMachineScaleSetScaleInRulesNewestVM,
+ VirtualMachineScaleSetScaleInRulesOldestVM,
+ }
+}
+
+// VirtualMachineSizeTypes - Specifies the size of the virtual machine.
+// The enum data type is currently deprecated and will be removed by December 23rd 2023.
+// Recommended way to get the list of available sizes is using these APIs:
+// List all available virtual machine sizes in an availability set [https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes]
+// List all available virtual machine sizes in a region [https://docs.microsoft.com/rest/api/compute/resourceskus/list]
+// List all available virtual machine sizes for resizing [https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes].
+// For more information about virtual machine sizes, see Sizes for
+// virtual machines [https://docs.microsoft.com/azure/virtual-machines/sizes].
+// The available VM sizes depend on region and availability set.
+type VirtualMachineSizeTypes string
+
+const (
+ VirtualMachineSizeTypesBasicA0 VirtualMachineSizeTypes = "Basic_A0"
+ VirtualMachineSizeTypesBasicA1 VirtualMachineSizeTypes = "Basic_A1"
+ VirtualMachineSizeTypesBasicA2 VirtualMachineSizeTypes = "Basic_A2"
+ VirtualMachineSizeTypesBasicA3 VirtualMachineSizeTypes = "Basic_A3"
+ VirtualMachineSizeTypesBasicA4 VirtualMachineSizeTypes = "Basic_A4"
+ VirtualMachineSizeTypesStandardA0 VirtualMachineSizeTypes = "Standard_A0"
+ VirtualMachineSizeTypesStandardA1 VirtualMachineSizeTypes = "Standard_A1"
+ VirtualMachineSizeTypesStandardA10 VirtualMachineSizeTypes = "Standard_A10"
+ VirtualMachineSizeTypesStandardA11 VirtualMachineSizeTypes = "Standard_A11"
+ VirtualMachineSizeTypesStandardA1V2 VirtualMachineSizeTypes = "Standard_A1_v2"
+ VirtualMachineSizeTypesStandardA2 VirtualMachineSizeTypes = "Standard_A2"
+ VirtualMachineSizeTypesStandardA2MV2 VirtualMachineSizeTypes = "Standard_A2m_v2"
+ VirtualMachineSizeTypesStandardA2V2 VirtualMachineSizeTypes = "Standard_A2_v2"
+ VirtualMachineSizeTypesStandardA3 VirtualMachineSizeTypes = "Standard_A3"
+ VirtualMachineSizeTypesStandardA4 VirtualMachineSizeTypes = "Standard_A4"
+ VirtualMachineSizeTypesStandardA4MV2 VirtualMachineSizeTypes = "Standard_A4m_v2"
+ VirtualMachineSizeTypesStandardA4V2 VirtualMachineSizeTypes = "Standard_A4_v2"
+ VirtualMachineSizeTypesStandardA5 VirtualMachineSizeTypes = "Standard_A5"
+ VirtualMachineSizeTypesStandardA6 VirtualMachineSizeTypes = "Standard_A6"
+ VirtualMachineSizeTypesStandardA7 VirtualMachineSizeTypes = "Standard_A7"
+ VirtualMachineSizeTypesStandardA8 VirtualMachineSizeTypes = "Standard_A8"
+ VirtualMachineSizeTypesStandardA8MV2 VirtualMachineSizeTypes = "Standard_A8m_v2"
+ VirtualMachineSizeTypesStandardA8V2 VirtualMachineSizeTypes = "Standard_A8_v2"
+ VirtualMachineSizeTypesStandardA9 VirtualMachineSizeTypes = "Standard_A9"
+ VirtualMachineSizeTypesStandardB1Ms VirtualMachineSizeTypes = "Standard_B1ms"
+ VirtualMachineSizeTypesStandardB1S VirtualMachineSizeTypes = "Standard_B1s"
+ VirtualMachineSizeTypesStandardB2Ms VirtualMachineSizeTypes = "Standard_B2ms"
+ VirtualMachineSizeTypesStandardB2S VirtualMachineSizeTypes = "Standard_B2s"
+ VirtualMachineSizeTypesStandardB4Ms VirtualMachineSizeTypes = "Standard_B4ms"
+ VirtualMachineSizeTypesStandardB8Ms VirtualMachineSizeTypes = "Standard_B8ms"
+ VirtualMachineSizeTypesStandardD1 VirtualMachineSizeTypes = "Standard_D1"
+ VirtualMachineSizeTypesStandardD11 VirtualMachineSizeTypes = "Standard_D11"
+ VirtualMachineSizeTypesStandardD11V2 VirtualMachineSizeTypes = "Standard_D11_v2"
+ VirtualMachineSizeTypesStandardD12 VirtualMachineSizeTypes = "Standard_D12"
+ VirtualMachineSizeTypesStandardD12V2 VirtualMachineSizeTypes = "Standard_D12_v2"
+ VirtualMachineSizeTypesStandardD13 VirtualMachineSizeTypes = "Standard_D13"
+ VirtualMachineSizeTypesStandardD13V2 VirtualMachineSizeTypes = "Standard_D13_v2"
+ VirtualMachineSizeTypesStandardD14 VirtualMachineSizeTypes = "Standard_D14"
+ VirtualMachineSizeTypesStandardD14V2 VirtualMachineSizeTypes = "Standard_D14_v2"
+ VirtualMachineSizeTypesStandardD15V2 VirtualMachineSizeTypes = "Standard_D15_v2"
+ VirtualMachineSizeTypesStandardD16SV3 VirtualMachineSizeTypes = "Standard_D16s_v3"
+ VirtualMachineSizeTypesStandardD16V3 VirtualMachineSizeTypes = "Standard_D16_v3"
+ VirtualMachineSizeTypesStandardD1V2 VirtualMachineSizeTypes = "Standard_D1_v2"
+ VirtualMachineSizeTypesStandardD2 VirtualMachineSizeTypes = "Standard_D2"
+ VirtualMachineSizeTypesStandardD2SV3 VirtualMachineSizeTypes = "Standard_D2s_v3"
+ VirtualMachineSizeTypesStandardD2V2 VirtualMachineSizeTypes = "Standard_D2_v2"
+ VirtualMachineSizeTypesStandardD2V3 VirtualMachineSizeTypes = "Standard_D2_v3"
+ VirtualMachineSizeTypesStandardD3 VirtualMachineSizeTypes = "Standard_D3"
+ VirtualMachineSizeTypesStandardD32SV3 VirtualMachineSizeTypes = "Standard_D32s_v3"
+ VirtualMachineSizeTypesStandardD32V3 VirtualMachineSizeTypes = "Standard_D32_v3"
+ VirtualMachineSizeTypesStandardD3V2 VirtualMachineSizeTypes = "Standard_D3_v2"
+ VirtualMachineSizeTypesStandardD4 VirtualMachineSizeTypes = "Standard_D4"
+ VirtualMachineSizeTypesStandardD4SV3 VirtualMachineSizeTypes = "Standard_D4s_v3"
+ VirtualMachineSizeTypesStandardD4V2 VirtualMachineSizeTypes = "Standard_D4_v2"
+ VirtualMachineSizeTypesStandardD4V3 VirtualMachineSizeTypes = "Standard_D4_v3"
+ VirtualMachineSizeTypesStandardD5V2 VirtualMachineSizeTypes = "Standard_D5_v2"
+ VirtualMachineSizeTypesStandardD64SV3 VirtualMachineSizeTypes = "Standard_D64s_v3"
+ VirtualMachineSizeTypesStandardD64V3 VirtualMachineSizeTypes = "Standard_D64_v3"
+ VirtualMachineSizeTypesStandardD8SV3 VirtualMachineSizeTypes = "Standard_D8s_v3"
+ VirtualMachineSizeTypesStandardD8V3 VirtualMachineSizeTypes = "Standard_D8_v3"
+ VirtualMachineSizeTypesStandardDS1 VirtualMachineSizeTypes = "Standard_DS1"
+ VirtualMachineSizeTypesStandardDS11 VirtualMachineSizeTypes = "Standard_DS11"
+ VirtualMachineSizeTypesStandardDS11V2 VirtualMachineSizeTypes = "Standard_DS11_v2"
+ VirtualMachineSizeTypesStandardDS12 VirtualMachineSizeTypes = "Standard_DS12"
+ VirtualMachineSizeTypesStandardDS12V2 VirtualMachineSizeTypes = "Standard_DS12_v2"
+ VirtualMachineSizeTypesStandardDS13 VirtualMachineSizeTypes = "Standard_DS13"
+ VirtualMachineSizeTypesStandardDS132V2 VirtualMachineSizeTypes = "Standard_DS13-2_v2"
+ VirtualMachineSizeTypesStandardDS134V2 VirtualMachineSizeTypes = "Standard_DS13-4_v2"
+ VirtualMachineSizeTypesStandardDS13V2 VirtualMachineSizeTypes = "Standard_DS13_v2"
+ VirtualMachineSizeTypesStandardDS14 VirtualMachineSizeTypes = "Standard_DS14"
+ VirtualMachineSizeTypesStandardDS144V2 VirtualMachineSizeTypes = "Standard_DS14-4_v2"
+ VirtualMachineSizeTypesStandardDS148V2 VirtualMachineSizeTypes = "Standard_DS14-8_v2"
+ VirtualMachineSizeTypesStandardDS14V2 VirtualMachineSizeTypes = "Standard_DS14_v2"
+ VirtualMachineSizeTypesStandardDS15V2 VirtualMachineSizeTypes = "Standard_DS15_v2"
+ VirtualMachineSizeTypesStandardDS1V2 VirtualMachineSizeTypes = "Standard_DS1_v2"
+ VirtualMachineSizeTypesStandardDS2 VirtualMachineSizeTypes = "Standard_DS2"
+ VirtualMachineSizeTypesStandardDS2V2 VirtualMachineSizeTypes = "Standard_DS2_v2"
+ VirtualMachineSizeTypesStandardDS3 VirtualMachineSizeTypes = "Standard_DS3"
+ VirtualMachineSizeTypesStandardDS3V2 VirtualMachineSizeTypes = "Standard_DS3_v2"
+ VirtualMachineSizeTypesStandardDS4 VirtualMachineSizeTypes = "Standard_DS4"
+ VirtualMachineSizeTypesStandardDS4V2 VirtualMachineSizeTypes = "Standard_DS4_v2"
+ VirtualMachineSizeTypesStandardDS5V2 VirtualMachineSizeTypes = "Standard_DS5_v2"
+ VirtualMachineSizeTypesStandardE16SV3 VirtualMachineSizeTypes = "Standard_E16s_v3"
+ VirtualMachineSizeTypesStandardE16V3 VirtualMachineSizeTypes = "Standard_E16_v3"
+ VirtualMachineSizeTypesStandardE2SV3 VirtualMachineSizeTypes = "Standard_E2s_v3"
+ VirtualMachineSizeTypesStandardE2V3 VirtualMachineSizeTypes = "Standard_E2_v3"
+ VirtualMachineSizeTypesStandardE3216V3 VirtualMachineSizeTypes = "Standard_E32-16_v3"
+ VirtualMachineSizeTypesStandardE328SV3 VirtualMachineSizeTypes = "Standard_E32-8s_v3"
+ VirtualMachineSizeTypesStandardE32SV3 VirtualMachineSizeTypes = "Standard_E32s_v3"
+ VirtualMachineSizeTypesStandardE32V3 VirtualMachineSizeTypes = "Standard_E32_v3"
+ VirtualMachineSizeTypesStandardE4SV3 VirtualMachineSizeTypes = "Standard_E4s_v3"
+ VirtualMachineSizeTypesStandardE4V3 VirtualMachineSizeTypes = "Standard_E4_v3"
+ VirtualMachineSizeTypesStandardE6416SV3 VirtualMachineSizeTypes = "Standard_E64-16s_v3"
+ VirtualMachineSizeTypesStandardE6432SV3 VirtualMachineSizeTypes = "Standard_E64-32s_v3"
+ VirtualMachineSizeTypesStandardE64SV3 VirtualMachineSizeTypes = "Standard_E64s_v3"
+ VirtualMachineSizeTypesStandardE64V3 VirtualMachineSizeTypes = "Standard_E64_v3"
+ VirtualMachineSizeTypesStandardE8SV3 VirtualMachineSizeTypes = "Standard_E8s_v3"
+ VirtualMachineSizeTypesStandardE8V3 VirtualMachineSizeTypes = "Standard_E8_v3"
+ VirtualMachineSizeTypesStandardF1 VirtualMachineSizeTypes = "Standard_F1"
+ VirtualMachineSizeTypesStandardF16 VirtualMachineSizeTypes = "Standard_F16"
+ VirtualMachineSizeTypesStandardF16S VirtualMachineSizeTypes = "Standard_F16s"
+ VirtualMachineSizeTypesStandardF16SV2 VirtualMachineSizeTypes = "Standard_F16s_v2"
+ VirtualMachineSizeTypesStandardF1S VirtualMachineSizeTypes = "Standard_F1s"
+ VirtualMachineSizeTypesStandardF2 VirtualMachineSizeTypes = "Standard_F2"
+ VirtualMachineSizeTypesStandardF2S VirtualMachineSizeTypes = "Standard_F2s"
+ VirtualMachineSizeTypesStandardF2SV2 VirtualMachineSizeTypes = "Standard_F2s_v2"
+ VirtualMachineSizeTypesStandardF32SV2 VirtualMachineSizeTypes = "Standard_F32s_v2"
+ VirtualMachineSizeTypesStandardF4 VirtualMachineSizeTypes = "Standard_F4"
+ VirtualMachineSizeTypesStandardF4S VirtualMachineSizeTypes = "Standard_F4s"
+ VirtualMachineSizeTypesStandardF4SV2 VirtualMachineSizeTypes = "Standard_F4s_v2"
+ VirtualMachineSizeTypesStandardF64SV2 VirtualMachineSizeTypes = "Standard_F64s_v2"
+ VirtualMachineSizeTypesStandardF72SV2 VirtualMachineSizeTypes = "Standard_F72s_v2"
+ VirtualMachineSizeTypesStandardF8 VirtualMachineSizeTypes = "Standard_F8"
+ VirtualMachineSizeTypesStandardF8S VirtualMachineSizeTypes = "Standard_F8s"
+ VirtualMachineSizeTypesStandardF8SV2 VirtualMachineSizeTypes = "Standard_F8s_v2"
+ VirtualMachineSizeTypesStandardG1 VirtualMachineSizeTypes = "Standard_G1"
+ VirtualMachineSizeTypesStandardG2 VirtualMachineSizeTypes = "Standard_G2"
+ VirtualMachineSizeTypesStandardG3 VirtualMachineSizeTypes = "Standard_G3"
+ VirtualMachineSizeTypesStandardG4 VirtualMachineSizeTypes = "Standard_G4"
+ VirtualMachineSizeTypesStandardG5 VirtualMachineSizeTypes = "Standard_G5"
+ VirtualMachineSizeTypesStandardGS1 VirtualMachineSizeTypes = "Standard_GS1"
+ VirtualMachineSizeTypesStandardGS2 VirtualMachineSizeTypes = "Standard_GS2"
+ VirtualMachineSizeTypesStandardGS3 VirtualMachineSizeTypes = "Standard_GS3"
+ VirtualMachineSizeTypesStandardGS4 VirtualMachineSizeTypes = "Standard_GS4"
+ VirtualMachineSizeTypesStandardGS44 VirtualMachineSizeTypes = "Standard_GS4-4"
+ VirtualMachineSizeTypesStandardGS48 VirtualMachineSizeTypes = "Standard_GS4-8"
+ VirtualMachineSizeTypesStandardGS5 VirtualMachineSizeTypes = "Standard_GS5"
+ VirtualMachineSizeTypesStandardGS516 VirtualMachineSizeTypes = "Standard_GS5-16"
+ VirtualMachineSizeTypesStandardGS58 VirtualMachineSizeTypes = "Standard_GS5-8"
+ VirtualMachineSizeTypesStandardH16 VirtualMachineSizeTypes = "Standard_H16"
+ VirtualMachineSizeTypesStandardH16M VirtualMachineSizeTypes = "Standard_H16m"
+ VirtualMachineSizeTypesStandardH16Mr VirtualMachineSizeTypes = "Standard_H16mr"
+ VirtualMachineSizeTypesStandardH16R VirtualMachineSizeTypes = "Standard_H16r"
+ VirtualMachineSizeTypesStandardH8 VirtualMachineSizeTypes = "Standard_H8"
+ VirtualMachineSizeTypesStandardH8M VirtualMachineSizeTypes = "Standard_H8m"
+ VirtualMachineSizeTypesStandardL16S VirtualMachineSizeTypes = "Standard_L16s"
+ VirtualMachineSizeTypesStandardL32S VirtualMachineSizeTypes = "Standard_L32s"
+ VirtualMachineSizeTypesStandardL4S VirtualMachineSizeTypes = "Standard_L4s"
+ VirtualMachineSizeTypesStandardL8S VirtualMachineSizeTypes = "Standard_L8s"
+ VirtualMachineSizeTypesStandardM12832Ms VirtualMachineSizeTypes = "Standard_M128-32ms"
+ VirtualMachineSizeTypesStandardM12864Ms VirtualMachineSizeTypes = "Standard_M128-64ms"
+ VirtualMachineSizeTypesStandardM128Ms VirtualMachineSizeTypes = "Standard_M128ms"
+ VirtualMachineSizeTypesStandardM128S VirtualMachineSizeTypes = "Standard_M128s"
+ VirtualMachineSizeTypesStandardM6416Ms VirtualMachineSizeTypes = "Standard_M64-16ms"
+ VirtualMachineSizeTypesStandardM6432Ms VirtualMachineSizeTypes = "Standard_M64-32ms"
+ VirtualMachineSizeTypesStandardM64Ms VirtualMachineSizeTypes = "Standard_M64ms"
+ VirtualMachineSizeTypesStandardM64S VirtualMachineSizeTypes = "Standard_M64s"
+ VirtualMachineSizeTypesStandardNC12 VirtualMachineSizeTypes = "Standard_NC12"
+ VirtualMachineSizeTypesStandardNC12SV2 VirtualMachineSizeTypes = "Standard_NC12s_v2"
+ VirtualMachineSizeTypesStandardNC12SV3 VirtualMachineSizeTypes = "Standard_NC12s_v3"
+ VirtualMachineSizeTypesStandardNC24 VirtualMachineSizeTypes = "Standard_NC24"
+ VirtualMachineSizeTypesStandardNC24R VirtualMachineSizeTypes = "Standard_NC24r"
+ VirtualMachineSizeTypesStandardNC24RsV2 VirtualMachineSizeTypes = "Standard_NC24rs_v2"
+ VirtualMachineSizeTypesStandardNC24RsV3 VirtualMachineSizeTypes = "Standard_NC24rs_v3"
+ VirtualMachineSizeTypesStandardNC24SV2 VirtualMachineSizeTypes = "Standard_NC24s_v2"
+ VirtualMachineSizeTypesStandardNC24SV3 VirtualMachineSizeTypes = "Standard_NC24s_v3"
+ VirtualMachineSizeTypesStandardNC6 VirtualMachineSizeTypes = "Standard_NC6"
+ VirtualMachineSizeTypesStandardNC6SV2 VirtualMachineSizeTypes = "Standard_NC6s_v2"
+ VirtualMachineSizeTypesStandardNC6SV3 VirtualMachineSizeTypes = "Standard_NC6s_v3"
+ VirtualMachineSizeTypesStandardND12S VirtualMachineSizeTypes = "Standard_ND12s"
+ VirtualMachineSizeTypesStandardND24Rs VirtualMachineSizeTypes = "Standard_ND24rs"
+ VirtualMachineSizeTypesStandardND24S VirtualMachineSizeTypes = "Standard_ND24s"
+ VirtualMachineSizeTypesStandardND6S VirtualMachineSizeTypes = "Standard_ND6s"
+ VirtualMachineSizeTypesStandardNV12 VirtualMachineSizeTypes = "Standard_NV12"
+ VirtualMachineSizeTypesStandardNV24 VirtualMachineSizeTypes = "Standard_NV24"
+ VirtualMachineSizeTypesStandardNV6 VirtualMachineSizeTypes = "Standard_NV6"
+)
+
+// PossibleVirtualMachineSizeTypesValues returns the possible values for the VirtualMachineSizeTypes const type.
+func PossibleVirtualMachineSizeTypesValues() []VirtualMachineSizeTypes {
+ return []VirtualMachineSizeTypes{
+ VirtualMachineSizeTypesBasicA0,
+ VirtualMachineSizeTypesBasicA1,
+ VirtualMachineSizeTypesBasicA2,
+ VirtualMachineSizeTypesBasicA3,
+ VirtualMachineSizeTypesBasicA4,
+ VirtualMachineSizeTypesStandardA0,
+ VirtualMachineSizeTypesStandardA1,
+ VirtualMachineSizeTypesStandardA10,
+ VirtualMachineSizeTypesStandardA11,
+ VirtualMachineSizeTypesStandardA1V2,
+ VirtualMachineSizeTypesStandardA2,
+ VirtualMachineSizeTypesStandardA2MV2,
+ VirtualMachineSizeTypesStandardA2V2,
+ VirtualMachineSizeTypesStandardA3,
+ VirtualMachineSizeTypesStandardA4,
+ VirtualMachineSizeTypesStandardA4MV2,
+ VirtualMachineSizeTypesStandardA4V2,
+ VirtualMachineSizeTypesStandardA5,
+ VirtualMachineSizeTypesStandardA6,
+ VirtualMachineSizeTypesStandardA7,
+ VirtualMachineSizeTypesStandardA8,
+ VirtualMachineSizeTypesStandardA8MV2,
+ VirtualMachineSizeTypesStandardA8V2,
+ VirtualMachineSizeTypesStandardA9,
+ VirtualMachineSizeTypesStandardB1Ms,
+ VirtualMachineSizeTypesStandardB1S,
+ VirtualMachineSizeTypesStandardB2Ms,
+ VirtualMachineSizeTypesStandardB2S,
+ VirtualMachineSizeTypesStandardB4Ms,
+ VirtualMachineSizeTypesStandardB8Ms,
+ VirtualMachineSizeTypesStandardD1,
+ VirtualMachineSizeTypesStandardD11,
+ VirtualMachineSizeTypesStandardD11V2,
+ VirtualMachineSizeTypesStandardD12,
+ VirtualMachineSizeTypesStandardD12V2,
+ VirtualMachineSizeTypesStandardD13,
+ VirtualMachineSizeTypesStandardD13V2,
+ VirtualMachineSizeTypesStandardD14,
+ VirtualMachineSizeTypesStandardD14V2,
+ VirtualMachineSizeTypesStandardD15V2,
+ VirtualMachineSizeTypesStandardD16SV3,
+ VirtualMachineSizeTypesStandardD16V3,
+ VirtualMachineSizeTypesStandardD1V2,
+ VirtualMachineSizeTypesStandardD2,
+ VirtualMachineSizeTypesStandardD2SV3,
+ VirtualMachineSizeTypesStandardD2V2,
+ VirtualMachineSizeTypesStandardD2V3,
+ VirtualMachineSizeTypesStandardD3,
+ VirtualMachineSizeTypesStandardD32SV3,
+ VirtualMachineSizeTypesStandardD32V3,
+ VirtualMachineSizeTypesStandardD3V2,
+ VirtualMachineSizeTypesStandardD4,
+ VirtualMachineSizeTypesStandardD4SV3,
+ VirtualMachineSizeTypesStandardD4V2,
+ VirtualMachineSizeTypesStandardD4V3,
+ VirtualMachineSizeTypesStandardD5V2,
+ VirtualMachineSizeTypesStandardD64SV3,
+ VirtualMachineSizeTypesStandardD64V3,
+ VirtualMachineSizeTypesStandardD8SV3,
+ VirtualMachineSizeTypesStandardD8V3,
+ VirtualMachineSizeTypesStandardDS1,
+ VirtualMachineSizeTypesStandardDS11,
+ VirtualMachineSizeTypesStandardDS11V2,
+ VirtualMachineSizeTypesStandardDS12,
+ VirtualMachineSizeTypesStandardDS12V2,
+ VirtualMachineSizeTypesStandardDS13,
+ VirtualMachineSizeTypesStandardDS132V2,
+ VirtualMachineSizeTypesStandardDS134V2,
+ VirtualMachineSizeTypesStandardDS13V2,
+ VirtualMachineSizeTypesStandardDS14,
+ VirtualMachineSizeTypesStandardDS144V2,
+ VirtualMachineSizeTypesStandardDS148V2,
+ VirtualMachineSizeTypesStandardDS14V2,
+ VirtualMachineSizeTypesStandardDS15V2,
+ VirtualMachineSizeTypesStandardDS1V2,
+ VirtualMachineSizeTypesStandardDS2,
+ VirtualMachineSizeTypesStandardDS2V2,
+ VirtualMachineSizeTypesStandardDS3,
+ VirtualMachineSizeTypesStandardDS3V2,
+ VirtualMachineSizeTypesStandardDS4,
+ VirtualMachineSizeTypesStandardDS4V2,
+ VirtualMachineSizeTypesStandardDS5V2,
+ VirtualMachineSizeTypesStandardE16SV3,
+ VirtualMachineSizeTypesStandardE16V3,
+ VirtualMachineSizeTypesStandardE2SV3,
+ VirtualMachineSizeTypesStandardE2V3,
+ VirtualMachineSizeTypesStandardE3216V3,
+ VirtualMachineSizeTypesStandardE328SV3,
+ VirtualMachineSizeTypesStandardE32SV3,
+ VirtualMachineSizeTypesStandardE32V3,
+ VirtualMachineSizeTypesStandardE4SV3,
+ VirtualMachineSizeTypesStandardE4V3,
+ VirtualMachineSizeTypesStandardE6416SV3,
+ VirtualMachineSizeTypesStandardE6432SV3,
+ VirtualMachineSizeTypesStandardE64SV3,
+ VirtualMachineSizeTypesStandardE64V3,
+ VirtualMachineSizeTypesStandardE8SV3,
+ VirtualMachineSizeTypesStandardE8V3,
+ VirtualMachineSizeTypesStandardF1,
+ VirtualMachineSizeTypesStandardF16,
+ VirtualMachineSizeTypesStandardF16S,
+ VirtualMachineSizeTypesStandardF16SV2,
+ VirtualMachineSizeTypesStandardF1S,
+ VirtualMachineSizeTypesStandardF2,
+ VirtualMachineSizeTypesStandardF2S,
+ VirtualMachineSizeTypesStandardF2SV2,
+ VirtualMachineSizeTypesStandardF32SV2,
+ VirtualMachineSizeTypesStandardF4,
+ VirtualMachineSizeTypesStandardF4S,
+ VirtualMachineSizeTypesStandardF4SV2,
+ VirtualMachineSizeTypesStandardF64SV2,
+ VirtualMachineSizeTypesStandardF72SV2,
+ VirtualMachineSizeTypesStandardF8,
+ VirtualMachineSizeTypesStandardF8S,
+ VirtualMachineSizeTypesStandardF8SV2,
+ VirtualMachineSizeTypesStandardG1,
+ VirtualMachineSizeTypesStandardG2,
+ VirtualMachineSizeTypesStandardG3,
+ VirtualMachineSizeTypesStandardG4,
+ VirtualMachineSizeTypesStandardG5,
+ VirtualMachineSizeTypesStandardGS1,
+ VirtualMachineSizeTypesStandardGS2,
+ VirtualMachineSizeTypesStandardGS3,
+ VirtualMachineSizeTypesStandardGS4,
+ VirtualMachineSizeTypesStandardGS44,
+ VirtualMachineSizeTypesStandardGS48,
+ VirtualMachineSizeTypesStandardGS5,
+ VirtualMachineSizeTypesStandardGS516,
+ VirtualMachineSizeTypesStandardGS58,
+ VirtualMachineSizeTypesStandardH16,
+ VirtualMachineSizeTypesStandardH16M,
+ VirtualMachineSizeTypesStandardH16Mr,
+ VirtualMachineSizeTypesStandardH16R,
+ VirtualMachineSizeTypesStandardH8,
+ VirtualMachineSizeTypesStandardH8M,
+ VirtualMachineSizeTypesStandardL16S,
+ VirtualMachineSizeTypesStandardL32S,
+ VirtualMachineSizeTypesStandardL4S,
+ VirtualMachineSizeTypesStandardL8S,
+ VirtualMachineSizeTypesStandardM12832Ms,
+ VirtualMachineSizeTypesStandardM12864Ms,
+ VirtualMachineSizeTypesStandardM128Ms,
+ VirtualMachineSizeTypesStandardM128S,
+ VirtualMachineSizeTypesStandardM6416Ms,
+ VirtualMachineSizeTypesStandardM6432Ms,
+ VirtualMachineSizeTypesStandardM64Ms,
+ VirtualMachineSizeTypesStandardM64S,
+ VirtualMachineSizeTypesStandardNC12,
+ VirtualMachineSizeTypesStandardNC12SV2,
+ VirtualMachineSizeTypesStandardNC12SV3,
+ VirtualMachineSizeTypesStandardNC24,
+ VirtualMachineSizeTypesStandardNC24R,
+ VirtualMachineSizeTypesStandardNC24RsV2,
+ VirtualMachineSizeTypesStandardNC24RsV3,
+ VirtualMachineSizeTypesStandardNC24SV2,
+ VirtualMachineSizeTypesStandardNC24SV3,
+ VirtualMachineSizeTypesStandardNC6,
+ VirtualMachineSizeTypesStandardNC6SV2,
+ VirtualMachineSizeTypesStandardNC6SV3,
+ VirtualMachineSizeTypesStandardND12S,
+ VirtualMachineSizeTypesStandardND24Rs,
+ VirtualMachineSizeTypesStandardND24S,
+ VirtualMachineSizeTypesStandardND6S,
+ VirtualMachineSizeTypesStandardNV12,
+ VirtualMachineSizeTypesStandardNV24,
+ VirtualMachineSizeTypesStandardNV6,
+ }
+}
+
+// WindowsPatchAssessmentMode - Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.
+// Possible values are:
+// ImageDefault - You control the timing of patch assessments on a virtual machine.
+// AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
+type WindowsPatchAssessmentMode string
+
+const (
+ WindowsPatchAssessmentModeAutomaticByPlatform WindowsPatchAssessmentMode = "AutomaticByPlatform"
+ WindowsPatchAssessmentModeImageDefault WindowsPatchAssessmentMode = "ImageDefault"
+)
+
+// PossibleWindowsPatchAssessmentModeValues returns the possible values for the WindowsPatchAssessmentMode const type.
+func PossibleWindowsPatchAssessmentModeValues() []WindowsPatchAssessmentMode {
+ return []WindowsPatchAssessmentMode{
+ WindowsPatchAssessmentModeAutomaticByPlatform,
+ WindowsPatchAssessmentModeImageDefault,
+ }
+}
+
+// WindowsVMGuestPatchAutomaticByPlatformRebootSetting - Specifies the reboot setting for all AutomaticByPlatform patch installation
+// operations.
+type WindowsVMGuestPatchAutomaticByPlatformRebootSetting string
+
+const (
+ WindowsVMGuestPatchAutomaticByPlatformRebootSettingAlways WindowsVMGuestPatchAutomaticByPlatformRebootSetting = "Always"
+ WindowsVMGuestPatchAutomaticByPlatformRebootSettingIfRequired WindowsVMGuestPatchAutomaticByPlatformRebootSetting = "IfRequired"
+ WindowsVMGuestPatchAutomaticByPlatformRebootSettingNever WindowsVMGuestPatchAutomaticByPlatformRebootSetting = "Never"
+ WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown WindowsVMGuestPatchAutomaticByPlatformRebootSetting = "Unknown"
+)
+
+// PossibleWindowsVMGuestPatchAutomaticByPlatformRebootSettingValues returns the possible values for the WindowsVMGuestPatchAutomaticByPlatformRebootSetting const type.
+func PossibleWindowsVMGuestPatchAutomaticByPlatformRebootSettingValues() []WindowsVMGuestPatchAutomaticByPlatformRebootSetting {
+ return []WindowsVMGuestPatchAutomaticByPlatformRebootSetting{
+ WindowsVMGuestPatchAutomaticByPlatformRebootSettingAlways,
+ WindowsVMGuestPatchAutomaticByPlatformRebootSettingIfRequired,
+ WindowsVMGuestPatchAutomaticByPlatformRebootSettingNever,
+ WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown,
+ }
+}
+
+// WindowsVMGuestPatchMode - Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated
+// to virtual machine scale set with OrchestrationMode as Flexible.
+// Possible values are:
+// Manual - You control the application of patches to a virtual machine. You do this by applying patches manually inside the
+// VM. In this mode, automatic updates are disabled; the property
+// WindowsConfiguration.enableAutomaticUpdates must be false
+// AutomaticByOS - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
+// must be true.
+// AutomaticByPlatform - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and
+// WindowsConfiguration.enableAutomaticUpdates must be true
+type WindowsVMGuestPatchMode string
+
+const (
+ WindowsVMGuestPatchModeAutomaticByOS WindowsVMGuestPatchMode = "AutomaticByOS"
+ WindowsVMGuestPatchModeAutomaticByPlatform WindowsVMGuestPatchMode = "AutomaticByPlatform"
+ WindowsVMGuestPatchModeManual WindowsVMGuestPatchMode = "Manual"
+)
+
+// PossibleWindowsVMGuestPatchModeValues returns the possible values for the WindowsVMGuestPatchMode const type.
+func PossibleWindowsVMGuestPatchModeValues() []WindowsVMGuestPatchMode {
+ return []WindowsVMGuestPatchMode{
+ WindowsVMGuestPatchModeAutomaticByOS,
+ WindowsVMGuestPatchModeAutomaticByPlatform,
+ WindowsVMGuestPatchModeManual,
+ }
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhostgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhostgroups_client.go
new file mode 100644
index 0000000000..0b8447c491
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhostgroups_client.go
@@ -0,0 +1,407 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// DedicatedHostGroupsClient contains the methods for the DedicatedHostGroups group.
+// Don't use this type directly, use NewDedicatedHostGroupsClient() instead.
+type DedicatedHostGroupsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewDedicatedHostGroupsClient creates a new instance of DedicatedHostGroupsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewDedicatedHostGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DedicatedHostGroupsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &DedicatedHostGroupsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// CreateOrUpdate - Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please
+// see Dedicated Host Documentation [https://go.microsoft.com/fwlink/?linkid=2082596]
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// parameters - Parameters supplied to the Create Dedicated Host Group.
+// options - DedicatedHostGroupsClientCreateOrUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.CreateOrUpdate
+// method.
+func (client *DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, parameters DedicatedHostGroup, options *DedicatedHostGroupsClientCreateOrUpdateOptions) (DedicatedHostGroupsClientCreateOrUpdateResponse, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, hostGroupName, parameters, options)
+ if err != nil {
+ return DedicatedHostGroupsClientCreateOrUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DedicatedHostGroupsClientCreateOrUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return DedicatedHostGroupsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.createOrUpdateHandleResponse(resp)
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *DedicatedHostGroupsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, parameters DedicatedHostGroup, options *DedicatedHostGroupsClientCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// createOrUpdateHandleResponse handles the CreateOrUpdate response.
+func (client *DedicatedHostGroupsClient) createOrUpdateHandleResponse(resp *http.Response) (DedicatedHostGroupsClientCreateOrUpdateResponse, error) {
+ result := DedicatedHostGroupsClientCreateOrUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DedicatedHostGroup); err != nil {
+ return DedicatedHostGroupsClientCreateOrUpdateResponse{}, err
+ }
+ return result, nil
+}
+
+// Delete - Delete a dedicated host group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// options - DedicatedHostGroupsClientDeleteOptions contains the optional parameters for the DedicatedHostGroupsClient.Delete
+// method.
+func (client *DedicatedHostGroupsClient) Delete(ctx context.Context, resourceGroupName string, hostGroupName string, options *DedicatedHostGroupsClientDeleteOptions) (DedicatedHostGroupsClientDeleteResponse, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, hostGroupName, options)
+ if err != nil {
+ return DedicatedHostGroupsClientDeleteResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DedicatedHostGroupsClientDeleteResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) {
+ return DedicatedHostGroupsClientDeleteResponse{}, runtime.NewResponseError(resp)
+ }
+ return DedicatedHostGroupsClientDeleteResponse{}, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *DedicatedHostGroupsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, options *DedicatedHostGroupsClientDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about a dedicated host group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// options - DedicatedHostGroupsClientGetOptions contains the optional parameters for the DedicatedHostGroupsClient.Get method.
+func (client *DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupName string, hostGroupName string, options *DedicatedHostGroupsClientGetOptions) (DedicatedHostGroupsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, hostGroupName, options)
+ if err != nil {
+ return DedicatedHostGroupsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DedicatedHostGroupsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DedicatedHostGroupsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *DedicatedHostGroupsClient) getCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, options *DedicatedHostGroupsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *DedicatedHostGroupsClient) getHandleResponse(resp *http.Response) (DedicatedHostGroupsClientGetResponse, error) {
+ result := DedicatedHostGroupsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DedicatedHostGroup); err != nil {
+ return DedicatedHostGroupsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Lists all of the dedicated host groups in the specified resource group. Use the nextLink
+// property in the response to get the next page of dedicated host groups.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - DedicatedHostGroupsClientListByResourceGroupOptions contains the optional parameters for the DedicatedHostGroupsClient.ListByResourceGroup
+// method.
+func (client *DedicatedHostGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *DedicatedHostGroupsClientListByResourceGroupOptions) *runtime.Pager[DedicatedHostGroupsClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DedicatedHostGroupsClientListByResourceGroupResponse]{
+ More: func(page DedicatedHostGroupsClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DedicatedHostGroupsClientListByResourceGroupResponse) (DedicatedHostGroupsClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DedicatedHostGroupsClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DedicatedHostGroupsClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DedicatedHostGroupsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *DedicatedHostGroupsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *DedicatedHostGroupsClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *DedicatedHostGroupsClient) listByResourceGroupHandleResponse(resp *http.Response) (DedicatedHostGroupsClientListByResourceGroupResponse, error) {
+ result := DedicatedHostGroupsClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DedicatedHostGroupListResult); err != nil {
+ return DedicatedHostGroupsClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListBySubscriptionPager - Lists all of the dedicated host groups in the subscription. Use the nextLink property in the
+// response to get the next page of dedicated host groups.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - DedicatedHostGroupsClientListBySubscriptionOptions contains the optional parameters for the DedicatedHostGroupsClient.ListBySubscription
+// method.
+func (client *DedicatedHostGroupsClient) NewListBySubscriptionPager(options *DedicatedHostGroupsClientListBySubscriptionOptions) *runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DedicatedHostGroupsClientListBySubscriptionResponse]{
+ More: func(page DedicatedHostGroupsClientListBySubscriptionResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DedicatedHostGroupsClientListBySubscriptionResponse) (DedicatedHostGroupsClientListBySubscriptionResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listBySubscriptionCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DedicatedHostGroupsClientListBySubscriptionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DedicatedHostGroupsClientListBySubscriptionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DedicatedHostGroupsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listBySubscriptionHandleResponse(resp)
+ },
+ })
+}
+
+// listBySubscriptionCreateRequest creates the ListBySubscription request.
+func (client *DedicatedHostGroupsClient) listBySubscriptionCreateRequest(ctx context.Context, options *DedicatedHostGroupsClientListBySubscriptionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listBySubscriptionHandleResponse handles the ListBySubscription response.
+func (client *DedicatedHostGroupsClient) listBySubscriptionHandleResponse(resp *http.Response) (DedicatedHostGroupsClientListBySubscriptionResponse, error) {
+ result := DedicatedHostGroupsClientListBySubscriptionResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DedicatedHostGroupListResult); err != nil {
+ return DedicatedHostGroupsClientListBySubscriptionResponse{}, err
+ }
+ return result, nil
+}
+
+// Update - Update an dedicated host group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// parameters - Parameters supplied to the Update Dedicated Host Group operation.
+// options - DedicatedHostGroupsClientUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.Update
+// method.
+func (client *DedicatedHostGroupsClient) Update(ctx context.Context, resourceGroupName string, hostGroupName string, parameters DedicatedHostGroupUpdate, options *DedicatedHostGroupsClientUpdateOptions) (DedicatedHostGroupsClientUpdateResponse, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, hostGroupName, parameters, options)
+ if err != nil {
+ return DedicatedHostGroupsClientUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DedicatedHostGroupsClientUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DedicatedHostGroupsClientUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.updateHandleResponse(resp)
+}
+
+// updateCreateRequest creates the Update request.
+func (client *DedicatedHostGroupsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, parameters DedicatedHostGroupUpdate, options *DedicatedHostGroupsClientUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// updateHandleResponse handles the Update response.
+func (client *DedicatedHostGroupsClient) updateHandleResponse(resp *http.Response) (DedicatedHostGroupsClientUpdateResponse, error) {
+ result := DedicatedHostGroupsClientUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DedicatedHostGroup); err != nil {
+ return DedicatedHostGroupsClientUpdateResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhosts_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhosts_client.go
new file mode 100644
index 0000000000..25f0e29463
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_dedicatedhosts_client.go
@@ -0,0 +1,471 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// DedicatedHostsClient contains the methods for the DedicatedHosts group.
+// Don't use this type directly, use NewDedicatedHostsClient() instead.
+type DedicatedHostsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewDedicatedHostsClient creates a new instance of DedicatedHostsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewDedicatedHostsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DedicatedHostsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &DedicatedHostsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Create or update a dedicated host .
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// hostName - The name of the dedicated host .
+// parameters - Parameters supplied to the Create Dedicated Host.
+// options - DedicatedHostsClientBeginCreateOrUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginCreateOrUpdate
+// method.
+func (client *DedicatedHostsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHost, options *DedicatedHostsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DedicatedHostsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, hostGroupName, hostName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DedicatedHostsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DedicatedHostsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update a dedicated host .
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *DedicatedHostsClient) createOrUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHost, options *DedicatedHostsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *DedicatedHostsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHost, options *DedicatedHostsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if hostName == "" {
+ return nil, errors.New("parameter hostName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostName}", url.PathEscape(hostName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginDelete - Delete a dedicated host.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// hostName - The name of the dedicated host.
+// options - DedicatedHostsClientBeginDeleteOptions contains the optional parameters for the DedicatedHostsClient.BeginDelete
+// method.
+func (client *DedicatedHostsClient) BeginDelete(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginDeleteOptions) (*runtime.Poller[DedicatedHostsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, hostGroupName, hostName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DedicatedHostsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DedicatedHostsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Delete a dedicated host.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *DedicatedHostsClient) deleteOperation(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *DedicatedHostsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if hostName == "" {
+ return nil, errors.New("parameter hostName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostName}", url.PathEscape(hostName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about a dedicated host.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// hostName - The name of the dedicated host.
+// options - DedicatedHostsClientGetOptions contains the optional parameters for the DedicatedHostsClient.Get method.
+func (client *DedicatedHostsClient) Get(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientGetOptions) (DedicatedHostsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, options)
+ if err != nil {
+ return DedicatedHostsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DedicatedHostsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DedicatedHostsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *DedicatedHostsClient) getCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if hostName == "" {
+ return nil, errors.New("parameter hostName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostName}", url.PathEscape(hostName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *DedicatedHostsClient) getHandleResponse(resp *http.Response) (DedicatedHostsClientGetResponse, error) {
+ result := DedicatedHostsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DedicatedHost); err != nil {
+ return DedicatedHostsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByHostGroupPager - Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property
+// in the response to get the next page of dedicated hosts.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// options - DedicatedHostsClientListByHostGroupOptions contains the optional parameters for the DedicatedHostsClient.ListByHostGroup
+// method.
+func (client *DedicatedHostsClient) NewListByHostGroupPager(resourceGroupName string, hostGroupName string, options *DedicatedHostsClientListByHostGroupOptions) *runtime.Pager[DedicatedHostsClientListByHostGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DedicatedHostsClientListByHostGroupResponse]{
+ More: func(page DedicatedHostsClientListByHostGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DedicatedHostsClientListByHostGroupResponse) (DedicatedHostsClientListByHostGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByHostGroupCreateRequest(ctx, resourceGroupName, hostGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DedicatedHostsClientListByHostGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DedicatedHostsClientListByHostGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DedicatedHostsClientListByHostGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByHostGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByHostGroupCreateRequest creates the ListByHostGroup request.
+func (client *DedicatedHostsClient) listByHostGroupCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, options *DedicatedHostsClientListByHostGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByHostGroupHandleResponse handles the ListByHostGroup response.
+func (client *DedicatedHostsClient) listByHostGroupHandleResponse(resp *http.Response) (DedicatedHostsClientListByHostGroupResponse, error) {
+ result := DedicatedHostsClientListByHostGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DedicatedHostListResult); err != nil {
+ return DedicatedHostsClientListByHostGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginRestart - Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted
+// and is running. To determine the health of VMs deployed on the dedicated host after the
+// restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview
+// for more details.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// hostName - The name of the dedicated host.
+// options - DedicatedHostsClientBeginRestartOptions contains the optional parameters for the DedicatedHostsClient.BeginRestart
+// method.
+func (client *DedicatedHostsClient) BeginRestart(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRestartOptions) (*runtime.Poller[DedicatedHostsClientRestartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.restart(ctx, resourceGroupName, hostGroupName, hostName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DedicatedHostsClientRestartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DedicatedHostsClientRestartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Restart - Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and
+// is running. To determine the health of VMs deployed on the dedicated host after the
+// restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview
+// for more details.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *DedicatedHostsClient) restart(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRestartOptions) (*http.Response, error) {
+ req, err := client.restartCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// restartCreateRequest creates the Restart request.
+func (client *DedicatedHostsClient) restartCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRestartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if hostName == "" {
+ return nil, errors.New("parameter hostName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostName}", url.PathEscape(hostName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginUpdate - Update an dedicated host .
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// hostGroupName - The name of the dedicated host group.
+// hostName - The name of the dedicated host .
+// parameters - Parameters supplied to the Update Dedicated Host operation.
+// options - DedicatedHostsClientBeginUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginUpdate
+// method.
+func (client *DedicatedHostsClient) BeginUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHostUpdate, options *DedicatedHostsClientBeginUpdateOptions) (*runtime.Poller[DedicatedHostsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, hostGroupName, hostName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DedicatedHostsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DedicatedHostsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update an dedicated host .
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *DedicatedHostsClient) update(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHostUpdate, options *DedicatedHostsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, hostGroupName, hostName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *DedicatedHostsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHostUpdate, options *DedicatedHostsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if hostGroupName == "" {
+ return nil, errors.New("parameter hostGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostGroupName}", url.PathEscape(hostGroupName))
+ if hostName == "" {
+ return nil, errors.New("parameter hostName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{hostName}", url.PathEscape(hostName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskaccesses_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskaccesses_client.go
new file mode 100644
index 0000000000..d0d85b5ee8
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskaccesses_client.go
@@ -0,0 +1,774 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// DiskAccessesClient contains the methods for the DiskAccesses group.
+// Don't use this type directly, use NewDiskAccessesClient() instead.
+type DiskAccessesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewDiskAccessesClient creates a new instance of DiskAccessesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewDiskAccessesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiskAccessesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &DiskAccessesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Creates or updates a disk access resource
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// diskAccess - disk access object supplied in the body of the Put disk access operation.
+// options - DiskAccessesClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginCreateOrUpdate
+// method.
+func (client *DiskAccessesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccess, options *DiskAccessesClientBeginCreateOrUpdateOptions) (*runtime.Poller[DiskAccessesClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, diskAccessName, diskAccess, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DiskAccessesClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskAccessesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Creates or updates a disk access resource
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskAccessesClient) createOrUpdate(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccess, options *DiskAccessesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, diskAccessName, diskAccess, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *DiskAccessesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccess, options *DiskAccessesClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, diskAccess)
+}
+
+// BeginDelete - Deletes a disk access resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// options - DiskAccessesClientBeginDeleteOptions contains the optional parameters for the DiskAccessesClient.BeginDelete
+// method.
+func (client *DiskAccessesClient) BeginDelete(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientBeginDeleteOptions) (*runtime.Poller[DiskAccessesClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, diskAccessName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DiskAccessesClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskAccessesClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes a disk access resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskAccessesClient) deleteOperation(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, diskAccessName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *DiskAccessesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginDeleteAPrivateEndpointConnection - Deletes a private endpoint connection under a disk access resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// privateEndpointConnectionName - The name of the private endpoint connection.
+// options - DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginDeleteAPrivateEndpointConnection
+// method.
+func (client *DiskAccessesClient) BeginDeleteAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, options *DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions) (*runtime.Poller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteAPrivateEndpointConnection(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskAccessesClientDeleteAPrivateEndpointConnectionResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// DeleteAPrivateEndpointConnection - Deletes a private endpoint connection under a disk access resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskAccessesClient) deleteAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, options *DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions) (*http.Response, error) {
+ req, err := client.deleteAPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteAPrivateEndpointConnectionCreateRequest creates the DeleteAPrivateEndpointConnection request.
+func (client *DiskAccessesClient) deleteAPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, options *DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ if privateEndpointConnectionName == "" {
+ return nil, errors.New("parameter privateEndpointConnectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Gets information about a disk access resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// options - DiskAccessesClientGetOptions contains the optional parameters for the DiskAccessesClient.Get method.
+func (client *DiskAccessesClient) Get(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientGetOptions) (DiskAccessesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, diskAccessName, options)
+ if err != nil {
+ return DiskAccessesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskAccessesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskAccessesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *DiskAccessesClient) getCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *DiskAccessesClient) getHandleResponse(resp *http.Response) (DiskAccessesClientGetResponse, error) {
+ result := DiskAccessesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskAccess); err != nil {
+ return DiskAccessesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// GetAPrivateEndpointConnection - Gets information about a private endpoint connection under a disk access resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// privateEndpointConnectionName - The name of the private endpoint connection.
+// options - DiskAccessesClientGetAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.GetAPrivateEndpointConnection
+// method.
+func (client *DiskAccessesClient) GetAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, options *DiskAccessesClientGetAPrivateEndpointConnectionOptions) (DiskAccessesClientGetAPrivateEndpointConnectionResponse, error) {
+ req, err := client.getAPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, options)
+ if err != nil {
+ return DiskAccessesClientGetAPrivateEndpointConnectionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskAccessesClientGetAPrivateEndpointConnectionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskAccessesClientGetAPrivateEndpointConnectionResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getAPrivateEndpointConnectionHandleResponse(resp)
+}
+
+// getAPrivateEndpointConnectionCreateRequest creates the GetAPrivateEndpointConnection request.
+func (client *DiskAccessesClient) getAPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, options *DiskAccessesClientGetAPrivateEndpointConnectionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ if privateEndpointConnectionName == "" {
+ return nil, errors.New("parameter privateEndpointConnectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getAPrivateEndpointConnectionHandleResponse handles the GetAPrivateEndpointConnection response.
+func (client *DiskAccessesClient) getAPrivateEndpointConnectionHandleResponse(resp *http.Response) (DiskAccessesClientGetAPrivateEndpointConnectionResponse, error) {
+ result := DiskAccessesClientGetAPrivateEndpointConnectionResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnection); err != nil {
+ return DiskAccessesClientGetAPrivateEndpointConnectionResponse{}, err
+ }
+ return result, nil
+}
+
+// GetPrivateLinkResources - Gets the private link resources possible under disk access resource
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// options - DiskAccessesClientGetPrivateLinkResourcesOptions contains the optional parameters for the DiskAccessesClient.GetPrivateLinkResources
+// method.
+func (client *DiskAccessesClient) GetPrivateLinkResources(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientGetPrivateLinkResourcesOptions) (DiskAccessesClientGetPrivateLinkResourcesResponse, error) {
+ req, err := client.getPrivateLinkResourcesCreateRequest(ctx, resourceGroupName, diskAccessName, options)
+ if err != nil {
+ return DiskAccessesClientGetPrivateLinkResourcesResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskAccessesClientGetPrivateLinkResourcesResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskAccessesClientGetPrivateLinkResourcesResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getPrivateLinkResourcesHandleResponse(resp)
+}
+
+// getPrivateLinkResourcesCreateRequest creates the GetPrivateLinkResources request.
+func (client *DiskAccessesClient) getPrivateLinkResourcesCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientGetPrivateLinkResourcesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getPrivateLinkResourcesHandleResponse handles the GetPrivateLinkResources response.
+func (client *DiskAccessesClient) getPrivateLinkResourcesHandleResponse(resp *http.Response) (DiskAccessesClientGetPrivateLinkResourcesResponse, error) {
+ result := DiskAccessesClientGetPrivateLinkResourcesResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.PrivateLinkResourceListResult); err != nil {
+ return DiskAccessesClientGetPrivateLinkResourcesResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Lists all the disk access resources under a subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// options - DiskAccessesClientListOptions contains the optional parameters for the DiskAccessesClient.List method.
+func (client *DiskAccessesClient) NewListPager(options *DiskAccessesClientListOptions) *runtime.Pager[DiskAccessesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DiskAccessesClientListResponse]{
+ More: func(page DiskAccessesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DiskAccessesClientListResponse) (DiskAccessesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DiskAccessesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskAccessesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskAccessesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *DiskAccessesClient) listCreateRequest(ctx context.Context, options *DiskAccessesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *DiskAccessesClient) listHandleResponse(resp *http.Response) (DiskAccessesClientListResponse, error) {
+ result := DiskAccessesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskAccessList); err != nil {
+ return DiskAccessesClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Lists all the disk access resources under a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// options - DiskAccessesClientListByResourceGroupOptions contains the optional parameters for the DiskAccessesClient.ListByResourceGroup
+// method.
+func (client *DiskAccessesClient) NewListByResourceGroupPager(resourceGroupName string, options *DiskAccessesClientListByResourceGroupOptions) *runtime.Pager[DiskAccessesClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DiskAccessesClientListByResourceGroupResponse]{
+ More: func(page DiskAccessesClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DiskAccessesClientListByResourceGroupResponse) (DiskAccessesClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DiskAccessesClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskAccessesClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskAccessesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *DiskAccessesClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *DiskAccessesClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *DiskAccessesClient) listByResourceGroupHandleResponse(resp *http.Response) (DiskAccessesClientListByResourceGroupResponse, error) {
+ result := DiskAccessesClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskAccessList); err != nil {
+ return DiskAccessesClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPrivateEndpointConnectionsPager - List information about private endpoint connections under a disk access resource
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// options - DiskAccessesClientListPrivateEndpointConnectionsOptions contains the optional parameters for the DiskAccessesClient.ListPrivateEndpointConnections
+// method.
+func (client *DiskAccessesClient) NewListPrivateEndpointConnectionsPager(resourceGroupName string, diskAccessName string, options *DiskAccessesClientListPrivateEndpointConnectionsOptions) *runtime.Pager[DiskAccessesClientListPrivateEndpointConnectionsResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DiskAccessesClientListPrivateEndpointConnectionsResponse]{
+ More: func(page DiskAccessesClientListPrivateEndpointConnectionsResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DiskAccessesClientListPrivateEndpointConnectionsResponse) (DiskAccessesClientListPrivateEndpointConnectionsResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listPrivateEndpointConnectionsCreateRequest(ctx, resourceGroupName, diskAccessName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DiskAccessesClientListPrivateEndpointConnectionsResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskAccessesClientListPrivateEndpointConnectionsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskAccessesClientListPrivateEndpointConnectionsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listPrivateEndpointConnectionsHandleResponse(resp)
+ },
+ })
+}
+
+// listPrivateEndpointConnectionsCreateRequest creates the ListPrivateEndpointConnections request.
+func (client *DiskAccessesClient) listPrivateEndpointConnectionsCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, options *DiskAccessesClientListPrivateEndpointConnectionsOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listPrivateEndpointConnectionsHandleResponse handles the ListPrivateEndpointConnections response.
+func (client *DiskAccessesClient) listPrivateEndpointConnectionsHandleResponse(resp *http.Response) (DiskAccessesClientListPrivateEndpointConnectionsResponse, error) {
+ result := DiskAccessesClientListPrivateEndpointConnectionsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnectionListResult); err != nil {
+ return DiskAccessesClientListPrivateEndpointConnectionsResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Updates (patches) a disk access resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// diskAccess - disk access object supplied in the body of the Patch disk access operation.
+// options - DiskAccessesClientBeginUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginUpdate
+// method.
+func (client *DiskAccessesClient) BeginUpdate(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccessUpdate, options *DiskAccessesClientBeginUpdateOptions) (*runtime.Poller[DiskAccessesClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, diskAccessName, diskAccess, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DiskAccessesClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskAccessesClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Updates (patches) a disk access resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskAccessesClient) update(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccessUpdate, options *DiskAccessesClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, diskAccessName, diskAccess, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *DiskAccessesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccessUpdate, options *DiskAccessesClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, diskAccess)
+}
+
+// BeginUpdateAPrivateEndpointConnection - Approve or reject a private endpoint connection under disk access resource, this
+// can't be used to create a new private endpoint connection.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskAccessName - The name of the disk access resource that is being created. The name can't be changed after the disk encryption
+// set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
+// maximum name length is 80 characters.
+// privateEndpointConnectionName - The name of the private endpoint connection.
+// privateEndpointConnection - private endpoint connection object supplied in the body of the Put private endpoint connection
+// operation.
+// options - DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginUpdateAPrivateEndpointConnection
+// method.
+func (client *DiskAccessesClient) BeginUpdateAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions) (*runtime.Poller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.updateAPrivateEndpointConnection(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskAccessesClientUpdateAPrivateEndpointConnectionResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// UpdateAPrivateEndpointConnection - Approve or reject a private endpoint connection under disk access resource, this can't
+// be used to create a new private endpoint connection.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskAccessesClient) updateAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions) (*http.Response, error) {
+ req, err := client.updateAPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateAPrivateEndpointConnectionCreateRequest creates the UpdateAPrivateEndpointConnection request.
+func (client *DiskAccessesClient) updateAPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskAccessName == "" {
+ return nil, errors.New("parameter diskAccessName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskAccessName}", url.PathEscape(diskAccessName))
+ if privateEndpointConnectionName == "" {
+ return nil, errors.New("parameter privateEndpointConnectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{privateEndpointConnectionName}", url.PathEscape(privateEndpointConnectionName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, privateEndpointConnection)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskencryptionsets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskencryptionsets_client.go
new file mode 100644
index 0000000000..77c4430f0e
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskencryptionsets_client.go
@@ -0,0 +1,507 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// DiskEncryptionSetsClient contains the methods for the DiskEncryptionSets group.
+// Don't use this type directly, use NewDiskEncryptionSetsClient() instead.
+type DiskEncryptionSetsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewDiskEncryptionSetsClient creates a new instance of DiskEncryptionSetsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewDiskEncryptionSetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiskEncryptionSetsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &DiskEncryptionSetsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Creates or updates a disk encryption set
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the
+// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum
+// name length is 80 characters.
+// diskEncryptionSet - disk encryption set object supplied in the body of the Put disk encryption set operation.
+// options - DiskEncryptionSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginCreateOrUpdate
+// method.
+func (client *DiskEncryptionSetsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSet, options *DiskEncryptionSetsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DiskEncryptionSetsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DiskEncryptionSetsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskEncryptionSetsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Creates or updates a disk encryption set
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskEncryptionSetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSet, options *DiskEncryptionSetsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *DiskEncryptionSetsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSet, options *DiskEncryptionSetsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskEncryptionSetName == "" {
+ return nil, errors.New("parameter diskEncryptionSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, diskEncryptionSet)
+}
+
+// BeginDelete - Deletes a disk encryption set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the
+// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum
+// name length is 80 characters.
+// options - DiskEncryptionSetsClientBeginDeleteOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginDelete
+// method.
+func (client *DiskEncryptionSetsClient) BeginDelete(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientBeginDeleteOptions) (*runtime.Poller[DiskEncryptionSetsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, diskEncryptionSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DiskEncryptionSetsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskEncryptionSetsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes a disk encryption set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskEncryptionSetsClient) deleteOperation(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *DiskEncryptionSetsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskEncryptionSetName == "" {
+ return nil, errors.New("parameter diskEncryptionSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Gets information about a disk encryption set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the
+// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum
+// name length is 80 characters.
+// options - DiskEncryptionSetsClientGetOptions contains the optional parameters for the DiskEncryptionSetsClient.Get method.
+func (client *DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientGetOptions) (DiskEncryptionSetsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, options)
+ if err != nil {
+ return DiskEncryptionSetsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskEncryptionSetsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskEncryptionSetsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *DiskEncryptionSetsClient) getCreateRequest(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskEncryptionSetName == "" {
+ return nil, errors.New("parameter diskEncryptionSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *DiskEncryptionSetsClient) getHandleResponse(resp *http.Response) (DiskEncryptionSetsClientGetResponse, error) {
+ result := DiskEncryptionSetsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskEncryptionSet); err != nil {
+ return DiskEncryptionSetsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Lists all the disk encryption sets under a subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// options - DiskEncryptionSetsClientListOptions contains the optional parameters for the DiskEncryptionSetsClient.List method.
+func (client *DiskEncryptionSetsClient) NewListPager(options *DiskEncryptionSetsClientListOptions) *runtime.Pager[DiskEncryptionSetsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DiskEncryptionSetsClientListResponse]{
+ More: func(page DiskEncryptionSetsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DiskEncryptionSetsClientListResponse) (DiskEncryptionSetsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DiskEncryptionSetsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskEncryptionSetsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskEncryptionSetsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *DiskEncryptionSetsClient) listCreateRequest(ctx context.Context, options *DiskEncryptionSetsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *DiskEncryptionSetsClient) listHandleResponse(resp *http.Response) (DiskEncryptionSetsClientListResponse, error) {
+ result := DiskEncryptionSetsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskEncryptionSetList); err != nil {
+ return DiskEncryptionSetsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListAssociatedResourcesPager - Lists all resources that are encrypted with this disk encryption set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the
+// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum
+// name length is 80 characters.
+// options - DiskEncryptionSetsClientListAssociatedResourcesOptions contains the optional parameters for the DiskEncryptionSetsClient.ListAssociatedResources
+// method.
+func (client *DiskEncryptionSetsClient) NewListAssociatedResourcesPager(resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientListAssociatedResourcesOptions) *runtime.Pager[DiskEncryptionSetsClientListAssociatedResourcesResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DiskEncryptionSetsClientListAssociatedResourcesResponse]{
+ More: func(page DiskEncryptionSetsClientListAssociatedResourcesResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DiskEncryptionSetsClientListAssociatedResourcesResponse) (DiskEncryptionSetsClientListAssociatedResourcesResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listAssociatedResourcesCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DiskEncryptionSetsClientListAssociatedResourcesResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskEncryptionSetsClientListAssociatedResourcesResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskEncryptionSetsClientListAssociatedResourcesResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listAssociatedResourcesHandleResponse(resp)
+ },
+ })
+}
+
+// listAssociatedResourcesCreateRequest creates the ListAssociatedResources request.
+func (client *DiskEncryptionSetsClient) listAssociatedResourcesCreateRequest(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, options *DiskEncryptionSetsClientListAssociatedResourcesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskEncryptionSetName == "" {
+ return nil, errors.New("parameter diskEncryptionSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listAssociatedResourcesHandleResponse handles the ListAssociatedResources response.
+func (client *DiskEncryptionSetsClient) listAssociatedResourcesHandleResponse(resp *http.Response) (DiskEncryptionSetsClientListAssociatedResourcesResponse, error) {
+ result := DiskEncryptionSetsClientListAssociatedResourcesResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ResourceURIList); err != nil {
+ return DiskEncryptionSetsClientListAssociatedResourcesResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Lists all the disk encryption sets under a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// options - DiskEncryptionSetsClientListByResourceGroupOptions contains the optional parameters for the DiskEncryptionSetsClient.ListByResourceGroup
+// method.
+func (client *DiskEncryptionSetsClient) NewListByResourceGroupPager(resourceGroupName string, options *DiskEncryptionSetsClientListByResourceGroupOptions) *runtime.Pager[DiskEncryptionSetsClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DiskEncryptionSetsClientListByResourceGroupResponse]{
+ More: func(page DiskEncryptionSetsClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DiskEncryptionSetsClientListByResourceGroupResponse) (DiskEncryptionSetsClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DiskEncryptionSetsClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskEncryptionSetsClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskEncryptionSetsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *DiskEncryptionSetsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *DiskEncryptionSetsClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *DiskEncryptionSetsClient) listByResourceGroupHandleResponse(resp *http.Response) (DiskEncryptionSetsClientListByResourceGroupResponse, error) {
+ result := DiskEncryptionSetsClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskEncryptionSetList); err != nil {
+ return DiskEncryptionSetsClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Updates (patches) a disk encryption set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskEncryptionSetName - The name of the disk encryption set that is being created. The name can't be changed after the
+// disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum
+// name length is 80 characters.
+// diskEncryptionSet - disk encryption set object supplied in the body of the Patch disk encryption set operation.
+// options - DiskEncryptionSetsClientBeginUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginUpdate
+// method.
+func (client *DiskEncryptionSetsClient) BeginUpdate(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSetUpdate, options *DiskEncryptionSetsClientBeginUpdateOptions) (*runtime.Poller[DiskEncryptionSetsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DiskEncryptionSetsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskEncryptionSetsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Updates (patches) a disk encryption set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskEncryptionSetsClient) update(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSetUpdate, options *DiskEncryptionSetsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *DiskEncryptionSetsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSetUpdate, options *DiskEncryptionSetsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskEncryptionSetName == "" {
+ return nil, errors.New("parameter diskEncryptionSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskEncryptionSetName}", url.PathEscape(diskEncryptionSetName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, diskEncryptionSet)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskrestorepoint_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskrestorepoint_client.go
new file mode 100644
index 0000000000..82b47b2273
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_diskrestorepoint_client.go
@@ -0,0 +1,348 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// DiskRestorePointClient contains the methods for the DiskRestorePoint group.
+// Don't use this type directly, use NewDiskRestorePointClient() instead.
+type DiskRestorePointClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewDiskRestorePointClient creates a new instance of DiskRestorePointClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewDiskRestorePointClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiskRestorePointClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &DiskRestorePointClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Get disk restorePoint resource
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
+// vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
+// diskRestorePointName - The name of the disk restore point created.
+// options - DiskRestorePointClientGetOptions contains the optional parameters for the DiskRestorePointClient.Get method.
+func (client *DiskRestorePointClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, options *DiskRestorePointClientGetOptions) (DiskRestorePointClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, options)
+ if err != nil {
+ return DiskRestorePointClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskRestorePointClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskRestorePointClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *DiskRestorePointClient) getCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, options *DiskRestorePointClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ if vmRestorePointName == "" {
+ return nil, errors.New("parameter vmRestorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmRestorePointName}", url.PathEscape(vmRestorePointName))
+ if diskRestorePointName == "" {
+ return nil, errors.New("parameter diskRestorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskRestorePointName}", url.PathEscape(diskRestorePointName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *DiskRestorePointClient) getHandleResponse(resp *http.Response) (DiskRestorePointClientGetResponse, error) {
+ result := DiskRestorePointClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskRestorePoint); err != nil {
+ return DiskRestorePointClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginGrantAccess - Grants access to a diskRestorePoint.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
+// vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
+// diskRestorePointName - The name of the disk restore point created.
+// grantAccessData - Access data object supplied in the body of the get disk access operation.
+// options - DiskRestorePointClientBeginGrantAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginGrantAccess
+// method.
+func (client *DiskRestorePointClient) BeginGrantAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, grantAccessData GrantAccessData, options *DiskRestorePointClientBeginGrantAccessOptions) (*runtime.Poller[DiskRestorePointClientGrantAccessResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.grantAccess(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, grantAccessData, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[DiskRestorePointClientGrantAccessResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskRestorePointClientGrantAccessResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// GrantAccess - Grants access to a diskRestorePoint.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskRestorePointClient) grantAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, grantAccessData GrantAccessData, options *DiskRestorePointClientBeginGrantAccessOptions) (*http.Response, error) {
+ req, err := client.grantAccessCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, grantAccessData, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// grantAccessCreateRequest creates the GrantAccess request.
+func (client *DiskRestorePointClient) grantAccessCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, grantAccessData GrantAccessData, options *DiskRestorePointClientBeginGrantAccessOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ if vmRestorePointName == "" {
+ return nil, errors.New("parameter vmRestorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmRestorePointName}", url.PathEscape(vmRestorePointName))
+ if diskRestorePointName == "" {
+ return nil, errors.New("parameter diskRestorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskRestorePointName}", url.PathEscape(diskRestorePointName))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, grantAccessData)
+}
+
+// NewListByRestorePointPager - Lists diskRestorePoints under a vmRestorePoint.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
+// vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
+// options - DiskRestorePointClientListByRestorePointOptions contains the optional parameters for the DiskRestorePointClient.ListByRestorePoint
+// method.
+func (client *DiskRestorePointClient) NewListByRestorePointPager(resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, options *DiskRestorePointClientListByRestorePointOptions) *runtime.Pager[DiskRestorePointClientListByRestorePointResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DiskRestorePointClientListByRestorePointResponse]{
+ More: func(page DiskRestorePointClientListByRestorePointResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DiskRestorePointClientListByRestorePointResponse) (DiskRestorePointClientListByRestorePointResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByRestorePointCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DiskRestorePointClientListByRestorePointResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DiskRestorePointClientListByRestorePointResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DiskRestorePointClientListByRestorePointResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByRestorePointHandleResponse(resp)
+ },
+ })
+}
+
+// listByRestorePointCreateRequest creates the ListByRestorePoint request.
+func (client *DiskRestorePointClient) listByRestorePointCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, options *DiskRestorePointClientListByRestorePointOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ if vmRestorePointName == "" {
+ return nil, errors.New("parameter vmRestorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmRestorePointName}", url.PathEscape(vmRestorePointName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByRestorePointHandleResponse handles the ListByRestorePoint response.
+func (client *DiskRestorePointClient) listByRestorePointHandleResponse(resp *http.Response) (DiskRestorePointClientListByRestorePointResponse, error) {
+ result := DiskRestorePointClientListByRestorePointResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskRestorePointList); err != nil {
+ return DiskRestorePointClientListByRestorePointResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginRevokeAccess - Revokes access to a diskRestorePoint.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
+// vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
+// diskRestorePointName - The name of the disk restore point created.
+// options - DiskRestorePointClientBeginRevokeAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginRevokeAccess
+// method.
+func (client *DiskRestorePointClient) BeginRevokeAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, options *DiskRestorePointClientBeginRevokeAccessOptions) (*runtime.Poller[DiskRestorePointClientRevokeAccessResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.revokeAccess(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[DiskRestorePointClientRevokeAccessResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[DiskRestorePointClientRevokeAccessResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// RevokeAccess - Revokes access to a diskRestorePoint.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DiskRestorePointClient) revokeAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, options *DiskRestorePointClientBeginRevokeAccessOptions) (*http.Response, error) {
+ req, err := client.revokeAccessCreateRequest(ctx, resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// revokeAccessCreateRequest creates the RevokeAccess request.
+func (client *DiskRestorePointClient) revokeAccessCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, vmRestorePointName string, diskRestorePointName string, options *DiskRestorePointClientBeginRevokeAccessOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ if vmRestorePointName == "" {
+ return nil, errors.New("parameter vmRestorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmRestorePointName}", url.PathEscape(vmRestorePointName))
+ if diskRestorePointName == "" {
+ return nil, errors.New("parameter diskRestorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskRestorePointName}", url.PathEscape(diskRestorePointName))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_disks_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_disks_client.go
new file mode 100644
index 0000000000..37965463be
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_disks_client.go
@@ -0,0 +1,564 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// DisksClient contains the methods for the Disks group.
+// Don't use this type directly, use NewDisksClient() instead.
+type DisksClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewDisksClient creates a new instance of DisksClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewDisksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DisksClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &DisksClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Creates or updates a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported
+// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
+// characters.
+// disk - Disk object supplied in the body of the Put disk operation.
+// options - DisksClientBeginCreateOrUpdateOptions contains the optional parameters for the DisksClient.BeginCreateOrUpdate
+// method.
+func (client *DisksClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, diskName string, disk Disk, options *DisksClientBeginCreateOrUpdateOptions) (*runtime.Poller[DisksClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, diskName, disk, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DisksClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DisksClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Creates or updates a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DisksClient) createOrUpdate(ctx context.Context, resourceGroupName string, diskName string, disk Disk, options *DisksClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, diskName, disk, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *DisksClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, diskName string, disk Disk, options *DisksClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskName == "" {
+ return nil, errors.New("parameter diskName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, disk)
+}
+
+// BeginDelete - Deletes a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported
+// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
+// characters.
+// options - DisksClientBeginDeleteOptions contains the optional parameters for the DisksClient.BeginDelete method.
+func (client *DisksClient) BeginDelete(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginDeleteOptions) (*runtime.Poller[DisksClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, diskName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DisksClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DisksClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DisksClient) deleteOperation(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, diskName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *DisksClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskName == "" {
+ return nil, errors.New("parameter diskName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ return req, nil
+}
+
+// Get - Gets information about a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported
+// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
+// characters.
+// options - DisksClientGetOptions contains the optional parameters for the DisksClient.Get method.
+func (client *DisksClient) Get(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientGetOptions) (DisksClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, diskName, options)
+ if err != nil {
+ return DisksClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DisksClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DisksClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *DisksClient) getCreateRequest(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskName == "" {
+ return nil, errors.New("parameter diskName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *DisksClient) getHandleResponse(resp *http.Response) (DisksClientGetResponse, error) {
+ result := DisksClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.Disk); err != nil {
+ return DisksClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginGrantAccess - Grants access to a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported
+// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
+// characters.
+// grantAccessData - Access data object supplied in the body of the get disk access operation.
+// options - DisksClientBeginGrantAccessOptions contains the optional parameters for the DisksClient.BeginGrantAccess method.
+func (client *DisksClient) BeginGrantAccess(ctx context.Context, resourceGroupName string, diskName string, grantAccessData GrantAccessData, options *DisksClientBeginGrantAccessOptions) (*runtime.Poller[DisksClientGrantAccessResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.grantAccess(ctx, resourceGroupName, diskName, grantAccessData, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[DisksClientGrantAccessResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[DisksClientGrantAccessResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// GrantAccess - Grants access to a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DisksClient) grantAccess(ctx context.Context, resourceGroupName string, diskName string, grantAccessData GrantAccessData, options *DisksClientBeginGrantAccessOptions) (*http.Response, error) {
+ req, err := client.grantAccessCreateRequest(ctx, resourceGroupName, diskName, grantAccessData, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// grantAccessCreateRequest creates the GrantAccess request.
+func (client *DisksClient) grantAccessCreateRequest(ctx context.Context, resourceGroupName string, diskName string, grantAccessData GrantAccessData, options *DisksClientBeginGrantAccessOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskName == "" {
+ return nil, errors.New("parameter diskName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, grantAccessData)
+}
+
+// NewListPager - Lists all the disks under a subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// options - DisksClientListOptions contains the optional parameters for the DisksClient.List method.
+func (client *DisksClient) NewListPager(options *DisksClientListOptions) *runtime.Pager[DisksClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DisksClientListResponse]{
+ More: func(page DisksClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DisksClientListResponse) (DisksClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DisksClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DisksClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DisksClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *DisksClient) listCreateRequest(ctx context.Context, options *DisksClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *DisksClient) listHandleResponse(resp *http.Response) (DisksClientListResponse, error) {
+ result := DisksClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskList); err != nil {
+ return DisksClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Lists all the disks under a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// options - DisksClientListByResourceGroupOptions contains the optional parameters for the DisksClient.ListByResourceGroup
+// method.
+func (client *DisksClient) NewListByResourceGroupPager(resourceGroupName string, options *DisksClientListByResourceGroupOptions) *runtime.Pager[DisksClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[DisksClientListByResourceGroupResponse]{
+ More: func(page DisksClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *DisksClientListByResourceGroupResponse) (DisksClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return DisksClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return DisksClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DisksClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *DisksClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *DisksClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *DisksClient) listByResourceGroupHandleResponse(resp *http.Response) (DisksClientListByResourceGroupResponse, error) {
+ result := DisksClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DiskList); err != nil {
+ return DisksClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginRevokeAccess - Revokes access to a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported
+// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
+// characters.
+// options - DisksClientBeginRevokeAccessOptions contains the optional parameters for the DisksClient.BeginRevokeAccess method.
+func (client *DisksClient) BeginRevokeAccess(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginRevokeAccessOptions) (*runtime.Poller[DisksClientRevokeAccessResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.revokeAccess(ctx, resourceGroupName, diskName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[DisksClientRevokeAccessResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[DisksClientRevokeAccessResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// RevokeAccess - Revokes access to a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DisksClient) revokeAccess(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginRevokeAccessOptions) (*http.Response, error) {
+ req, err := client.revokeAccessCreateRequest(ctx, resourceGroupName, diskName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// revokeAccessCreateRequest creates the RevokeAccess request.
+func (client *DisksClient) revokeAccessCreateRequest(ctx context.Context, resourceGroupName string, diskName string, options *DisksClientBeginRevokeAccessOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskName == "" {
+ return nil, errors.New("parameter diskName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ return req, nil
+}
+
+// BeginUpdate - Updates (patches) a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported
+// characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
+// characters.
+// disk - Disk object supplied in the body of the Patch disk operation.
+// options - DisksClientBeginUpdateOptions contains the optional parameters for the DisksClient.BeginUpdate method.
+func (client *DisksClient) BeginUpdate(ctx context.Context, resourceGroupName string, diskName string, disk DiskUpdate, options *DisksClientBeginUpdateOptions) (*runtime.Poller[DisksClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, diskName, disk, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[DisksClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[DisksClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Updates (patches) a disk.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *DisksClient) update(ctx context.Context, resourceGroupName string, diskName string, disk DiskUpdate, options *DisksClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, diskName, disk, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *DisksClient) updateCreateRequest(ctx context.Context, resourceGroupName string, diskName string, disk DiskUpdate, options *DisksClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if diskName == "" {
+ return nil, errors.New("parameter diskName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{diskName}", url.PathEscape(diskName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, disk)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleries_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleries_client.go
new file mode 100644
index 0000000000..f2c82893b2
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleries_client.go
@@ -0,0 +1,433 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// GalleriesClient contains the methods for the Galleries group.
+// Don't use this type directly, use NewGalleriesClient() instead.
+type GalleriesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewGalleriesClient creates a new instance of GalleriesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewGalleriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleriesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &GalleriesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Create or update a Shared Image Gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods
+// allowed in the middle. The maximum length is 80 characters.
+// gallery - Parameters supplied to the create or update Shared Image Gallery operation.
+// options - GalleriesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleriesClient.BeginCreateOrUpdate
+// method.
+func (client *GalleriesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery Gallery, options *GalleriesClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleriesClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, gallery, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleriesClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleriesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update a Shared Image Gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleriesClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery Gallery, options *GalleriesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, gallery, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *GalleriesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, gallery Gallery, options *GalleriesClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, gallery)
+}
+
+// BeginDelete - Delete a Shared Image Gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery to be deleted.
+// options - GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method.
+func (client *GalleriesClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientBeginDeleteOptions) (*runtime.Poller[GalleriesClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleriesClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleriesClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Delete a Shared Image Gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleriesClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *GalleriesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about a Shared Image Gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery.
+// options - GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method.
+func (client *GalleriesClient) Get(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientGetOptions) (GalleriesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, options)
+ if err != nil {
+ return GalleriesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleriesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleriesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *GalleriesClient) getCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ if options != nil && options.Select != nil {
+ reqQP.Set("$select", string(*options.Select))
+ }
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *GalleriesClient) getHandleResponse(resp *http.Response) (GalleriesClientGetResponse, error) {
+ result := GalleriesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.Gallery); err != nil {
+ return GalleriesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - List galleries under a subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// options - GalleriesClientListOptions contains the optional parameters for the GalleriesClient.List method.
+func (client *GalleriesClient) NewListPager(options *GalleriesClientListOptions) *runtime.Pager[GalleriesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[GalleriesClientListResponse]{
+ More: func(page GalleriesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *GalleriesClientListResponse) (GalleriesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return GalleriesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleriesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleriesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *GalleriesClient) listCreateRequest(ctx context.Context, options *GalleriesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *GalleriesClient) listHandleResponse(resp *http.Response) (GalleriesClientListResponse, error) {
+ result := GalleriesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryList); err != nil {
+ return GalleriesClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - List galleries under a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// options - GalleriesClientListByResourceGroupOptions contains the optional parameters for the GalleriesClient.ListByResourceGroup
+// method.
+func (client *GalleriesClient) NewListByResourceGroupPager(resourceGroupName string, options *GalleriesClientListByResourceGroupOptions) *runtime.Pager[GalleriesClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[GalleriesClientListByResourceGroupResponse]{
+ More: func(page GalleriesClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *GalleriesClientListByResourceGroupResponse) (GalleriesClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return GalleriesClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleriesClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleriesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *GalleriesClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *GalleriesClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *GalleriesClient) listByResourceGroupHandleResponse(resp *http.Response) (GalleriesClientListByResourceGroupResponse, error) {
+ result := GalleriesClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryList); err != nil {
+ return GalleriesClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Update a Shared Image Gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods
+// allowed in the middle. The maximum length is 80 characters.
+// gallery - Parameters supplied to the update Shared Image Gallery operation.
+// options - GalleriesClientBeginUpdateOptions contains the optional parameters for the GalleriesClient.BeginUpdate method.
+func (client *GalleriesClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery GalleryUpdate, options *GalleriesClientBeginUpdateOptions) (*runtime.Poller[GalleriesClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, galleryName, gallery, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleriesClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleriesClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update a Shared Image Gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleriesClient) update(ctx context.Context, resourceGroupName string, galleryName string, gallery GalleryUpdate, options *GalleriesClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, gallery, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *GalleriesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, gallery GalleryUpdate, options *GalleriesClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, gallery)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplications_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplications_client.go
new file mode 100644
index 0000000000..342e82b55d
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplications_client.go
@@ -0,0 +1,397 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// GalleryApplicationsClient contains the methods for the GalleryApplications group.
+// Don't use this type directly, use NewGalleryApplicationsClient() instead.
+type GalleryApplicationsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewGalleryApplicationsClient creates a new instance of GalleryApplicationsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewGalleryApplicationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleryApplicationsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &GalleryApplicationsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Create or update a gallery Application Definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery in which the Application Definition is to be created.
+// galleryApplicationName - The name of the gallery Application Definition to be created or updated. The allowed characters
+// are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80
+// characters.
+// galleryApplication - Parameters supplied to the create or update gallery Application operation.
+// options - GalleryApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginCreateOrUpdate
+// method.
+func (client *GalleryApplicationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplication, options *GalleryApplicationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleryApplicationsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryApplicationsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryApplicationsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update a gallery Application Definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryApplicationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplication, options *GalleryApplicationsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *GalleryApplicationsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplication, options *GalleryApplicationsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, galleryApplication)
+}
+
+// BeginDelete - Delete a gallery Application.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery in which the Application Definition is to be deleted.
+// galleryApplicationName - The name of the gallery Application Definition to be deleted.
+// options - GalleryApplicationsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationsClient.BeginDelete
+// method.
+func (client *GalleryApplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientBeginDeleteOptions) (*runtime.Poller[GalleryApplicationsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, galleryApplicationName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryApplicationsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryApplicationsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Delete a gallery Application.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryApplicationsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *GalleryApplicationsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about a gallery Application Definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery from which the Application Definitions are to be retrieved.
+// galleryApplicationName - The name of the gallery Application Definition to be retrieved.
+// options - GalleryApplicationsClientGetOptions contains the optional parameters for the GalleryApplicationsClient.Get method.
+func (client *GalleryApplicationsClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientGetOptions) (GalleryApplicationsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, options)
+ if err != nil {
+ return GalleryApplicationsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleryApplicationsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleryApplicationsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *GalleryApplicationsClient) getCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *GalleryApplicationsClient) getHandleResponse(resp *http.Response) (GalleryApplicationsClientGetResponse, error) {
+ result := GalleryApplicationsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryApplication); err != nil {
+ return GalleryApplicationsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByGalleryPager - List gallery Application Definitions in a gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery from which Application Definitions are to be listed.
+// options - GalleryApplicationsClientListByGalleryOptions contains the optional parameters for the GalleryApplicationsClient.ListByGallery
+// method.
+func (client *GalleryApplicationsClient) NewListByGalleryPager(resourceGroupName string, galleryName string, options *GalleryApplicationsClientListByGalleryOptions) *runtime.Pager[GalleryApplicationsClientListByGalleryResponse] {
+ return runtime.NewPager(runtime.PagingHandler[GalleryApplicationsClientListByGalleryResponse]{
+ More: func(page GalleryApplicationsClientListByGalleryResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *GalleryApplicationsClientListByGalleryResponse) (GalleryApplicationsClientListByGalleryResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByGalleryCreateRequest(ctx, resourceGroupName, galleryName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return GalleryApplicationsClientListByGalleryResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleryApplicationsClientListByGalleryResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleryApplicationsClientListByGalleryResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByGalleryHandleResponse(resp)
+ },
+ })
+}
+
+// listByGalleryCreateRequest creates the ListByGallery request.
+func (client *GalleryApplicationsClient) listByGalleryCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, options *GalleryApplicationsClientListByGalleryOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByGalleryHandleResponse handles the ListByGallery response.
+func (client *GalleryApplicationsClient) listByGalleryHandleResponse(resp *http.Response) (GalleryApplicationsClientListByGalleryResponse, error) {
+ result := GalleryApplicationsClientListByGalleryResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryApplicationList); err != nil {
+ return GalleryApplicationsClientListByGalleryResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Update a gallery Application Definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery in which the Application Definition is to be updated.
+// galleryApplicationName - The name of the gallery Application Definition to be updated. The allowed characters are alphabets
+// and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80
+// characters.
+// galleryApplication - Parameters supplied to the update gallery Application operation.
+// options - GalleryApplicationsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginUpdate
+// method.
+func (client *GalleryApplicationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplicationUpdate, options *GalleryApplicationsClientBeginUpdateOptions) (*runtime.Poller[GalleryApplicationsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryApplicationsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryApplicationsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update a gallery Application Definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryApplicationsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplicationUpdate, options *GalleryApplicationsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *GalleryApplicationsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplicationUpdate, options *GalleryApplicationsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, galleryApplication)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplicationversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplicationversions_client.go
new file mode 100644
index 0000000000..373f659ce9
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryapplicationversions_client.go
@@ -0,0 +1,427 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// GalleryApplicationVersionsClient contains the methods for the GalleryApplicationVersions group.
+// Don't use this type directly, use NewGalleryApplicationVersionsClient() instead.
+type GalleryApplicationVersionsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewGalleryApplicationVersionsClient creates a new instance of GalleryApplicationVersionsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewGalleryApplicationVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleryApplicationVersionsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &GalleryApplicationVersionsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Create or update a gallery Application Version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
+// galleryApplicationName - The name of the gallery Application Definition in which the Application Version is to be created.
+// galleryApplicationVersionName - The name of the gallery Application Version to be created. Needs to follow semantic version
+// name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit
+// integer. Format: ..
+// galleryApplicationVersion - Parameters supplied to the create or update gallery Application Version operation.
+// options - GalleryApplicationVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginCreateOrUpdate
+// method.
+func (client *GalleryApplicationVersionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersion, options *GalleryApplicationVersionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleryApplicationVersionsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryApplicationVersionsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryApplicationVersionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update a gallery Application Version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryApplicationVersionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersion, options *GalleryApplicationVersionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *GalleryApplicationVersionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersion, options *GalleryApplicationVersionsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ if galleryApplicationVersionName == "" {
+ return nil, errors.New("parameter galleryApplicationVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationVersionName}", url.PathEscape(galleryApplicationVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, galleryApplicationVersion)
+}
+
+// BeginDelete - Delete a gallery Application Version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
+// galleryApplicationName - The name of the gallery Application Definition in which the Application Version resides.
+// galleryApplicationVersionName - The name of the gallery Application Version to be deleted.
+// options - GalleryApplicationVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginDelete
+// method.
+func (client *GalleryApplicationVersionsClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientBeginDeleteOptions) (*runtime.Poller[GalleryApplicationVersionsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryApplicationVersionsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryApplicationVersionsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Delete a gallery Application Version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryApplicationVersionsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *GalleryApplicationVersionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ if galleryApplicationVersionName == "" {
+ return nil, errors.New("parameter galleryApplicationVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationVersionName}", url.PathEscape(galleryApplicationVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about a gallery Application Version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
+// galleryApplicationName - The name of the gallery Application Definition in which the Application Version resides.
+// galleryApplicationVersionName - The name of the gallery Application Version to be retrieved.
+// options - GalleryApplicationVersionsClientGetOptions contains the optional parameters for the GalleryApplicationVersionsClient.Get
+// method.
+func (client *GalleryApplicationVersionsClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientGetOptions) (GalleryApplicationVersionsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, options)
+ if err != nil {
+ return GalleryApplicationVersionsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleryApplicationVersionsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleryApplicationVersionsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *GalleryApplicationVersionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ if galleryApplicationVersionName == "" {
+ return nil, errors.New("parameter galleryApplicationVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationVersionName}", url.PathEscape(galleryApplicationVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *GalleryApplicationVersionsClient) getHandleResponse(resp *http.Response) (GalleryApplicationVersionsClientGetResponse, error) {
+ result := GalleryApplicationVersionsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryApplicationVersion); err != nil {
+ return GalleryApplicationVersionsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByGalleryApplicationPager - List gallery Application Versions in a gallery Application Definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
+// galleryApplicationName - The name of the Shared Application Gallery Application Definition from which the Application Versions
+// are to be listed.
+// options - GalleryApplicationVersionsClientListByGalleryApplicationOptions contains the optional parameters for the GalleryApplicationVersionsClient.ListByGalleryApplication
+// method.
+func (client *GalleryApplicationVersionsClient) NewListByGalleryApplicationPager(resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationVersionsClientListByGalleryApplicationOptions) *runtime.Pager[GalleryApplicationVersionsClientListByGalleryApplicationResponse] {
+ return runtime.NewPager(runtime.PagingHandler[GalleryApplicationVersionsClientListByGalleryApplicationResponse]{
+ More: func(page GalleryApplicationVersionsClientListByGalleryApplicationResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *GalleryApplicationVersionsClientListByGalleryApplicationResponse) (GalleryApplicationVersionsClientListByGalleryApplicationResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByGalleryApplicationCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return GalleryApplicationVersionsClientListByGalleryApplicationResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleryApplicationVersionsClientListByGalleryApplicationResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleryApplicationVersionsClientListByGalleryApplicationResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByGalleryApplicationHandleResponse(resp)
+ },
+ })
+}
+
+// listByGalleryApplicationCreateRequest creates the ListByGalleryApplication request.
+func (client *GalleryApplicationVersionsClient) listByGalleryApplicationCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationVersionsClientListByGalleryApplicationOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByGalleryApplicationHandleResponse handles the ListByGalleryApplication response.
+func (client *GalleryApplicationVersionsClient) listByGalleryApplicationHandleResponse(resp *http.Response) (GalleryApplicationVersionsClientListByGalleryApplicationResponse, error) {
+ result := GalleryApplicationVersionsClientListByGalleryApplicationResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryApplicationVersionList); err != nil {
+ return GalleryApplicationVersionsClientListByGalleryApplicationResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Update a gallery Application Version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
+// galleryApplicationName - The name of the gallery Application Definition in which the Application Version is to be updated.
+// galleryApplicationVersionName - The name of the gallery Application Version to be updated. Needs to follow semantic version
+// name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit
+// integer. Format: ..
+// galleryApplicationVersion - Parameters supplied to the update gallery Application Version operation.
+// options - GalleryApplicationVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginUpdate
+// method.
+func (client *GalleryApplicationVersionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersionUpdate, options *GalleryApplicationVersionsClientBeginUpdateOptions) (*runtime.Poller[GalleryApplicationVersionsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryApplicationVersionsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryApplicationVersionsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update a gallery Application Version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryApplicationVersionsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersionUpdate, options *GalleryApplicationVersionsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *GalleryApplicationVersionsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersionUpdate, options *GalleryApplicationVersionsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryApplicationName == "" {
+ return nil, errors.New("parameter galleryApplicationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationName}", url.PathEscape(galleryApplicationName))
+ if galleryApplicationVersionName == "" {
+ return nil, errors.New("parameter galleryApplicationVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryApplicationVersionName}", url.PathEscape(galleryApplicationVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, galleryApplicationVersion)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimages_client.go
new file mode 100644
index 0000000000..8427d5f4b5
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimages_client.go
@@ -0,0 +1,396 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// GalleryImagesClient contains the methods for the GalleryImages group.
+// Don't use this type directly, use NewGalleryImagesClient() instead.
+type GalleryImagesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewGalleryImagesClient creates a new instance of GalleryImagesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewGalleryImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleryImagesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &GalleryImagesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Create or update a gallery image definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery in which the Image Definition is to be created.
+// galleryImageName - The name of the gallery image definition to be created or updated. The allowed characters are alphabets
+// and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80
+// characters.
+// galleryImage - Parameters supplied to the create or update gallery image operation.
+// options - GalleryImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginCreateOrUpdate
+// method.
+func (client *GalleryImagesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImage, options *GalleryImagesClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleryImagesClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, galleryImageName, galleryImage, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryImagesClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryImagesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update a gallery image definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryImagesClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImage, options *GalleryImagesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImage, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *GalleryImagesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImage, options *GalleryImagesClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, galleryImage)
+}
+
+// BeginDelete - Delete a gallery image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery in which the Image Definition is to be deleted.
+// galleryImageName - The name of the gallery image definition to be deleted.
+// options - GalleryImagesClientBeginDeleteOptions contains the optional parameters for the GalleryImagesClient.BeginDelete
+// method.
+func (client *GalleryImagesClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientBeginDeleteOptions) (*runtime.Poller[GalleryImagesClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, galleryImageName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryImagesClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryImagesClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Delete a gallery image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryImagesClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *GalleryImagesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about a gallery image definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
+// galleryImageName - The name of the gallery image definition to be retrieved.
+// options - GalleryImagesClientGetOptions contains the optional parameters for the GalleryImagesClient.Get method.
+func (client *GalleryImagesClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientGetOptions) (GalleryImagesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, options)
+ if err != nil {
+ return GalleryImagesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleryImagesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleryImagesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *GalleryImagesClient) getCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *GalleryImagesClient) getHandleResponse(resp *http.Response) (GalleryImagesClientGetResponse, error) {
+ result := GalleryImagesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryImage); err != nil {
+ return GalleryImagesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByGalleryPager - List gallery image definitions in a gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery from which Image Definitions are to be listed.
+// options - GalleryImagesClientListByGalleryOptions contains the optional parameters for the GalleryImagesClient.ListByGallery
+// method.
+func (client *GalleryImagesClient) NewListByGalleryPager(resourceGroupName string, galleryName string, options *GalleryImagesClientListByGalleryOptions) *runtime.Pager[GalleryImagesClientListByGalleryResponse] {
+ return runtime.NewPager(runtime.PagingHandler[GalleryImagesClientListByGalleryResponse]{
+ More: func(page GalleryImagesClientListByGalleryResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *GalleryImagesClientListByGalleryResponse) (GalleryImagesClientListByGalleryResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByGalleryCreateRequest(ctx, resourceGroupName, galleryName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return GalleryImagesClientListByGalleryResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleryImagesClientListByGalleryResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleryImagesClientListByGalleryResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByGalleryHandleResponse(resp)
+ },
+ })
+}
+
+// listByGalleryCreateRequest creates the ListByGallery request.
+func (client *GalleryImagesClient) listByGalleryCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, options *GalleryImagesClientListByGalleryOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByGalleryHandleResponse handles the ListByGallery response.
+func (client *GalleryImagesClient) listByGalleryHandleResponse(resp *http.Response) (GalleryImagesClientListByGalleryResponse, error) {
+ result := GalleryImagesClientListByGalleryResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryImageList); err != nil {
+ return GalleryImagesClientListByGalleryResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Update a gallery image definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery in which the Image Definition is to be updated.
+// galleryImageName - The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers
+// with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
+// galleryImage - Parameters supplied to the update gallery image operation.
+// options - GalleryImagesClientBeginUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginUpdate
+// method.
+func (client *GalleryImagesClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImageUpdate, options *GalleryImagesClientBeginUpdateOptions) (*runtime.Poller[GalleryImagesClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, galleryName, galleryImageName, galleryImage, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryImagesClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryImagesClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update a gallery image definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryImagesClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImageUpdate, options *GalleryImagesClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImage, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *GalleryImagesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImageUpdate, options *GalleryImagesClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, galleryImage)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimageversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimageversions_client.go
new file mode 100644
index 0000000000..df24c4d2c3
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_galleryimageversions_client.go
@@ -0,0 +1,426 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// GalleryImageVersionsClient contains the methods for the GalleryImageVersions group.
+// Don't use this type directly, use NewGalleryImageVersionsClient() instead.
+type GalleryImageVersionsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewGalleryImageVersionsClient creates a new instance of GalleryImageVersionsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewGalleryImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GalleryImageVersionsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &GalleryImageVersionsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Create or update a gallery image version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
+// galleryImageName - The name of the gallery image definition in which the Image Version is to be created.
+// galleryImageVersionName - The name of the gallery image version to be created. Needs to follow semantic version name pattern:
+// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer.
+// Format: ..
+// galleryImageVersion - Parameters supplied to the create or update gallery image version operation.
+// options - GalleryImageVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginCreateOrUpdate
+// method.
+func (client *GalleryImageVersionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersion, options *GalleryImageVersionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GalleryImageVersionsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryImageVersionsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryImageVersionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update a gallery image version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryImageVersionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersion, options *GalleryImageVersionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *GalleryImageVersionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersion, options *GalleryImageVersionsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ if galleryImageVersionName == "" {
+ return nil, errors.New("parameter galleryImageVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, galleryImageVersion)
+}
+
+// BeginDelete - Delete a gallery image version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
+// galleryImageName - The name of the gallery image definition in which the Image Version resides.
+// galleryImageVersionName - The name of the gallery image version to be deleted.
+// options - GalleryImageVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryImageVersionsClient.BeginDelete
+// method.
+func (client *GalleryImageVersionsClient) BeginDelete(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientBeginDeleteOptions) (*runtime.Poller[GalleryImageVersionsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryImageVersionsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryImageVersionsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Delete a gallery image version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryImageVersionsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *GalleryImageVersionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ if galleryImageVersionName == "" {
+ return nil, errors.New("parameter galleryImageVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about a gallery image version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
+// galleryImageName - The name of the gallery image definition in which the Image Version resides.
+// galleryImageVersionName - The name of the gallery image version to be retrieved.
+// options - GalleryImageVersionsClientGetOptions contains the optional parameters for the GalleryImageVersionsClient.Get
+// method.
+func (client *GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientGetOptions) (GalleryImageVersionsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, options)
+ if err != nil {
+ return GalleryImageVersionsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleryImageVersionsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleryImageVersionsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *GalleryImageVersionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ if galleryImageVersionName == "" {
+ return nil, errors.New("parameter galleryImageVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *GalleryImageVersionsClient) getHandleResponse(resp *http.Response) (GalleryImageVersionsClientGetResponse, error) {
+ result := GalleryImageVersionsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryImageVersion); err != nil {
+ return GalleryImageVersionsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByGalleryImagePager - List gallery image versions in a gallery image definition.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
+// galleryImageName - The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed.
+// options - GalleryImageVersionsClientListByGalleryImageOptions contains the optional parameters for the GalleryImageVersionsClient.ListByGalleryImage
+// method.
+func (client *GalleryImageVersionsClient) NewListByGalleryImagePager(resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImageVersionsClientListByGalleryImageOptions) *runtime.Pager[GalleryImageVersionsClientListByGalleryImageResponse] {
+ return runtime.NewPager(runtime.PagingHandler[GalleryImageVersionsClientListByGalleryImageResponse]{
+ More: func(page GalleryImageVersionsClientListByGalleryImageResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *GalleryImageVersionsClientListByGalleryImageResponse) (GalleryImageVersionsClientListByGalleryImageResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByGalleryImageCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return GalleryImageVersionsClientListByGalleryImageResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return GalleryImageVersionsClientListByGalleryImageResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GalleryImageVersionsClientListByGalleryImageResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByGalleryImageHandleResponse(resp)
+ },
+ })
+}
+
+// listByGalleryImageCreateRequest creates the ListByGalleryImage request.
+func (client *GalleryImageVersionsClient) listByGalleryImageCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImageVersionsClientListByGalleryImageOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByGalleryImageHandleResponse handles the ListByGalleryImage response.
+func (client *GalleryImageVersionsClient) listByGalleryImageHandleResponse(resp *http.Response) (GalleryImageVersionsClientListByGalleryImageResponse, error) {
+ result := GalleryImageVersionsClientListByGalleryImageResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.GalleryImageVersionList); err != nil {
+ return GalleryImageVersionsClientListByGalleryImageResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Update a gallery image version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
+// galleryImageName - The name of the gallery image definition in which the Image Version is to be updated.
+// galleryImageVersionName - The name of the gallery image version to be updated. Needs to follow semantic version name pattern:
+// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer.
+// Format: ..
+// galleryImageVersion - Parameters supplied to the update gallery image version operation.
+// options - GalleryImageVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginUpdate
+// method.
+func (client *GalleryImageVersionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersionUpdate, options *GalleryImageVersionsClientBeginUpdateOptions) (*runtime.Poller[GalleryImageVersionsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GalleryImageVersionsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GalleryImageVersionsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update a gallery image version.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GalleryImageVersionsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersionUpdate, options *GalleryImageVersionsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *GalleryImageVersionsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersionUpdate, options *GalleryImageVersionsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ if galleryImageVersionName == "" {
+ return nil, errors.New("parameter galleryImageVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, galleryImageVersion)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_gallerysharingprofile_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_gallerysharingprofile_client.go
new file mode 100644
index 0000000000..3ddc9614b9
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_gallerysharingprofile_client.go
@@ -0,0 +1,120 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// GallerySharingProfileClient contains the methods for the GallerySharingProfile group.
+// Don't use this type directly, use NewGallerySharingProfileClient() instead.
+type GallerySharingProfileClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewGallerySharingProfileClient creates a new instance of GallerySharingProfileClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewGallerySharingProfileClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GallerySharingProfileClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &GallerySharingProfileClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginUpdate - Update sharing profile of a gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+// resourceGroupName - The name of the resource group.
+// galleryName - The name of the Shared Image Gallery.
+// sharingUpdate - Parameters supplied to the update gallery sharing profile.
+// options - GallerySharingProfileClientBeginUpdateOptions contains the optional parameters for the GallerySharingProfileClient.BeginUpdate
+// method.
+func (client *GallerySharingProfileClient) BeginUpdate(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate SharingUpdate, options *GallerySharingProfileClientBeginUpdateOptions) (*runtime.Poller[GallerySharingProfileClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, galleryName, sharingUpdate, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[GallerySharingProfileClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[GallerySharingProfileClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update sharing profile of a gallery.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-10-01
+func (client *GallerySharingProfileClient) update(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate SharingUpdate, options *GallerySharingProfileClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, galleryName, sharingUpdate, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *GallerySharingProfileClient) updateCreateRequest(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate SharingUpdate, options *GallerySharingProfileClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if galleryName == "" {
+ return nil, errors.New("parameter galleryName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryName}", url.PathEscape(galleryName))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-10-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, sharingUpdate)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_images_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_images_client.go
new file mode 100644
index 0000000000..1d09de1ab4
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_images_client.go
@@ -0,0 +1,429 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// ImagesClient contains the methods for the Images group.
+// Don't use this type directly, use NewImagesClient() instead.
+type ImagesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewImagesClient creates a new instance of ImagesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ImagesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &ImagesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Create or update an image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// imageName - The name of the image.
+// parameters - Parameters supplied to the Create Image operation.
+// options - ImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the ImagesClient.BeginCreateOrUpdate
+// method.
+func (client *ImagesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters Image, options *ImagesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ImagesClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, imageName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[ImagesClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[ImagesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update an image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *ImagesClient) createOrUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters Image, options *ImagesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, imageName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *ImagesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, imageName string, parameters Image, options *ImagesClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if imageName == "" {
+ return nil, errors.New("parameter imageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{imageName}", url.PathEscape(imageName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginDelete - Deletes an Image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// imageName - The name of the image.
+// options - ImagesClientBeginDeleteOptions contains the optional parameters for the ImagesClient.BeginDelete method.
+func (client *ImagesClient) BeginDelete(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientBeginDeleteOptions) (*runtime.Poller[ImagesClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, imageName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[ImagesClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[ImagesClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes an Image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *ImagesClient) deleteOperation(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, imageName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *ImagesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if imageName == "" {
+ return nil, errors.New("parameter imageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{imageName}", url.PathEscape(imageName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Gets an image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// imageName - The name of the image.
+// options - ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method.
+func (client *ImagesClient) Get(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientGetOptions) (ImagesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, imageName, options)
+ if err != nil {
+ return ImagesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ImagesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ImagesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *ImagesClient) getCreateRequest(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if imageName == "" {
+ return nil, errors.New("parameter imageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{imageName}", url.PathEscape(imageName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *ImagesClient) getHandleResponse(resp *http.Response) (ImagesClientGetResponse, error) {
+ result := ImagesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.Image); err != nil {
+ return ImagesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Gets the list of Images in the subscription. Use nextLink property in the response to get the next page
+// of Images. Do this till nextLink is null to fetch all the Images.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - ImagesClientListOptions contains the optional parameters for the ImagesClient.List method.
+func (client *ImagesClient) NewListPager(options *ImagesClientListOptions) *runtime.Pager[ImagesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[ImagesClientListResponse]{
+ More: func(page ImagesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *ImagesClientListResponse) (ImagesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return ImagesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ImagesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ImagesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *ImagesClient) listCreateRequest(ctx context.Context, options *ImagesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *ImagesClient) listHandleResponse(resp *http.Response) (ImagesClientListResponse, error) {
+ result := ImagesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ImageListResult); err != nil {
+ return ImagesClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Gets the list of images under a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - ImagesClientListByResourceGroupOptions contains the optional parameters for the ImagesClient.ListByResourceGroup
+// method.
+func (client *ImagesClient) NewListByResourceGroupPager(resourceGroupName string, options *ImagesClientListByResourceGroupOptions) *runtime.Pager[ImagesClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[ImagesClientListByResourceGroupResponse]{
+ More: func(page ImagesClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *ImagesClientListByResourceGroupResponse) (ImagesClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return ImagesClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ImagesClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ImagesClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *ImagesClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *ImagesClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *ImagesClient) listByResourceGroupHandleResponse(resp *http.Response) (ImagesClientListByResourceGroupResponse, error) {
+ result := ImagesClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ImageListResult); err != nil {
+ return ImagesClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Update an image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// imageName - The name of the image.
+// parameters - Parameters supplied to the Update Image operation.
+// options - ImagesClientBeginUpdateOptions contains the optional parameters for the ImagesClient.BeginUpdate method.
+func (client *ImagesClient) BeginUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters ImageUpdate, options *ImagesClientBeginUpdateOptions) (*runtime.Poller[ImagesClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, imageName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[ImagesClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[ImagesClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update an image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *ImagesClient) update(ctx context.Context, resourceGroupName string, imageName string, parameters ImageUpdate, options *ImagesClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, imageName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *ImagesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, imageName string, parameters ImageUpdate, options *ImagesClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if imageName == "" {
+ return nil, errors.New("parameter imageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{imageName}", url.PathEscape(imageName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_loganalytics_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_loganalytics_client.go
new file mode 100644
index 0000000000..b0dd5efe3b
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_loganalytics_client.go
@@ -0,0 +1,181 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// LogAnalyticsClient contains the methods for the LogAnalytics group.
+// Don't use this type directly, use NewLogAnalyticsClient() instead.
+type LogAnalyticsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewLogAnalyticsClient creates a new instance of LogAnalyticsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewLogAnalyticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LogAnalyticsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &LogAnalyticsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginExportRequestRateByInterval - Export logs that show Api requests made by this subscription in the given time window
+// to show throttling activities.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The location upon which virtual-machine-sizes is queried.
+// parameters - Parameters supplied to the LogAnalytics getRequestRateByInterval Api.
+// options - LogAnalyticsClientBeginExportRequestRateByIntervalOptions contains the optional parameters for the LogAnalyticsClient.BeginExportRequestRateByInterval
+// method.
+func (client *LogAnalyticsClient) BeginExportRequestRateByInterval(ctx context.Context, location string, parameters RequestRateByIntervalInput, options *LogAnalyticsClientBeginExportRequestRateByIntervalOptions) (*runtime.Poller[LogAnalyticsClientExportRequestRateByIntervalResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.exportRequestRateByInterval(ctx, location, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[LogAnalyticsClientExportRequestRateByIntervalResponse]{
+ FinalStateVia: runtime.FinalStateViaAzureAsyncOp,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[LogAnalyticsClientExportRequestRateByIntervalResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// ExportRequestRateByInterval - Export logs that show Api requests made by this subscription in the given time window to
+// show throttling activities.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *LogAnalyticsClient) exportRequestRateByInterval(ctx context.Context, location string, parameters RequestRateByIntervalInput, options *LogAnalyticsClientBeginExportRequestRateByIntervalOptions) (*http.Response, error) {
+ req, err := client.exportRequestRateByIntervalCreateRequest(ctx, location, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// exportRequestRateByIntervalCreateRequest creates the ExportRequestRateByInterval request.
+func (client *LogAnalyticsClient) exportRequestRateByIntervalCreateRequest(ctx context.Context, location string, parameters RequestRateByIntervalInput, options *LogAnalyticsClientBeginExportRequestRateByIntervalOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginExportThrottledRequests - Export logs that show total throttled Api requests for this subscription in the given time
+// window.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The location upon which virtual-machine-sizes is queried.
+// parameters - Parameters supplied to the LogAnalytics getThrottledRequests Api.
+// options - LogAnalyticsClientBeginExportThrottledRequestsOptions contains the optional parameters for the LogAnalyticsClient.BeginExportThrottledRequests
+// method.
+func (client *LogAnalyticsClient) BeginExportThrottledRequests(ctx context.Context, location string, parameters ThrottledRequestsInput, options *LogAnalyticsClientBeginExportThrottledRequestsOptions) (*runtime.Poller[LogAnalyticsClientExportThrottledRequestsResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.exportThrottledRequests(ctx, location, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[LogAnalyticsClientExportThrottledRequestsResponse]{
+ FinalStateVia: runtime.FinalStateViaAzureAsyncOp,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[LogAnalyticsClientExportThrottledRequestsResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// ExportThrottledRequests - Export logs that show total throttled Api requests for this subscription in the given time window.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *LogAnalyticsClient) exportThrottledRequests(ctx context.Context, location string, parameters ThrottledRequestsInput, options *LogAnalyticsClientBeginExportThrottledRequestsOptions) (*http.Response, error) {
+ req, err := client.exportThrottledRequestsCreateRequest(ctx, location, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// exportThrottledRequestsCreateRequest creates the ExportThrottledRequests request.
+func (client *LogAnalyticsClient) exportThrottledRequestsCreateRequest(ctx context.Context, location string, parameters ThrottledRequestsInput, options *LogAnalyticsClientBeginExportThrottledRequestsOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models.go
new file mode 100644
index 0000000000..e74c02baec
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models.go
@@ -0,0 +1,9540 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import "time"
+
+// APIEntityReference - The API entity reference.
+type APIEntityReference struct {
+ // The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/…
+ ID *string `json:"id,omitempty"`
+}
+
+// APIError - Api error.
+type APIError struct {
+ // The error code.
+ Code *string `json:"code,omitempty"`
+
+ // The Api error details
+ Details []*APIErrorBase `json:"details,omitempty"`
+
+ // The Api inner error
+ Innererror *InnerError `json:"innererror,omitempty"`
+
+ // The error message.
+ Message *string `json:"message,omitempty"`
+
+ // The target of the particular error.
+ Target *string `json:"target,omitempty"`
+}
+
+// APIErrorBase - Api error base.
+type APIErrorBase struct {
+ // The error code.
+ Code *string `json:"code,omitempty"`
+
+ // The error message.
+ Message *string `json:"message,omitempty"`
+
+ // The target of the particular error.
+ Target *string `json:"target,omitempty"`
+}
+
+// AccessURI - A disk access SAS uri.
+type AccessURI struct {
+ // READ-ONLY; A SAS uri for accessing a disk.
+ AccessSAS *string `json:"accessSAS,omitempty" azure:"ro"`
+
+ // READ-ONLY; A SAS uri for accessing a VM guest state.
+ SecurityDataAccessSAS *string `json:"securityDataAccessSAS,omitempty" azure:"ro"`
+}
+
+// AdditionalCapabilities - Enables or disables a capability on the virtual machine or virtual machine scale set.
+type AdditionalCapabilities struct {
+ // The flag that enables or disables hibernation capability on the VM.
+ HibernationEnabled *bool `json:"hibernationEnabled,omitempty"`
+
+ // The flag that enables or disables a capability to have one or more managed data disks with UltraSSDLRS storage account
+ // type on the VM or VMSS. Managed disks with storage account type UltraSSDLRS can
+ // be added to a virtual machine or virtual machine scale set only if this property is enabled.
+ UltraSSDEnabled *bool `json:"ultraSSDEnabled,omitempty"`
+}
+
+// AdditionalUnattendContent - Specifies additional XML formatted information that can be included in the Unattend.xml file,
+// which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in
+// which the content is applied.
+type AdditionalUnattendContent struct {
+ // The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup.
+ ComponentName *string `json:"componentName,omitempty"`
+
+ // Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML
+ // must be less than 4KB and must include the root element for the setting or
+ // feature that is being inserted.
+ Content *string `json:"content,omitempty"`
+
+ // The pass name. Currently, the only allowable value is OobeSystem.
+ PassName *string `json:"passName,omitempty"`
+
+ // Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.
+ SettingName *SettingNames `json:"settingName,omitempty"`
+}
+
+// ApplicationProfile - Contains the list of gallery applications that should be made available to the VM/VMSS
+type ApplicationProfile struct {
+ // Specifies the gallery applications that should be made available to the VM/VMSS
+ GalleryApplications []*VMGalleryApplication `json:"galleryApplications,omitempty"`
+}
+
+// AutomaticOSUpgradePolicy - The configuration parameters used for performing automatic OS upgrade.
+type AutomaticOSUpgradePolicy struct {
+ // Whether OS image rollback feature should be disabled. Default value is false.
+ DisableAutomaticRollback *bool `json:"disableAutomaticRollback,omitempty"`
+
+ // Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer
+ // version of the OS image becomes available. Default value is false.
+ // If this is set to true for Windows based scale sets, enableAutomaticUpdates
+ // [https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet]
+ // is automatically set to false and cannot be set to true.
+ EnableAutomaticOSUpgrade *bool `json:"enableAutomaticOSUpgrade,omitempty"`
+
+ // Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Default value is false. Auto OS Upgrade
+ // will fallback to the default policy if no policy is defined on the VMSS.
+ UseRollingUpgradePolicy *bool `json:"useRollingUpgradePolicy,omitempty"`
+}
+
+// AutomaticOSUpgradeProperties - Describes automatic OS upgrade properties on the image.
+type AutomaticOSUpgradeProperties struct {
+ // REQUIRED; Specifies whether automatic OS upgrade is supported on the image.
+ AutomaticOSUpgradeSupported *bool `json:"automaticOSUpgradeSupported,omitempty"`
+}
+
+// AutomaticRepairsPolicy - Specifies the configuration parameters for automatic repairs on the virtual machine scale set.
+type AutomaticRepairsPolicy struct {
+ // Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.
+ Enabled *bool `json:"enabled,omitempty"`
+
+ // The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the
+ // state change has completed. This helps avoid premature or accidental repairs.
+ // The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which
+ // is also the default value. The maximum allowed grace period is 90 minutes
+ // (PT90M).
+ GracePeriod *string `json:"gracePeriod,omitempty"`
+
+ // Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale
+ // set. Default value is replace.
+ RepairAction *RepairAction `json:"repairAction,omitempty"`
+}
+
+// AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual
+// machines specified in the same availability set are allocated to different nodes to maximize
+// availability. For more information about availability sets, see Availability sets overview [https://docs.microsoft.com/azure/virtual-machines/availability-set-overview].
+// For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates]
+// Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability
+// set.
+type AvailabilitySet struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The instance view of a resource.
+ Properties *AvailabilitySetProperties `json:"properties,omitempty"`
+
+ // Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use
+ // 'Aligned' for virtual machines with managed disks and 'Classic' for virtual
+ // machines with unmanaged disks. Default value is 'Classic'.
+ SKU *SKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// AvailabilitySetListResult - The List Availability Set operation response.
+type AvailabilitySetListResult struct {
+ // REQUIRED; The list of availability sets
+ Value []*AvailabilitySet `json:"value,omitempty"`
+
+ // The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// AvailabilitySetProperties - The instance view of a resource.
+type AvailabilitySetProperties struct {
+ // Fault Domain count.
+ PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"`
+
+ // Update Domain count.
+ PlatformUpdateDomainCount *int32 `json:"platformUpdateDomainCount,omitempty"`
+
+ // Specifies information about the proximity placement group that the availability set should be assigned to.
+ // Minimum api-version: 2018-04-01.
+ ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"`
+
+ // A list of references to all virtual machines in the availability set.
+ VirtualMachines []*SubResource `json:"virtualMachines,omitempty"`
+
+ // READ-ONLY; The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty" azure:"ro"`
+}
+
+// AvailabilitySetUpdate - Specifies information about the availability set that the virtual machine should be assigned to.
+// Only tags may be updated.
+type AvailabilitySetUpdate struct {
+ // The instance view of a resource.
+ Properties *AvailabilitySetProperties `json:"properties,omitempty"`
+
+ // Sku of the availability set
+ SKU *SKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// AvailabilitySetsClientCreateOrUpdateOptions contains the optional parameters for the AvailabilitySetsClient.CreateOrUpdate
+// method.
+type AvailabilitySetsClientCreateOrUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// AvailabilitySetsClientDeleteOptions contains the optional parameters for the AvailabilitySetsClient.Delete method.
+type AvailabilitySetsClientDeleteOptions struct {
+ // placeholder for future optional parameters
+}
+
+// AvailabilitySetsClientGetOptions contains the optional parameters for the AvailabilitySetsClient.Get method.
+type AvailabilitySetsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// AvailabilitySetsClientListAvailableSizesOptions contains the optional parameters for the AvailabilitySetsClient.ListAvailableSizes
+// method.
+type AvailabilitySetsClientListAvailableSizesOptions struct {
+ // placeholder for future optional parameters
+}
+
+// AvailabilitySetsClientListBySubscriptionOptions contains the optional parameters for the AvailabilitySetsClient.ListBySubscription
+// method.
+type AvailabilitySetsClientListBySubscriptionOptions struct {
+ // The expand expression to apply to the operation. Allowed values are 'instanceView'.
+ Expand *string
+}
+
+// AvailabilitySetsClientListOptions contains the optional parameters for the AvailabilitySetsClient.List method.
+type AvailabilitySetsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// AvailabilitySetsClientUpdateOptions contains the optional parameters for the AvailabilitySetsClient.Update method.
+type AvailabilitySetsClientUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// AvailablePatchSummary - Describes the properties of an virtual machine instance view for available patch summary.
+type AvailablePatchSummary struct {
+ // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension
+ // logs.
+ AssessmentActivityID *string `json:"assessmentActivityId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of critical or security patches that have been detected as available and not yet installed.
+ CriticalAndSecurityPatchCount *int32 `json:"criticalAndSecurityPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The errors that were encountered during execution of the operation. The details array contains the list of them.
+ Error *APIError `json:"error,omitempty" azure:"ro"`
+
+ // READ-ONLY; The UTC timestamp when the operation began.
+ LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of all available patches excluding critical and security.
+ OtherPatchCount *int32 `json:"otherPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete
+ // installation but the reboot has not yet occurred.
+ RebootPending *bool `json:"rebootPending,omitempty" azure:"ro"`
+
+ // READ-ONLY; The UTC timestamp when the operation began.
+ StartTime *time.Time `json:"startTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; The overall success or failure status of the operation. It remains "InProgress" until the operation completes.
+ // At that point it will become "Unknown", "Failed", "Succeeded", or
+ // "CompletedWithWarnings."
+ Status *PatchOperationStatus `json:"status,omitempty" azure:"ro"`
+}
+
+// BillingProfile - Specifies the billing related details of a Azure Spot VM or VMSS.
+// Minimum api-version: 2019-03-01.
+type BillingProfile struct {
+ // Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars.
+ // This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time
+ // of create/update of Azure Spot VM/VMSS and the operation will only succeed if
+ // the maxPrice is greater than the current Azure Spot price.
+ // The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice
+ // after creation of VM/VMSS.
+ // Possible values are:
+ // - Any decimal value greater than zero. Example: 0.01538
+ // -1 – indicates default price to be up-to on-demand.
+ // You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the
+ // default max price is -1 if it is not provided by you.
+ // Minimum api-version: 2019-03-01.
+ MaxPrice *float64 `json:"maxPrice,omitempty"`
+}
+
+// BootDiagnostics - Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose
+// VM status.
+// You can easily view the output of your console log.
+// Azure also enables you to see a screenshot of the VM from the hypervisor.
+type BootDiagnostics struct {
+ // Whether boot diagnostics should be enabled on the Virtual Machine.
+ Enabled *bool `json:"enabled,omitempty"`
+
+ // Uri of the storage account to use for placing the console output and screenshot.
+ // If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
+ StorageURI *string `json:"storageUri,omitempty"`
+}
+
+// BootDiagnosticsInstanceView - The instance view of a virtual machine boot diagnostics.
+type BootDiagnosticsInstanceView struct {
+ // READ-ONLY; The console screenshot blob URI.
+ // NOTE: This will not be set if boot diagnostics is currently enabled with managed storage.
+ ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty" azure:"ro"`
+
+ // READ-ONLY; The serial console log blob Uri.
+ // NOTE: This will not be set if boot diagnostics is currently enabled with managed storage.
+ SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty" azure:"ro"`
+
+ // READ-ONLY; The boot diagnostics status information for the VM.
+ // NOTE: It will be set only if there are errors encountered in enabling boot diagnostics.
+ Status *InstanceViewStatus `json:"status,omitempty" azure:"ro"`
+}
+
+// CapacityReservation - Specifies information about the capacity reservation.
+type CapacityReservation struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // REQUIRED; SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently
+ // VM Skus with the capability called 'CapacityReservationSupported' set to true are
+ // supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list)
+ // for supported values.
+ SKU *SKU `json:"sku,omitempty"`
+
+ // Properties of the Capacity reservation.
+ Properties *CapacityReservationProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the
+ // list of zones specified during the capacity reservation group creation. The zone
+ // can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided,
+ // enforces VM/VMSS using this capacity reservation to be in same zone.
+ Zones []*string `json:"zones,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// CapacityReservationGroup - Specifies information about the capacity reservation group that the capacity reservations should
+// be assigned to.
+// Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity
+// reservation cannot be added or moved to another capacity reservation group.
+type CapacityReservationGroup struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // capacity reservation group Properties.
+ Properties *CapacityReservationGroupProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided,
+ // the group supports only regional resources in the region. If provided,
+ // enforces each capacity reservation in the group to be in one of the zones.
+ Zones []*string `json:"zones,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+type CapacityReservationGroupInstanceView struct {
+ // READ-ONLY; List of instance view of the capacity reservations under the capacity reservation group.
+ CapacityReservations []*CapacityReservationInstanceViewWithName `json:"capacityReservations,omitempty" azure:"ro"`
+}
+
+// CapacityReservationGroupListResult - The List capacity reservation group with resource group response.
+type CapacityReservationGroupListResult struct {
+ // REQUIRED; The list of capacity reservation groups
+ Value []*CapacityReservationGroup `json:"value,omitempty"`
+
+ // The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of
+ // capacity reservation groups.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// CapacityReservationGroupProperties - capacity reservation group Properties.
+type CapacityReservationGroupProperties struct {
+ // READ-ONLY; A list of all capacity reservation resource ids that belong to capacity reservation group.
+ CapacityReservations []*SubResourceReadOnly `json:"capacityReservations,omitempty" azure:"ro"`
+
+ // READ-ONLY; The capacity reservation group instance view which has the list of instance views for all the capacity reservations
+ // that belong to the capacity reservation group.
+ InstanceView *CapacityReservationGroupInstanceView `json:"instanceView,omitempty" azure:"ro"`
+
+ // READ-ONLY; A list of references to all virtual machines associated to the capacity reservation group.
+ VirtualMachinesAssociated []*SubResourceReadOnly `json:"virtualMachinesAssociated,omitempty" azure:"ro"`
+}
+
+// CapacityReservationGroupUpdate - Specifies information about the capacity reservation group. Only tags can be updated.
+type CapacityReservationGroupUpdate struct {
+ // capacity reservation group Properties.
+ Properties *CapacityReservationGroupProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// CapacityReservationGroupsClientCreateOrUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.CreateOrUpdate
+// method.
+type CapacityReservationGroupsClientCreateOrUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CapacityReservationGroupsClientDeleteOptions contains the optional parameters for the CapacityReservationGroupsClient.Delete
+// method.
+type CapacityReservationGroupsClientDeleteOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CapacityReservationGroupsClientGetOptions contains the optional parameters for the CapacityReservationGroupsClient.Get
+// method.
+type CapacityReservationGroupsClientGetOptions struct {
+ // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity
+ // reservations under the capacity reservation group which is a snapshot of the
+ // runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations.
+ Expand *CapacityReservationGroupInstanceViewTypes
+}
+
+// CapacityReservationGroupsClientListByResourceGroupOptions contains the optional parameters for the CapacityReservationGroupsClient.ListByResourceGroup
+// method.
+type CapacityReservationGroupsClientListByResourceGroupOptions struct {
+ // The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet
+ // VM Instance or both resource Ids which are associated to capacity
+ // reservation group in the response.
+ Expand *ExpandTypesForGetCapacityReservationGroups
+}
+
+// CapacityReservationGroupsClientListBySubscriptionOptions contains the optional parameters for the CapacityReservationGroupsClient.ListBySubscription
+// method.
+type CapacityReservationGroupsClientListBySubscriptionOptions struct {
+ // The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet
+ // VM Instance or both resource Ids which are associated to capacity
+ // reservation group in the response.
+ Expand *ExpandTypesForGetCapacityReservationGroups
+}
+
+// CapacityReservationGroupsClientUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.Update
+// method.
+type CapacityReservationGroupsClientUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CapacityReservationInstanceView - The instance view of a capacity reservation that provides as snapshot of the runtime
+// properties of the capacity reservation that is managed by the platform and can change outside of control plane
+// operations.
+type CapacityReservationInstanceView struct {
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // Unutilized capacity of the capacity reservation.
+ UtilizationInfo *CapacityReservationUtilization `json:"utilizationInfo,omitempty"`
+}
+
+// CapacityReservationInstanceViewWithName - The instance view of a capacity reservation that includes the name of the capacity
+// reservation. It is used for the response to the instance view of a capacity reservation group.
+type CapacityReservationInstanceViewWithName struct {
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // Unutilized capacity of the capacity reservation.
+ UtilizationInfo *CapacityReservationUtilization `json:"utilizationInfo,omitempty"`
+
+ // READ-ONLY; The name of the capacity reservation.
+ Name *string `json:"name,omitempty" azure:"ro"`
+}
+
+// CapacityReservationListResult - The list capacity reservation operation response.
+type CapacityReservationListResult struct {
+ // REQUIRED; The list of capacity reservations
+ Value []*CapacityReservation `json:"value,omitempty"`
+
+ // The URI to fetch the next page of capacity reservations. Call ListNext() with this URI to fetch the next page of capacity
+ // reservations.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// CapacityReservationProfile - The parameters of a capacity reservation Profile.
+type CapacityReservationProfile struct {
+ // Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset
+ // vm instances provided enough capacity has been reserved. Please refer to
+ // https://aka.ms/CapacityReservation for more details.
+ CapacityReservationGroup *SubResource `json:"capacityReservationGroup,omitempty"`
+}
+
+// CapacityReservationProperties - Properties of the Capacity reservation.
+type CapacityReservationProperties struct {
+ // READ-ONLY; The Capacity reservation instance view.
+ InstanceView *CapacityReservationInstanceView `json:"instanceView,omitempty" azure:"ro"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The date time when the capacity reservation was last updated.
+ ProvisioningTime *time.Time `json:"provisioningTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; A unique id generated and assigned to the capacity reservation by the platform which does not change throughout
+ // the lifetime of the resource.
+ ReservationID *string `json:"reservationId,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the time at which the Capacity Reservation resource was created.
+ // Minimum api-version: 2022-03-01.
+ TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`
+
+ // READ-ONLY; A list of all virtual machine resource ids that are associated with the capacity reservation.
+ VirtualMachinesAssociated []*SubResourceReadOnly `json:"virtualMachinesAssociated,omitempty" azure:"ro"`
+}
+
+// CapacityReservationUpdate - Specifies information about the capacity reservation. Only tags and sku.capacity can be updated.
+type CapacityReservationUpdate struct {
+ // Properties of the Capacity reservation.
+ Properties *CapacityReservationProperties `json:"properties,omitempty"`
+
+ // SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM
+ // Skus with the capability called 'CapacityReservationSupported' set to true are
+ // supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list)
+ // for supported values.
+ SKU *SKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// CapacityReservationUtilization - Represents the capacity reservation utilization in terms of resources allocated.
+type CapacityReservationUtilization struct {
+ // READ-ONLY; A list of all virtual machines resource ids allocated against the capacity reservation.
+ VirtualMachinesAllocated []*SubResourceReadOnly `json:"virtualMachinesAllocated,omitempty" azure:"ro"`
+}
+
+// CapacityReservationsClientBeginCreateOrUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginCreateOrUpdate
+// method.
+type CapacityReservationsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CapacityReservationsClientBeginDeleteOptions contains the optional parameters for the CapacityReservationsClient.BeginDelete
+// method.
+type CapacityReservationsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CapacityReservationsClientBeginUpdateOptions contains the optional parameters for the CapacityReservationsClient.BeginUpdate
+// method.
+type CapacityReservationsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CapacityReservationsClientGetOptions contains the optional parameters for the CapacityReservationsClient.Get method.
+type CapacityReservationsClientGetOptions struct {
+ // The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity
+ // reservation that is managed by the platform and can change outside of
+ // control plane operations.
+ Expand *CapacityReservationInstanceViewTypes
+}
+
+// CapacityReservationsClientListByCapacityReservationGroupOptions contains the optional parameters for the CapacityReservationsClient.ListByCapacityReservationGroup
+// method.
+type CapacityReservationsClientListByCapacityReservationGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudError - An error response from the Compute service.
+type CloudError struct {
+ // Api error.
+ Error *APIError `json:"error,omitempty"`
+}
+
+// CloudService - Describes the cloud service.
+type CloudService struct {
+ // REQUIRED; Resource location.
+ Location *string `json:"location,omitempty"`
+
+ // Cloud service properties
+ Properties *CloudServiceProperties `json:"properties,omitempty"`
+
+ // Resource tags.
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// CloudServiceExtensionProfile - Describes a cloud service extension profile.
+type CloudServiceExtensionProfile struct {
+ // List of extensions for the cloud service.
+ Extensions []*Extension `json:"extensions,omitempty"`
+}
+
+// CloudServiceExtensionProperties - Extension Properties.
+type CloudServiceExtensionProperties struct {
+ // Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become
+ // available.
+ AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
+
+ // Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension
+ // without changing any of the public or protected settings. If forceUpdateTag is
+ // not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor
+ // any of public or protected settings change, extension would flow to the role
+ // instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not
+ ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
+
+ // Protected settings for the extension which are encrypted before sent to the role instance.
+ ProtectedSettings *string `json:"protectedSettings,omitempty"`
+ ProtectedSettingsFromKeyVault *CloudServiceVaultAndSecretReference `json:"protectedSettingsFromKeyVault,omitempty"`
+
+ // The name of the extension handler publisher.
+ Publisher *string `json:"publisher,omitempty"`
+
+ // Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied
+ // to all roles in the cloud service.
+ RolesAppliedTo []*string `json:"rolesAppliedTo,omitempty"`
+
+ // Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension
+ // (like RDP), this is the XML setting for the extension.
+ Settings *string `json:"settings,omitempty"`
+
+ // Specifies the type of the extension.
+ Type *string `json:"type,omitempty"`
+
+ // Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an
+ // asterisk (*) is used as the value, the latest version of the extension is used.
+ // If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor
+ // version of the specified major version is selected. If a major version number
+ // and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified,
+ // an auto-upgrade is performed on the role instance.
+ TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+}
+
+// CloudServiceInstanceView - InstanceView of CloudService as a whole
+type CloudServiceInstanceView struct {
+ // Instance view statuses.
+ RoleInstance *InstanceViewStatusesSummary `json:"roleInstance,omitempty"`
+
+ // READ-ONLY; Specifies a list of unique identifiers generated internally for the cloud service.
+ // NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.
+ PrivateIDs []*string `json:"privateIds,omitempty" azure:"ro"`
+
+ // READ-ONLY; The version of the SDK that was used to generate the package for the cloud service.
+ SdkVersion *string `json:"sdkVersion,omitempty" azure:"ro"`
+
+ // READ-ONLY
+ Statuses []*ResourceInstanceViewStatus `json:"statuses,omitempty" azure:"ro"`
+}
+
+type CloudServiceListResult struct {
+ // REQUIRED
+ Value []*CloudService `json:"value,omitempty"`
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// CloudServiceNetworkProfile - Network Profile for the cloud service.
+type CloudServiceNetworkProfile struct {
+ // List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a
+ // Public Load Balancer and an Internal Load Balancer.
+ LoadBalancerConfigurations []*LoadBalancerConfiguration `json:"loadBalancerConfigurations,omitempty"`
+
+ // The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap.
+ // This property cannot be updated once it is set. The swappable cloud service
+ // referred by this id must be present otherwise an error will be thrown.
+ SwappableCloudService *SubResource `json:"swappableCloudService,omitempty"`
+}
+
+// CloudServiceOperatingSystemsClientGetOSFamilyOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSFamily
+// method.
+type CloudServiceOperatingSystemsClientGetOSFamilyOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServiceOperatingSystemsClientGetOSVersionOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.GetOSVersion
+// method.
+type CloudServiceOperatingSystemsClientGetOSVersionOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServiceOperatingSystemsClientListOSFamiliesOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.ListOSFamilies
+// method.
+type CloudServiceOperatingSystemsClientListOSFamiliesOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServiceOperatingSystemsClientListOSVersionsOptions contains the optional parameters for the CloudServiceOperatingSystemsClient.ListOSVersions
+// method.
+type CloudServiceOperatingSystemsClientListOSVersionsOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServiceOsProfile - Describes the OS profile for the cloud service.
+type CloudServiceOsProfile struct {
+ // Specifies set of certificates that should be installed onto the role instances.
+ Secrets []*CloudServiceVaultSecretGroup `json:"secrets,omitempty"`
+}
+
+// CloudServiceProperties - Cloud service properties
+type CloudServiceProperties struct {
+ // (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override
+ // the role instance count and vm size specified in the .cscfg and .csdef
+ // respectively. The default value is false.
+ AllowModelOverride *bool `json:"allowModelOverride,omitempty"`
+
+ // Specifies the XML service configuration (.cscfg) for the cloud service.
+ Configuration *string `json:"configuration,omitempty"`
+
+ // Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can
+ // be Shared Access Signature (SAS) URI from any storage account. This is a
+ // write-only property and is not returned in GET calls.
+ ConfigurationURL *string `json:"configurationUrl,omitempty"`
+
+ // Describes a cloud service extension profile.
+ ExtensionProfile *CloudServiceExtensionProfile `json:"extensionProfile,omitempty"`
+
+ // Network Profile for the cloud service.
+ NetworkProfile *CloudServiceNetworkProfile `json:"networkProfile,omitempty"`
+
+ // Describes the OS profile for the cloud service.
+ OSProfile *CloudServiceOsProfile `json:"osProfile,omitempty"`
+
+ // Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be
+ // Shared Access Signature (SAS) URI from any storage account. This is a write-only
+ // property and is not returned in GET calls.
+ PackageURL *string `json:"packageUrl,omitempty"`
+
+ // Describes the role profile for the cloud service.
+ RoleProfile *CloudServiceRoleProfile `json:"roleProfile,omitempty"`
+
+ // (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is true. If
+ // false, the service model is still deployed, but the code is not run immediately.
+ // Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service
+ // still incurs charges, even if it is poweredoff.
+ StartCloudService *bool `json:"startCloudService,omitempty"`
+
+ // Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates
+ // can be initiated manually in each update domain or initiated automatically in
+ // all update domains. Possible Values are
+ // Auto
+ // Manual
+ // Simultaneous
+ // If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If
+ // set to Auto, the update is automatically applied to each update domain in
+ // sequence.
+ UpgradeMode *CloudServiceUpgradeMode `json:"upgradeMode,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The unique identifier for the cloud service.
+ UniqueID *string `json:"uniqueId,omitempty" azure:"ro"`
+}
+
+// CloudServiceRole - Describes a role of the cloud service.
+type CloudServiceRole struct {
+ Properties *CloudServiceRoleProperties `json:"properties,omitempty"`
+
+ // Describes the cloud service role sku.
+ SKU *CloudServiceRoleSKU `json:"sku,omitempty"`
+
+ // READ-ONLY; Resource id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// CloudServiceRoleInstancesClientBeginDeleteOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginDelete
+// method.
+type CloudServiceRoleInstancesClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServiceRoleInstancesClientBeginRebuildOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRebuild
+// method.
+type CloudServiceRoleInstancesClientBeginRebuildOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServiceRoleInstancesClientBeginReimageOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginReimage
+// method.
+type CloudServiceRoleInstancesClientBeginReimageOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServiceRoleInstancesClientBeginRestartOptions contains the optional parameters for the CloudServiceRoleInstancesClient.BeginRestart
+// method.
+type CloudServiceRoleInstancesClientBeginRestartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServiceRoleInstancesClientGetInstanceViewOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetInstanceView
+// method.
+type CloudServiceRoleInstancesClientGetInstanceViewOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServiceRoleInstancesClientGetOptions contains the optional parameters for the CloudServiceRoleInstancesClient.Get
+// method.
+type CloudServiceRoleInstancesClientGetOptions struct {
+ // The expand expression to apply to the operation. 'UserData' is not supported for cloud services.
+ Expand *InstanceViewTypes
+}
+
+// CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions contains the optional parameters for the CloudServiceRoleInstancesClient.GetRemoteDesktopFile
+// method.
+type CloudServiceRoleInstancesClientGetRemoteDesktopFileOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServiceRoleInstancesClientListOptions contains the optional parameters for the CloudServiceRoleInstancesClient.List
+// method.
+type CloudServiceRoleInstancesClientListOptions struct {
+ // The expand expression to apply to the operation. 'UserData' is not supported for cloud services.
+ Expand *InstanceViewTypes
+}
+
+type CloudServiceRoleListResult struct {
+ // REQUIRED
+ Value []*CloudServiceRole `json:"value,omitempty"`
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// CloudServiceRoleProfile - Describes the role profile for the cloud service.
+type CloudServiceRoleProfile struct {
+ // List of roles for the cloud service.
+ Roles []*CloudServiceRoleProfileProperties `json:"roles,omitempty"`
+}
+
+// CloudServiceRoleProfileProperties - Describes the role properties.
+type CloudServiceRoleProfileProperties struct {
+ // Resource name.
+ Name *string `json:"name,omitempty"`
+
+ // Describes the cloud service role sku.
+ SKU *CloudServiceRoleSKU `json:"sku,omitempty"`
+}
+
+type CloudServiceRoleProperties struct {
+ // READ-ONLY; Specifies the ID which uniquely identifies a cloud service role.
+ UniqueID *string `json:"uniqueId,omitempty" azure:"ro"`
+}
+
+// CloudServiceRoleSKU - Describes the cloud service role sku.
+type CloudServiceRoleSKU struct {
+ // Specifies the number of role instances in the cloud service.
+ Capacity *int64 `json:"capacity,omitempty"`
+
+ // The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete
+ // and recreate the cloud service or move back to the old sku.
+ Name *string `json:"name,omitempty"`
+
+ // Specifies the tier of the cloud service. Possible Values are
+ // Standard
+ // Basic
+ Tier *string `json:"tier,omitempty"`
+}
+
+// CloudServiceRolesClientGetOptions contains the optional parameters for the CloudServiceRolesClient.Get method.
+type CloudServiceRolesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServiceRolesClientListOptions contains the optional parameters for the CloudServiceRolesClient.List method.
+type CloudServiceRolesClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+type CloudServiceUpdate struct {
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+type CloudServiceVaultAndSecretReference struct {
+ SecretURL *string `json:"secretUrl,omitempty"`
+ SourceVault *SubResource `json:"sourceVault,omitempty"`
+}
+
+// CloudServiceVaultCertificate - Describes a single certificate reference in a Key Vault, and where the certificate should
+// reside on the role instance.
+type CloudServiceVaultCertificate struct {
+ // This is the URL of a certificate that has been uploaded to Key Vault as a secret.
+ CertificateURL *string `json:"certificateUrl,omitempty"`
+}
+
+// CloudServiceVaultSecretGroup - Describes a set of certificates which are all in the same Key Vault.
+type CloudServiceVaultSecretGroup struct {
+ // The relative URL of the Key Vault containing all of the certificates in VaultCertificates.
+ SourceVault *SubResource `json:"sourceVault,omitempty"`
+
+ // The list of key vault references in SourceVault which contain certificates.
+ VaultCertificates []*CloudServiceVaultCertificate `json:"vaultCertificates,omitempty"`
+}
+
+// CloudServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudServicesClient.BeginCreateOrUpdate
+// method.
+type CloudServicesClientBeginCreateOrUpdateOptions struct {
+ // The cloud service object.
+ Parameters *CloudService
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientBeginDeleteInstancesOptions contains the optional parameters for the CloudServicesClient.BeginDeleteInstances
+// method.
+type CloudServicesClientBeginDeleteInstancesOptions struct {
+ // List of cloud service role instance names.
+ Parameters *RoleInstances
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientBeginDeleteOptions contains the optional parameters for the CloudServicesClient.BeginDelete method.
+type CloudServicesClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientBeginPowerOffOptions contains the optional parameters for the CloudServicesClient.BeginPowerOff method.
+type CloudServicesClientBeginPowerOffOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientBeginRebuildOptions contains the optional parameters for the CloudServicesClient.BeginRebuild method.
+type CloudServicesClientBeginRebuildOptions struct {
+ // List of cloud service role instance names.
+ Parameters *RoleInstances
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientBeginReimageOptions contains the optional parameters for the CloudServicesClient.BeginReimage method.
+type CloudServicesClientBeginReimageOptions struct {
+ // List of cloud service role instance names.
+ Parameters *RoleInstances
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientBeginRestartOptions contains the optional parameters for the CloudServicesClient.BeginRestart method.
+type CloudServicesClientBeginRestartOptions struct {
+ // List of cloud service role instance names.
+ Parameters *RoleInstances
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientBeginStartOptions contains the optional parameters for the CloudServicesClient.BeginStart method.
+type CloudServicesClientBeginStartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientBeginUpdateOptions contains the optional parameters for the CloudServicesClient.BeginUpdate method.
+type CloudServicesClientBeginUpdateOptions struct {
+ // The cloud service object.
+ Parameters *CloudServiceUpdate
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesClientGetInstanceViewOptions contains the optional parameters for the CloudServicesClient.GetInstanceView
+// method.
+type CloudServicesClientGetInstanceViewOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServicesClientGetOptions contains the optional parameters for the CloudServicesClient.Get method.
+type CloudServicesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServicesClientListAllOptions contains the optional parameters for the CloudServicesClient.ListAll method.
+type CloudServicesClientListAllOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServicesClientListOptions contains the optional parameters for the CloudServicesClient.List method.
+type CloudServicesClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.BeginWalkUpdateDomain
+// method.
+type CloudServicesUpdateDomainClientBeginWalkUpdateDomainOptions struct {
+ // The update domain object.
+ Parameters *UpdateDomain
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// CloudServicesUpdateDomainClientGetUpdateDomainOptions contains the optional parameters for the CloudServicesUpdateDomainClient.GetUpdateDomain
+// method.
+type CloudServicesUpdateDomainClientGetUpdateDomainOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CloudServicesUpdateDomainClientListUpdateDomainsOptions contains the optional parameters for the CloudServicesUpdateDomainClient.ListUpdateDomains
+// method.
+type CloudServicesUpdateDomainClientListUpdateDomainsOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CommunityGalleriesClientGetOptions contains the optional parameters for the CommunityGalleriesClient.Get method.
+type CommunityGalleriesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CommunityGallery - Specifies information about the Community Gallery that you want to create or update.
+type CommunityGallery struct {
+ // The identifier information of community gallery.
+ Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// CommunityGalleryIdentifier - The identifier information of community gallery.
+type CommunityGalleryIdentifier struct {
+ // The unique id of this community gallery.
+ UniqueID *string `json:"uniqueId,omitempty"`
+}
+
+// CommunityGalleryImage - Specifies information about the gallery image definition that you want to create or update.
+type CommunityGalleryImage struct {
+ // The identifier information of community gallery.
+ Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"`
+
+ // Describes the properties of a gallery image definition.
+ Properties *CommunityGalleryImageProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// CommunityGalleryImageProperties - Describes the properties of a gallery image definition.
+type CommunityGalleryImageProperties struct {
+ // REQUIRED; This is the gallery image definition identifier.
+ Identifier *GalleryImageIdentifier `json:"identifier,omitempty"`
+
+ // REQUIRED; This property allows the user to specify whether the virtual machines created under this image are 'Generalized'
+ // or 'Specialized'.
+ OSState *OperatingSystemStateTypes `json:"osState,omitempty"`
+
+ // REQUIRED; This property allows you to specify the type of the OS that is included in the disk when creating a VM from a
+ // managed image.
+ // Possible values are:
+ // Windows
+ // Linux
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // Describes the disallowed disk types.
+ Disallowed *Disallowed `json:"disallowed,omitempty"`
+
+ // The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property
+ // is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // A list of gallery image features.
+ Features []*GalleryImageFeature `json:"features,omitempty"`
+
+ // The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
+ HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"`
+
+ // Describes the gallery image definition purchase plan. This is used by marketplace images.
+ PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"`
+
+ // The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
+ Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"`
+}
+
+// CommunityGalleryImageVersion - Specifies information about the gallery image version that you want to create or update.
+type CommunityGalleryImageVersion struct {
+ // The identifier information of community gallery.
+ Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"`
+
+ // Describes the properties of a gallery image version.
+ Properties *CommunityGalleryImageVersionProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// CommunityGalleryImageVersionProperties - Describes the properties of a gallery image version.
+type CommunityGalleryImageVersionProperties struct {
+ // The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This
+ // property is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This
+ // property is updatable.
+ PublishedDate *time.Time `json:"publishedDate,omitempty"`
+}
+
+// CommunityGalleryImageVersionsClientGetOptions contains the optional parameters for the CommunityGalleryImageVersionsClient.Get
+// method.
+type CommunityGalleryImageVersionsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CommunityGalleryImagesClientGetOptions contains the optional parameters for the CommunityGalleryImagesClient.Get method.
+type CommunityGalleryImagesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// CommunityGalleryInfo - Information of community gallery if current gallery is shared to community
+type CommunityGalleryInfo struct {
+ // Community gallery publisher eula
+ Eula *string `json:"eula,omitempty"`
+
+ // Community gallery public name prefix
+ PublicNamePrefix *string `json:"publicNamePrefix,omitempty"`
+
+ // Community gallery publisher contact email
+ PublisherContact *string `json:"publisherContact,omitempty"`
+
+ // Community gallery publisher uri
+ PublisherURI *string `json:"publisherUri,omitempty"`
+
+ // READ-ONLY; Contains info about whether community gallery sharing is enabled.
+ CommunityGalleryEnabled *bool `json:"communityGalleryEnabled,omitempty" azure:"ro"`
+
+ // READ-ONLY; Community gallery public name list.
+ PublicNames []*string `json:"publicNames,omitempty" azure:"ro"`
+}
+
+// CreationData - Data used when creating a disk.
+type CreationData struct {
+ // REQUIRED; This enumerates the possible sources of a disk's creation.
+ CreateOption *DiskCreateOption `json:"createOption,omitempty"`
+
+ // Required if creating from a Gallery Image. The id of the ImageDiskReference will be the ARM id of the shared galley image
+ // version from which to create a disk.
+ GalleryImageReference *ImageDiskReference `json:"galleryImageReference,omitempty"`
+
+ // Disk source information.
+ ImageReference *ImageDiskReference `json:"imageReference,omitempty"`
+
+ // Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
+ LogicalSectorSize *int32 `json:"logicalSectorSize,omitempty"`
+
+ // If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
+ SecurityDataURI *string `json:"securityDataUri,omitempty"`
+
+ // If createOption is Copy, this is the ARM id of the source snapshot or disk.
+ SourceResourceID *string `json:"sourceResourceId,omitempty"`
+
+ // If createOption is Import, this is the URI of a blob to be imported into a managed disk.
+ SourceURI *string `json:"sourceUri,omitempty"`
+
+ // Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to
+ // import as a disk.
+ StorageAccountID *string `json:"storageAccountId,omitempty"`
+
+ // If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be
+ // between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520
+ // bytes (32 TiB + 512 bytes for the VHD footer).
+ UploadSizeBytes *int64 `json:"uploadSizeBytes,omitempty"`
+
+ // READ-ONLY; If this field is set, this is the unique id identifying the source of this resource.
+ SourceUniqueID *string `json:"sourceUniqueId,omitempty" azure:"ro"`
+}
+
+// DataDisk - Describes a data disk.
+type DataDisk struct {
+ // REQUIRED; Specifies how the virtual machine should be created.
+ // Possible values are:
+ // Attach \u2013 This value is used when you are using a specialized disk to create the virtual machine.
+ // FromImage \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform
+ // image, you also use the imageReference element described above. If you are
+ // using a marketplace image, you also use the plan element previously described.
+ CreateOption *DiskCreateOptionTypes `json:"createOption,omitempty"`
+
+ // REQUIRED; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and
+ // therefore must be unique for each data disk attached to a VM.
+ Lun *int32 `json:"lun,omitempty"`
+
+ // Specifies the caching requirements.
+ // Possible values are:
+ // None
+ // ReadOnly
+ // ReadWrite
+ // Default: None for Standard storage. ReadOnly for Premium storage
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Specifies whether data disk should be deleted or detached upon VM deletion.
+ // Possible values:
+ // Delete If this value is used, the data disk is deleted when VM is deleted.
+ // Detach If this value is used, the data disk is retained after VM is deleted.
+ // The default value is set to detach
+ DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"`
+
+ // Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the
+ // virtual machine. Supported values: ForceDetach.
+ // detachOption: ForceDetach is applicable only for managed data disks. If a previous detachment attempt of the data disk
+ // did not complete due to an unexpected failure from the virtual machine and the
+ // disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes
+ // might not have been flushed when using this detach behavior.
+ // This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update
+ // toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.
+ DetachOption *DiskDetachOptionTypes `json:"detachOption,omitempty"`
+
+ // Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a
+ // virtual machine image.
+ // This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine.
+ // If SourceImage is provided, the destination virtual hard drive must not
+ // exist.
+ Image *VirtualHardDisk `json:"image,omitempty"`
+
+ // The managed disk parameters.
+ ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"`
+
+ // The disk name.
+ Name *string `json:"name,omitempty"`
+
+ // Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset
+ ToBeDetached *bool `json:"toBeDetached,omitempty"`
+
+ // The virtual hard disk.
+ Vhd *VirtualHardDisk `json:"vhd,omitempty"`
+
+ // Specifies whether writeAccelerator should be enabled or disabled on the disk.
+ WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"`
+
+ // READ-ONLY; Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for
+ // VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine
+ // Scale Set.
+ DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned
+ // only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the
+ // VirtualMachine Scale Set.
+ DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty" azure:"ro"`
+}
+
+// DataDiskImage - Contains the data disk images information.
+type DataDiskImage struct {
+ // READ-ONLY; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM
+ // and therefore must be unique for each data disk attached to a VM.
+ Lun *int32 `json:"lun,omitempty" azure:"ro"`
+}
+
+// DataDiskImageEncryption - Contains encryption settings for a data disk image.
+type DataDiskImageEncryption struct {
+ // REQUIRED; 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.
+ Lun *int32 `json:"lun,omitempty"`
+
+ // A relative URI containing the resource ID of the disk encryption set.
+ DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`
+}
+
+// DedicatedHost - Specifies information about the Dedicated host.
+type DedicatedHost struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // REQUIRED; SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute
+ // SKUs for a list of possible values.
+ SKU *SKU `json:"sku,omitempty"`
+
+ // Properties of the dedicated host.
+ Properties *DedicatedHostProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// DedicatedHostAllocatableVM - Represents the dedicated host unutilized capacity in terms of a specific VM size.
+type DedicatedHostAllocatableVM struct {
+ // Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.
+ Count *float64 `json:"count,omitempty"`
+
+ // VM size in terms of which the unutilized capacity is represented.
+ VMSize *string `json:"vmSize,omitempty"`
+}
+
+// DedicatedHostAvailableCapacity - Dedicated host unutilized capacity.
+type DedicatedHostAvailableCapacity struct {
+ // The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the
+ // dedicated host.
+ AllocatableVMs []*DedicatedHostAllocatableVM `json:"allocatableVMs,omitempty"`
+}
+
+// DedicatedHostGroup - Specifies information about the dedicated host group that the dedicated hosts should be assigned to.
+// Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot
+// be added to another dedicated host group.
+type DedicatedHostGroup struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Dedicated Host Group Properties.
+ Properties *DedicatedHostGroupProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation.
+ // If not provided, the group supports all zones in the region. If provided,
+ // enforces each host in the group to be in the same zone.
+ Zones []*string `json:"zones,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+type DedicatedHostGroupInstanceView struct {
+ // List of instance view of the dedicated hosts under the dedicated host group.
+ Hosts []*DedicatedHostInstanceViewWithName `json:"hosts,omitempty"`
+}
+
+// DedicatedHostGroupListResult - The List Dedicated Host Group with resource group response.
+type DedicatedHostGroupListResult struct {
+ // REQUIRED; The list of dedicated host groups
+ Value []*DedicatedHostGroup `json:"value,omitempty"`
+
+ // The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to fetch the next page of Dedicated
+ // Host Groups.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DedicatedHostGroupProperties - Dedicated Host Group Properties.
+type DedicatedHostGroupProperties struct {
+ // REQUIRED; Number of fault domains that the host group can span.
+ PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"`
+
+ // Enables or disables a capability on the dedicated host group.
+ // Minimum api-version: 2022-03-01.
+ AdditionalCapabilities *DedicatedHostGroupPropertiesAdditionalCapabilities `json:"additionalCapabilities,omitempty"`
+
+ // Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group.
+ // Automatic placement means resources are allocated on dedicated hosts, that are
+ // chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided.
+ // Minimum api-version: 2020-06-01.
+ SupportAutomaticPlacement *bool `json:"supportAutomaticPlacement,omitempty"`
+
+ // READ-ONLY; A list of references to all dedicated hosts in the dedicated host group.
+ Hosts []*SubResourceReadOnly `json:"hosts,omitempty" azure:"ro"`
+
+ // READ-ONLY; The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the
+ // dedicated host group.
+ InstanceView *DedicatedHostGroupInstanceView `json:"instanceView,omitempty" azure:"ro"`
+}
+
+// DedicatedHostGroupPropertiesAdditionalCapabilities - Enables or disables a capability on the dedicated host group.
+// Minimum api-version: 2022-03-01.
+type DedicatedHostGroupPropertiesAdditionalCapabilities struct {
+ // The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated
+ // Host Group. For the Virtual Machines to be UltraSSD Enabled,
+ // UltraSSDEnabled flag for the resource needs to be set true as well. The value is defaulted to 'false' when not provided.
+ // Please refer to
+ // https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-ultra-ssd for more details on Ultra SSD feature.
+ // NOTE: The ultraSSDEnabled setting can only be enabled for Host Groups that are created as zonal.
+ // Minimum api-version: 2022-03-01.
+ UltraSSDEnabled *bool `json:"ultraSSDEnabled,omitempty"`
+}
+
+// DedicatedHostGroupUpdate - Specifies information about the dedicated host group that the dedicated host should be assigned
+// to. Only tags may be updated.
+type DedicatedHostGroupUpdate struct {
+ // Dedicated Host Group Properties.
+ Properties *DedicatedHostGroupProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation.
+ // If not provided, the group supports all zones in the region. If provided,
+ // enforces each host in the group to be in the same zone.
+ Zones []*string `json:"zones,omitempty"`
+}
+
+// DedicatedHostGroupsClientCreateOrUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.CreateOrUpdate
+// method.
+type DedicatedHostGroupsClientCreateOrUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DedicatedHostGroupsClientDeleteOptions contains the optional parameters for the DedicatedHostGroupsClient.Delete method.
+type DedicatedHostGroupsClientDeleteOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DedicatedHostGroupsClientGetOptions contains the optional parameters for the DedicatedHostGroupsClient.Get method.
+type DedicatedHostGroupsClientGetOptions struct {
+ // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated
+ // hosts under the dedicated host group. 'UserData' is not supported for
+ // dedicated host group.
+ Expand *InstanceViewTypes
+}
+
+// DedicatedHostGroupsClientListByResourceGroupOptions contains the optional parameters for the DedicatedHostGroupsClient.ListByResourceGroup
+// method.
+type DedicatedHostGroupsClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DedicatedHostGroupsClientListBySubscriptionOptions contains the optional parameters for the DedicatedHostGroupsClient.ListBySubscription
+// method.
+type DedicatedHostGroupsClientListBySubscriptionOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DedicatedHostGroupsClientUpdateOptions contains the optional parameters for the DedicatedHostGroupsClient.Update method.
+type DedicatedHostGroupsClientUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DedicatedHostInstanceView - The instance view of a dedicated host.
+type DedicatedHostInstanceView struct {
+ // Unutilized capacity of the dedicated host.
+ AvailableCapacity *DedicatedHostAvailableCapacity `json:"availableCapacity,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // READ-ONLY; Specifies the unique id of the dedicated physical machine on which the dedicated host resides.
+ AssetID *string `json:"assetId,omitempty" azure:"ro"`
+}
+
+// DedicatedHostInstanceViewWithName - The instance view of a dedicated host that includes the name of the dedicated host.
+// It is used for the response to the instance view of a dedicated host group.
+type DedicatedHostInstanceViewWithName struct {
+ // Unutilized capacity of the dedicated host.
+ AvailableCapacity *DedicatedHostAvailableCapacity `json:"availableCapacity,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // READ-ONLY; Specifies the unique id of the dedicated physical machine on which the dedicated host resides.
+ AssetID *string `json:"assetId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The name of the dedicated host.
+ Name *string `json:"name,omitempty" azure:"ro"`
+}
+
+// DedicatedHostListResult - The list dedicated host operation response.
+type DedicatedHostListResult struct {
+ // REQUIRED; The list of dedicated hosts
+ Value []*DedicatedHost `json:"value,omitempty"`
+
+ // The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the next page of dedicated hosts.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DedicatedHostProperties - Properties of the dedicated host.
+type DedicatedHostProperties struct {
+ // Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true'
+ // when not provided.
+ AutoReplaceOnFailure *bool `json:"autoReplaceOnFailure,omitempty"`
+
+ // Specifies the software license type that will be applied to the VMs deployed on the dedicated host.
+ // Possible values are:
+ // None
+ // WindowsServerHybrid
+ // WindowsServerPerpetual
+ // Default: None
+ LicenseType *DedicatedHostLicenseTypes `json:"licenseType,omitempty"`
+
+ // Fault domain of the dedicated host within a dedicated host group.
+ PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"`
+
+ // READ-ONLY; A unique id generated and assigned to the dedicated host by the platform.
+ // Does not change throughout the lifetime of the host.
+ HostID *string `json:"hostId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The dedicated host instance view.
+ InstanceView *DedicatedHostInstanceView `json:"instanceView,omitempty" azure:"ro"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The date when the host was first provisioned.
+ ProvisioningTime *time.Time `json:"provisioningTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the time at which the Dedicated Host resource was created.
+ // Minimum api-version: 2022-03-01.
+ TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`
+
+ // READ-ONLY; A list of references to all virtual machines in the Dedicated Host.
+ VirtualMachines []*SubResourceReadOnly `json:"virtualMachines,omitempty" azure:"ro"`
+}
+
+// DedicatedHostUpdate - Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may
+// be updated.
+type DedicatedHostUpdate struct {
+ // Properties of the dedicated host.
+ Properties *DedicatedHostProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// DedicatedHostsClientBeginCreateOrUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginCreateOrUpdate
+// method.
+type DedicatedHostsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DedicatedHostsClientBeginDeleteOptions contains the optional parameters for the DedicatedHostsClient.BeginDelete method.
+type DedicatedHostsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DedicatedHostsClientBeginRestartOptions contains the optional parameters for the DedicatedHostsClient.BeginRestart method.
+type DedicatedHostsClientBeginRestartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DedicatedHostsClientBeginUpdateOptions contains the optional parameters for the DedicatedHostsClient.BeginUpdate method.
+type DedicatedHostsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DedicatedHostsClientGetOptions contains the optional parameters for the DedicatedHostsClient.Get method.
+type DedicatedHostsClientGetOptions struct {
+ // The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated
+ // host. 'UserData' is not supported for dedicated host.
+ Expand *InstanceViewTypes
+}
+
+// DedicatedHostsClientListByHostGroupOptions contains the optional parameters for the DedicatedHostsClient.ListByHostGroup
+// method.
+type DedicatedHostsClientListByHostGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiagnosticsProfile - Specifies the boot diagnostic settings state.
+// Minimum api-version: 2015-06-15.
+type DiagnosticsProfile struct {
+ // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
+ // NOTE: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the
+ // VM.
+ // You can easily view the output of your console log.
+ // Azure also enables you to see a screenshot of the VM from the hypervisor.
+ BootDiagnostics *BootDiagnostics `json:"bootDiagnostics,omitempty"`
+}
+
+// DiffDiskSettings - Describes the parameters of ephemeral disk settings that can be specified for operating system disk.
+// NOTE: The ephemeral disk settings can only be specified for managed disk.
+type DiffDiskSettings struct {
+ // Specifies the ephemeral disk settings for operating system disk.
+ Option *DiffDiskOptions `json:"option,omitempty"`
+
+ // Specifies the ephemeral disk placement for operating system disk.
+ // Possible values are:
+ // CacheDisk
+ // ResourceDisk
+ // Default: CacheDisk if one is configured for the VM size otherwise ResourceDisk is used.
+ // Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux
+ // VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check
+ // which VM sizes exposes a cache disk.
+ Placement *DiffDiskPlacement `json:"placement,omitempty"`
+}
+
+// Disallowed - Describes the disallowed disk types.
+type Disallowed struct {
+ // A list of disk types.
+ DiskTypes []*string `json:"diskTypes,omitempty"`
+}
+
+// DisallowedConfiguration - Specifies the disallowed configuration for a virtual machine image.
+type DisallowedConfiguration struct {
+ // VM disk types which are disallowed.
+ VMDiskType *VMDiskTypes `json:"vmDiskType,omitempty"`
+}
+
+// Disk resource.
+type Disk struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The extended location where the disk will be created. Extended location cannot be changed.
+ ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"`
+
+ // Disk resource properties.
+ Properties *DiskProperties `json:"properties,omitempty"`
+
+ // The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, or StandardSSDZRS.
+ SKU *DiskSKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // The Logical zone list for Disk.
+ Zones []*string `json:"zones,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; A relative URI containing the ID of the VM that has the disk attached.
+ ManagedBy *string `json:"managedBy,omitempty" azure:"ro"`
+
+ // READ-ONLY; List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to
+ // a value greater than one for disks to allow attaching them to multiple VMs.
+ ManagedByExtended []*string `json:"managedByExtended,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// DiskAccess - disk access resource.
+type DiskAccess struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The extended location where the disk access will be created. Extended location cannot be changed.
+ ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"`
+ Properties *DiskAccessProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// DiskAccessList - The List disk access operation response.
+type DiskAccessList struct {
+ // REQUIRED; A list of disk access resources.
+ Value []*DiskAccess `json:"value,omitempty"`
+
+ // The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch the next page of disk access
+ // resources.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+type DiskAccessProperties struct {
+ // READ-ONLY; A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection
+ // is supported.
+ PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"`
+
+ // READ-ONLY; The disk access resource provisioning state.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The time when the disk access was created.
+ TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`
+}
+
+// DiskAccessUpdate - Used for updating a disk access resource.
+type DiskAccessUpdate struct {
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// DiskAccessesClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginCreateOrUpdate
+// method.
+type DiskAccessesClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginDeleteAPrivateEndpointConnection
+// method.
+type DiskAccessesClientBeginDeleteAPrivateEndpointConnectionOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskAccessesClientBeginDeleteOptions contains the optional parameters for the DiskAccessesClient.BeginDelete method.
+type DiskAccessesClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.BeginUpdateAPrivateEndpointConnection
+// method.
+type DiskAccessesClientBeginUpdateAPrivateEndpointConnectionOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskAccessesClientBeginUpdateOptions contains the optional parameters for the DiskAccessesClient.BeginUpdate method.
+type DiskAccessesClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskAccessesClientGetAPrivateEndpointConnectionOptions contains the optional parameters for the DiskAccessesClient.GetAPrivateEndpointConnection
+// method.
+type DiskAccessesClientGetAPrivateEndpointConnectionOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskAccessesClientGetOptions contains the optional parameters for the DiskAccessesClient.Get method.
+type DiskAccessesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskAccessesClientGetPrivateLinkResourcesOptions contains the optional parameters for the DiskAccessesClient.GetPrivateLinkResources
+// method.
+type DiskAccessesClientGetPrivateLinkResourcesOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskAccessesClientListByResourceGroupOptions contains the optional parameters for the DiskAccessesClient.ListByResourceGroup
+// method.
+type DiskAccessesClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskAccessesClientListOptions contains the optional parameters for the DiskAccessesClient.List method.
+type DiskAccessesClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskAccessesClientListPrivateEndpointConnectionsOptions contains the optional parameters for the DiskAccessesClient.ListPrivateEndpointConnections
+// method.
+type DiskAccessesClientListPrivateEndpointConnectionsOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskEncryptionSet - disk encryption set resource.
+type DiskEncryptionSet struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used
+ // to encrypt disks.
+ Identity *EncryptionSetIdentity `json:"identity,omitempty"`
+ Properties *EncryptionSetProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// DiskEncryptionSetList - The List disk encryption set operation response.
+type DiskEncryptionSetList struct {
+ // REQUIRED; A list of disk encryption sets.
+ Value []*DiskEncryptionSet `json:"value,omitempty"`
+
+ // The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the next page of disk encryption
+ // sets.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DiskEncryptionSetParameters - Describes the parameter of customer managed disk encryption set resource id that can be specified
+// for disk.
+// NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview
+// for more details.
+type DiskEncryptionSetParameters struct {
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+}
+
+// DiskEncryptionSetUpdate - disk encryption set update resource.
+type DiskEncryptionSetUpdate struct {
+ // The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used
+ // to encrypt disks.
+ Identity *EncryptionSetIdentity `json:"identity,omitempty"`
+
+ // disk encryption set resource update properties.
+ Properties *DiskEncryptionSetUpdateProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// DiskEncryptionSetUpdateProperties - disk encryption set resource update properties.
+type DiskEncryptionSetUpdateProperties struct {
+ // Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots
+ ActiveKey *KeyForDiskEncryptionSet `json:"activeKey,omitempty"`
+
+ // The type of key used to encrypt the data of the disk.
+ EncryptionType *DiskEncryptionSetType `json:"encryptionType,omitempty"`
+
+ // Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.
+ RotationToLatestKeyVersionEnabled *bool `json:"rotationToLatestKeyVersionEnabled,omitempty"`
+}
+
+// DiskEncryptionSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginCreateOrUpdate
+// method.
+type DiskEncryptionSetsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskEncryptionSetsClientBeginDeleteOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginDelete
+// method.
+type DiskEncryptionSetsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskEncryptionSetsClientBeginUpdateOptions contains the optional parameters for the DiskEncryptionSetsClient.BeginUpdate
+// method.
+type DiskEncryptionSetsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskEncryptionSetsClientGetOptions contains the optional parameters for the DiskEncryptionSetsClient.Get method.
+type DiskEncryptionSetsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskEncryptionSetsClientListAssociatedResourcesOptions contains the optional parameters for the DiskEncryptionSetsClient.ListAssociatedResources
+// method.
+type DiskEncryptionSetsClientListAssociatedResourcesOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskEncryptionSetsClientListByResourceGroupOptions contains the optional parameters for the DiskEncryptionSetsClient.ListByResourceGroup
+// method.
+type DiskEncryptionSetsClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskEncryptionSetsClientListOptions contains the optional parameters for the DiskEncryptionSetsClient.List method.
+type DiskEncryptionSetsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskEncryptionSettings - Describes a Encryption Settings for a Disk
+type DiskEncryptionSettings struct {
+ // Specifies the location of the disk encryption key, which is a Key Vault Secret.
+ DiskEncryptionKey *KeyVaultSecretReference `json:"diskEncryptionKey,omitempty"`
+
+ // Specifies whether disk encryption should be enabled on the virtual machine.
+ Enabled *bool `json:"enabled,omitempty"`
+
+ // Specifies the location of the key encryption key in Key Vault.
+ KeyEncryptionKey *KeyVaultKeyReference `json:"keyEncryptionKey,omitempty"`
+}
+
+// DiskImageEncryption - This is the disk image encryption base class.
+type DiskImageEncryption struct {
+ // A relative URI containing the resource ID of the disk encryption set.
+ DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`
+}
+
+// DiskInstanceView - The instance view of the disk.
+type DiskInstanceView struct {
+ // Specifies the encryption settings for the OS Disk.
+ // Minimum api-version: 2015-06-15
+ EncryptionSettings []*DiskEncryptionSettings `json:"encryptionSettings,omitempty"`
+
+ // The disk name.
+ Name *string `json:"name,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+}
+
+// DiskList - The List Disks operation response.
+type DiskList struct {
+ // REQUIRED; A list of disks.
+ Value []*Disk `json:"value,omitempty"`
+
+ // The uri to fetch the next page of disks. Call ListNext() with this to fetch the next page of disks.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DiskProperties - Disk resource properties.
+type DiskProperties struct {
+ // REQUIRED; Disk source information. CreationData information cannot be changed after the disk has been created.
+ CreationData *CreationData `json:"creationData,omitempty"`
+
+ // Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default.
+ // Does not apply to Ultra disks.
+ BurstingEnabled *bool `json:"burstingEnabled,omitempty"`
+
+ // Percentage complete for the background copy when a resource is created via the CopyStart operation.
+ CompletionPercent *float32 `json:"completionPercent,omitempty"`
+
+ // Additional authentication requirements when exporting or uploading to a disk or snapshot.
+ DataAccessAuthMode *DataAccessAuthMode `json:"dataAccessAuthMode,omitempty"`
+
+ // ARM id of the DiskAccess resource for using private endpoints on disks.
+ DiskAccessID *string `json:"diskAccessId,omitempty"`
+
+ // The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer
+ // between 4k and 256k bytes.
+ DiskIOPSReadOnly *int64 `json:"diskIOPSReadOnly,omitempty"`
+
+ // The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k
+ // bytes.
+ DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"`
+
+ // The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions
+ // of bytes per second - MB here uses the ISO notation, of powers of 10.
+ DiskMBpsReadOnly *int64 `json:"diskMBpsReadOnly,omitempty"`
+
+ // The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here
+ // uses the ISO notation, of powers of 10.
+ DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"`
+
+ // If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this
+ // field is present for updates or creation with other options, it indicates a
+ // resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
+ Encryption *Encryption `json:"encryption,omitempty"`
+
+ // Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
+ EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"`
+
+ // The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
+ HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"`
+
+ // The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can
+ // be mounted on multiple VMs at the same time.
+ MaxShares *int32 `json:"maxShares,omitempty"`
+
+ // Policy for accessing the disk via network.
+ NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"`
+
+ // The Operating System type.
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // Policy for controlling export on the disk.
+ PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
+
+ // Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher:
+ // MicrosoftWindowsServer, product: WindowsServer}
+ PurchasePlan *DiskPurchasePlan `json:"purchasePlan,omitempty"`
+
+ // Contains the security related information for the resource.
+ SecurityProfile *DiskSecurityProfile `json:"securityProfile,omitempty"`
+
+ // List of supported capabilities for the image from which the OS disk was created.
+ SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"`
+
+ // Indicates the OS on a disk supports hibernation.
+ SupportsHibernation *bool `json:"supportsHibernation,omitempty"`
+
+ // Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/.
+ // Does not apply to Ultra disks.
+ Tier *string `json:"tier,omitempty"`
+
+ // READ-ONLY; The size of the disk in bytes. This field is read only.
+ DiskSizeBytes *int64 `json:"diskSizeBytes,omitempty" azure:"ro"`
+
+ // READ-ONLY; The state of the disk.
+ DiskState *DiskState `json:"diskState,omitempty" azure:"ro"`
+
+ // READ-ONLY; Properties of the disk for which update is pending.
+ PropertyUpdatesInProgress *PropertyUpdatesInProgress `json:"propertyUpdatesInProgress,omitempty" azure:"ro"`
+
+ // READ-ONLY; The disk provisioning state.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than
+ // one for disks to allow attaching them to multiple VMs.
+ ShareInfo []*ShareInfoElement `json:"shareInfo,omitempty" azure:"ro"`
+
+ // READ-ONLY; The time when the disk was created.
+ TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`
+
+ // READ-ONLY; Unique Guid identifying the resource.
+ UniqueID *string `json:"uniqueId,omitempty" azure:"ro"`
+}
+
+// DiskPurchasePlan - Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
+type DiskPurchasePlan struct {
+ // REQUIRED; The plan ID.
+ Name *string `json:"name,omitempty"`
+
+ // REQUIRED; Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference
+ // element.
+ Product *string `json:"product,omitempty"`
+
+ // REQUIRED; The publisher ID.
+ Publisher *string `json:"publisher,omitempty"`
+
+ // The Offer Promotion Code.
+ PromotionCode *string `json:"promotionCode,omitempty"`
+}
+
+// DiskRestorePoint - Properties of disk restore point
+type DiskRestorePoint struct {
+ // Properties of an incremental disk restore point
+ Properties *DiskRestorePointProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// DiskRestorePointClientBeginGrantAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginGrantAccess
+// method.
+type DiskRestorePointClientBeginGrantAccessOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskRestorePointClientBeginRevokeAccessOptions contains the optional parameters for the DiskRestorePointClient.BeginRevokeAccess
+// method.
+type DiskRestorePointClientBeginRevokeAccessOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DiskRestorePointClientGetOptions contains the optional parameters for the DiskRestorePointClient.Get method.
+type DiskRestorePointClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskRestorePointClientListByRestorePointOptions contains the optional parameters for the DiskRestorePointClient.ListByRestorePoint
+// method.
+type DiskRestorePointClientListByRestorePointOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DiskRestorePointInstanceView - The instance view of a disk restore point.
+type DiskRestorePointInstanceView struct {
+ // Disk restore point Id.
+ ID *string `json:"id,omitempty"`
+
+ // The disk restore point replication status information.
+ ReplicationStatus *DiskRestorePointReplicationStatus `json:"replicationStatus,omitempty"`
+}
+
+// DiskRestorePointList - The List Disk Restore Points operation response.
+type DiskRestorePointList struct {
+ // REQUIRED; A list of disk restore points.
+ Value []*DiskRestorePoint `json:"value,omitempty"`
+
+ // The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the next page of disk restore
+ // points.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DiskRestorePointProperties - Properties of an incremental disk restore point
+type DiskRestorePointProperties struct {
+ // Percentage complete for the background copy of disk restore point when source resource is from a different region.
+ CompletionPercent *float32 `json:"completionPercent,omitempty"`
+
+ // ARM id of the DiskAccess resource for using private endpoints on disks.
+ DiskAccessID *string `json:"diskAccessId,omitempty"`
+
+ // The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
+ HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"`
+
+ // Policy for accessing the disk via network.
+ NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"`
+
+ // Policy for controlling export on the disk.
+ PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
+
+ // Purchase plan information for the the image from which the OS disk was created.
+ PurchasePlan *DiskPurchasePlan `json:"purchasePlan,omitempty"`
+
+ // List of supported capabilities for the image from which the OS disk was created.
+ SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"`
+
+ // Indicates the OS on a disk supports hibernation.
+ SupportsHibernation *bool `json:"supportsHibernation,omitempty"`
+
+ // READ-ONLY; Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
+ Encryption *Encryption `json:"encryption,omitempty" azure:"ro"`
+
+ // READ-ONLY; id of the backing snapshot's MIS family
+ FamilyID *string `json:"familyId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The Operating System type.
+ OSType *OperatingSystemTypes `json:"osType,omitempty" azure:"ro"`
+
+ // READ-ONLY; Replication state of disk restore point when source resource is from a different region.
+ ReplicationState *string `json:"replicationState,omitempty" azure:"ro"`
+
+ // READ-ONLY; arm id of source disk or source disk restore point.
+ SourceResourceID *string `json:"sourceResourceId,omitempty" azure:"ro"`
+
+ // READ-ONLY; Location of source disk or source disk restore point when source resource is from a different region.
+ SourceResourceLocation *string `json:"sourceResourceLocation,omitempty" azure:"ro"`
+
+ // READ-ONLY; unique incarnation id of the source disk
+ SourceUniqueID *string `json:"sourceUniqueId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The timestamp of restorePoint creation
+ TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`
+}
+
+// DiskRestorePointReplicationStatus - The instance view of a disk restore point.
+type DiskRestorePointReplicationStatus struct {
+ // Replication completion percentage.
+ CompletionPercent *int32 `json:"completionPercent,omitempty"`
+
+ // The resource status information.
+ Status *InstanceViewStatus `json:"status,omitempty"`
+}
+
+// DiskSKU - The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, or StandardSSDZRS.
+type DiskSKU struct {
+ // The sku name.
+ Name *DiskStorageAccountTypes `json:"name,omitempty"`
+
+ // READ-ONLY; The sku tier.
+ Tier *string `json:"tier,omitempty" azure:"ro"`
+}
+
+// DiskSecurityProfile - Contains the security related information for the resource.
+type DiskSecurityProfile struct {
+ // ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
+ SecureVMDiskEncryptionSetID *string `json:"secureVMDiskEncryptionSetId,omitempty"`
+
+ // Specifies the SecurityType of the VM. Applicable for OS disks only.
+ SecurityType *DiskSecurityTypes `json:"securityType,omitempty"`
+}
+
+// DiskUpdate - Disk update resource.
+type DiskUpdate struct {
+ // Disk resource update properties.
+ Properties *DiskUpdateProperties `json:"properties,omitempty"`
+
+ // The disks sku name. Can be StandardLRS, PremiumLRS, StandardSSDLRS, UltraSSDLRS, PremiumZRS, or StandardSSDZRS.
+ SKU *DiskSKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// DiskUpdateProperties - Disk resource update properties.
+type DiskUpdateProperties struct {
+ // Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default.
+ // Does not apply to Ultra disks.
+ BurstingEnabled *bool `json:"burstingEnabled,omitempty"`
+
+ // Additional authentication requirements when exporting or uploading to a disk or snapshot.
+ DataAccessAuthMode *DataAccessAuthMode `json:"dataAccessAuthMode,omitempty"`
+
+ // ARM id of the DiskAccess resource for using private endpoints on disks.
+ DiskAccessID *string `json:"diskAccessId,omitempty"`
+
+ // The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer
+ // between 4k and 256k bytes.
+ DiskIOPSReadOnly *int64 `json:"diskIOPSReadOnly,omitempty"`
+
+ // The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k
+ // bytes.
+ DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"`
+
+ // The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions
+ // of bytes per second - MB here uses the ISO notation, of powers of 10.
+ DiskMBpsReadOnly *int64 `json:"diskMBpsReadOnly,omitempty"`
+
+ // The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here
+ // uses the ISO notation, of powers of 10.
+ DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"`
+
+ // If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this
+ // field is present for updates or creation with other options, it indicates a
+ // resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
+ Encryption *Encryption `json:"encryption,omitempty"`
+
+ // Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
+ EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"`
+
+ // The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can
+ // be mounted on multiple VMs at the same time.
+ MaxShares *int32 `json:"maxShares,omitempty"`
+
+ // Policy for accessing the disk via network.
+ NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"`
+
+ // the Operating System type.
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // Policy for controlling export on the disk.
+ PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
+
+ // Purchase plan information to be added on the OS disk
+ PurchasePlan *DiskPurchasePlan `json:"purchasePlan,omitempty"`
+
+ // List of supported capabilities to be added on the OS disk.
+ SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"`
+
+ // Indicates the OS on a disk supports hibernation.
+ SupportsHibernation *bool `json:"supportsHibernation,omitempty"`
+
+ // Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/.
+ // Does not apply to Ultra disks.
+ Tier *string `json:"tier,omitempty"`
+
+ // READ-ONLY; Properties of the disk for which update is pending.
+ PropertyUpdatesInProgress *PropertyUpdatesInProgress `json:"propertyUpdatesInProgress,omitempty" azure:"ro"`
+}
+
+// DisksClientBeginCreateOrUpdateOptions contains the optional parameters for the DisksClient.BeginCreateOrUpdate method.
+type DisksClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DisksClientBeginDeleteOptions contains the optional parameters for the DisksClient.BeginDelete method.
+type DisksClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DisksClientBeginGrantAccessOptions contains the optional parameters for the DisksClient.BeginGrantAccess method.
+type DisksClientBeginGrantAccessOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DisksClientBeginRevokeAccessOptions contains the optional parameters for the DisksClient.BeginRevokeAccess method.
+type DisksClientBeginRevokeAccessOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DisksClientBeginUpdateOptions contains the optional parameters for the DisksClient.BeginUpdate method.
+type DisksClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// DisksClientGetOptions contains the optional parameters for the DisksClient.Get method.
+type DisksClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DisksClientListByResourceGroupOptions contains the optional parameters for the DisksClient.ListByResourceGroup method.
+type DisksClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DisksClientListOptions contains the optional parameters for the DisksClient.List method.
+type DisksClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// Encryption at rest settings for disk or snapshot
+type Encryption struct {
+ // ResourceId of the disk encryption set to use for enabling encryption at rest.
+ DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`
+
+ // The type of key used to encrypt the data of the disk.
+ Type *EncryptionType `json:"type,omitempty"`
+}
+
+// EncryptionImages - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the
+// gallery artifact.
+type EncryptionImages struct {
+ // A list of encryption specifications for data disk images.
+ DataDiskImages []*DataDiskImageEncryption `json:"dataDiskImages,omitempty"`
+
+ // Contains encryption settings for an OS disk image.
+ OSDiskImage *OSDiskImageEncryption `json:"osDiskImage,omitempty"`
+}
+
+// EncryptionSetIdentity - The managed identity for the disk encryption set. It should be given permission on the key vault
+// before it can be used to encrypt disks.
+type EncryptionSetIdentity struct {
+ // The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption
+ // Sets can be updated with Identity type None during migration of
+ // subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys.
+ Type *DiskEncryptionSetIdentityType `json:"type,omitempty"`
+
+ // READ-ONLY; The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id
+ // header in the PUT request if the resource has a systemAssigned(implicit)
+ // identity
+ PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id
+ // header in the PUT request if the resource has a systemAssigned(implicit) identity
+ TenantID *string `json:"tenantId,omitempty" azure:"ro"`
+}
+
+type EncryptionSetProperties struct {
+ // The key vault key which is currently used by this disk encryption set.
+ ActiveKey *KeyForDiskEncryptionSet `json:"activeKey,omitempty"`
+
+ // The type of key used to encrypt the data of the disk.
+ EncryptionType *DiskEncryptionSetType `json:"encryptionType,omitempty"`
+
+ // Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.
+ RotationToLatestKeyVersionEnabled *bool `json:"rotationToLatestKeyVersionEnabled,omitempty"`
+
+ // READ-ONLY; The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will
+ // not be attempted until the error on this disk encryption set is fixed.
+ AutoKeyRotationError *APIError `json:"autoKeyRotationError,omitempty" azure:"ro"`
+
+ // READ-ONLY; The time when the active key of this disk encryption set was updated.
+ LastKeyRotationTimestamp *time.Time `json:"lastKeyRotationTimestamp,omitempty" azure:"ro"`
+
+ // READ-ONLY; A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is
+ // in progress. It will be empty if there is no ongoing key rotation.
+ PreviousKeys []*KeyForDiskEncryptionSet `json:"previousKeys,omitempty" azure:"ro"`
+
+ // READ-ONLY; The disk encryption set provisioning state.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+}
+
+// EncryptionSettingsCollection - Encryption settings for disk or snapshot
+type EncryptionSettingsCollection struct {
+ // REQUIRED; Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this
+ // flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption.
+ // If EncryptionSettings is null in the request object, the existing settings remain unchanged.
+ Enabled *bool `json:"enabled,omitempty"`
+
+ // A collection of encryption settings, one for each disk volume.
+ EncryptionSettings []*EncryptionSettingsElement `json:"encryptionSettings,omitempty"`
+
+ // Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds
+ // to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk
+ // Encryption.
+ EncryptionSettingsVersion *string `json:"encryptionSettingsVersion,omitempty"`
+}
+
+// EncryptionSettingsElement - Encryption settings for one disk volume.
+type EncryptionSettingsElement struct {
+ // Key Vault Secret Url and vault id of the disk encryption key
+ DiskEncryptionKey *KeyVaultAndSecretReference `json:"diskEncryptionKey,omitempty"`
+
+ // Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap
+ // the disk encryption key.
+ KeyEncryptionKey *KeyVaultAndKeyReference `json:"keyEncryptionKey,omitempty"`
+}
+
+// ExtendedLocation - The complex type of the extended location.
+type ExtendedLocation struct {
+ // The name of the extended location.
+ Name *string `json:"name,omitempty"`
+
+ // The type of the extended location.
+ Type *ExtendedLocationTypes `json:"type,omitempty"`
+}
+
+// Extension - Describes a cloud service Extension.
+type Extension struct {
+ // The name of the extension.
+ Name *string `json:"name,omitempty"`
+
+ // Extension Properties.
+ Properties *CloudServiceExtensionProperties `json:"properties,omitempty"`
+}
+
+// GalleriesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleriesClient.BeginCreateOrUpdate
+// method.
+type GalleriesClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method.
+type GalleriesClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleriesClientBeginUpdateOptions contains the optional parameters for the GalleriesClient.BeginUpdate method.
+type GalleriesClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method.
+type GalleriesClientGetOptions struct {
+ // The expand query option to apply on the operation.
+ Expand *GalleryExpandParams
+ // The select expression to apply on the operation.
+ Select *SelectPermissions
+}
+
+// GalleriesClientListByResourceGroupOptions contains the optional parameters for the GalleriesClient.ListByResourceGroup
+// method.
+type GalleriesClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GalleriesClientListOptions contains the optional parameters for the GalleriesClient.List method.
+type GalleriesClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// Gallery - Specifies information about the Shared Image Gallery that you want to create or update.
+type Gallery struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a Shared Image Gallery.
+ Properties *GalleryProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryApplication - Specifies information about the gallery Application Definition that you want to create or update.
+type GalleryApplication struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a gallery Application Definition.
+ Properties *GalleryApplicationProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryApplicationList - The List Gallery Applications operation response.
+type GalleryApplicationList struct {
+ // REQUIRED; A list of Gallery Applications.
+ Value []*GalleryApplication `json:"value,omitempty"`
+
+ // The uri to fetch the next page of Application Definitions in the Application Gallery. Call ListNext() with this to fetch
+ // the next page of gallery Application Definitions.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// GalleryApplicationProperties - Describes the properties of a gallery Application Definition.
+type GalleryApplicationProperties struct {
+ // REQUIRED; This property allows you to specify the supported type of the OS that application is built for.
+ // Possible values are:
+ // Windows
+ // Linux
+ SupportedOSType *OperatingSystemTypes `json:"supportedOSType,omitempty"`
+
+ // The description of this gallery Application Definition resource. This property is updatable.
+ Description *string `json:"description,omitempty"`
+
+ // The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This
+ // property is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // The Eula agreement for the gallery Application Definition.
+ Eula *string `json:"eula,omitempty"`
+
+ // The privacy statement uri.
+ PrivacyStatementURI *string `json:"privacyStatementUri,omitempty"`
+
+ // The release note uri.
+ ReleaseNoteURI *string `json:"releaseNoteUri,omitempty"`
+}
+
+// GalleryApplicationUpdate - Specifies information about the gallery Application Definition that you want to update.
+type GalleryApplicationUpdate struct {
+ // Describes the properties of a gallery Application Definition.
+ Properties *GalleryApplicationProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryApplicationVersion - Specifies information about the gallery Application Version that you want to create or update.
+type GalleryApplicationVersion struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a gallery image version.
+ Properties *GalleryApplicationVersionProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryApplicationVersionList - The List Gallery Application version operation response.
+type GalleryApplicationVersionList struct {
+ // REQUIRED; A list of gallery Application Versions.
+ Value []*GalleryApplicationVersion `json:"value,omitempty"`
+
+ // The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to fetch the next page of gallery
+ // Application Versions.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// GalleryApplicationVersionProperties - Describes the properties of a gallery image version.
+type GalleryApplicationVersionProperties struct {
+ // REQUIRED; The publishing profile of a gallery image version.
+ PublishingProfile *GalleryApplicationVersionPublishingProfile `json:"publishingProfile,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *GalleryApplicationVersionPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; This is the replication status of the gallery image version.
+ ReplicationStatus *ReplicationStatus `json:"replicationStatus,omitempty" azure:"ro"`
+}
+
+// GalleryApplicationVersionPublishingProfile - The publishing profile of a gallery image version.
+type GalleryApplicationVersionPublishingProfile struct {
+ // REQUIRED; The source image from which the Image Version is going to be created.
+ Source *UserArtifactSource `json:"source,omitempty"`
+
+ // Optional. Whether or not this application reports health.
+ EnableHealthCheck *bool `json:"enableHealthCheck,omitempty"`
+
+ // The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property
+ // is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
+ ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"`
+ ManageActions *UserArtifactManage `json:"manageActions,omitempty"`
+
+ // The number of replicas of the Image Version to be created per region. This property would take effect for a region when
+ // regionalReplicaCount is not specified. This property is updatable.
+ ReplicaCount *int32 `json:"replicaCount,omitempty"`
+
+ // Optional parameter which specifies the mode to be used for replication. This property is not updatable.
+ ReplicationMode *ReplicationMode `json:"replicationMode,omitempty"`
+
+ // Specifies the storage account type to be used to store the image. This property is not updatable.
+ StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"`
+
+ // The target extended locations where the Image Version is going to be replicated to. This property is updatable.
+ TargetExtendedLocations []*GalleryTargetExtendedLocation `json:"targetExtendedLocations,omitempty"`
+
+ // The target regions where the Image Version is going to be replicated to. This property is updatable.
+ TargetRegions []*TargetRegion `json:"targetRegions,omitempty"`
+
+ // READ-ONLY; The timestamp for when the gallery image version is published.
+ PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"`
+}
+
+// GalleryApplicationVersionUpdate - Specifies information about the gallery Application Version that you want to update.
+type GalleryApplicationVersionUpdate struct {
+ // Describes the properties of a gallery image version.
+ Properties *GalleryApplicationVersionProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryApplicationVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginCreateOrUpdate
+// method.
+type GalleryApplicationVersionsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryApplicationVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginDelete
+// method.
+type GalleryApplicationVersionsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryApplicationVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationVersionsClient.BeginUpdate
+// method.
+type GalleryApplicationVersionsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryApplicationVersionsClientGetOptions contains the optional parameters for the GalleryApplicationVersionsClient.Get
+// method.
+type GalleryApplicationVersionsClientGetOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *ReplicationStatusTypes
+}
+
+// GalleryApplicationVersionsClientListByGalleryApplicationOptions contains the optional parameters for the GalleryApplicationVersionsClient.ListByGalleryApplication
+// method.
+type GalleryApplicationVersionsClientListByGalleryApplicationOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GalleryApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginCreateOrUpdate
+// method.
+type GalleryApplicationsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryApplicationsClientBeginDeleteOptions contains the optional parameters for the GalleryApplicationsClient.BeginDelete
+// method.
+type GalleryApplicationsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryApplicationsClientBeginUpdateOptions contains the optional parameters for the GalleryApplicationsClient.BeginUpdate
+// method.
+type GalleryApplicationsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryApplicationsClientGetOptions contains the optional parameters for the GalleryApplicationsClient.Get method.
+type GalleryApplicationsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GalleryApplicationsClientListByGalleryOptions contains the optional parameters for the GalleryApplicationsClient.ListByGallery
+// method.
+type GalleryApplicationsClientListByGalleryOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GalleryArtifactPublishingProfileBase - Describes the basic gallery artifact publishing profile.
+type GalleryArtifactPublishingProfileBase struct {
+ // The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property
+ // is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
+ ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"`
+
+ // The number of replicas of the Image Version to be created per region. This property would take effect for a region when
+ // regionalReplicaCount is not specified. This property is updatable.
+ ReplicaCount *int32 `json:"replicaCount,omitempty"`
+
+ // Optional parameter which specifies the mode to be used for replication. This property is not updatable.
+ ReplicationMode *ReplicationMode `json:"replicationMode,omitempty"`
+
+ // Specifies the storage account type to be used to store the image. This property is not updatable.
+ StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"`
+
+ // The target extended locations where the Image Version is going to be replicated to. This property is updatable.
+ TargetExtendedLocations []*GalleryTargetExtendedLocation `json:"targetExtendedLocations,omitempty"`
+
+ // The target regions where the Image Version is going to be replicated to. This property is updatable.
+ TargetRegions []*TargetRegion `json:"targetRegions,omitempty"`
+
+ // READ-ONLY; The timestamp for when the gallery image version is published.
+ PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"`
+}
+
+// GalleryArtifactSource - The source image from which the Image Version is going to be created.
+type GalleryArtifactSource struct {
+ // REQUIRED; The managed artifact.
+ ManagedImage *ManagedArtifact `json:"managedImage,omitempty"`
+}
+
+// GalleryArtifactVersionSource - The gallery artifact version source.
+type GalleryArtifactVersionSource struct {
+ // The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
+ ID *string `json:"id,omitempty"`
+
+ // The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
+ URI *string `json:"uri,omitempty"`
+}
+
+// GalleryDataDiskImage - This is the data disk image.
+type GalleryDataDiskImage struct {
+ // REQUIRED; 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.
+ Lun *int32 `json:"lun,omitempty"`
+
+ // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
+ HostCaching *HostCaching `json:"hostCaching,omitempty"`
+
+ // The gallery artifact version source.
+ Source *GalleryArtifactVersionSource `json:"source,omitempty"`
+
+ // READ-ONLY; This property indicates the size of the VHD to be created.
+ SizeInGB *int32 `json:"sizeInGB,omitempty" azure:"ro"`
+}
+
+// GalleryDiskImage - This is the disk image base class.
+type GalleryDiskImage struct {
+ // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
+ HostCaching *HostCaching `json:"hostCaching,omitempty"`
+
+ // The gallery artifact version source.
+ Source *GalleryArtifactVersionSource `json:"source,omitempty"`
+
+ // READ-ONLY; This property indicates the size of the VHD to be created.
+ SizeInGB *int32 `json:"sizeInGB,omitempty" azure:"ro"`
+}
+
+// GalleryExtendedLocation - The name of the extended location.
+type GalleryExtendedLocation struct {
+ Name *string `json:"name,omitempty"`
+
+ // It is type of the extended location.
+ Type *GalleryExtendedLocationType `json:"type,omitempty"`
+}
+
+// GalleryIdentifier - Describes the gallery unique name.
+type GalleryIdentifier struct {
+ // READ-ONLY; The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
+ UniqueName *string `json:"uniqueName,omitempty" azure:"ro"`
+}
+
+// GalleryImage - Specifies information about the gallery image definition that you want to create or update.
+type GalleryImage struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a gallery image definition.
+ Properties *GalleryImageProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryImageFeature - A feature for gallery image.
+type GalleryImageFeature struct {
+ // The name of the gallery image feature.
+ Name *string `json:"name,omitempty"`
+
+ // The value of the gallery image feature.
+ Value *string `json:"value,omitempty"`
+}
+
+// GalleryImageIdentifier - This is the gallery image definition identifier.
+type GalleryImageIdentifier struct {
+ // REQUIRED; The name of the gallery image definition offer.
+ Offer *string `json:"offer,omitempty"`
+
+ // REQUIRED; The name of the gallery image definition publisher.
+ Publisher *string `json:"publisher,omitempty"`
+
+ // REQUIRED; The name of the gallery image definition SKU.
+ SKU *string `json:"sku,omitempty"`
+}
+
+// GalleryImageList - The List Gallery Images operation response.
+type GalleryImageList struct {
+ // REQUIRED; A list of Shared Image Gallery images.
+ Value []*GalleryImage `json:"value,omitempty"`
+
+ // The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the
+ // next page of gallery image definitions.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// GalleryImageProperties - Describes the properties of a gallery image definition.
+type GalleryImageProperties struct {
+ // REQUIRED; This is the gallery image definition identifier.
+ Identifier *GalleryImageIdentifier `json:"identifier,omitempty"`
+
+ // REQUIRED; This property allows the user to specify whether the virtual machines created under this image are 'Generalized'
+ // or 'Specialized'.
+ OSState *OperatingSystemStateTypes `json:"osState,omitempty"`
+
+ // REQUIRED; This property allows you to specify the type of the OS that is included in the disk when creating a VM from a
+ // managed image.
+ // Possible values are:
+ // Windows
+ // Linux
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // The architecture of the image. Applicable to OS disks only.
+ Architecture *Architecture `json:"architecture,omitempty"`
+
+ // The description of this gallery image definition resource. This property is updatable.
+ Description *string `json:"description,omitempty"`
+
+ // Describes the disallowed disk types.
+ Disallowed *Disallowed `json:"disallowed,omitempty"`
+
+ // The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property
+ // is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // The Eula agreement for the gallery image definition.
+ Eula *string `json:"eula,omitempty"`
+
+ // A list of gallery image features.
+ Features []*GalleryImageFeature `json:"features,omitempty"`
+
+ // The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
+ HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"`
+
+ // The privacy statement uri.
+ PrivacyStatementURI *string `json:"privacyStatementUri,omitempty"`
+
+ // Describes the gallery image definition purchase plan. This is used by marketplace images.
+ PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"`
+
+ // The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
+ Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"`
+
+ // The release note uri.
+ ReleaseNoteURI *string `json:"releaseNoteUri,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *GalleryImagePropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
+}
+
+// GalleryImageUpdate - Specifies information about the gallery image definition that you want to update.
+type GalleryImageUpdate struct {
+ // Describes the properties of a gallery image definition.
+ Properties *GalleryImageProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryImageVersion - Specifies information about the gallery image version that you want to create or update.
+type GalleryImageVersion struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a gallery image version.
+ Properties *GalleryImageVersionProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryImageVersionList - The List Gallery Image version operation response.
+type GalleryImageVersionList struct {
+ // REQUIRED; A list of gallery image versions.
+ Value []*GalleryImageVersion `json:"value,omitempty"`
+
+ // The uri to fetch the next page of gallery image versions. Call ListNext() with this to fetch the next page of gallery image
+ // versions.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// GalleryImageVersionProperties - Describes the properties of a gallery image version.
+type GalleryImageVersionProperties struct {
+ // REQUIRED; This is the storage profile of a Gallery Image Version.
+ StorageProfile *GalleryImageVersionStorageProfile `json:"storageProfile,omitempty"`
+
+ // The publishing profile of a gallery image Version.
+ PublishingProfile *GalleryImageVersionPublishingProfile `json:"publishingProfile,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *GalleryImageVersionPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; This is the replication status of the gallery image version.
+ ReplicationStatus *ReplicationStatus `json:"replicationStatus,omitempty" azure:"ro"`
+}
+
+// GalleryImageVersionPublishingProfile - The publishing profile of a gallery image Version.
+type GalleryImageVersionPublishingProfile struct {
+ // The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property
+ // is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
+ ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"`
+
+ // The number of replicas of the Image Version to be created per region. This property would take effect for a region when
+ // regionalReplicaCount is not specified. This property is updatable.
+ ReplicaCount *int32 `json:"replicaCount,omitempty"`
+
+ // Optional parameter which specifies the mode to be used for replication. This property is not updatable.
+ ReplicationMode *ReplicationMode `json:"replicationMode,omitempty"`
+
+ // Specifies the storage account type to be used to store the image. This property is not updatable.
+ StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"`
+
+ // The target extended locations where the Image Version is going to be replicated to. This property is updatable.
+ TargetExtendedLocations []*GalleryTargetExtendedLocation `json:"targetExtendedLocations,omitempty"`
+
+ // The target regions where the Image Version is going to be replicated to. This property is updatable.
+ TargetRegions []*TargetRegion `json:"targetRegions,omitempty"`
+
+ // READ-ONLY; The timestamp for when the gallery image version is published.
+ PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"`
+}
+
+// GalleryImageVersionStorageProfile - This is the storage profile of a Gallery Image Version.
+type GalleryImageVersionStorageProfile struct {
+ // A list of data disk images.
+ DataDiskImages []*GalleryDataDiskImage `json:"dataDiskImages,omitempty"`
+
+ // This is the OS disk image.
+ OSDiskImage *GalleryOSDiskImage `json:"osDiskImage,omitempty"`
+
+ // The gallery artifact version source.
+ Source *GalleryArtifactVersionSource `json:"source,omitempty"`
+}
+
+// GalleryImageVersionUpdate - Specifies information about the gallery image version that you want to update.
+type GalleryImageVersionUpdate struct {
+ // Describes the properties of a gallery image version.
+ Properties *GalleryImageVersionProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GalleryImageVersionsClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginCreateOrUpdate
+// method.
+type GalleryImageVersionsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryImageVersionsClientBeginDeleteOptions contains the optional parameters for the GalleryImageVersionsClient.BeginDelete
+// method.
+type GalleryImageVersionsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryImageVersionsClientBeginUpdateOptions contains the optional parameters for the GalleryImageVersionsClient.BeginUpdate
+// method.
+type GalleryImageVersionsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryImageVersionsClientGetOptions contains the optional parameters for the GalleryImageVersionsClient.Get method.
+type GalleryImageVersionsClientGetOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *ReplicationStatusTypes
+}
+
+// GalleryImageVersionsClientListByGalleryImageOptions contains the optional parameters for the GalleryImageVersionsClient.ListByGalleryImage
+// method.
+type GalleryImageVersionsClientListByGalleryImageOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GalleryImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginCreateOrUpdate
+// method.
+type GalleryImagesClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryImagesClientBeginDeleteOptions contains the optional parameters for the GalleryImagesClient.BeginDelete method.
+type GalleryImagesClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryImagesClientBeginUpdateOptions contains the optional parameters for the GalleryImagesClient.BeginUpdate method.
+type GalleryImagesClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// GalleryImagesClientGetOptions contains the optional parameters for the GalleryImagesClient.Get method.
+type GalleryImagesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GalleryImagesClientListByGalleryOptions contains the optional parameters for the GalleryImagesClient.ListByGallery method.
+type GalleryImagesClientListByGalleryOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GalleryList - The List Galleries operation response.
+type GalleryList struct {
+ // REQUIRED; A list of galleries.
+ Value []*Gallery `json:"value,omitempty"`
+
+ // The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// GalleryOSDiskImage - This is the OS disk image.
+type GalleryOSDiskImage struct {
+ // The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
+ HostCaching *HostCaching `json:"hostCaching,omitempty"`
+
+ // The gallery artifact version source.
+ Source *GalleryArtifactVersionSource `json:"source,omitempty"`
+
+ // READ-ONLY; This property indicates the size of the VHD to be created.
+ SizeInGB *int32 `json:"sizeInGB,omitempty" azure:"ro"`
+}
+
+// GalleryProperties - Describes the properties of a Shared Image Gallery.
+type GalleryProperties struct {
+ // The description of this Shared Image Gallery resource. This property is updatable.
+ Description *string `json:"description,omitempty"`
+
+ // Describes the gallery unique name.
+ Identifier *GalleryIdentifier `json:"identifier,omitempty"`
+
+ // Profile for gallery sharing to subscription or tenant
+ SharingProfile *SharingProfile `json:"sharingProfile,omitempty"`
+
+ // Contains information about the soft deletion policy of the gallery.
+ SoftDeletePolicy *SoftDeletePolicy `json:"softDeletePolicy,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *GalleryPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; Sharing status of current gallery.
+ SharingStatus *SharingStatus `json:"sharingStatus,omitempty" azure:"ro"`
+}
+
+// GallerySharingProfileClientBeginUpdateOptions contains the optional parameters for the GallerySharingProfileClient.BeginUpdate
+// method.
+type GallerySharingProfileClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+type GalleryTargetExtendedLocation struct {
+ // Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
+ Encryption *EncryptionImages `json:"encryption,omitempty"`
+
+ // The name of the extended location.
+ ExtendedLocation *GalleryExtendedLocation `json:"extendedLocation,omitempty"`
+
+ // The number of replicas of the Image Version to be created per extended location. This property is updatable.
+ ExtendedLocationReplicaCount *int32 `json:"extendedLocationReplicaCount,omitempty"`
+
+ // The name of the region.
+ Name *string `json:"name,omitempty"`
+
+ // Specifies the storage account type to be used to store the image. This property is not updatable.
+ StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"`
+}
+
+// GalleryUpdate - Specifies information about the Shared Image Gallery that you want to update.
+type GalleryUpdate struct {
+ // Describes the properties of a Shared Image Gallery.
+ Properties *GalleryProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// GrantAccessData - Data used for requesting a SAS.
+type GrantAccessData struct {
+ // REQUIRED
+ Access *AccessLevel `json:"access,omitempty"`
+
+ // REQUIRED; Time duration in seconds until the SAS access expires.
+ DurationInSeconds *int32 `json:"durationInSeconds,omitempty"`
+
+ // Set this flag to true to get additional SAS for VM guest state
+ GetSecureVMGuestStateSAS *bool `json:"getSecureVMGuestStateSAS,omitempty"`
+}
+
+// HardwareProfile - Specifies the hardware settings for the virtual machine.
+type HardwareProfile struct {
+ // Specifies the size of the virtual machine.
+ // The enum data type is currently deprecated and will be removed by December 23rd 2023.
+ // Recommended way to get the list of available sizes is using these APIs:
+ // List all available virtual machine sizes in an availability set [https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes]
+ // List all available virtual machine sizes in a region [https://docs.microsoft.com/rest/api/compute/resourceskus/list]
+ // List all available virtual machine sizes for resizing [https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes].
+ // For more information about virtual machine sizes, see Sizes for
+ // virtual machines [https://docs.microsoft.com/azure/virtual-machines/sizes].
+ // The available VM sizes depend on region and availability set.
+ VMSize *VirtualMachineSizeTypes `json:"vmSize,omitempty"`
+
+ // Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01.
+ // This feature is still in preview mode and is not supported for VirtualMachineScaleSet.
+ // Please follow the instructions in VM Customization [https://aka.ms/vmcustomization] for more details.
+ VMSizeProperties *VMSizeProperties `json:"vmSizeProperties,omitempty"`
+}
+
+// Image - The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual
+// machine. If SourceImage is provided, the destination virtual hard drive must not
+// exist.
+type Image struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The extended location of the Image.
+ ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"`
+
+ // Describes the properties of an Image.
+ Properties *ImageProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// ImageDataDisk - Describes a data disk.
+type ImageDataDisk struct {
+ // REQUIRED; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and
+ // therefore must be unique for each data disk attached to a VM.
+ Lun *int32 `json:"lun,omitempty"`
+
+ // The Virtual Hard Disk.
+ BlobURI *string `json:"blobUri,omitempty"`
+
+ // Specifies the caching requirements.
+ // Possible values are:
+ // None
+ // ReadOnly
+ // ReadWrite
+ // Default: None for Standard storage. ReadOnly for Premium storage
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Specifies the customer managed disk encryption set resource id for the managed image disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
+
+ // Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual
+ // machine image.
+ // This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // The managedDisk.
+ ManagedDisk *SubResource `json:"managedDisk,omitempty"`
+
+ // The snapshot.
+ Snapshot *SubResource `json:"snapshot,omitempty"`
+
+ // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot
+ // be used with OS Disk.
+ StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"`
+}
+
+// ImageDisk - Describes a image disk.
+type ImageDisk struct {
+ // The Virtual Hard Disk.
+ BlobURI *string `json:"blobUri,omitempty"`
+
+ // Specifies the caching requirements.
+ // Possible values are:
+ // None
+ // ReadOnly
+ // ReadWrite
+ // Default: None for Standard storage. ReadOnly for Premium storage
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Specifies the customer managed disk encryption set resource id for the managed image disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
+
+ // Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual
+ // machine image.
+ // This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // The managedDisk.
+ ManagedDisk *SubResource `json:"managedDisk,omitempty"`
+
+ // The snapshot.
+ Snapshot *SubResource `json:"snapshot,omitempty"`
+
+ // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot
+ // be used with OS Disk.
+ StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"`
+}
+
+// ImageDiskReference - The source image used for creating the disk.
+type ImageDiskReference struct {
+ // REQUIRED; A relative uri containing either a Platform Image Repository or user image reference.
+ ID *string `json:"id,omitempty"`
+
+ // If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image
+ // to use. For OS disks, this field is null.
+ Lun *int32 `json:"lun,omitempty"`
+}
+
+// ImageListResult - The List Image operation response.
+type ImageListResult struct {
+ // REQUIRED; The list of Images.
+ Value []*Image `json:"value,omitempty"`
+
+ // The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of Images.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ImageOSDisk - Describes an Operating System disk.
+type ImageOSDisk struct {
+ // REQUIRED; The OS State.
+ OSState *OperatingSystemStateTypes `json:"osState,omitempty"`
+
+ // REQUIRED; This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom
+ // image.
+ // Possible values are:
+ // Windows
+ // Linux
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // The Virtual Hard Disk.
+ BlobURI *string `json:"blobUri,omitempty"`
+
+ // Specifies the caching requirements.
+ // Possible values are:
+ // None
+ // ReadOnly
+ // ReadWrite
+ // Default: None for Standard storage. ReadOnly for Premium storage
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Specifies the customer managed disk encryption set resource id for the managed image disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
+
+ // Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual
+ // machine image.
+ // This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // The managedDisk.
+ ManagedDisk *SubResource `json:"managedDisk,omitempty"`
+
+ // The snapshot.
+ Snapshot *SubResource `json:"snapshot,omitempty"`
+
+ // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot
+ // be used with OS Disk.
+ StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"`
+}
+
+// ImageProperties - Describes the properties of an Image.
+type ImageProperties struct {
+ // Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image
+ // source is a blob, then we need the user to specify the value, if the source is
+ // managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the
+ // source managed resource.
+ HyperVGeneration *HyperVGenerationTypes `json:"hyperVGeneration,omitempty"`
+
+ // The source virtual machine from which Image is created.
+ SourceVirtualMachine *SubResource `json:"sourceVirtualMachine,omitempty"`
+
+ // Specifies the storage settings for the virtual machine disks.
+ StorageProfile *ImageStorageProfile `json:"storageProfile,omitempty"`
+
+ // READ-ONLY; The provisioning state.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+}
+
+// ImagePurchasePlan - Describes the gallery image definition purchase plan. This is used by marketplace images.
+type ImagePurchasePlan struct {
+ // The plan ID.
+ Name *string `json:"name,omitempty"`
+
+ // The product ID.
+ Product *string `json:"product,omitempty"`
+
+ // The publisher ID.
+ Publisher *string `json:"publisher,omitempty"`
+}
+
+// ImageReference - Specifies information about the image to use. You can specify information about platform images, marketplace
+// images, or virtual machine images. This element is required when you want to use a platform
+// image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference
+// publisher and offer can only be set when you create the scale set.
+type ImageReference struct {
+ // Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET
+ // call.
+ CommunityGalleryImageID *string `json:"communityGalleryImageId,omitempty"`
+
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // Specifies the offer of the platform image or marketplace image used to create the virtual machine.
+ Offer *string `json:"offer,omitempty"`
+
+ // The image publisher.
+ Publisher *string `json:"publisher,omitempty"`
+
+ // The image SKU.
+ SKU *string `json:"sku,omitempty"`
+
+ // Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call.
+ SharedGalleryImageID *string `json:"sharedGalleryImageId,omitempty"`
+
+ // Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats
+ // are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers.
+ // Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image
+ // will not automatically update after deploy time even if a new version becomes
+ // available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for
+ // deployment, to use 'latest' version of gallery image, just set
+ // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}'
+ // in the 'id' field without version input.
+ Version *string `json:"version,omitempty"`
+
+ // READ-ONLY; Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual
+ // machine. This readonly field differs from 'version', only if the value specified in
+ // 'version' field is 'latest'.
+ ExactVersion *string `json:"exactVersion,omitempty" azure:"ro"`
+}
+
+// ImageStorageProfile - Describes a storage profile.
+type ImageStorageProfile struct {
+ // Specifies the parameters that are used to add a data disk to a virtual machine.
+ // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
+ DataDisks []*ImageDataDisk `json:"dataDisks,omitempty"`
+
+ // Specifies information about the operating system disk used by the virtual machine.
+ // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
+ OSDisk *ImageOSDisk `json:"osDisk,omitempty"`
+
+ // Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions
+ // that provide Zone Redundant Storage (ZRS).
+ ZoneResilient *bool `json:"zoneResilient,omitempty"`
+}
+
+// ImageUpdate - The source user image virtual hard disk. Only tags may be updated.
+type ImageUpdate struct {
+ // Describes the properties of an Image.
+ Properties *ImageProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// ImagesClientBeginCreateOrUpdateOptions contains the optional parameters for the ImagesClient.BeginCreateOrUpdate method.
+type ImagesClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// ImagesClientBeginDeleteOptions contains the optional parameters for the ImagesClient.BeginDelete method.
+type ImagesClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// ImagesClientBeginUpdateOptions contains the optional parameters for the ImagesClient.BeginUpdate method.
+type ImagesClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method.
+type ImagesClientGetOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// ImagesClientListByResourceGroupOptions contains the optional parameters for the ImagesClient.ListByResourceGroup method.
+type ImagesClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// ImagesClientListOptions contains the optional parameters for the ImagesClient.List method.
+type ImagesClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// InnerError - Inner error details.
+type InnerError struct {
+ // The internal error message or exception dump.
+ Errordetail *string `json:"errordetail,omitempty"`
+
+ // The exception type.
+ Exceptiontype *string `json:"exceptiontype,omitempty"`
+}
+
+type InstanceSKU struct {
+ // READ-ONLY; The sku name.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; The tier of the cloud service role instance.
+ Tier *string `json:"tier,omitempty" azure:"ro"`
+}
+
+// InstanceViewStatus - Instance view status.
+type InstanceViewStatus struct {
+ // The status code.
+ Code *string `json:"code,omitempty"`
+
+ // The short localizable label for the status.
+ DisplayStatus *string `json:"displayStatus,omitempty"`
+
+ // The level code.
+ Level *StatusLevelTypes `json:"level,omitempty"`
+
+ // The detailed status message, including for alerts and error messages.
+ Message *string `json:"message,omitempty"`
+
+ // The time of the status.
+ Time *time.Time `json:"time,omitempty"`
+}
+
+// InstanceViewStatusesSummary - Instance view statuses.
+type InstanceViewStatusesSummary struct {
+ // READ-ONLY
+ StatusesSummary []*StatusCodeCount `json:"statusesSummary,omitempty" azure:"ro"`
+}
+
+// KeyForDiskEncryptionSet - Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots
+type KeyForDiskEncryptionSet struct {
+ // REQUIRED; Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled
+ // value.
+ KeyURL *string `json:"keyUrl,omitempty"`
+
+ // Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault
+ // subscription is not the same as the Disk Encryption Set subscription.
+ SourceVault *SourceVault `json:"sourceVault,omitempty"`
+}
+
+// KeyVaultAndKeyReference - Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the
+// encryptionKey
+type KeyVaultAndKeyReference struct {
+ // REQUIRED; Url pointing to a key or secret in KeyVault
+ KeyURL *string `json:"keyUrl,omitempty"`
+
+ // REQUIRED; Resource id of the KeyVault containing the key or secret
+ SourceVault *SourceVault `json:"sourceVault,omitempty"`
+}
+
+// KeyVaultAndSecretReference - Key Vault Secret Url and vault id of the encryption key
+type KeyVaultAndSecretReference struct {
+ // REQUIRED; Url pointing to a key or secret in KeyVault
+ SecretURL *string `json:"secretUrl,omitempty"`
+
+ // REQUIRED; Resource id of the KeyVault containing the key or secret
+ SourceVault *SourceVault `json:"sourceVault,omitempty"`
+}
+
+// KeyVaultKeyReference - Describes a reference to Key Vault Key
+type KeyVaultKeyReference struct {
+ // REQUIRED; The URL referencing a key encryption key in Key Vault.
+ KeyURL *string `json:"keyUrl,omitempty"`
+
+ // REQUIRED; The relative URL of the Key Vault containing the key.
+ SourceVault *SubResource `json:"sourceVault,omitempty"`
+}
+
+// KeyVaultSecretReference - Describes a reference to Key Vault Secret
+type KeyVaultSecretReference struct {
+ // REQUIRED; The URL referencing a secret in a Key Vault.
+ SecretURL *string `json:"secretUrl,omitempty"`
+
+ // REQUIRED; The relative URL of the Key Vault containing the secret.
+ SourceVault *SubResource `json:"sourceVault,omitempty"`
+}
+
+// LastPatchInstallationSummary - Describes the properties of the last installed patch summary.
+type LastPatchInstallationSummary struct {
+ // READ-ONLY; The errors that were encountered during execution of the operation. The details array contains the list of them.
+ Error *APIError `json:"error,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of all available patches but excluded explicitly by a customer-specified exclusion list match.
+ ExcludedPatchCount *int32 `json:"excludedPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The count of patches that failed installation.
+ FailedPatchCount *int32 `json:"failedPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension
+ // logs.
+ InstallationActivityID *string `json:"installationActivityId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The count of patches that successfully installed.
+ InstalledPatchCount *int32 `json:"installedPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The UTC timestamp when the operation began.
+ LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; Describes whether the operation ran out of time before it completed all its intended actions
+ MaintenanceWindowExceeded *bool `json:"maintenanceWindowExceeded,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of all available patches but not going to be installed because it didn't match a classification or
+ // inclusion list entry.
+ NotSelectedPatchCount *int32 `json:"notSelectedPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of all available patches expected to be installed over the course of the patch installation operation.
+ PendingPatchCount *int32 `json:"pendingPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The UTC timestamp when the operation began.
+ StartTime *time.Time `json:"startTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; The overall success or failure status of the operation. It remains "InProgress" until the operation completes.
+ // At that point it will become "Unknown", "Failed", "Succeeded", or
+ // "CompletedWithWarnings."
+ Status *PatchOperationStatus `json:"status,omitempty" azure:"ro"`
+}
+
+// LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine.
+// For a list of supported Linux distributions, see Linux on Azure-Endorsed Distributions [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros].
+type LinuxConfiguration struct {
+ // Specifies whether password authentication should be disabled.
+ DisablePasswordAuthentication *bool `json:"disablePasswordAuthentication,omitempty"`
+
+ // [Preview Feature] Specifies settings related to VM Guest Patching on Linux.
+ PatchSettings *LinuxPatchSettings `json:"patchSettings,omitempty"`
+
+ // Indicates whether virtual machine agent should be provisioned on the virtual machine.
+ // When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM
+ // Agent is installed on the VM so that extensions can be added to the VM later.
+ ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"`
+
+ // Specifies the ssh key configuration for a Linux OS.
+ SSH *SSHConfiguration `json:"ssh,omitempty"`
+}
+
+// LinuxParameters - Input for InstallPatches on a Linux VM, as directly received by the API
+type LinuxParameters struct {
+ // The update classifications to select when installing patches for Linux.
+ ClassificationsToInclude []*VMGuestPatchClassificationLinux `json:"classificationsToInclude,omitempty"`
+
+ // This is used as a maintenance run identifier for Auto VM Guest Patching in Linux.
+ MaintenanceRunID *string `json:"maintenanceRunId,omitempty"`
+
+ // packages to exclude in the patch operation. Format: packageName_packageVersion
+ PackageNameMasksToExclude []*string `json:"packageNameMasksToExclude,omitempty"`
+
+ // packages to include in the patch operation. Format: packageName_packageVersion
+ PackageNameMasksToInclude []*string `json:"packageNameMasksToInclude,omitempty"`
+}
+
+// LinuxPatchSettings - Specifies settings related to VM Guest Patching on Linux.
+type LinuxPatchSettings struct {
+ // Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.
+ // Possible values are:
+ // ImageDefault - You control the timing of patch assessments on a virtual machine.
+ // AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
+ AssessmentMode *LinuxPatchAssessmentMode `json:"assessmentMode,omitempty"`
+
+ // Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux.
+ AutomaticByPlatformSettings *LinuxVMGuestPatchAutomaticByPlatformSettings `json:"automaticByPlatformSettings,omitempty"`
+
+ // Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale
+ // set with OrchestrationMode as Flexible.
+ // Possible values are:
+ // ImageDefault - The virtual machine's default patching configuration is used.
+ // AutomaticByPlatform - The virtual machine will be automatically updated by the platform. The property provisionVMAgent
+ // must be true
+ PatchMode *LinuxVMGuestPatchMode `json:"patchMode,omitempty"`
+}
+
+// LinuxVMGuestPatchAutomaticByPlatformSettings - Specifies additional settings to be applied when patch mode AutomaticByPlatform
+// is selected in Linux patch settings.
+type LinuxVMGuestPatchAutomaticByPlatformSettings struct {
+ // Specifies the reboot setting for all AutomaticByPlatform patch installation operations.
+ RebootSetting *LinuxVMGuestPatchAutomaticByPlatformRebootSetting `json:"rebootSetting,omitempty"`
+}
+
+// ListUsagesResult - The List Usages operation response.
+type ListUsagesResult struct {
+ // REQUIRED; The list of compute resource usages.
+ Value []*Usage `json:"value,omitempty"`
+
+ // The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page
+ // of compute resource usage information.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// LoadBalancerConfiguration - Describes the load balancer configuration.
+type LoadBalancerConfiguration struct {
+ // REQUIRED; The name of the Load balancer
+ Name *string `json:"name,omitempty"`
+
+ // REQUIRED; Properties of the load balancer configuration.
+ Properties *LoadBalancerConfigurationProperties `json:"properties,omitempty"`
+
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+}
+
+type LoadBalancerConfigurationProperties struct {
+ // REQUIRED; Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each
+ // load balancer configuration must have exactly one frontend IP configuration.
+ FrontendIPConfigurations []*LoadBalancerFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"`
+}
+
+type LoadBalancerFrontendIPConfiguration struct {
+ // REQUIRED; The name of the resource that is unique within the set of frontend IP configurations used by the load balancer.
+ // This name can be used to access the resource.
+ Name *string `json:"name,omitempty"`
+
+ // REQUIRED; Properties of load balancer frontend ip configuration.
+ Properties *LoadBalancerFrontendIPConfigurationProperties `json:"properties,omitempty"`
+}
+
+// LoadBalancerFrontendIPConfigurationProperties - Describes a cloud service IP Configuration
+type LoadBalancerFrontendIPConfigurationProperties struct {
+ // The virtual network private IP address of the IP configuration.
+ PrivateIPAddress *string `json:"privateIPAddress,omitempty"`
+
+ // The reference to the public ip address resource.
+ PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"`
+
+ // The reference to the virtual network subnet resource.
+ Subnet *SubResource `json:"subnet,omitempty"`
+}
+
+// LogAnalyticsClientBeginExportRequestRateByIntervalOptions contains the optional parameters for the LogAnalyticsClient.BeginExportRequestRateByInterval
+// method.
+type LogAnalyticsClientBeginExportRequestRateByIntervalOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// LogAnalyticsClientBeginExportThrottledRequestsOptions contains the optional parameters for the LogAnalyticsClient.BeginExportThrottledRequests
+// method.
+type LogAnalyticsClientBeginExportThrottledRequestsOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// LogAnalyticsInputBase - Api input base class for LogAnalytics Api.
+type LogAnalyticsInputBase struct {
+ // REQUIRED; SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.
+ BlobContainerSasURI *string `json:"blobContainerSasUri,omitempty"`
+
+ // REQUIRED; From time of the query
+ FromTime *time.Time `json:"fromTime,omitempty"`
+
+ // REQUIRED; To time of the query
+ ToTime *time.Time `json:"toTime,omitempty"`
+
+ // Group query result by Client Application ID.
+ GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"`
+
+ // Group query result by Operation Name.
+ GroupByOperationName *bool `json:"groupByOperationName,omitempty"`
+
+ // Group query result by Resource Name.
+ GroupByResourceName *bool `json:"groupByResourceName,omitempty"`
+
+ // Group query result by Throttle Policy applied.
+ GroupByThrottlePolicy *bool `json:"groupByThrottlePolicy,omitempty"`
+
+ // Group query result by User Agent.
+ GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"`
+}
+
+// LogAnalyticsOperationResult - LogAnalytics operation status response
+type LogAnalyticsOperationResult struct {
+ // READ-ONLY; LogAnalyticsOutput
+ Properties *LogAnalyticsOutput `json:"properties,omitempty" azure:"ro"`
+}
+
+// LogAnalyticsOutput - LogAnalytics output properties
+type LogAnalyticsOutput struct {
+ // READ-ONLY; Output file Uri path to blob container.
+ Output *string `json:"output,omitempty" azure:"ro"`
+}
+
+// MaintenanceRedeployStatus - Maintenance Operation Status.
+type MaintenanceRedeployStatus struct {
+ // True, if customer is allowed to perform Maintenance.
+ IsCustomerInitiatedMaintenanceAllowed *bool `json:"isCustomerInitiatedMaintenanceAllowed,omitempty"`
+
+ // Message returned for the last Maintenance Operation.
+ LastOperationMessage *string `json:"lastOperationMessage,omitempty"`
+
+ // The Last Maintenance Operation Result Code.
+ LastOperationResultCode *MaintenanceOperationResultCodeTypes `json:"lastOperationResultCode,omitempty"`
+
+ // End Time for the Maintenance Window.
+ MaintenanceWindowEndTime *time.Time `json:"maintenanceWindowEndTime,omitempty"`
+
+ // Start Time for the Maintenance Window.
+ MaintenanceWindowStartTime *time.Time `json:"maintenanceWindowStartTime,omitempty"`
+
+ // End Time for the Pre Maintenance Window.
+ PreMaintenanceWindowEndTime *time.Time `json:"preMaintenanceWindowEndTime,omitempty"`
+
+ // Start Time for the Pre Maintenance Window.
+ PreMaintenanceWindowStartTime *time.Time `json:"preMaintenanceWindowStartTime,omitempty"`
+}
+
+// ManagedArtifact - The managed artifact.
+type ManagedArtifact struct {
+ // REQUIRED; The managed artifact id.
+ ID *string `json:"id,omitempty"`
+}
+
+// ManagedDiskParameters - The parameters of a managed disk.
+type ManagedDiskParameters struct {
+ // Specifies the customer managed disk encryption set resource id for the managed disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
+
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // Specifies the security profile for the managed disk.
+ SecurityProfile *VMDiskSecurityProfile `json:"securityProfile,omitempty"`
+
+ // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot
+ // be used with OS Disk.
+ StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"`
+}
+
+// NetworkInterfaceReference - Describes a network interface reference.
+type NetworkInterfaceReference struct {
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // Describes a network interface reference properties.
+ Properties *NetworkInterfaceReferenceProperties `json:"properties,omitempty"`
+}
+
+// NetworkInterfaceReferenceProperties - Describes a network interface reference properties.
+type NetworkInterfaceReferenceProperties struct {
+ // Specify what happens to the network interface when the VM is deleted
+ DeleteOption *DeleteOptions `json:"deleteOption,omitempty"`
+
+ // Specifies the primary network interface in case the virtual machine has more than 1 network interface.
+ Primary *bool `json:"primary,omitempty"`
+}
+
+// NetworkProfile - Specifies the network interfaces or the networking configuration of the virtual machine.
+type NetworkProfile struct {
+ // specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations
+ NetworkAPIVersion *NetworkAPIVersion `json:"networkApiVersion,omitempty"`
+
+ // Specifies the networking configurations that will be used to create the virtual machine networking resources.
+ NetworkInterfaceConfigurations []*VirtualMachineNetworkInterfaceConfiguration `json:"networkInterfaceConfigurations,omitempty"`
+
+ // Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
+ NetworkInterfaces []*NetworkInterfaceReference `json:"networkInterfaces,omitempty"`
+}
+
+// OSDisk - Specifies information about the operating system disk used by the virtual machine.
+// For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
+type OSDisk struct {
+ // REQUIRED; Specifies how the virtual machine should be created.
+ // Possible values are:
+ // Attach \u2013 This value is used when you are using a specialized disk to create the virtual machine.
+ // FromImage \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform
+ // image, you also use the imageReference element described above. If you are
+ // using a marketplace image, you also use the plan element previously described.
+ CreateOption *DiskCreateOptionTypes `json:"createOption,omitempty"`
+
+ // Specifies the caching requirements.
+ // Possible values are:
+ // None
+ // ReadOnly
+ // ReadWrite
+ // Default: None for Standard storage. ReadOnly for Premium storage.
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Specifies whether OS Disk should be deleted or detached upon VM deletion.
+ // Possible values:
+ // Delete If this value is used, the OS disk is deleted when VM is deleted.
+ // Detach If this value is used, the os disk is retained after VM is deleted.
+ // The default value is set to detach. For an ephemeral OS Disk, the default value is set to Delete. User cannot change the
+ // delete option for ephemeral OS Disk.
+ DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"`
+
+ // Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
+ DiffDiskSettings *DiffDiskSettings `json:"diffDiskSettings,omitempty"`
+
+ // Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a
+ // virtual machine image.
+ // This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // Specifies the encryption settings for the OS Disk.
+ // Minimum api-version: 2015-06-15
+ EncryptionSettings *DiskEncryptionSettings `json:"encryptionSettings,omitempty"`
+
+ // The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine.
+ // If SourceImage is provided, the destination virtual hard drive must not
+ // exist.
+ Image *VirtualHardDisk `json:"image,omitempty"`
+
+ // The managed disk parameters.
+ ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"`
+
+ // The disk name.
+ Name *string `json:"name,omitempty"`
+
+ // This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or
+ // a specialized VHD.
+ // Possible values are:
+ // Windows
+ // Linux
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // The virtual hard disk.
+ Vhd *VirtualHardDisk `json:"vhd,omitempty"`
+
+ // Specifies whether writeAccelerator should be enabled or disabled on the disk.
+ WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"`
+}
+
+// OSDiskImage - Contains the os disk image information.
+type OSDiskImage struct {
+ // REQUIRED; The operating system of the osDiskImage.
+ OperatingSystem *OperatingSystemTypes `json:"operatingSystem,omitempty"`
+}
+
+// OSDiskImageEncryption - Contains encryption settings for an OS disk image.
+type OSDiskImageEncryption struct {
+ // A relative URI containing the resource ID of the disk encryption set.
+ DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`
+
+ // This property specifies the security profile of an OS disk image.
+ SecurityProfile *OSDiskImageSecurityProfile `json:"securityProfile,omitempty"`
+}
+
+// OSDiskImageSecurityProfile - Contains security profile for an OS disk image.
+type OSDiskImageSecurityProfile struct {
+ // confidential VM encryption types
+ ConfidentialVMEncryptionType *ConfidentialVMEncryptionType `json:"confidentialVMEncryptionType,omitempty"`
+
+ // secure VM disk encryption set id
+ SecureVMDiskEncryptionSetID *string `json:"secureVMDiskEncryptionSetId,omitempty"`
+}
+
+// OSFamily - Describes a cloud service OS family.
+type OSFamily struct {
+ // OS family properties.
+ Properties *OSFamilyProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource location.
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+type OSFamilyListResult struct {
+ // REQUIRED
+ Value []*OSFamily `json:"value,omitempty"`
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// OSFamilyProperties - OS family properties.
+type OSFamilyProperties struct {
+ // READ-ONLY; The OS family label.
+ Label *string `json:"label,omitempty" azure:"ro"`
+
+ // READ-ONLY; The OS family name.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; List of OS versions belonging to this family.
+ Versions []*OSVersionPropertiesBase `json:"versions,omitempty" azure:"ro"`
+}
+
+// OSProfile - Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once
+// VM is provisioned.
+type OSProfile struct {
+ // Specifies the password of the administrator account.
+ // Minimum-length (Windows): 8 characters
+ // Minimum-length (Linux): 6 characters
+ // Max-length (Windows): 123 characters
+ // Max-length (Linux): 72 characters
+ // Complexity requirements: 3 out of 4 conditions below need to be fulfilled
+ // Has lower characters
+ // Has upper characters
+ // Has a digit
+ // Has a special character (Regex match [\W_])
+ // Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1",
+ // "Password22", "iloveyou!"
+ // For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp]
+ // For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension
+ // [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection]
+ AdminPassword *string `json:"adminPassword,omitempty"`
+
+ // Specifies the name of the administrator account.
+ // This property cannot be updated after the VM is created.
+ // Windows-only restriction: Cannot end in "."
+ // Disallowed values: "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123",
+ // "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest",
+ // "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
+ // Minimum-length (Linux): 1 character
+ // Max-length (Linux): 64 characters
+ // Max-length (Windows): 20 characters.
+ AdminUsername *string `json:"adminUsername,omitempty"`
+
+ // Specifies whether extension operations should be allowed on the virtual machine.
+ // This may only be set to False when no extensions are present on the virtual machine.
+ AllowExtensionOperations *bool `json:"allowExtensionOperations,omitempty"`
+
+ // Specifies the host OS name of the virtual machine.
+ // This name cannot be updated after the VM is created.
+ // Max-length (Windows): 15 characters
+ // Max-length (Linux): 64 characters.
+ // For naming conventions and restrictions see Azure infrastructure services implementation guidelines [https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules].
+ ComputerName *string `json:"computerName,omitempty"`
+
+ // Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved
+ // as a file on the Virtual Machine. The maximum length of the binary array is
+ // 65535 bytes.
+ // Note: Do not pass any secrets or passwords in customData property
+ // This property cannot be updated after the VM is created.
+ // customData is passed to the VM to be saved as a file, for more information see Custom Data on Azure VMs [https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/]
+ // For using cloud-init for your Linux VM, see Using cloud-init to customize a Linux VM during creation [https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init]
+ CustomData *string `json:"customData,omitempty"`
+
+ // Specifies the Linux operating system settings on the virtual machine.
+ // For a list of supported Linux distributions, see Linux on Azure-Endorsed Distributions [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros].
+ LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"`
+
+ // Optional property which must either be set to True or omitted.
+ RequireGuestProvisionSignal *bool `json:"requireGuestProvisionSignal,omitempty"`
+
+ // Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine
+ // it is recommended to use the Azure Key Vault virtual machine extension for
+ // Linux [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux] or the Azure Key Vault virtual machine
+ // extension for Windows
+ // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows].
+ Secrets []*VaultSecretGroup `json:"secrets,omitempty"`
+
+ // Specifies Windows operating system settings on the virtual machine.
+ WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`
+}
+
+// OSVersion - Describes a cloud service OS version.
+type OSVersion struct {
+ // OS version properties.
+ Properties *OSVersionProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource location.
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+type OSVersionListResult struct {
+ // REQUIRED
+ Value []*OSVersion `json:"value,omitempty"`
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// OSVersionProperties - OS version properties.
+type OSVersionProperties struct {
+ // READ-ONLY; The family of this OS version.
+ Family *string `json:"family,omitempty" azure:"ro"`
+
+ // READ-ONLY; The family label of this OS version.
+ FamilyLabel *string `json:"familyLabel,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies whether this OS version is active.
+ IsActive *bool `json:"isActive,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies whether this is the default OS version for its family.
+ IsDefault *bool `json:"isDefault,omitempty" azure:"ro"`
+
+ // READ-ONLY; The OS version label.
+ Label *string `json:"label,omitempty" azure:"ro"`
+
+ // READ-ONLY; The OS version.
+ Version *string `json:"version,omitempty" azure:"ro"`
+}
+
+// OSVersionPropertiesBase - Configuration view of an OS version.
+type OSVersionPropertiesBase struct {
+ // READ-ONLY; Specifies whether this OS version is active.
+ IsActive *bool `json:"isActive,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies whether this is the default OS version for its family.
+ IsDefault *bool `json:"isDefault,omitempty" azure:"ro"`
+
+ // READ-ONLY; The OS version label.
+ Label *string `json:"label,omitempty" azure:"ro"`
+
+ // READ-ONLY; The OS version.
+ Version *string `json:"version,omitempty" azure:"ro"`
+}
+
+// OperationListResult - The List Compute Operation operation response.
+type OperationListResult struct {
+ // READ-ONLY; The list of compute operations
+ Value []*OperationValue `json:"value,omitempty" azure:"ro"`
+}
+
+// OperationValue - Describes the properties of a Compute Operation value.
+type OperationValue struct {
+ // Describes the properties of a Compute Operation Value Display.
+ Display *OperationValueDisplay `json:"display,omitempty"`
+
+ // READ-ONLY; The name of the compute operation.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; The origin of the compute operation.
+ Origin *string `json:"origin,omitempty" azure:"ro"`
+}
+
+// OperationValueDisplay - Describes the properties of a Compute Operation Value Display.
+type OperationValueDisplay struct {
+ // READ-ONLY; The description of the operation.
+ Description *string `json:"description,omitempty" azure:"ro"`
+
+ // READ-ONLY; The display name of the compute operation.
+ Operation *string `json:"operation,omitempty" azure:"ro"`
+
+ // READ-ONLY; The resource provider for the operation.
+ Provider *string `json:"provider,omitempty" azure:"ro"`
+
+ // READ-ONLY; The display name of the resource the operation applies to.
+ Resource *string `json:"resource,omitempty" azure:"ro"`
+}
+
+// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
+type OperationsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// OrchestrationServiceStateInput - The input for OrchestrationServiceState
+type OrchestrationServiceStateInput struct {
+ // REQUIRED; The action to be performed.
+ Action *OrchestrationServiceStateAction `json:"action,omitempty"`
+
+ // REQUIRED; The name of the service.
+ ServiceName *OrchestrationServiceNames `json:"serviceName,omitempty"`
+}
+
+// OrchestrationServiceSummary - Summary for an orchestration service of a virtual machine scale set.
+type OrchestrationServiceSummary struct {
+ // READ-ONLY; The name of the service.
+ ServiceName *OrchestrationServiceNames `json:"serviceName,omitempty" azure:"ro"`
+
+ // READ-ONLY; The current state of the service.
+ ServiceState *OrchestrationServiceState `json:"serviceState,omitempty" azure:"ro"`
+}
+
+// PatchInstallationDetail - Information about a specific patch that was encountered during an installation action.
+type PatchInstallationDetail struct {
+ // READ-ONLY; The classification(s) of the patch as provided by the patch publisher.
+ Classifications []*string `json:"classifications,omitempty" azure:"ro"`
+
+ // READ-ONLY; The state of the patch after the installation operation completed.
+ InstallationState *PatchInstallationState `json:"installationState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The KBID of the patch. Only applies to Windows patches.
+ KbID *string `json:"kbId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The friendly name of the patch.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; A unique identifier for the patch.
+ PatchID *string `json:"patchId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The version string of the package. It may conform to Semantic Versioning. Only applies to Linux.
+ Version *string `json:"version,omitempty" azure:"ro"`
+}
+
+// PatchSettings - Specifies settings related to VM Guest Patching on Windows.
+type PatchSettings struct {
+ // Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.
+ // Possible values are:
+ // ImageDefault - You control the timing of patch assessments on a virtual machine.
+ // AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
+ AssessmentMode *WindowsPatchAssessmentMode `json:"assessmentMode,omitempty"`
+
+ // Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows.
+ AutomaticByPlatformSettings *WindowsVMGuestPatchAutomaticByPlatformSettings `json:"automaticByPlatformSettings,omitempty"`
+
+ // Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must
+ // be set to true and 'patchMode' must be set to 'AutomaticByPlatform'.
+ EnableHotpatching *bool `json:"enableHotpatching,omitempty"`
+
+ // Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale
+ // set with OrchestrationMode as Flexible.
+ // Possible values are:
+ // Manual - You control the application of patches to a virtual machine. You do this by applying patches manually inside the
+ // VM. In this mode, automatic updates are disabled; the property
+ // WindowsConfiguration.enableAutomaticUpdates must be false
+ // AutomaticByOS - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
+ // must be true.
+ // AutomaticByPlatform - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and
+ // WindowsConfiguration.enableAutomaticUpdates must be true
+ PatchMode *WindowsVMGuestPatchMode `json:"patchMode,omitempty"`
+}
+
+// PirCommunityGalleryResource - Base information about the community gallery resource in pir.
+type PirCommunityGalleryResource struct {
+ // The identifier information of community gallery.
+ Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// PirResource - The Resource model definition.
+type PirResource struct {
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+}
+
+// PirSharedGalleryResource - Base information about the shared gallery resource in pir.
+type PirSharedGalleryResource struct {
+ // The identifier information of shared gallery.
+ Identifier *SharedGalleryIdentifier `json:"identifier,omitempty"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+}
+
+// Plan - Specifies information about the marketplace image used to create the virtual machine. This element is only used
+// for marketplace images. Before you can use a marketplace image from an API, you must
+// enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click
+// Want to deploy programmatically, Get Started ->. Enter any required
+// information and then click Save.
+type Plan struct {
+ // The plan ID.
+ Name *string `json:"name,omitempty"`
+
+ // Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
+ Product *string `json:"product,omitempty"`
+
+ // The promotion code.
+ PromotionCode *string `json:"promotionCode,omitempty"`
+
+ // The publisher ID.
+ Publisher *string `json:"publisher,omitempty"`
+}
+
+// PrivateEndpoint - The Private Endpoint resource.
+type PrivateEndpoint struct {
+ // READ-ONLY; The ARM identifier for Private Endpoint
+ ID *string `json:"id,omitempty" azure:"ro"`
+}
+
+// PrivateEndpointConnection - The Private Endpoint Connection resource.
+type PrivateEndpointConnection struct {
+ // Resource properties.
+ Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; private endpoint connection Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; private endpoint connection name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; private endpoint connection type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// PrivateEndpointConnectionListResult - A list of private link resources
+type PrivateEndpointConnectionListResult struct {
+ // The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots.
+ NextLink *string `json:"nextLink,omitempty"`
+
+ // Array of private endpoint connections
+ Value []*PrivateEndpointConnection `json:"value,omitempty"`
+}
+
+// PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties.
+type PrivateEndpointConnectionProperties struct {
+ // REQUIRED; A collection of information about the state of the connection between DiskAccess and Virtual Network.
+ PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"`
+
+ // READ-ONLY; The resource of private end point.
+ PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty" azure:"ro"`
+
+ // READ-ONLY; The provisioning state of the private endpoint connection resource.
+ ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
+}
+
+// PrivateLinkResource - A private link resource
+type PrivateLinkResource struct {
+ // Resource properties.
+ Properties *PrivateLinkResourceProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; private link resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; private link resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; private link resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// PrivateLinkResourceListResult - A list of private link resources
+type PrivateLinkResourceListResult struct {
+ // Array of private link resources
+ Value []*PrivateLinkResource `json:"value,omitempty"`
+}
+
+// PrivateLinkResourceProperties - Properties of a private link resource.
+type PrivateLinkResourceProperties struct {
+ // The private link resource DNS zone name.
+ RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"`
+
+ // READ-ONLY; The private link resource group id.
+ GroupID *string `json:"groupId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The private link resource required member names.
+ RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"`
+}
+
+// PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer
+// and provider.
+type PrivateLinkServiceConnectionState struct {
+ // A message indicating if changes on the service provider require any updates on the consumer.
+ ActionsRequired *string `json:"actionsRequired,omitempty"`
+
+ // The reason for approval/rejection of the connection.
+ Description *string `json:"description,omitempty"`
+
+ // Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
+ Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
+}
+
+// PropertyUpdatesInProgress - Properties of the disk for which update is pending.
+type PropertyUpdatesInProgress struct {
+ // The target performance tier of the disk if a tier change operation is in progress.
+ TargetTier *string `json:"targetTier,omitempty"`
+}
+
+// ProximityPlacementGroup - Specifies information about the proximity placement group.
+type ProximityPlacementGroup struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a Proximity Placement Group.
+ Properties *ProximityPlacementGroupProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the
+ // proximity placement group can be created.
+ Zones []*string `json:"zones,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// ProximityPlacementGroupListResult - The List Proximity Placement Group operation response.
+type ProximityPlacementGroupListResult struct {
+ // REQUIRED; The list of proximity placement groups
+ Value []*ProximityPlacementGroup `json:"value,omitempty"`
+
+ // The URI to fetch the next page of proximity placement groups.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ProximityPlacementGroupProperties - Describes the properties of a Proximity Placement Group.
+type ProximityPlacementGroupProperties struct {
+ // Describes colocation status of the Proximity Placement Group.
+ ColocationStatus *InstanceViewStatus `json:"colocationStatus,omitempty"`
+
+ // Specifies the user intent of the proximity placement group.
+ Intent *ProximityPlacementGroupPropertiesIntent `json:"intent,omitempty"`
+
+ // Specifies the type of the proximity placement group.
+ // Possible values are:
+ // Standard : Co-locate resources within an Azure region or Availability Zone.
+ // Ultra : For future use.
+ ProximityPlacementGroupType *ProximityPlacementGroupType `json:"proximityPlacementGroupType,omitempty"`
+
+ // READ-ONLY; A list of references to all availability sets in the proximity placement group.
+ AvailabilitySets []*SubResourceWithColocationStatus `json:"availabilitySets,omitempty" azure:"ro"`
+
+ // READ-ONLY; A list of references to all virtual machine scale sets in the proximity placement group.
+ VirtualMachineScaleSets []*SubResourceWithColocationStatus `json:"virtualMachineScaleSets,omitempty" azure:"ro"`
+
+ // READ-ONLY; A list of references to all virtual machines in the proximity placement group.
+ VirtualMachines []*SubResourceWithColocationStatus `json:"virtualMachines,omitempty" azure:"ro"`
+}
+
+// ProximityPlacementGroupPropertiesIntent - Specifies the user intent of the proximity placement group.
+type ProximityPlacementGroupPropertiesIntent struct {
+ // Specifies possible sizes of virtual machines that can be created in the proximity placement group.
+ VMSizes []*string `json:"vmSizes,omitempty"`
+}
+
+// ProximityPlacementGroupUpdate - Specifies information about the proximity placement group.
+type ProximityPlacementGroupUpdate struct {
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// ProximityPlacementGroupsClientCreateOrUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.CreateOrUpdate
+// method.
+type ProximityPlacementGroupsClientCreateOrUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// ProximityPlacementGroupsClientDeleteOptions contains the optional parameters for the ProximityPlacementGroupsClient.Delete
+// method.
+type ProximityPlacementGroupsClientDeleteOptions struct {
+ // placeholder for future optional parameters
+}
+
+// ProximityPlacementGroupsClientGetOptions contains the optional parameters for the ProximityPlacementGroupsClient.Get method.
+type ProximityPlacementGroupsClientGetOptions struct {
+ // includeColocationStatus=true enables fetching the colocation status of all the resources in the proximity placement group.
+ IncludeColocationStatus *string
+}
+
+// ProximityPlacementGroupsClientListByResourceGroupOptions contains the optional parameters for the ProximityPlacementGroupsClient.ListByResourceGroup
+// method.
+type ProximityPlacementGroupsClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// ProximityPlacementGroupsClientListBySubscriptionOptions contains the optional parameters for the ProximityPlacementGroupsClient.ListBySubscription
+// method.
+type ProximityPlacementGroupsClientListBySubscriptionOptions struct {
+ // placeholder for future optional parameters
+}
+
+// ProximityPlacementGroupsClientUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.Update
+// method.
+type ProximityPlacementGroupsClientUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// ProxyOnlyResource - The ProxyOnly Resource model definition.
+type ProxyOnlyResource struct {
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// ProxyResource - The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a
+// location
+type ProxyResource struct {
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// PublicIPAddressSKU - Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.
+type PublicIPAddressSKU struct {
+ // Specify public IP sku name
+ Name *PublicIPAddressSKUName `json:"name,omitempty"`
+
+ // Specify public IP sku tier
+ Tier *PublicIPAddressSKUTier `json:"tier,omitempty"`
+}
+
+// PurchasePlan - Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
+type PurchasePlan struct {
+ // REQUIRED; The plan ID.
+ Name *string `json:"name,omitempty"`
+
+ // REQUIRED; Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference
+ // element.
+ Product *string `json:"product,omitempty"`
+
+ // REQUIRED; The publisher ID.
+ Publisher *string `json:"publisher,omitempty"`
+}
+
+// RecommendedMachineConfiguration - The properties describe the recommended machine configuration for this Image Definition.
+// These properties are updatable.
+type RecommendedMachineConfiguration struct {
+ // Describes the resource range.
+ Memory *ResourceRange `json:"memory,omitempty"`
+
+ // Describes the resource range.
+ VCPUs *ResourceRange `json:"vCPUs,omitempty"`
+}
+
+// RecoveryWalkResponse - Response after calling a manual recovery walk
+type RecoveryWalkResponse struct {
+ // READ-ONLY; The next update domain that needs to be walked. Null means walk spanning all update domains has been completed
+ NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty" azure:"ro"`
+
+ // READ-ONLY; Whether the recovery walk was performed
+ WalkPerformed *bool `json:"walkPerformed,omitempty" azure:"ro"`
+}
+
+// RegionalReplicationStatus - This is the regional replication status.
+type RegionalReplicationStatus struct {
+ // READ-ONLY; The details of the replication status.
+ Details *string `json:"details,omitempty" azure:"ro"`
+
+ // READ-ONLY; It indicates progress of the replication job.
+ Progress *int32 `json:"progress,omitempty" azure:"ro"`
+
+ // READ-ONLY; The region to which the gallery image version is being replicated to.
+ Region *string `json:"region,omitempty" azure:"ro"`
+
+ // READ-ONLY; This is the regional replication state.
+ State *ReplicationState `json:"state,omitempty" azure:"ro"`
+}
+
+// RegionalSharingStatus - Gallery regional sharing status
+type RegionalSharingStatus struct {
+ // Details of gallery regional sharing failure.
+ Details *string `json:"details,omitempty"`
+
+ // Region name
+ Region *string `json:"region,omitempty"`
+
+ // READ-ONLY; Gallery sharing state in current region
+ State *SharingState `json:"state,omitempty" azure:"ro"`
+}
+
+// ReplicationStatus - This is the replication status of the gallery image version.
+type ReplicationStatus struct {
+ // READ-ONLY; This is the aggregated replication status based on all the regional replication status flags.
+ AggregatedState *AggregatedReplicationState `json:"aggregatedState,omitempty" azure:"ro"`
+
+ // READ-ONLY; This is a summary of replication status for each region.
+ Summary []*RegionalReplicationStatus `json:"summary,omitempty" azure:"ro"`
+}
+
+// RequestRateByIntervalInput - Api request input for LogAnalytics getRequestRateByInterval Api.
+type RequestRateByIntervalInput struct {
+ // REQUIRED; SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.
+ BlobContainerSasURI *string `json:"blobContainerSasUri,omitempty"`
+
+ // REQUIRED; From time of the query
+ FromTime *time.Time `json:"fromTime,omitempty"`
+
+ // REQUIRED; Interval value in minutes used to create LogAnalytics call rate logs.
+ IntervalLength *IntervalInMins `json:"intervalLength,omitempty"`
+
+ // REQUIRED; To time of the query
+ ToTime *time.Time `json:"toTime,omitempty"`
+
+ // Group query result by Client Application ID.
+ GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"`
+
+ // Group query result by Operation Name.
+ GroupByOperationName *bool `json:"groupByOperationName,omitempty"`
+
+ // Group query result by Resource Name.
+ GroupByResourceName *bool `json:"groupByResourceName,omitempty"`
+
+ // Group query result by Throttle Policy applied.
+ GroupByThrottlePolicy *bool `json:"groupByThrottlePolicy,omitempty"`
+
+ // Group query result by User Agent.
+ GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"`
+}
+
+// Resource - The Resource model definition.
+type Resource struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// ResourceInstanceViewStatus - Instance view status.
+type ResourceInstanceViewStatus struct {
+ // The level code.
+ Level *StatusLevelTypes `json:"level,omitempty"`
+
+ // READ-ONLY; The status code.
+ Code *string `json:"code,omitempty" azure:"ro"`
+
+ // READ-ONLY; The short localizable label for the status.
+ DisplayStatus *string `json:"displayStatus,omitempty" azure:"ro"`
+
+ // READ-ONLY; The detailed status message, including for alerts and error messages.
+ Message *string `json:"message,omitempty" azure:"ro"`
+
+ // READ-ONLY; The time of the status.
+ Time *time.Time `json:"time,omitempty" azure:"ro"`
+}
+
+// ResourceRange - Describes the resource range.
+type ResourceRange struct {
+ // The maximum number of the resource.
+ Max *int32 `json:"max,omitempty"`
+
+ // The minimum number of the resource.
+ Min *int32 `json:"min,omitempty"`
+}
+
+// ResourceSKU - Describes an available Compute SKU.
+type ResourceSKU struct {
+ // READ-ONLY; The api versions that support this SKU.
+ APIVersions []*string `json:"apiVersions,omitempty" azure:"ro"`
+
+ // READ-ONLY; A name value pair to describe the capability.
+ Capabilities []*ResourceSKUCapabilities `json:"capabilities,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the number of virtual machines in the scale set.
+ Capacity *ResourceSKUCapacity `json:"capacity,omitempty" azure:"ro"`
+
+ // READ-ONLY; Metadata for retrieving price info.
+ Costs []*ResourceSKUCosts `json:"costs,omitempty" azure:"ro"`
+
+ // READ-ONLY; The Family of this particular SKU.
+ Family *string `json:"family,omitempty" azure:"ro"`
+
+ // READ-ONLY; The Kind of resources that are supported in this SKU.
+ Kind *string `json:"kind,omitempty" azure:"ro"`
+
+ // READ-ONLY; A list of locations and availability zones in those locations where the SKU is available.
+ LocationInfo []*ResourceSKULocationInfo `json:"locationInfo,omitempty" azure:"ro"`
+
+ // READ-ONLY; The set of locations that the SKU is available.
+ Locations []*string `json:"locations,omitempty" azure:"ro"`
+
+ // READ-ONLY; The name of SKU.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; The type of resource the SKU applies to.
+ ResourceType *string `json:"resourceType,omitempty" azure:"ro"`
+
+ // READ-ONLY; The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
+ Restrictions []*ResourceSKURestrictions `json:"restrictions,omitempty" azure:"ro"`
+
+ // READ-ONLY; The Size of the SKU.
+ Size *string `json:"size,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the tier of virtual machines in a scale set.
+ // Possible Values:
+ // Standard
+ // Basic
+ Tier *string `json:"tier,omitempty" azure:"ro"`
+}
+
+// ResourceSKUCapabilities - Describes The SKU capabilities object.
+type ResourceSKUCapabilities struct {
+ // READ-ONLY; An invariant to describe the feature.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; An invariant if the feature is measured by quantity.
+ Value *string `json:"value,omitempty" azure:"ro"`
+}
+
+// ResourceSKUCapacity - Describes scaling information of a SKU.
+type ResourceSKUCapacity struct {
+ // READ-ONLY; The default capacity.
+ Default *int64 `json:"default,omitempty" azure:"ro"`
+
+ // READ-ONLY; The maximum capacity that can be set.
+ Maximum *int64 `json:"maximum,omitempty" azure:"ro"`
+
+ // READ-ONLY; The minimum capacity.
+ Minimum *int64 `json:"minimum,omitempty" azure:"ro"`
+
+ // READ-ONLY; The scale type applicable to the sku.
+ ScaleType *ResourceSKUCapacityScaleType `json:"scaleType,omitempty" azure:"ro"`
+}
+
+// ResourceSKUCosts - Describes metadata for retrieving price info.
+type ResourceSKUCosts struct {
+ // READ-ONLY; An invariant to show the extended unit.
+ ExtendedUnit *string `json:"extendedUnit,omitempty" azure:"ro"`
+
+ // READ-ONLY; Used for querying price from commerce.
+ MeterID *string `json:"meterID,omitempty" azure:"ro"`
+
+ // READ-ONLY; The multiplier is needed to extend the base metered cost.
+ Quantity *int64 `json:"quantity,omitempty" azure:"ro"`
+}
+
+// ResourceSKULocationInfo - Describes an available Compute SKU Location Information.
+type ResourceSKULocationInfo struct {
+ // READ-ONLY; The names of extended locations.
+ ExtendedLocations []*string `json:"extendedLocations,omitempty" azure:"ro"`
+
+ // READ-ONLY; Location of the SKU
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; The type of the extended location.
+ Type *ExtendedLocationType `json:"type,omitempty" azure:"ro"`
+
+ // READ-ONLY; Details of capabilities available to a SKU in specific zones.
+ ZoneDetails []*ResourceSKUZoneDetails `json:"zoneDetails,omitempty" azure:"ro"`
+
+ // READ-ONLY; List of availability zones where the SKU is supported.
+ Zones []*string `json:"zones,omitempty" azure:"ro"`
+}
+
+// ResourceSKURestrictionInfo - Describes an available Compute SKU Restriction Information.
+type ResourceSKURestrictionInfo struct {
+ // READ-ONLY; Locations where the SKU is restricted
+ Locations []*string `json:"locations,omitempty" azure:"ro"`
+
+ // READ-ONLY; List of availability zones where the SKU is restricted.
+ Zones []*string `json:"zones,omitempty" azure:"ro"`
+}
+
+// ResourceSKURestrictions - Describes scaling information of a SKU.
+type ResourceSKURestrictions struct {
+ // READ-ONLY; The reason for restriction.
+ ReasonCode *ResourceSKURestrictionsReasonCode `json:"reasonCode,omitempty" azure:"ro"`
+
+ // READ-ONLY; The information about the restriction where the SKU cannot be used.
+ RestrictionInfo *ResourceSKURestrictionInfo `json:"restrictionInfo,omitempty" azure:"ro"`
+
+ // READ-ONLY; The type of restrictions.
+ Type *ResourceSKURestrictionsType `json:"type,omitempty" azure:"ro"`
+
+ // READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where
+ // the SKU is restricted.
+ Values []*string `json:"values,omitempty" azure:"ro"`
+}
+
+// ResourceSKUZoneDetails - Describes The zonal capabilities of a SKU.
+type ResourceSKUZoneDetails struct {
+ // READ-ONLY; A list of capabilities that are available for the SKU in the specified list of zones.
+ Capabilities []*ResourceSKUCapabilities `json:"capabilities,omitempty" azure:"ro"`
+
+ // READ-ONLY; The set of zones that the SKU is available in with the specified capabilities.
+ Name []*string `json:"name,omitempty" azure:"ro"`
+}
+
+// ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.List method.
+type ResourceSKUsClientListOptions struct {
+ // The filter to apply on the operation. Only location filter is supported currently.
+ Filter *string
+ // To Include Extended Locations information or not in the response.
+ IncludeExtendedLocations *string
+}
+
+// ResourceSKUsResult - The List Resource Skus operation response.
+type ResourceSKUsResult struct {
+ // REQUIRED; The list of skus available for the subscription.
+ Value []*ResourceSKU `json:"value,omitempty"`
+
+ // The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ResourceURIList - The List resources which are encrypted with the disk encryption set.
+type ResourceURIList struct {
+ // REQUIRED; A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set.
+ Value []*string `json:"value,omitempty"`
+
+ // The uri to fetch the next page of encrypted resources. Call ListNext() with this to fetch the next page of encrypted resources.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ResourceWithOptionalLocation - The Resource model definition with location property as optional.
+type ResourceWithOptionalLocation struct {
+ // Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// RestorePoint - Restore Point details.
+type RestorePoint struct {
+ // The restore point properties.
+ Properties *RestorePointProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// RestorePointCollection - Create or update Restore Point collection parameters.
+type RestorePointCollection struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The restore point collection properties.
+ Properties *RestorePointCollectionProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// RestorePointCollectionListResult - The List restore point collection operation response.
+type RestorePointCollectionListResult struct {
+ // The uri to fetch the next page of RestorePointCollections. Call ListNext() with this to fetch the next page of RestorePointCollections
+ NextLink *string `json:"nextLink,omitempty"`
+
+ // Gets the list of restore point collections.
+ Value []*RestorePointCollection `json:"value,omitempty"`
+}
+
+// RestorePointCollectionProperties - The restore point collection properties.
+type RestorePointCollectionProperties struct {
+ // The properties of the source resource that this restore point collection is created from.
+ Source *RestorePointCollectionSourceProperties `json:"source,omitempty"`
+
+ // READ-ONLY; The provisioning state of the restore point collection.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The unique id of the restore point collection.
+ RestorePointCollectionID *string `json:"restorePointCollectionId,omitempty" azure:"ro"`
+
+ // READ-ONLY; A list containing all restore points created under this restore point collection.
+ RestorePoints []*RestorePoint `json:"restorePoints,omitempty" azure:"ro"`
+}
+
+// RestorePointCollectionSourceProperties - The properties of the source resource that this restore point collection is created
+// from.
+type RestorePointCollectionSourceProperties struct {
+ // Resource Id of the source resource used to create this restore point collection
+ ID *string `json:"id,omitempty"`
+
+ // READ-ONLY; Location of the source resource used to create this restore point collection.
+ Location *string `json:"location,omitempty" azure:"ro"`
+}
+
+// RestorePointCollectionUpdate - Update Restore Point collection parameters.
+type RestorePointCollectionUpdate struct {
+ // The restore point collection properties.
+ Properties *RestorePointCollectionProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// RestorePointCollectionsClientBeginDeleteOptions contains the optional parameters for the RestorePointCollectionsClient.BeginDelete
+// method.
+type RestorePointCollectionsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// RestorePointCollectionsClientCreateOrUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.CreateOrUpdate
+// method.
+type RestorePointCollectionsClientCreateOrUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// RestorePointCollectionsClientGetOptions contains the optional parameters for the RestorePointCollectionsClient.Get method.
+type RestorePointCollectionsClientGetOptions struct {
+ // The expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points
+ // in the restorePointCollection.
+ Expand *RestorePointCollectionExpandOptions
+}
+
+// RestorePointCollectionsClientListAllOptions contains the optional parameters for the RestorePointCollectionsClient.ListAll
+// method.
+type RestorePointCollectionsClientListAllOptions struct {
+ // placeholder for future optional parameters
+}
+
+// RestorePointCollectionsClientListOptions contains the optional parameters for the RestorePointCollectionsClient.List method.
+type RestorePointCollectionsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// RestorePointCollectionsClientUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.Update
+// method.
+type RestorePointCollectionsClientUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// RestorePointInstanceView - The instance view of a restore point.
+type RestorePointInstanceView struct {
+ // The disk restore points information.
+ DiskRestorePoints []*DiskRestorePointInstanceView `json:"diskRestorePoints,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+}
+
+// RestorePointProperties - The restore point properties.
+type RestorePointProperties struct {
+ // ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent
+ // is accepted as a valid input. Please refer to
+ // https://aka.ms/RestorePoints for more details.
+ ConsistencyMode *ConsistencyModeTypes `json:"consistencyMode,omitempty"`
+
+ // List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks
+ // will be included.
+ ExcludeDisks []*APIEntityReference `json:"excludeDisks,omitempty"`
+
+ // Resource Id of the source restore point from which a copy needs to be created.
+ SourceRestorePoint *APIEntityReference `json:"sourceRestorePoint,omitempty"`
+
+ // Gets the creation time of the restore point.
+ TimeCreated *time.Time `json:"timeCreated,omitempty"`
+
+ // READ-ONLY; The restore point instance view.
+ InstanceView *RestorePointInstanceView `json:"instanceView,omitempty" azure:"ro"`
+
+ // READ-ONLY; Gets the provisioning state of the restore point.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; Gets the details of the VM captured at the time of the restore point creation.
+ SourceMetadata *RestorePointSourceMetadata `json:"sourceMetadata,omitempty" azure:"ro"`
+}
+
+// RestorePointSourceMetadata - Describes the properties of the Virtual Machine for which the restore point was created. The
+// properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the
+// time of the restore point creation.
+type RestorePointSourceMetadata struct {
+ // Gets the diagnostics profile.
+ DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
+
+ // Gets the hardware profile.
+ HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"`
+
+ // Gets the license type, which is for bring your own license scenario.
+ LicenseType *string `json:"licenseType,omitempty"`
+
+ // Location of the VM from which the restore point was created.
+ Location *string `json:"location,omitempty"`
+
+ // Gets the OS profile.
+ OSProfile *OSProfile `json:"osProfile,omitempty"`
+
+ // Gets the security profile.
+ SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
+
+ // Gets the storage profile.
+ StorageProfile *RestorePointSourceVMStorageProfile `json:"storageProfile,omitempty"`
+
+ // Gets the virtual machine unique id.
+ VMID *string `json:"vmId,omitempty"`
+}
+
+// RestorePointSourceVMDataDisk - Describes a data disk.
+type RestorePointSourceVMDataDisk struct {
+ // Gets the caching type.
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Gets the disk restore point Id.
+ DiskRestorePoint *APIEntityReference `json:"diskRestorePoint,omitempty"`
+
+ // Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // Gets the logical unit number.
+ Lun *int32 `json:"lun,omitempty"`
+
+ // Gets the managed disk details
+ ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"`
+
+ // Gets the disk name.
+ Name *string `json:"name,omitempty"`
+}
+
+// RestorePointSourceVMOSDisk - Describes an Operating System disk.
+type RestorePointSourceVMOSDisk struct {
+ // Gets the caching type.
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Gets the disk restore point Id.
+ DiskRestorePoint *APIEntityReference `json:"diskRestorePoint,omitempty"`
+
+ // Gets the disk size in GB.
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // Gets the disk encryption settings.
+ EncryptionSettings *DiskEncryptionSettings `json:"encryptionSettings,omitempty"`
+
+ // Gets the managed disk details
+ ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"`
+
+ // Gets the disk name.
+ Name *string `json:"name,omitempty"`
+
+ // Gets the Operating System type.
+ OSType *OperatingSystemType `json:"osType,omitempty"`
+}
+
+// RestorePointSourceVMStorageProfile - Describes the storage profile.
+type RestorePointSourceVMStorageProfile struct {
+ // Gets the data disks of the VM captured at the time of the restore point creation.
+ DataDisks []*RestorePointSourceVMDataDisk `json:"dataDisks,omitempty"`
+
+ // Gets the OS disk of the VM captured at the time of the restore point creation.
+ OSDisk *RestorePointSourceVMOSDisk `json:"osDisk,omitempty"`
+}
+
+// RestorePointsClientBeginCreateOptions contains the optional parameters for the RestorePointsClient.BeginCreate method.
+type RestorePointsClientBeginCreateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// RestorePointsClientBeginDeleteOptions contains the optional parameters for the RestorePointsClient.BeginDelete method.
+type RestorePointsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// RestorePointsClientGetOptions contains the optional parameters for the RestorePointsClient.Get method.
+type RestorePointsClientGetOptions struct {
+ // The expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore
+ // point.
+ Expand *RestorePointExpandOptions
+}
+
+// RetrieveBootDiagnosticsDataResult - The SAS URIs of the console screenshot and serial log blobs.
+type RetrieveBootDiagnosticsDataResult struct {
+ // READ-ONLY; The console screenshot blob URI
+ ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty" azure:"ro"`
+
+ // READ-ONLY; The serial console log blob URI.
+ SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty" azure:"ro"`
+}
+
+type RoleInstance struct {
+ Properties *RoleInstanceProperties `json:"properties,omitempty"`
+ SKU *InstanceSKU `json:"sku,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource Location.
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource Name.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource Type.
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+type RoleInstanceListResult struct {
+ // REQUIRED
+ Value []*RoleInstance `json:"value,omitempty"`
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// RoleInstanceNetworkProfile - Describes the network profile for the role instance.
+type RoleInstanceNetworkProfile struct {
+ // READ-ONLY; Specifies the list of resource Ids for the network interfaces associated with the role instance.
+ NetworkInterfaces []*SubResource `json:"networkInterfaces,omitempty" azure:"ro"`
+}
+
+type RoleInstanceProperties struct {
+ // The instance view of the role instance.
+ InstanceView *RoleInstanceView `json:"instanceView,omitempty"`
+
+ // Describes the network profile for the role instance.
+ NetworkProfile *RoleInstanceNetworkProfile `json:"networkProfile,omitempty"`
+}
+
+// RoleInstanceView - The instance view of the role instance.
+type RoleInstanceView struct {
+ // READ-ONLY; The Fault Domain.
+ PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty" azure:"ro"`
+
+ // READ-ONLY; The Update Domain.
+ PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies a unique identifier generated internally for the cloud service associated with this role instance.
+ // NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.
+ PrivateID *string `json:"privateId,omitempty" azure:"ro"`
+
+ // READ-ONLY
+ Statuses []*ResourceInstanceViewStatus `json:"statuses,omitempty" azure:"ro"`
+}
+
+// RoleInstances - Specifies a list of role instances from the cloud service.
+type RoleInstances struct {
+ // REQUIRED; List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.
+ RoleInstances []*string `json:"roleInstances,omitempty"`
+}
+
+// RollbackStatusInfo - Information about rollback on failed VM instances after a OS Upgrade operation.
+type RollbackStatusInfo struct {
+ // READ-ONLY; The number of instances which failed to rollback.
+ FailedRolledbackInstanceCount *int32 `json:"failedRolledbackInstanceCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; Error details if OS rollback failed.
+ RollbackError *APIError `json:"rollbackError,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of instances which have been successfully rolled back.
+ SuccessfullyRolledbackInstanceCount *int32 `json:"successfullyRolledbackInstanceCount,omitempty" azure:"ro"`
+}
+
+// RollingUpgradePolicy - The configuration parameters used while performing a rolling upgrade.
+type RollingUpgradePolicy struct {
+ // Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent
+ // to determine the batch size.
+ EnableCrossZoneUpgrade *bool `json:"enableCrossZoneUpgrade,omitempty"`
+
+ // 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%.
+ MaxBatchInstancePercent *int32 `json:"maxBatchInstancePercent,omitempty"`
+
+ // The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either
+ // as a result of being upgraded, or by being found in an unhealthy state by
+ // the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting
+ // any batch. The default value for this parameter is 20%.
+ MaxUnhealthyInstancePercent *int32 `json:"maxUnhealthyInstancePercent,omitempty"`
+
+ // The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check
+ // will happen after each batch is upgraded. If this percentage is ever exceeded,
+ // the rolling update aborts. The default value for this parameter is 20%.
+ MaxUnhealthyUpgradedInstancePercent *int32 `json:"maxUnhealthyUpgradedInstancePercent,omitempty"`
+
+ // The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time
+ // duration should be specified in ISO 8601 format. The default value is 0 seconds
+ // (PT0S).
+ PauseTimeBetweenBatches *string `json:"pauseTimeBetweenBatches,omitempty"`
+
+ // Upgrade all unhealthy instances in a scale set before any healthy instances.
+ PrioritizeUnhealthyInstances *bool `json:"prioritizeUnhealthyInstances,omitempty"`
+}
+
+// RollingUpgradeProgressInfo - Information about the number of virtual machine instances in each upgrade state.
+type RollingUpgradeProgressInfo struct {
+ // READ-ONLY; The number of instances that have failed to be upgraded successfully.
+ FailedInstanceCount *int32 `json:"failedInstanceCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of instances that are currently being upgraded.
+ InProgressInstanceCount *int32 `json:"inProgressInstanceCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of instances that have not yet begun to be upgraded.
+ PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of instances that have been successfully upgraded.
+ SuccessfulInstanceCount *int32 `json:"successfulInstanceCount,omitempty" azure:"ro"`
+}
+
+// RollingUpgradeRunningStatus - Information about the current running state of the overall upgrade.
+type RollingUpgradeRunningStatus struct {
+ // READ-ONLY; Code indicating the current status of the upgrade.
+ Code *RollingUpgradeStatusCode `json:"code,omitempty" azure:"ro"`
+
+ // READ-ONLY; The last action performed on the rolling upgrade.
+ LastAction *RollingUpgradeActionType `json:"lastAction,omitempty" azure:"ro"`
+
+ // READ-ONLY; Last action time of the upgrade.
+ LastActionTime *time.Time `json:"lastActionTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; Start time of the upgrade.
+ StartTime *time.Time `json:"startTime,omitempty" azure:"ro"`
+}
+
+// RollingUpgradeStatusInfo - The status of the latest virtual machine scale set rolling upgrade.
+type RollingUpgradeStatusInfo struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The status of the latest virtual machine scale set rolling upgrade.
+ Properties *RollingUpgradeStatusInfoProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// RollingUpgradeStatusInfoProperties - The status of the latest virtual machine scale set rolling upgrade.
+type RollingUpgradeStatusInfoProperties struct {
+ // READ-ONLY; Error details for this upgrade, if there are any.
+ Error *APIError `json:"error,omitempty" azure:"ro"`
+
+ // READ-ONLY; The rolling upgrade policies applied for this upgrade.
+ Policy *RollingUpgradePolicy `json:"policy,omitempty" azure:"ro"`
+
+ // READ-ONLY; Information about the number of virtual machine instances in each upgrade state.
+ Progress *RollingUpgradeProgressInfo `json:"progress,omitempty" azure:"ro"`
+
+ // READ-ONLY; Information about the current running state of the overall upgrade.
+ RunningStatus *RollingUpgradeRunningStatus `json:"runningStatus,omitempty" azure:"ro"`
+}
+
+// RunCommandDocument - Describes the properties of a Run Command.
+type RunCommandDocument struct {
+ // REQUIRED; The VM run command description.
+ Description *string `json:"description,omitempty"`
+
+ // REQUIRED; The VM run command id.
+ ID *string `json:"id,omitempty"`
+
+ // REQUIRED; The VM run command label.
+ Label *string `json:"label,omitempty"`
+
+ // REQUIRED; The Operating System type.
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // REQUIRED; The VM run command schema.
+ Schema *string `json:"$schema,omitempty"`
+
+ // REQUIRED; The script to be executed.
+ Script []*string `json:"script,omitempty"`
+
+ // The parameters used by the script.
+ Parameters []*RunCommandParameterDefinition `json:"parameters,omitempty"`
+}
+
+// RunCommandDocumentBase - Describes the properties of a Run Command metadata.
+type RunCommandDocumentBase struct {
+ // REQUIRED; The VM run command description.
+ Description *string `json:"description,omitempty"`
+
+ // REQUIRED; The VM run command id.
+ ID *string `json:"id,omitempty"`
+
+ // REQUIRED; The VM run command label.
+ Label *string `json:"label,omitempty"`
+
+ // REQUIRED; The Operating System type.
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // REQUIRED; The VM run command schema.
+ Schema *string `json:"$schema,omitempty"`
+}
+
+// RunCommandInput - Capture Virtual Machine parameters.
+type RunCommandInput struct {
+ // REQUIRED; The run command id.
+ CommandID *string `json:"commandId,omitempty"`
+
+ // The run command parameters.
+ Parameters []*RunCommandInputParameter `json:"parameters,omitempty"`
+
+ // Optional. The script to be executed. When this value is given, the given script will override the default script of the
+ // command.
+ Script []*string `json:"script,omitempty"`
+}
+
+// RunCommandInputParameter - Describes the properties of a run command parameter.
+type RunCommandInputParameter struct {
+ // REQUIRED; The run command parameter name.
+ Name *string `json:"name,omitempty"`
+
+ // REQUIRED; The run command parameter value.
+ Value *string `json:"value,omitempty"`
+}
+
+// RunCommandListResult - The List Virtual Machine operation response.
+type RunCommandListResult struct {
+ // REQUIRED; The list of virtual machine run commands.
+ Value []*RunCommandDocumentBase `json:"value,omitempty"`
+
+ // The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// RunCommandParameterDefinition - Describes the properties of a run command parameter.
+type RunCommandParameterDefinition struct {
+ // REQUIRED; The run command parameter name.
+ Name *string `json:"name,omitempty"`
+
+ // REQUIRED; The run command parameter type.
+ Type *string `json:"type,omitempty"`
+
+ // The run command parameter default value.
+ DefaultValue *string `json:"defaultValue,omitempty"`
+
+ // The run command parameter required.
+ Required *bool `json:"required,omitempty"`
+}
+
+type RunCommandResult struct {
+ // Run command operation response.
+ Value []*InstanceViewStatus `json:"value,omitempty"`
+}
+
+// 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.
+type SKU struct {
+ // Specifies the number of virtual machines in the scale set.
+ Capacity *int64 `json:"capacity,omitempty"`
+
+ // The sku name.
+ Name *string `json:"name,omitempty"`
+
+ // Specifies the tier of virtual machines in a scale set.
+ // Possible Values:
+ // Standard
+ // Basic
+ Tier *string `json:"tier,omitempty"`
+}
+
+// SSHConfiguration - SSH configuration for Linux based VMs running on Azure
+type SSHConfiguration struct {
+ // The list of SSH public keys used to authenticate with linux based VMs.
+ PublicKeys []*SSHPublicKey `json:"publicKeys,omitempty"`
+}
+
+// SSHPublicKey - Contains information about SSH certificate public key and the path on the Linux VM where the public key
+// is placed.
+type SSHPublicKey struct {
+ // SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa
+ // format.
+ // For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).
+ KeyData *string `json:"keyData,omitempty"`
+
+ // Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key
+ // is appended to the file. Example: /home/user/.ssh/authorized_keys
+ Path *string `json:"path,omitempty"`
+}
+
+// SSHPublicKeyGenerateKeyPairResult - Response from generation of an SSH key pair.
+type SSHPublicKeyGenerateKeyPairResult struct {
+ // REQUIRED; The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}
+ ID *string `json:"id,omitempty"`
+
+ // REQUIRED; Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is
+ // returned in RFC3447 format and should be treated as a secret.
+ PrivateKey *string `json:"privateKey,omitempty"`
+
+ // REQUIRED; Public key portion of the key pair used to authenticate to a virtual machine through ssh. The public key is in
+ // ssh-rsa format.
+ PublicKey *string `json:"publicKey,omitempty"`
+}
+
+// SSHPublicKeyResource - Specifies information about the SSH public key.
+type SSHPublicKeyResource struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Properties of the SSH public key.
+ Properties *SSHPublicKeyResourceProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// SSHPublicKeyResourceProperties - Properties of the SSH public key.
+type SSHPublicKeyResourceProperties struct {
+ // SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the
+ // resource is created, the publicKey property will be populated when
+ // generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at
+ // least 2048-bit and in ssh-rsa format.
+ PublicKey *string `json:"publicKey,omitempty"`
+}
+
+// SSHPublicKeyUpdateResource - Specifies information about the SSH public key.
+type SSHPublicKeyUpdateResource struct {
+ // Properties of the SSH public key.
+ Properties *SSHPublicKeyResourceProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// SSHPublicKeysClientCreateOptions contains the optional parameters for the SSHPublicKeysClient.Create method.
+type SSHPublicKeysClientCreateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SSHPublicKeysClientDeleteOptions contains the optional parameters for the SSHPublicKeysClient.Delete method.
+type SSHPublicKeysClientDeleteOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SSHPublicKeysClientGenerateKeyPairOptions contains the optional parameters for the SSHPublicKeysClient.GenerateKeyPair
+// method.
+type SSHPublicKeysClientGenerateKeyPairOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SSHPublicKeysClientGetOptions contains the optional parameters for the SSHPublicKeysClient.Get method.
+type SSHPublicKeysClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SSHPublicKeysClientListByResourceGroupOptions contains the optional parameters for the SSHPublicKeysClient.ListByResourceGroup
+// method.
+type SSHPublicKeysClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SSHPublicKeysClientListBySubscriptionOptions contains the optional parameters for the SSHPublicKeysClient.ListBySubscription
+// method.
+type SSHPublicKeysClientListBySubscriptionOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SSHPublicKeysClientUpdateOptions contains the optional parameters for the SSHPublicKeysClient.Update method.
+type SSHPublicKeysClientUpdateOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SSHPublicKeysGroupListResult - The list SSH public keys operation response.
+type SSHPublicKeysGroupListResult struct {
+ // REQUIRED; The list of SSH public keys
+ Value []*SSHPublicKeyResource `json:"value,omitempty"`
+
+ // The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the next page of SSH public keys.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ScaleInPolicy - Describes a scale-in policy for a virtual machine scale set.
+type ScaleInPolicy struct {
+ // This property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine
+ // scale set is being scaled-in.(Feature in Preview)
+ ForceDeletion *bool `json:"forceDeletion,omitempty"`
+
+ // The rules to be followed when scaling-in a virtual machine scale set.
+ // Possible values are:
+ // Default When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal
+ // scale set. Then, it will be balanced across Fault Domains as far as possible.
+ // Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in.
+ // OldestVM When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in
+ // will be chosen for removal. For zonal virtual machine scale sets, the
+ // scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will
+ // be chosen for removal.
+ // NewestVM When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in
+ // will be chosen for removal. For zonal virtual machine scale sets, the
+ // scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will
+ // be chosen for removal.
+ Rules []*VirtualMachineScaleSetScaleInRules `json:"rules,omitempty"`
+}
+
+type ScheduledEventsProfile struct {
+ // Specifies Terminate Scheduled Event related configurations.
+ TerminateNotificationProfile *TerminateNotificationProfile `json:"terminateNotificationProfile,omitempty"`
+}
+
+// SecurityProfile - Specifies the Security profile settings for the virtual machine or virtual machine scale set.
+type SecurityProfile struct {
+ // This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual
+ // machine scale set. This will enable the encryption for all the disks
+ // including Resource/Temp disk at host itself.
+ // Default: The Encryption at host will be disabled unless this property is set to true for the resource.
+ EncryptionAtHost *bool `json:"encryptionAtHost,omitempty"`
+
+ // Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.
+ // Default: UefiSettings will not be enabled unless this property is set.
+ SecurityType *SecurityTypes `json:"securityType,omitempty"`
+
+ // Specifies the security settings like secure boot and vTPM used while creating the virtual machine.
+ // Minimum api-version: 2020-12-01
+ UefiSettings *UefiSettings `json:"uefiSettings,omitempty"`
+}
+
+type ShareInfoElement struct {
+ // READ-ONLY; A relative URI containing the ID of the VM that has the disk attached.
+ VMURI *string `json:"vmUri,omitempty" azure:"ro"`
+}
+
+// SharedGalleriesClientGetOptions contains the optional parameters for the SharedGalleriesClient.Get method.
+type SharedGalleriesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SharedGalleriesClientListOptions contains the optional parameters for the SharedGalleriesClient.List method.
+type SharedGalleriesClientListOptions struct {
+ // The query parameter to decide what shared galleries to fetch when doing listing operations.
+ SharedTo *SharedToValues
+}
+
+// SharedGallery - Specifies information about the Shared Gallery that you want to create or update.
+type SharedGallery struct {
+ // The identifier information of shared gallery.
+ Identifier *SharedGalleryIdentifier `json:"identifier,omitempty"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+}
+
+// SharedGalleryIdentifier - The identifier information of shared gallery.
+type SharedGalleryIdentifier struct {
+ // The unique id of this shared gallery.
+ UniqueID *string `json:"uniqueId,omitempty"`
+}
+
+// SharedGalleryImage - Specifies information about the gallery image definition that you want to create or update.
+type SharedGalleryImage struct {
+ // The identifier information of shared gallery.
+ Identifier *SharedGalleryIdentifier `json:"identifier,omitempty"`
+
+ // Describes the properties of a gallery image definition.
+ Properties *SharedGalleryImageProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+}
+
+// SharedGalleryImageList - The List Shared Gallery Images operation response.
+type SharedGalleryImageList struct {
+ // REQUIRED; A list of shared gallery images.
+ Value []*SharedGalleryImage `json:"value,omitempty"`
+
+ // The uri to fetch the next page of shared gallery images. Call ListNext() with this to fetch the next page of shared gallery
+ // images.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// SharedGalleryImageProperties - Describes the properties of a gallery image definition.
+type SharedGalleryImageProperties struct {
+ // REQUIRED; This is the gallery image definition identifier.
+ Identifier *GalleryImageIdentifier `json:"identifier,omitempty"`
+
+ // REQUIRED; This property allows the user to specify whether the virtual machines created under this image are 'Generalized'
+ // or 'Specialized'.
+ OSState *OperatingSystemStateTypes `json:"osState,omitempty"`
+
+ // REQUIRED; This property allows you to specify the type of the OS that is included in the disk when creating a VM from a
+ // managed image.
+ // Possible values are:
+ // Windows
+ // Linux
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // Describes the disallowed disk types.
+ Disallowed *Disallowed `json:"disallowed,omitempty"`
+
+ // The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property
+ // is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // A list of gallery image features.
+ Features []*GalleryImageFeature `json:"features,omitempty"`
+
+ // The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
+ HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"`
+
+ // Describes the gallery image definition purchase plan. This is used by marketplace images.
+ PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"`
+
+ // The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
+ Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"`
+}
+
+// SharedGalleryImageVersion - Specifies information about the gallery image version that you want to create or update.
+type SharedGalleryImageVersion struct {
+ // The identifier information of shared gallery.
+ Identifier *SharedGalleryIdentifier `json:"identifier,omitempty"`
+
+ // Describes the properties of a gallery image version.
+ Properties *SharedGalleryImageVersionProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+}
+
+// SharedGalleryImageVersionList - The List Shared Gallery Image versions operation response.
+type SharedGalleryImageVersionList struct {
+ // REQUIRED; A list of shared gallery images versions.
+ Value []*SharedGalleryImageVersion `json:"value,omitempty"`
+
+ // The uri to fetch the next page of shared gallery image versions. Call ListNext() with this to fetch the next page of shared
+ // gallery image versions.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// SharedGalleryImageVersionProperties - Describes the properties of a gallery image version.
+type SharedGalleryImageVersionProperties struct {
+ // The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This
+ // property is updatable.
+ EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"`
+
+ // The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This
+ // property is updatable.
+ PublishedDate *time.Time `json:"publishedDate,omitempty"`
+}
+
+// SharedGalleryImageVersionsClientGetOptions contains the optional parameters for the SharedGalleryImageVersionsClient.Get
+// method.
+type SharedGalleryImageVersionsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SharedGalleryImageVersionsClientListOptions contains the optional parameters for the SharedGalleryImageVersionsClient.List
+// method.
+type SharedGalleryImageVersionsClientListOptions struct {
+ // The query parameter to decide what shared galleries to fetch when doing listing operations.
+ SharedTo *SharedToValues
+}
+
+// SharedGalleryImagesClientGetOptions contains the optional parameters for the SharedGalleryImagesClient.Get method.
+type SharedGalleryImagesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SharedGalleryImagesClientListOptions contains the optional parameters for the SharedGalleryImagesClient.List method.
+type SharedGalleryImagesClientListOptions struct {
+ // The query parameter to decide what shared galleries to fetch when doing listing operations.
+ SharedTo *SharedToValues
+}
+
+// SharedGalleryList - The List Shared Galleries operation response.
+type SharedGalleryList struct {
+ // REQUIRED; A list of shared galleries.
+ Value []*SharedGallery `json:"value,omitempty"`
+
+ // The uri to fetch the next page of shared galleries. Call ListNext() with this to fetch the next page of shared galleries.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// SharingProfile - Profile for gallery sharing to subscription or tenant
+type SharingProfile struct {
+ // Information of community gallery if current gallery is shared to community.
+ CommunityGalleryInfo interface{} `json:"communityGalleryInfo,omitempty"`
+
+ // This property allows you to specify the permission of sharing gallery.
+ // Possible values are:
+ // Private
+ // Groups
+ Permissions *GallerySharingPermissionTypes `json:"permissions,omitempty"`
+
+ // READ-ONLY; A list of sharing profile groups.
+ Groups []*SharingProfileGroup `json:"groups,omitempty" azure:"ro"`
+}
+
+// SharingProfileGroup - Group of the gallery sharing profile
+type SharingProfileGroup struct {
+ // A list of subscription/tenant ids the gallery is aimed to be shared to.
+ IDs []*string `json:"ids,omitempty"`
+
+ // This property allows you to specify the type of sharing group.
+ // Possible values are:
+ // Subscriptions
+ // AADTenants
+ // Community
+ Type *SharingProfileGroupTypes `json:"type,omitempty"`
+}
+
+// SharingStatus - Sharing status of current gallery.
+type SharingStatus struct {
+ // Summary of all regional sharing status.
+ Summary []*RegionalSharingStatus `json:"summary,omitempty"`
+
+ // READ-ONLY; Aggregated sharing state of current gallery.
+ AggregatedState *SharingState `json:"aggregatedState,omitempty" azure:"ro"`
+}
+
+// SharingUpdate - Specifies information about the gallery sharing profile update.
+type SharingUpdate struct {
+ // REQUIRED; This property allows you to specify the operation type of gallery sharing update.
+ // Possible values are:
+ // Add
+ // Remove
+ // Reset
+ OperationType *SharingUpdateOperationTypes `json:"operationType,omitempty"`
+
+ // A list of sharing profile groups.
+ Groups []*SharingProfileGroup `json:"groups,omitempty"`
+}
+
+// Snapshot resource.
+type Snapshot struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The extended location where the snapshot will be created. Extended location cannot be changed.
+ ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"`
+
+ // Snapshot resource properties.
+ Properties *SnapshotProperties `json:"properties,omitempty"`
+
+ // The snapshots sku name. Can be StandardLRS, PremiumLRS, or Standard_ZRS. This is an optional parameter for incremental
+ // snapshot and the default behavior is the SKU will be set to the same sku as the
+ // previous snapshot
+ SKU *SnapshotSKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Unused. Always Null.
+ ManagedBy *string `json:"managedBy,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// SnapshotList - The List Snapshots operation response.
+type SnapshotList struct {
+ // REQUIRED; A list of snapshots.
+ Value []*Snapshot `json:"value,omitempty"`
+
+ // The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// SnapshotProperties - Snapshot resource properties.
+type SnapshotProperties struct {
+ // REQUIRED; Disk source information. CreationData information cannot be changed after the disk has been created.
+ CreationData *CreationData `json:"creationData,omitempty"`
+
+ // Percentage complete for the background copy when a resource is created via the CopyStart operation.
+ CompletionPercent *float32 `json:"completionPercent,omitempty"`
+
+ // Additional authentication requirements when exporting or uploading to a disk or snapshot.
+ DataAccessAuthMode *DataAccessAuthMode `json:"dataAccessAuthMode,omitempty"`
+
+ // ARM id of the DiskAccess resource for using private endpoints on disks.
+ DiskAccessID *string `json:"diskAccessId,omitempty"`
+
+ // If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this
+ // field is present for updates or creation with other options, it indicates a
+ // resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
+ Encryption *Encryption `json:"encryption,omitempty"`
+
+ // Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
+ EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"`
+
+ // The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
+ HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"`
+
+ // Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can
+ // be diffed.
+ Incremental *bool `json:"incremental,omitempty"`
+
+ // Policy for accessing the disk via network.
+ NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"`
+
+ // The Operating System type.
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // Policy for controlling export on the disk.
+ PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
+
+ // Purchase plan information for the image from which the source disk for the snapshot was originally created.
+ PurchasePlan *DiskPurchasePlan `json:"purchasePlan,omitempty"`
+
+ // Contains the security related information for the resource.
+ SecurityProfile *DiskSecurityProfile `json:"securityProfile,omitempty"`
+
+ // List of supported capabilities for the image from which the source disk from the snapshot was originally created.
+ SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"`
+
+ // Indicates the OS on a snapshot supports hibernation.
+ SupportsHibernation *bool `json:"supportsHibernation,omitempty"`
+
+ // READ-ONLY; The size of the disk in bytes. This field is read only.
+ DiskSizeBytes *int64 `json:"diskSizeBytes,omitempty" azure:"ro"`
+
+ // READ-ONLY; The state of the snapshot.
+ DiskState *DiskState `json:"diskState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The disk provisioning state.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The time when the snapshot was created.
+ TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`
+
+ // READ-ONLY; Unique Guid identifying the resource.
+ UniqueID *string `json:"uniqueId,omitempty" azure:"ro"`
+}
+
+// SnapshotSKU - The snapshots sku name. Can be StandardLRS, PremiumLRS, or Standard_ZRS. This is an optional parameter for
+// incremental snapshot and the default behavior is the SKU will be set to the same sku as the
+// previous snapshot
+type SnapshotSKU struct {
+ // The sku name.
+ Name *SnapshotStorageAccountTypes `json:"name,omitempty"`
+
+ // READ-ONLY; The sku tier.
+ Tier *string `json:"tier,omitempty" azure:"ro"`
+}
+
+// SnapshotUpdate - Snapshot update resource.
+type SnapshotUpdate struct {
+ // Snapshot resource update properties.
+ Properties *SnapshotUpdateProperties `json:"properties,omitempty"`
+
+ // The snapshots sku name. Can be StandardLRS, PremiumLRS, or Standard_ZRS. This is an optional parameter for incremental
+ // snapshot and the default behavior is the SKU will be set to the same sku as the
+ // previous snapshot
+ SKU *SnapshotSKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// SnapshotUpdateProperties - Snapshot resource update properties.
+type SnapshotUpdateProperties struct {
+ // Additional authentication requirements when exporting or uploading to a disk or snapshot.
+ DataAccessAuthMode *DataAccessAuthMode `json:"dataAccessAuthMode,omitempty"`
+
+ // ARM id of the DiskAccess resource for using private endpoints on disks.
+ DiskAccessID *string `json:"diskAccessId,omitempty"`
+
+ // If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this
+ // field is present for updates or creation with other options, it indicates a
+ // resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
+ Encryption *Encryption `json:"encryption,omitempty"`
+
+ // Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
+ EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"`
+
+ // Policy for accessing the disk via network.
+ NetworkAccessPolicy *NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"`
+
+ // the Operating System type.
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // Policy for controlling export on the disk.
+ PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
+
+ // List of supported capabilities for the image from which the OS disk was created.
+ SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"`
+
+ // Indicates the OS on a snapshot supports hibernation.
+ SupportsHibernation *bool `json:"supportsHibernation,omitempty"`
+}
+
+// SnapshotsClientBeginCreateOrUpdateOptions contains the optional parameters for the SnapshotsClient.BeginCreateOrUpdate
+// method.
+type SnapshotsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method.
+type SnapshotsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// SnapshotsClientBeginGrantAccessOptions contains the optional parameters for the SnapshotsClient.BeginGrantAccess method.
+type SnapshotsClientBeginGrantAccessOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// SnapshotsClientBeginRevokeAccessOptions contains the optional parameters for the SnapshotsClient.BeginRevokeAccess method.
+type SnapshotsClientBeginRevokeAccessOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method.
+type SnapshotsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method.
+type SnapshotsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SnapshotsClientListByResourceGroupOptions contains the optional parameters for the SnapshotsClient.ListByResourceGroup
+// method.
+type SnapshotsClientListByResourceGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.List method.
+type SnapshotsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SoftDeletePolicy - Contains information about the soft deletion policy of the gallery.
+type SoftDeletePolicy struct {
+ // Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
+ IsSoftDeleteEnabled *bool `json:"isSoftDeleteEnabled,omitempty"`
+}
+
+// SourceVault - The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}
+type SourceVault struct {
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+}
+
+// SpotRestorePolicy - Specifies the Spot-Try-Restore properties for the virtual machine scale set.
+// With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically
+// based on capacity availability and pricing constraint.
+type SpotRestorePolicy struct {
+ // Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based
+ // on capacity availability and pricing constraints
+ Enabled *bool `json:"enabled,omitempty"`
+
+ // Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances
+ RestoreTimeout *string `json:"restoreTimeout,omitempty"`
+}
+
+type StatusCodeCount struct {
+ // READ-ONLY; The instance view status code
+ Code *string `json:"code,omitempty" azure:"ro"`
+
+ // READ-ONLY; Number of instances having this status code
+ Count *int32 `json:"count,omitempty" azure:"ro"`
+}
+
+// StorageProfile - Specifies the storage settings for the virtual machine disks.
+type StorageProfile struct {
+ // Specifies the parameters that are used to add a data disk to a virtual machine.
+ // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
+ DataDisks []*DataDisk `json:"dataDisks,omitempty"`
+
+ // Specifies information about the image to use. You can specify information about platform images, marketplace images, or
+ // virtual machine images. This element is required when you want to use a platform
+ // image, marketplace image, or virtual machine image, but is not used in other creation operations.
+ ImageReference *ImageReference `json:"imageReference,omitempty"`
+
+ // Specifies information about the operating system disk used by the virtual machine.
+ // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
+ OSDisk *OSDisk `json:"osDisk,omitempty"`
+}
+
+type SubResource struct {
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+}
+
+type SubResourceReadOnly struct {
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+}
+
+type SubResourceWithColocationStatus struct {
+ // Describes colocation status of a resource in the Proximity Placement Group.
+ ColocationStatus *InstanceViewStatus `json:"colocationStatus,omitempty"`
+
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+}
+
+// SupportedCapabilities - List of supported capabilities persisted on the disk resource for VM use.
+type SupportedCapabilities struct {
+ // True if the image from which the OS disk is created supports accelerated networking.
+ AcceleratedNetwork *bool `json:"acceleratedNetwork,omitempty"`
+
+ // CPU architecture supported by an OS disk.
+ Architecture *Architecture `json:"architecture,omitempty"`
+}
+
+// TargetRegion - Describes the target region information.
+type TargetRegion struct {
+ // REQUIRED; The name of the region.
+ Name *string `json:"name,omitempty"`
+
+ // Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
+ Encryption *EncryptionImages `json:"encryption,omitempty"`
+
+ // The number of replicas of the Image Version to be created per region. This property is updatable.
+ RegionalReplicaCount *int32 `json:"regionalReplicaCount,omitempty"`
+
+ // Specifies the storage account type to be used to store the image. This property is not updatable.
+ StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"`
+}
+
+type TerminateNotificationProfile struct {
+ // Specifies whether the Terminate Scheduled event is enabled or disabled.
+ Enable *bool `json:"enable,omitempty"`
+
+ // Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event
+ // before the event is auto approved (timed out). The configuration must be
+ // specified in ISO 8601 format, the default value is 5 minutes (PT5M)
+ NotBeforeTimeout *string `json:"notBeforeTimeout,omitempty"`
+}
+
+// ThrottledRequestsInput - Api request input for LogAnalytics getThrottledRequests Api.
+type ThrottledRequestsInput struct {
+ // REQUIRED; SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.
+ BlobContainerSasURI *string `json:"blobContainerSasUri,omitempty"`
+
+ // REQUIRED; From time of the query
+ FromTime *time.Time `json:"fromTime,omitempty"`
+
+ // REQUIRED; To time of the query
+ ToTime *time.Time `json:"toTime,omitempty"`
+
+ // Group query result by Client Application ID.
+ GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"`
+
+ // Group query result by Operation Name.
+ GroupByOperationName *bool `json:"groupByOperationName,omitempty"`
+
+ // Group query result by Resource Name.
+ GroupByResourceName *bool `json:"groupByResourceName,omitempty"`
+
+ // Group query result by Throttle Policy applied.
+ GroupByThrottlePolicy *bool `json:"groupByThrottlePolicy,omitempty"`
+
+ // Group query result by User Agent.
+ GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"`
+}
+
+// UefiSettings - Specifies the security settings like secure boot and vTPM used while creating the virtual machine.
+// Minimum api-version: 2020-12-01
+type UefiSettings struct {
+ // Specifies whether secure boot should be enabled on the virtual machine.
+ // Minimum api-version: 2020-12-01
+ SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"`
+
+ // Specifies whether vTPM should be enabled on the virtual machine.
+ // Minimum api-version: 2020-12-01
+ VTpmEnabled *bool `json:"vTpmEnabled,omitempty"`
+}
+
+// UpdateDomain - Defines an update domain for the cloud service.
+type UpdateDomain struct {
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource Name
+ Name *string `json:"name,omitempty" azure:"ro"`
+}
+
+type UpdateDomainListResult struct {
+ // REQUIRED
+ Value []*UpdateDomain `json:"value,omitempty"`
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// UpdateResource - The Update Resource model definition.
+type UpdateResource struct {
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// UpdateResourceDefinition - The Update Resource model definition.
+type UpdateResourceDefinition struct {
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// UpgradeOperationHistoricalStatusInfo - Virtual Machine Scale Set OS Upgrade History operation response.
+type UpgradeOperationHistoricalStatusInfo struct {
+ // READ-ONLY; Resource location
+ Location *string `json:"location,omitempty" azure:"ro"`
+
+ // READ-ONLY; Information about the properties of the upgrade operation.
+ Properties *UpgradeOperationHistoricalStatusInfoProperties `json:"properties,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// UpgradeOperationHistoricalStatusInfoProperties - Describes each OS upgrade on the Virtual Machine Scale Set.
+type UpgradeOperationHistoricalStatusInfoProperties struct {
+ // READ-ONLY; Error Details for this upgrade if there are any.
+ Error *APIError `json:"error,omitempty" azure:"ro"`
+
+ // READ-ONLY; Counts of the VMs in each state.
+ Progress *RollingUpgradeProgressInfo `json:"progress,omitempty" azure:"ro"`
+
+ // READ-ONLY; Information about OS rollback if performed
+ RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty" azure:"ro"`
+
+ // READ-ONLY; Information about the overall status of the upgrade operation.
+ RunningStatus *UpgradeOperationHistoryStatus `json:"runningStatus,omitempty" azure:"ro"`
+
+ // READ-ONLY; Invoker of the Upgrade Operation
+ StartedBy *UpgradeOperationInvoker `json:"startedBy,omitempty" azure:"ro"`
+
+ // READ-ONLY; Image Reference details
+ TargetImageReference *ImageReference `json:"targetImageReference,omitempty" azure:"ro"`
+}
+
+// UpgradeOperationHistoryStatus - Information about the current running state of the overall upgrade.
+type UpgradeOperationHistoryStatus struct {
+ // READ-ONLY; Code indicating the current status of the upgrade.
+ Code *UpgradeState `json:"code,omitempty" azure:"ro"`
+
+ // READ-ONLY; End time of the upgrade.
+ EndTime *time.Time `json:"endTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; Start time of the upgrade.
+ StartTime *time.Time `json:"startTime,omitempty" azure:"ro"`
+}
+
+// UpgradePolicy - Describes an upgrade policy - automatic, manual, or rolling.
+type UpgradePolicy struct {
+ // Configuration parameters used for performing automatic OS Upgrade.
+ AutomaticOSUpgradePolicy *AutomaticOSUpgradePolicy `json:"automaticOSUpgradePolicy,omitempty"`
+
+ // Specifies the mode of an upgrade to virtual machines in the scale set.
+ // Possible values are:
+ // Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade
+ // action.
+ // Automatic - All virtual machines in the scale set are automatically updated at the same time.
+ Mode *UpgradeMode `json:"mode,omitempty"`
+
+ // The configuration parameters used while performing a rolling upgrade.
+ RollingUpgradePolicy *RollingUpgradePolicy `json:"rollingUpgradePolicy,omitempty"`
+}
+
+// Usage - Describes Compute Resource Usage.
+type Usage struct {
+ // REQUIRED; The current usage of the resource.
+ CurrentValue *int32 `json:"currentValue,omitempty"`
+
+ // REQUIRED; The maximum permitted usage of the resource.
+ Limit *int64 `json:"limit,omitempty"`
+
+ // REQUIRED; The name of the type of usage.
+ Name *UsageName `json:"name,omitempty"`
+
+ // REQUIRED; An enum describing the unit of usage measurement.
+ Unit *string `json:"unit,omitempty"`
+}
+
+// UsageClientListOptions contains the optional parameters for the UsageClient.List method.
+type UsageClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// UsageName - The Usage Names.
+type UsageName struct {
+ // The localized name of the resource.
+ LocalizedValue *string `json:"localizedValue,omitempty"`
+
+ // The name of the resource.
+ Value *string `json:"value,omitempty"`
+}
+
+type UserArtifactManage struct {
+ // REQUIRED; Required. The path and arguments to install the gallery application. This is limited to 4096 characters.
+ Install *string `json:"install,omitempty"`
+
+ // REQUIRED; Required. The path and arguments to remove the gallery application. This is limited to 4096 characters.
+ Remove *string `json:"remove,omitempty"`
+
+ // Optional. The path and arguments to update the gallery application. If not present, then update operation will invoke remove
+ // command on the previous version and install command on the current version
+ // of the gallery application. This is limited to 4096 characters.
+ Update *string `json:"update,omitempty"`
+}
+
+// UserArtifactSource - The source image from which the Image Version is going to be created.
+type UserArtifactSource struct {
+ // REQUIRED; Required. The mediaLink of the artifact, must be a readable storage page blob.
+ MediaLink *string `json:"mediaLink,omitempty"`
+
+ // Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob.
+ DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"`
+}
+
+type UserAssignedIdentitiesValue struct {
+ // READ-ONLY; The client id of user assigned identity.
+ ClientID *string `json:"clientId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The principal id of user assigned identity.
+ PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
+}
+
+// VMDiskSecurityProfile - Specifies the security profile settings for the managed disk.
+// NOTE: It can only be set for Confidential VMs
+type VMDiskSecurityProfile struct {
+ // Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key
+ // encrypted ConfidentialVM OS Disk and VMGuest blob.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
+
+ // Specifies the EncryptionType of the managed disk.
+ // It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly
+ // for encryption of just the VMGuestState blob.
+ // NOTE: It can be set for only Confidential VMs.
+ SecurityEncryptionType *SecurityEncryptionTypes `json:"securityEncryptionType,omitempty"`
+}
+
+// VMGalleryApplication - Specifies the required information to reference a compute gallery application version
+type VMGalleryApplication struct {
+ // REQUIRED; Specifies the GalleryApplicationVersion resource id on the form of
+ // /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}
+ PackageReferenceID *string `json:"packageReferenceId,omitempty"`
+
+ // Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided
+ ConfigurationReference *string `json:"configurationReference,omitempty"`
+
+ // If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the
+ // VM/VMSS
+ EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"`
+
+ // Optional, Specifies the order in which the packages have to be installed
+ Order *int32 `json:"order,omitempty"`
+
+ // Optional, Specifies a passthrough value for more generic context.
+ Tags *string `json:"tags,omitempty"`
+
+ // Optional, If true, any failure for any operation in the VmApplication will fail the deployment
+ TreatFailureAsDeploymentFailure *bool `json:"treatFailureAsDeploymentFailure,omitempty"`
+}
+
+type VMScaleSetConvertToSinglePlacementGroupInput struct {
+ // Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id,
+ // please use Virtual Machine Scale Set VMs - Get API. If not provided, the
+ // platform will choose one with maximum number of virtual machine instances.
+ ActivePlacementGroupID *string `json:"activePlacementGroupId,omitempty"`
+}
+
+// VMSizeProperties - Specifies VM Size Property settings on the virtual machine.
+type VMSizeProperties struct {
+ // Specifies the number of vCPUs available for the VM.
+ // When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available
+ // for that VM size exposed in api response of List all available virtual machine
+ // sizes in a region [https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list] .
+ VCPUsAvailable *int32 `json:"vCPUsAvailable,omitempty"`
+
+ // Specifies the vCPU to physical core ratio.
+ // When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the
+ // VM Size exposed in api response of List all available virtual machine sizes in
+ // a region [https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list]
+ // Setting this property to 1 also means that hyper-threading is disabled.
+ VCPUsPerCore *int32 `json:"vCPUsPerCore,omitempty"`
+}
+
+// VaultCertificate - Describes a single certificate reference in a Key Vault, and where the certificate should reside on
+// the VM.
+type VaultCertificate struct {
+ // For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified
+ // certificate store is implicitly in the LocalMachine account.
+ // For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name .crt
+ // for the X509 certificate file and .prv for private
+ // key. Both of these files are .pem formatted.
+ CertificateStore *string `json:"certificateStore,omitempty"`
+
+ // This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault,
+ // see Add a key or secret to the key vault
+ // [https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add]. In this case, your certificate needs to be It
+ // is the Base64 encoding of the following JSON Object which is encoded in UTF-8:
+ // {
+ // "data":"",
+ // "dataType":"pfx",
+ // "password":""
+ // }
+ // To install certificates on a virtual machine it is recommended to use the Azure Key Vault virtual machine extension for
+ // Linux
+ // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux] or the Azure Key Vault virtual machine extension
+ // for Windows
+ // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows].
+ CertificateURL *string `json:"certificateUrl,omitempty"`
+}
+
+// VaultSecretGroup - Describes a set of certificates which are all in the same Key Vault.
+type VaultSecretGroup struct {
+ // The relative URL of the Key Vault containing all of the certificates in VaultCertificates.
+ SourceVault *SubResource `json:"sourceVault,omitempty"`
+
+ // The list of key vault references in SourceVault which contain certificates.
+ VaultCertificates []*VaultCertificate `json:"vaultCertificates,omitempty"`
+}
+
+// VirtualHardDisk - Describes the uri of a disk.
+type VirtualHardDisk struct {
+ // Specifies the virtual hard disk's uri.
+ URI *string `json:"uri,omitempty"`
+}
+
+// VirtualMachine - Describes a Virtual Machine.
+type VirtualMachine struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The extended location of the Virtual Machine.
+ ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"`
+
+ // The identity of the virtual machine, if configured.
+ Identity *VirtualMachineIdentity `json:"identity,omitempty"`
+
+ // Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace
+ // images. Before you can use a marketplace image from an API, you must
+ // enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click
+ // Want to deploy programmatically, Get Started ->. Enter any required
+ // information and then click Save.
+ Plan *Plan `json:"plan,omitempty"`
+
+ // Describes the properties of a Virtual Machine.
+ Properties *VirtualMachineProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // The virtual machine zones.
+ Zones []*string `json:"zones,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; The virtual machine child extension resources.
+ Resources []*VirtualMachineExtension `json:"resources,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineAgentInstanceView - The instance view of the VM Agent running on the virtual machine.
+type VirtualMachineAgentInstanceView struct {
+ // The virtual machine extension handler instance view.
+ ExtensionHandlers []*VirtualMachineExtensionHandlerInstanceView `json:"extensionHandlers,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // The VM Agent full version.
+ VMAgentVersion *string `json:"vmAgentVersion,omitempty"`
+}
+
+// VirtualMachineAssessPatchesResult - Describes the properties of an AssessPatches result.
+type VirtualMachineAssessPatchesResult struct {
+ // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension
+ // logs.
+ AssessmentActivityID *string `json:"assessmentActivityId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The list of patches that have been detected as available for installation.
+ AvailablePatches []*VirtualMachineSoftwarePatchProperties `json:"availablePatches,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of critical or security patches that have been detected as available and not yet installed.
+ CriticalAndSecurityPatchCount *int32 `json:"criticalAndSecurityPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The errors that were encountered during execution of the operation. The details array contains the list of them.
+ Error *APIError `json:"error,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of all available patches excluding critical and security.
+ OtherPatchCount *int32 `json:"otherPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete
+ // installation but the reboot has not yet occurred.
+ RebootPending *bool `json:"rebootPending,omitempty" azure:"ro"`
+
+ // READ-ONLY; The UTC timestamp when the operation began.
+ StartDateTime *time.Time `json:"startDateTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; The overall success or failure status of the operation. It remains "InProgress" until the operation completes.
+ // At that point it will become "Unknown", "Failed", "Succeeded", or
+ // "CompletedWithWarnings."
+ Status *PatchOperationStatus `json:"status,omitempty" azure:"ro"`
+}
+
+// VirtualMachineCaptureParameters - Capture Virtual Machine parameters.
+type VirtualMachineCaptureParameters struct {
+ // REQUIRED; The destination container name.
+ DestinationContainerName *string `json:"destinationContainerName,omitempty"`
+
+ // REQUIRED; Specifies whether to overwrite the destination virtual hard disk, in case of conflict.
+ OverwriteVhds *bool `json:"overwriteVhds,omitempty"`
+
+ // REQUIRED; The captured virtual hard disk's name prefix.
+ VhdPrefix *string `json:"vhdPrefix,omitempty"`
+}
+
+// VirtualMachineCaptureResult - Output of virtual machine capture operation.
+type VirtualMachineCaptureResult struct {
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // READ-ONLY; the version of the content
+ ContentVersion *string `json:"contentVersion,omitempty" azure:"ro"`
+
+ // READ-ONLY; parameters of the captured virtual machine
+ Parameters interface{} `json:"parameters,omitempty" azure:"ro"`
+
+ // READ-ONLY; a list of resource items of the captured virtual machine
+ Resources []interface{} `json:"resources,omitempty" azure:"ro"`
+
+ // READ-ONLY; the schema of the captured virtual machine
+ Schema *string `json:"$schema,omitempty" azure:"ro"`
+}
+
+// VirtualMachineExtension - Describes a Virtual Machine Extension.
+type VirtualMachineExtension struct {
+ // Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a Virtual Machine Extension.
+ Properties *VirtualMachineExtensionProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineExtensionHandlerInstanceView - The instance view of a virtual machine extension handler.
+type VirtualMachineExtensionHandlerInstanceView struct {
+ // The extension handler status.
+ Status *InstanceViewStatus `json:"status,omitempty"`
+
+ // Specifies the type of the extension; an example is "CustomScriptExtension".
+ Type *string `json:"type,omitempty"`
+
+ // Specifies the version of the script handler.
+ TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
+}
+
+// VirtualMachineExtensionImage - Describes a Virtual Machine Extension Image.
+type VirtualMachineExtensionImage struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a Virtual Machine Extension Image.
+ Properties *VirtualMachineExtensionImageProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineExtensionImageProperties - Describes the properties of a Virtual Machine Extension Image.
+type VirtualMachineExtensionImageProperties struct {
+ // REQUIRED; The type of role (IaaS or PaaS) this extension supports.
+ ComputeRole *string `json:"computeRole,omitempty"`
+
+ // REQUIRED; The schema defined by publisher, where extension consumers should provide settings in a matching schema.
+ HandlerSchema *string `json:"handlerSchema,omitempty"`
+
+ // REQUIRED; The operating system this extension supports.
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+
+ // Whether the handler can support multiple extensions.
+ SupportsMultipleExtensions *bool `json:"supportsMultipleExtensions,omitempty"`
+
+ // Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there
+ // might be cases where a publisher wants to explicitly indicate the extension is
+ // only enabled for CRP VMs but not VMSS.
+ VMScaleSetEnabled *bool `json:"vmScaleSetEnabled,omitempty"`
+}
+
+// VirtualMachineExtensionImagesClientGetOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.Get
+// method.
+type VirtualMachineExtensionImagesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineExtensionImagesClientListTypesOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListTypes
+// method.
+type VirtualMachineExtensionImagesClientListTypesOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineExtensionImagesClientListVersionsOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListVersions
+// method.
+type VirtualMachineExtensionImagesClientListVersionsOptions struct {
+ // The filter to apply on the operation.
+ Filter *string
+ Orderby *string
+ Top *int32
+}
+
+// VirtualMachineExtensionInstanceView - The instance view of a virtual machine extension.
+type VirtualMachineExtensionInstanceView struct {
+ // The virtual machine extension name.
+ Name *string `json:"name,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // The resource status information.
+ Substatuses []*InstanceViewStatus `json:"substatuses,omitempty"`
+
+ // Specifies the type of the extension; an example is "CustomScriptExtension".
+ Type *string `json:"type,omitempty"`
+
+ // Specifies the version of the script handler.
+ TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
+}
+
+// VirtualMachineExtensionProperties - Describes the properties of a Virtual Machine Extension.
+type VirtualMachineExtensionProperties struct {
+ // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed,
+ // however, the extension will not upgrade minor versions unless redeployed, even
+ // with this property set to true.
+ AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
+
+ // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension
+ // available.
+ EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"`
+
+ // How the extension handler should be forced to update even if the extension configuration has not changed.
+ ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
+
+ // The virtual machine extension instance view.
+ InstanceView *VirtualMachineExtensionInstanceView `json:"instanceView,omitempty"`
+
+ // The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
+ ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
+
+ // The extensions protected settings that are passed by reference, and consumed from key vault
+ ProtectedSettingsFromKeyVault interface{} `json:"protectedSettingsFromKeyVault,omitempty"`
+
+ // The name of the extension handler publisher.
+ Publisher *string `json:"publisher,omitempty"`
+
+ // Json formatted public settings for the extension.
+ Settings interface{} `json:"settings,omitempty"`
+
+ // Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting
+ // to the VM will not be suppressed regardless of this value). The default is false.
+ SuppressFailures *bool `json:"suppressFailures,omitempty"`
+
+ // Specifies the type of the extension; an example is "CustomScriptExtension".
+ Type *string `json:"type,omitempty"`
+
+ // Specifies the version of the script handler.
+ TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+}
+
+// VirtualMachineExtensionUpdate - Describes a Virtual Machine Extension.
+type VirtualMachineExtensionUpdate struct {
+ // Describes the properties of a Virtual Machine Extension.
+ Properties *VirtualMachineExtensionUpdateProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// VirtualMachineExtensionUpdateProperties - Describes the properties of a Virtual Machine Extension.
+type VirtualMachineExtensionUpdateProperties struct {
+ // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed,
+ // however, the extension will not upgrade minor versions unless redeployed, even
+ // with this property set to true.
+ AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
+
+ // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension
+ // available.
+ EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"`
+
+ // How the extension handler should be forced to update even if the extension configuration has not changed.
+ ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
+
+ // The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
+ ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
+
+ // The extensions protected settings that are passed by reference, and consumed from key vault
+ ProtectedSettingsFromKeyVault interface{} `json:"protectedSettingsFromKeyVault,omitempty"`
+
+ // The name of the extension handler publisher.
+ Publisher *string `json:"publisher,omitempty"`
+
+ // Json formatted public settings for the extension.
+ Settings interface{} `json:"settings,omitempty"`
+
+ // Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting
+ // to the VM will not be suppressed regardless of this value). The default is false.
+ SuppressFailures *bool `json:"suppressFailures,omitempty"`
+
+ // Specifies the type of the extension; an example is "CustomScriptExtension".
+ Type *string `json:"type,omitempty"`
+
+ // Specifies the version of the script handler.
+ TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
+}
+
+// VirtualMachineExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginCreateOrUpdate
+// method.
+type VirtualMachineExtensionsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginDelete
+// method.
+type VirtualMachineExtensionsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginUpdate
+// method.
+type VirtualMachineExtensionsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineExtensionsClientGetOptions contains the optional parameters for the VirtualMachineExtensionsClient.Get method.
+type VirtualMachineExtensionsClientGetOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineExtensionsClientListOptions contains the optional parameters for the VirtualMachineExtensionsClient.List
+// method.
+type VirtualMachineExtensionsClientListOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineExtensionsListResult - The List Extension operation response
+type VirtualMachineExtensionsListResult struct {
+ // The list of extensions
+ Value []*VirtualMachineExtension `json:"value,omitempty"`
+}
+
+// VirtualMachineHealthStatus - The health status of the VM.
+type VirtualMachineHealthStatus struct {
+ // READ-ONLY; The health status information for the VM.
+ Status *InstanceViewStatus `json:"status,omitempty" azure:"ro"`
+}
+
+// VirtualMachineIPTag - Contains the IP tag associated with the public IP address.
+type VirtualMachineIPTag struct {
+ // IP tag type. Example: FirstPartyUsage.
+ IPTagType *string `json:"ipTagType,omitempty"`
+
+ // IP tag associated with the public IP. Example: SQL, Storage etc.
+ Tag *string `json:"tag,omitempty"`
+}
+
+// VirtualMachineIdentity - Identity for the virtual machine.
+type VirtualMachineIdentity struct {
+ // The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly
+ // created identity and a set of user assigned identities. The type 'None' will
+ // remove any identities from the virtual machine.
+ Type *ResourceIdentityType `json:"type,omitempty"`
+
+ // The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM
+ // resource ids in the form:
+ // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ UserAssignedIdentities map[string]*UserAssignedIdentitiesValue `json:"userAssignedIdentities,omitempty"`
+
+ // READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity.
+ PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The tenant id associated with the virtual machine. This property will only be provided for a system assigned
+ // identity.
+ TenantID *string `json:"tenantId,omitempty" azure:"ro"`
+}
+
+// VirtualMachineImage - Describes a Virtual Machine Image.
+type VirtualMachineImage struct {
+ // REQUIRED; The supported Azure location of the resource.
+ Location *string `json:"location,omitempty"`
+
+ // REQUIRED; The name of the resource.
+ Name *string `json:"name,omitempty"`
+
+ // The extended location of the Virtual Machine.
+ ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"`
+
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // Describes the properties of a Virtual Machine Image.
+ Properties *VirtualMachineImageProperties `json:"properties,omitempty"`
+
+ // Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize
+ // your Azure resources
+ // [https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md].
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// VirtualMachineImageFeature - Specifies additional capabilities supported by the image
+type VirtualMachineImageFeature struct {
+ // The name of the feature.
+ Name *string `json:"name,omitempty"`
+
+ // The corresponding value for the feature.
+ Value *string `json:"value,omitempty"`
+}
+
+// VirtualMachineImageProperties - Describes the properties of a Virtual Machine Image.
+type VirtualMachineImageProperties struct {
+ // Specifies the Architecture Type
+ Architecture *ArchitectureTypes `json:"architecture,omitempty"`
+
+ // Describes automatic OS upgrade properties on the image.
+ AutomaticOSUpgradeProperties *AutomaticOSUpgradeProperties `json:"automaticOSUpgradeProperties,omitempty"`
+ DataDiskImages []*DataDiskImage `json:"dataDiskImages,omitempty"`
+
+ // Specifies disallowed configuration for the VirtualMachine created from the image
+ Disallowed *DisallowedConfiguration `json:"disallowed,omitempty"`
+ Features []*VirtualMachineImageFeature `json:"features,omitempty"`
+
+ // Specifies the HyperVGeneration Type
+ HyperVGeneration *HyperVGenerationTypes `json:"hyperVGeneration,omitempty"`
+
+ // Contains the os disk image information.
+ OSDiskImage *OSDiskImage `json:"osDiskImage,omitempty"`
+
+ // Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
+ Plan *PurchasePlan `json:"plan,omitempty"`
+}
+
+// VirtualMachineImageResource - Virtual machine image resource information.
+type VirtualMachineImageResource struct {
+ // REQUIRED; The supported Azure location of the resource.
+ Location *string `json:"location,omitempty"`
+
+ // REQUIRED; The name of the resource.
+ Name *string `json:"name,omitempty"`
+
+ // The extended location of the Virtual Machine.
+ ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"`
+
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize
+ // your Azure resources
+ // [https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md].
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// VirtualMachineImagesClientGetOptions contains the optional parameters for the VirtualMachineImagesClient.Get method.
+type VirtualMachineImagesClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineImagesClientListOffersOptions contains the optional parameters for the VirtualMachineImagesClient.ListOffers
+// method.
+type VirtualMachineImagesClientListOffersOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineImagesClientListOptions contains the optional parameters for the VirtualMachineImagesClient.List method.
+type VirtualMachineImagesClientListOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+ Orderby *string
+ Top *int32
+}
+
+// VirtualMachineImagesClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesClient.ListPublishers
+// method.
+type VirtualMachineImagesClientListPublishersOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineImagesClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesClient.ListSKUs
+// method.
+type VirtualMachineImagesClientListSKUsOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineImagesEdgeZoneClientGetOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.Get
+// method.
+type VirtualMachineImagesEdgeZoneClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineImagesEdgeZoneClientListOffersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListOffers
+// method.
+type VirtualMachineImagesEdgeZoneClientListOffersOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineImagesEdgeZoneClientListOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.List
+// method.
+type VirtualMachineImagesEdgeZoneClientListOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+ // Specifies the order of the results returned. Formatted as an OData query.
+ Orderby *string
+ // An integer value specifying the number of images to return that matches supplied values.
+ Top *int32
+}
+
+// VirtualMachineImagesEdgeZoneClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListPublishers
+// method.
+type VirtualMachineImagesEdgeZoneClientListPublishersOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineImagesEdgeZoneClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListSKUs
+// method.
+type VirtualMachineImagesEdgeZoneClientListSKUsOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineInstallPatchesParameters - Input for InstallPatches as directly received by the API
+type VirtualMachineInstallPatchesParameters struct {
+ // REQUIRED; Defines when it is acceptable to reboot a VM during a software update operation.
+ RebootSetting *VMGuestPatchRebootSetting `json:"rebootSetting,omitempty"`
+
+ // Input for InstallPatches on a Linux VM, as directly received by the API
+ LinuxParameters *LinuxParameters `json:"linuxParameters,omitempty"`
+
+ // Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such
+ // as PT4H (4 hours)
+ MaximumDuration *string `json:"maximumDuration,omitempty"`
+
+ // Input for InstallPatches on a Windows VM, as directly received by the API
+ WindowsParameters *WindowsParameters `json:"windowsParameters,omitempty"`
+}
+
+// VirtualMachineInstallPatchesResult - The result summary of an installation operation.
+type VirtualMachineInstallPatchesResult struct {
+ // READ-ONLY; The errors that were encountered during execution of the operation. The details array contains the list of them.
+ Error *APIError `json:"error,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of patches that were not installed due to the user blocking their installation.
+ ExcludedPatchCount *int32 `json:"excludedPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of patches that could not be installed due to some issue. See errors for details.
+ FailedPatchCount *int32 `json:"failedPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension
+ // logs.
+ InstallationActivityID *string `json:"installationActivityId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of patches successfully installed.
+ InstalledPatchCount *int32 `json:"installedPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; Whether the operation ran out of time before it completed all its intended actions.
+ MaintenanceWindowExceeded *bool `json:"maintenanceWindowExceeded,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of patches that were detected as available for install, but did not meet the operation's criteria.
+ NotSelectedPatchCount *int32 `json:"notSelectedPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The patches that were installed during the operation.
+ Patches []*PatchInstallationDetail `json:"patches,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of patches that were identified as meeting the installation criteria, but were not able to be installed.
+ // Typically this happens when maintenanceWindowExceeded == true.
+ PendingPatchCount *int32 `json:"pendingPatchCount,omitempty" azure:"ro"`
+
+ // READ-ONLY; The reboot state of the VM following completion of the operation.
+ RebootStatus *VMGuestPatchRebootStatus `json:"rebootStatus,omitempty" azure:"ro"`
+
+ // READ-ONLY; The UTC timestamp when the operation began.
+ StartDateTime *time.Time `json:"startDateTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; The overall success or failure status of the operation. It remains "InProgress" until the operation completes.
+ // At that point it will become "Failed", "Succeeded", "Unknown" or "CompletedWithWarnings."
+ Status *PatchOperationStatus `json:"status,omitempty" azure:"ro"`
+}
+
+// VirtualMachineInstanceView - The instance view of a virtual machine.
+type VirtualMachineInstanceView struct {
+ // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
+ // You can easily view the output of your console log.
+ // Azure also enables you to see a screenshot of the VM from the hypervisor.
+ BootDiagnostics *BootDiagnosticsInstanceView `json:"bootDiagnostics,omitempty"`
+
+ // The computer name assigned to the virtual machine.
+ ComputerName *string `json:"computerName,omitempty"`
+
+ // The virtual machine disk information.
+ Disks []*DiskInstanceView `json:"disks,omitempty"`
+
+ // The extensions information.
+ Extensions []*VirtualMachineExtensionInstanceView `json:"extensions,omitempty"`
+
+ // Specifies the HyperVGeneration Type associated with a resource
+ HyperVGeneration *HyperVGenerationType `json:"hyperVGeneration,omitempty"`
+
+ // The Maintenance Operation status on the virtual machine.
+ MaintenanceRedeployStatus *MaintenanceRedeployStatus `json:"maintenanceRedeployStatus,omitempty"`
+
+ // The Operating System running on the virtual machine.
+ OSName *string `json:"osName,omitempty"`
+
+ // The version of Operating System running on the virtual machine.
+ OSVersion *string `json:"osVersion,omitempty"`
+
+ // [Preview Feature] The status of virtual machine patch operations.
+ PatchStatus *VirtualMachinePatchStatus `json:"patchStatus,omitempty"`
+
+ // Specifies the fault domain of the virtual machine.
+ PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"`
+
+ // Specifies the update domain of the virtual machine.
+ PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty"`
+
+ // The Remote desktop certificate thumbprint.
+ RdpThumbPrint *string `json:"rdpThumbPrint,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // The VM Agent running on the virtual machine.
+ VMAgent *VirtualMachineAgentInstanceView `json:"vmAgent,omitempty"`
+
+ // READ-ONLY; Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when
+ // the virtual machine is associated with a dedicated host group that has automatic
+ // placement enabled.
+ // Minimum api-version: 2020-06-01.
+ AssignedHost *string `json:"assignedHost,omitempty" azure:"ro"`
+
+ // READ-ONLY; The health status for the VM.
+ VMHealth *VirtualMachineHealthStatus `json:"vmHealth,omitempty" azure:"ro"`
+}
+
+// VirtualMachineListResult - The List Virtual Machine operation response.
+type VirtualMachineListResult struct {
+ // REQUIRED; The list of virtual machines.
+ Value []*VirtualMachine `json:"value,omitempty"`
+
+ // The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// VirtualMachineNetworkInterfaceConfiguration - Describes a virtual machine network interface configurations.
+type VirtualMachineNetworkInterfaceConfiguration struct {
+ // REQUIRED; The network interface configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Describes a virtual machine network profile's IP configuration.
+ Properties *VirtualMachineNetworkInterfaceConfigurationProperties `json:"properties,omitempty"`
+}
+
+// VirtualMachineNetworkInterfaceConfigurationProperties - Describes a virtual machine network profile's IP configuration.
+type VirtualMachineNetworkInterfaceConfigurationProperties struct {
+ // REQUIRED; Specifies the IP configurations of the network interface.
+ IPConfigurations []*VirtualMachineNetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"`
+
+ // The dns settings to be applied on the network interfaces.
+ DNSSettings *VirtualMachineNetworkInterfaceDNSSettingsConfiguration `json:"dnsSettings,omitempty"`
+
+ // Specify what happens to the network interface when the VM is deleted
+ DeleteOption *DeleteOptions `json:"deleteOption,omitempty"`
+ DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"`
+
+ // Specifies whether the network interface is accelerated networking-enabled.
+ EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"`
+
+ // Specifies whether the network interface is FPGA networking-enabled.
+ EnableFpga *bool `json:"enableFpga,omitempty"`
+
+ // Whether IP forwarding enabled on this NIC.
+ EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"`
+
+ // The network security group.
+ NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"`
+
+ // Specifies the primary network interface in case the virtual machine has more than 1 network interface.
+ Primary *bool `json:"primary,omitempty"`
+}
+
+// VirtualMachineNetworkInterfaceDNSSettingsConfiguration - Describes a virtual machines network configuration's DNS settings.
+type VirtualMachineNetworkInterfaceDNSSettingsConfiguration struct {
+ // List of DNS servers IP addresses
+ DNSServers []*string `json:"dnsServers,omitempty"`
+}
+
+// VirtualMachineNetworkInterfaceIPConfiguration - Describes a virtual machine network profile's IP configuration.
+type VirtualMachineNetworkInterfaceIPConfiguration struct {
+ // REQUIRED; The IP configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Describes a virtual machine network interface IP configuration properties.
+ Properties *VirtualMachineNetworkInterfaceIPConfigurationProperties `json:"properties,omitempty"`
+}
+
+// VirtualMachineNetworkInterfaceIPConfigurationProperties - Describes a virtual machine network interface IP configuration
+// properties.
+type VirtualMachineNetworkInterfaceIPConfigurationProperties struct {
+ // Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend
+ // address pools of multiple application gateways. Multiple virtual machines
+ // cannot use the same application gateway.
+ ApplicationGatewayBackendAddressPools []*SubResource `json:"applicationGatewayBackendAddressPools,omitempty"`
+
+ // Specifies an array of references to application security group.
+ ApplicationSecurityGroups []*SubResource `json:"applicationSecurityGroups,omitempty"`
+
+ // Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address
+ // pools of one public and one internal load balancer. [Multiple virtual
+ // machines cannot use the same basic sku load balancer].
+ LoadBalancerBackendAddressPools []*SubResource `json:"loadBalancerBackendAddressPools,omitempty"`
+
+ // Specifies the primary network interface in case the virtual machine has more than 1 network interface.
+ Primary *bool `json:"primary,omitempty"`
+
+ // Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default
+ // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+ PrivateIPAddressVersion *IPVersions `json:"privateIPAddressVersion,omitempty"`
+
+ // The publicIPAddressConfiguration.
+ PublicIPAddressConfiguration *VirtualMachinePublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"`
+
+ // Specifies the identifier of the subnet.
+ Subnet *SubResource `json:"subnet,omitempty"`
+}
+
+// VirtualMachinePatchStatus - The status of virtual machine patch operations.
+type VirtualMachinePatchStatus struct {
+ // The available patch summary of the latest assessment operation for the virtual machine.
+ AvailablePatchSummary *AvailablePatchSummary `json:"availablePatchSummary,omitempty"`
+
+ // The installation summary of the latest installation operation for the virtual machine.
+ LastPatchInstallationSummary *LastPatchInstallationSummary `json:"lastPatchInstallationSummary,omitempty"`
+
+ // READ-ONLY; The enablement status of the specified patchMode
+ ConfigurationStatuses []*InstanceViewStatus `json:"configurationStatuses,omitempty" azure:"ro"`
+}
+
+// VirtualMachineProperties - Describes the properties of a Virtual Machine.
+type VirtualMachineProperties struct {
+ // Specifies additional capabilities enabled or disabled on the virtual machine.
+ AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"`
+
+ // Specifies the gallery applications that should be made available to the VM/VMSS
+ ApplicationProfile *ApplicationProfile `json:"applicationProfile,omitempty"`
+
+ // Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified
+ // in the same availability set are allocated to different nodes to maximize
+ // availability. For more information about availability sets, see Availability sets overview [https://docs.microsoft.com/azure/virtual-machines/availability-set-overview].
+ // For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates]
+ // Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added
+ // should be under the same resource group as the availability set resource. An
+ // existing VM cannot be added to an availability set.
+ // This property cannot exist along with a non-null properties.virtualMachineScaleSet reference.
+ AvailabilitySet *SubResource `json:"availabilitySet,omitempty"`
+
+ // Specifies the billing related details of a Azure Spot virtual machine.
+ // Minimum api-version: 2019-03-01.
+ BillingProfile *BillingProfile `json:"billingProfile,omitempty"`
+
+ // Specifies information about the capacity reservation that is used to allocate virtual machine.
+ // Minimum api-version: 2021-04-01.
+ CapacityReservation *CapacityReservationProfile `json:"capacityReservation,omitempty"`
+
+ // Specifies the boot diagnostic settings state.
+ // Minimum api-version: 2015-06-15.
+ DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
+
+ // Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.
+ // For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.
+ // For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview.
+ EvictionPolicy *VirtualMachineEvictionPolicyTypes `json:"evictionPolicy,omitempty"`
+
+ // Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes
+ // (inclusive) and should be specified in ISO 8601 format. The default value is 90
+ // minutes (PT1H30M).
+ // Minimum api-version: 2020-06-01
+ ExtensionsTimeBudget *string `json:"extensionsTimeBudget,omitempty"`
+
+ // Specifies the hardware settings for the virtual machine.
+ HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"`
+
+ // Specifies information about the dedicated host that the virtual machine resides in.
+ // Minimum api-version: 2018-10-01.
+ Host *SubResource `json:"host,omitempty"`
+
+ // Specifies information about the dedicated host group that the virtual machine resides in.
+ // Minimum api-version: 2020-06-01.
+ // NOTE: User cannot specify both host and hostGroup properties.
+ HostGroup *SubResource `json:"hostGroup,omitempty"`
+
+ // Specifies that the image or disk that is being used was licensed on-premises.
+ // Possible values for Windows Server operating system are:
+ // WindowsClient
+ // WindowsServer
+ // Possible values for Linux Server operating system are:
+ // RHELBYOS (for RHEL)
+ // SLESBYOS (for SUSE)
+ // For more information, see Azure Hybrid Use Benefit for Windows Server [https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing]
+ // Azure Hybrid Use Benefit for Linux Server [https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux]
+ // Minimum api-version: 2015-06-15
+ LicenseType *string `json:"licenseType,omitempty"`
+
+ // Specifies the network interfaces of the virtual machine.
+ NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
+
+ // Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed
+ // once VM is provisioned.
+ OSProfile *OSProfile `json:"osProfile,omitempty"`
+
+ // Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine
+ // will by automatically assigned to a fault domain that best maintains
+ // balance across available fault domains.
+ // This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.The Virtual Machine Scale
+ // Set that is referenced, must have 'platformFaultDomainCount' > 1.This property
+ // cannot be updated once the Virtual Machine is created.Fault domain assignment can be viewed in the Virtual Machine Instance
+ // View.
+ // Minimum api‐version: 2020‐12‐01
+ PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"`
+
+ // Specifies the priority for the virtual machine.
+ // Minimum api-version: 2019-03-01
+ Priority *VirtualMachinePriorityTypes `json:"priority,omitempty"`
+
+ // Specifies information about the proximity placement group that the virtual machine should be assigned to.
+ // Minimum api-version: 2018-04-01.
+ ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"`
+
+ // Specifies Scheduled Event related configurations.
+ ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"`
+
+ // Specifies the Security related profile settings for the virtual machine.
+ SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
+
+ // Specifies the storage settings for the virtual machine disks.
+ StorageProfile *StorageProfile `json:"storageProfile,omitempty"`
+
+ // UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.
+ // Minimum api-version: 2021-03-01
+ UserData *string `json:"userData,omitempty"`
+
+ // Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines
+ // specified in the same virtual machine scale set are allocated to different
+ // nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing
+ // VM cannot be added to a virtual machine scale set.
+ // This property cannot exist along with a non-null properties.availabilitySet reference.
+ // Minimum api‐version: 2019‐03‐01
+ VirtualMachineScaleSet *SubResource `json:"virtualMachineScaleSet,omitempty"`
+
+ // READ-ONLY; The virtual machine instance view.
+ InstanceView *VirtualMachineInstanceView `json:"instanceView,omitempty" azure:"ro"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the time at which the Virtual Machine resource was created.
+ // Minimum api-version: 2022-03-01.
+ TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS
+ // and can be read using platform BIOS commands.
+ VMID *string `json:"vmId,omitempty" azure:"ro"`
+}
+
+// VirtualMachinePublicIPAddressConfiguration - Describes a virtual machines IP Configuration's PublicIPAddress configuration
+type VirtualMachinePublicIPAddressConfiguration struct {
+ // REQUIRED; The publicIP address configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Describes a virtual machines IP Configuration's PublicIPAddress configuration
+ Properties *VirtualMachinePublicIPAddressConfigurationProperties `json:"properties,omitempty"`
+
+ // Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.
+ SKU *PublicIPAddressSKU `json:"sku,omitempty"`
+}
+
+// VirtualMachinePublicIPAddressConfigurationProperties - Describes a virtual machines IP Configuration's PublicIPAddress
+// configuration
+type VirtualMachinePublicIPAddressConfigurationProperties struct {
+ // The dns settings to be applied on the publicIP addresses .
+ DNSSettings *VirtualMachinePublicIPAddressDNSSettingsConfiguration `json:"dnsSettings,omitempty"`
+
+ // Specify what happens to the public IP address when the VM is deleted
+ DeleteOption *DeleteOptions `json:"deleteOption,omitempty"`
+
+ // The list of IP tags associated with the public IP address.
+ IPTags []*VirtualMachineIPTag `json:"ipTags,omitempty"`
+
+ // The idle timeout of the public IP address.
+ IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"`
+
+ // Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default
+ // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+ PublicIPAddressVersion *IPVersions `json:"publicIPAddressVersion,omitempty"`
+
+ // Specify the public IP allocation type
+ PublicIPAllocationMethod *PublicIPAllocationMethod `json:"publicIPAllocationMethod,omitempty"`
+
+ // The PublicIPPrefix from which to allocate publicIP addresses.
+ PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"`
+}
+
+// VirtualMachinePublicIPAddressDNSSettingsConfiguration - Describes a virtual machines network configuration's DNS settings.
+type VirtualMachinePublicIPAddressDNSSettingsConfiguration struct {
+ // REQUIRED; The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label
+ // is the concatenation of the domain name label and vm network profile unique ID.
+ DomainNameLabel *string `json:"domainNameLabel,omitempty"`
+}
+
+// VirtualMachineReimageParameters - Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be
+// reimaged
+type VirtualMachineReimageParameters struct {
+ // Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported
+ // for VM/VMSS with Ephemeral OS disk.
+ TempDisk *bool `json:"tempDisk,omitempty"`
+}
+
+// VirtualMachineRunCommand - Describes a Virtual Machine run command.
+type VirtualMachineRunCommand struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // Describes the properties of a Virtual Machine run command.
+ Properties *VirtualMachineRunCommandProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineRunCommandInstanceView - The instance view of a virtual machine run command.
+type VirtualMachineRunCommandInstanceView struct {
+ // Script end time.
+ EndTime *time.Time `json:"endTime,omitempty"`
+
+ // Script error stream.
+ Error *string `json:"error,omitempty"`
+
+ // Communicate script configuration errors or execution messages.
+ ExecutionMessage *string `json:"executionMessage,omitempty"`
+
+ // Script execution status.
+ ExecutionState *ExecutionState `json:"executionState,omitempty"`
+
+ // Exit code returned from script execution.
+ ExitCode *int32 `json:"exitCode,omitempty"`
+
+ // Script output stream.
+ Output *string `json:"output,omitempty"`
+
+ // Script start time.
+ StartTime *time.Time `json:"startTime,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+}
+
+// VirtualMachineRunCommandProperties - Describes the properties of a Virtual Machine run command.
+type VirtualMachineRunCommandProperties struct {
+ // Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.
+ AsyncExecution *bool `json:"asyncExecution,omitempty"`
+
+ // Specifies the Azure storage blob where script error stream will be uploaded.
+ ErrorBlobURI *string `json:"errorBlobUri,omitempty"`
+
+ // Specifies the Azure storage blob where script output stream will be uploaded.
+ OutputBlobURI *string `json:"outputBlobUri,omitempty"`
+
+ // The parameters used by the script.
+ Parameters []*RunCommandInputParameter `json:"parameters,omitempty"`
+
+ // The parameters used by the script.
+ ProtectedParameters []*RunCommandInputParameter `json:"protectedParameters,omitempty"`
+
+ // Specifies the user account password on the VM when executing the run command.
+ RunAsPassword *string `json:"runAsPassword,omitempty"`
+
+ // Specifies the user account on the VM when executing the run command.
+ RunAsUser *string `json:"runAsUser,omitempty"`
+
+ // The source of the run command script.
+ Source *VirtualMachineRunCommandScriptSource `json:"source,omitempty"`
+
+ // The timeout in seconds to execute the run command.
+ TimeoutInSeconds *int32 `json:"timeoutInSeconds,omitempty"`
+
+ // READ-ONLY; The virtual machine run command instance view.
+ InstanceView *VirtualMachineRunCommandInstanceView `json:"instanceView,omitempty" azure:"ro"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+}
+
+// VirtualMachineRunCommandScriptSource - Describes the script sources for run command.
+type VirtualMachineRunCommandScriptSource struct {
+ // Specifies a commandId of predefined built-in script.
+ CommandID *string `json:"commandId,omitempty"`
+
+ // Specifies the script content to be executed on the VM.
+ Script *string `json:"script,omitempty"`
+
+ // Specifies the script download location.
+ ScriptURI *string `json:"scriptUri,omitempty"`
+}
+
+// VirtualMachineRunCommandUpdate - Describes a Virtual Machine run command.
+type VirtualMachineRunCommandUpdate struct {
+ // Describes the properties of a Virtual Machine run command.
+ Properties *VirtualMachineRunCommandProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginCreateOrUpdate
+// method.
+type VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginDelete
+// method.
+type VirtualMachineRunCommandsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginUpdate
+// method.
+type VirtualMachineRunCommandsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineRunCommandsClientGetByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.GetByVirtualMachine
+// method.
+type VirtualMachineRunCommandsClientGetByVirtualMachineOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineRunCommandsClient.Get
+// method.
+type VirtualMachineRunCommandsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineRunCommandsClientListByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.ListByVirtualMachine
+// method.
+type VirtualMachineRunCommandsClientListByVirtualMachineOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineRunCommandsClientListOptions contains the optional parameters for the VirtualMachineRunCommandsClient.List
+// method.
+type VirtualMachineRunCommandsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineRunCommandsListResult - The List run command operation response
+type VirtualMachineRunCommandsListResult struct {
+ // REQUIRED; The list of run commands
+ Value []*VirtualMachineRunCommand `json:"value,omitempty"`
+
+ // The uri to fetch the next page of run commands.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// VirtualMachineScaleSet - Describes a Virtual Machine Scale Set.
+type VirtualMachineScaleSet struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The extended location of the Virtual Machine Scale Set.
+ ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"`
+
+ // The identity of the virtual machine scale set, if configured.
+ Identity *VirtualMachineScaleSetIdentity `json:"identity,omitempty"`
+
+ // Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace
+ // images. Before you can use a marketplace image from an API, you must
+ // enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click
+ // Want to deploy programmatically, Get Started ->. Enter any required
+ // information and then click Save.
+ Plan *Plan `json:"plan,omitempty"`
+
+ // Describes the properties of a Virtual Machine Scale Set.
+ Properties *VirtualMachineScaleSetProperties `json:"properties,omitempty"`
+
+ // The virtual machine scale set sku.
+ SKU *SKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set
+ Zones []*string `json:"zones,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetDataDisk - Describes a virtual machine scale set data disk.
+type VirtualMachineScaleSetDataDisk struct {
+ // REQUIRED; The create option.
+ CreateOption *DiskCreateOptionTypes `json:"createOption,omitempty"`
+
+ // REQUIRED; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and
+ // therefore must be unique for each data disk attached to a VM.
+ Lun *int32 `json:"lun,omitempty"`
+
+ // Specifies the caching requirements.
+ // Possible values are:
+ // None
+ // ReadOnly
+ // ReadWrite
+ // Default: None for Standard storage. ReadOnly for Premium storage
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with
+ // Flexible OrchestrationMode only).
+ // Possible values:
+ // Delete If this value is used, the data disk is deleted when the VMSS Flex VM is deleted.
+ // Detach If this value is used, the data disk is retained after VMSS Flex VM is deleted.
+ // The default value is set to Delete.
+ DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"`
+
+ // Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not
+ // specified, a default value would be assigned based on diskSizeGB.
+ DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"`
+
+ // Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS.
+ // If not specified, a default value would be assigned based on diskSizeGB.
+ DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"`
+
+ // Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a
+ // virtual machine image.
+ // This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // The managed disk parameters.
+ ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"`
+
+ // The disk name.
+ Name *string `json:"name,omitempty"`
+
+ // Specifies whether writeAccelerator should be enabled or disabled on the disk.
+ WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"`
+}
+
+// VirtualMachineScaleSetExtension - Describes a Virtual Machine Scale Set Extension.
+type VirtualMachineScaleSetExtension struct {
+ // The name of the extension.
+ Name *string `json:"name,omitempty"`
+
+ // Describes the properties of a Virtual Machine Scale Set Extension.
+ Properties *VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetExtensionListResult - The List VM scale set extension operation response.
+type VirtualMachineScaleSetExtensionListResult struct {
+ // REQUIRED; The list of VM scale set extensions.
+ Value []*VirtualMachineScaleSetExtension `json:"value,omitempty"`
+
+ // The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale
+ // set extensions.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// VirtualMachineScaleSetExtensionProfile - Describes a virtual machine scale set extension profile.
+type VirtualMachineScaleSetExtensionProfile struct {
+ // The virtual machine scale set child extension resources.
+ Extensions []*VirtualMachineScaleSetExtension `json:"extensions,omitempty"`
+
+ // Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes
+ // (inclusive) and should be specified in ISO 8601 format. The default value is 90
+ // minutes (PT1H30M).
+ // Minimum api-version: 2020-06-01
+ ExtensionsTimeBudget *string `json:"extensionsTimeBudget,omitempty"`
+}
+
+// VirtualMachineScaleSetExtensionProperties - Describes the properties of a Virtual Machine Scale Set Extension.
+type VirtualMachineScaleSetExtensionProperties struct {
+ // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed,
+ // however, the extension will not upgrade minor versions unless redeployed, even
+ // with this property set to true.
+ AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
+
+ // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension
+ // available.
+ EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"`
+
+ // If a value is provided and is different from the previous value, the extension handler will be forced to update even if
+ // the extension configuration has not changed.
+ ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
+
+ // The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
+ ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
+
+ // The extensions protected settings that are passed by reference, and consumed from key vault
+ ProtectedSettingsFromKeyVault interface{} `json:"protectedSettingsFromKeyVault,omitempty"`
+
+ // Collection of extension names after which this extension needs to be provisioned.
+ ProvisionAfterExtensions []*string `json:"provisionAfterExtensions,omitempty"`
+
+ // The name of the extension handler publisher.
+ Publisher *string `json:"publisher,omitempty"`
+
+ // Json formatted public settings for the extension.
+ Settings interface{} `json:"settings,omitempty"`
+
+ // Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting
+ // to the VM will not be suppressed regardless of this value). The default is false.
+ SuppressFailures *bool `json:"suppressFailures,omitempty"`
+
+ // Specifies the type of the extension; an example is "CustomScriptExtension".
+ Type *string `json:"type,omitempty"`
+
+ // Specifies the version of the script handler.
+ TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetExtensionUpdate - Describes a Virtual Machine Scale Set Extension.
+type VirtualMachineScaleSetExtensionUpdate struct {
+ // Describes the properties of a Virtual Machine Scale Set Extension.
+ Properties *VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; The name of the extension.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate
+// method.
+type VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginDelete
+// method.
+type VirtualMachineScaleSetExtensionsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginUpdate
+// method.
+type VirtualMachineScaleSetExtensionsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.Get
+// method.
+type VirtualMachineScaleSetExtensionsClientGetOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineScaleSetExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.List
+// method.
+type VirtualMachineScaleSetExtensionsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetHardwareProfile - Specifies the hardware settings for the virtual machine scale set.
+type VirtualMachineScaleSetHardwareProfile struct {
+ // Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01.
+ // Please follow the instructions in VM Customization [https://aka.ms/vmcustomization] for more details.
+ VMSizeProperties *VMSizeProperties `json:"vmSizeProperties,omitempty"`
+}
+
+// VirtualMachineScaleSetIPConfiguration - Describes a virtual machine scale set network profile's IP configuration.
+type VirtualMachineScaleSetIPConfiguration struct {
+ // REQUIRED; The IP configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // Describes a virtual machine scale set network profile's IP configuration properties.
+ Properties *VirtualMachineScaleSetIPConfigurationProperties `json:"properties,omitempty"`
+}
+
+// VirtualMachineScaleSetIPConfigurationProperties - Describes a virtual machine scale set network profile's IP configuration
+// properties.
+type VirtualMachineScaleSetIPConfigurationProperties struct {
+ // Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address
+ // pools of multiple application gateways. Multiple scale sets cannot use the
+ // same application gateway.
+ ApplicationGatewayBackendAddressPools []*SubResource `json:"applicationGatewayBackendAddressPools,omitempty"`
+
+ // Specifies an array of references to application security group.
+ ApplicationSecurityGroups []*SubResource `json:"applicationSecurityGroups,omitempty"`
+
+ // Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address
+ // pools of one public and one internal load balancer. Multiple scale sets cannot
+ // use the same basic sku load balancer.
+ LoadBalancerBackendAddressPools []*SubResource `json:"loadBalancerBackendAddressPools,omitempty"`
+
+ // Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools
+ // of one public and one internal load balancer. Multiple scale sets cannot use
+ // the same basic sku load balancer.
+ LoadBalancerInboundNatPools []*SubResource `json:"loadBalancerInboundNatPools,omitempty"`
+
+ // Specifies the primary network interface in case the virtual machine has more than 1 network interface.
+ Primary *bool `json:"primary,omitempty"`
+
+ // Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default
+ // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+ PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"`
+
+ // The publicIPAddressConfiguration.
+ PublicIPAddressConfiguration *VirtualMachineScaleSetPublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"`
+
+ // Specifies the identifier of the subnet.
+ Subnet *APIEntityReference `json:"subnet,omitempty"`
+}
+
+// VirtualMachineScaleSetIPTag - Contains the IP tag associated with the public IP address.
+type VirtualMachineScaleSetIPTag struct {
+ // IP tag type. Example: FirstPartyUsage.
+ IPTagType *string `json:"ipTagType,omitempty"`
+
+ // IP tag associated with the public IP. Example: SQL, Storage etc.
+ Tag *string `json:"tag,omitempty"`
+}
+
+// VirtualMachineScaleSetIdentity - Identity for the virtual machine scale set.
+type VirtualMachineScaleSetIdentity struct {
+ // The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly
+ // created identity and a set of user assigned identities. The type 'None'
+ // will remove any identities from the virtual machine scale set.
+ Type *ResourceIdentityType `json:"type,omitempty"`
+
+ // The list of user identities associated with the virtual machine scale set. The user identity dictionary key references
+ // will be ARM resource ids in the form:
+ // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ UserAssignedIdentities map[string]*VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities,omitempty"`
+
+ // READ-ONLY; The principal id of virtual machine scale set identity. This property will only be provided for a system assigned
+ // identity.
+ PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The tenant id associated with the virtual machine scale set. This property will only be provided for a system
+ // assigned identity.
+ TenantID *string `json:"tenantId,omitempty" azure:"ro"`
+}
+
+type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct {
+ // READ-ONLY; The client id of user assigned identity.
+ ClientID *string `json:"clientId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The principal id of user assigned identity.
+ PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetInstanceView - The instance view of a virtual machine scale set.
+type VirtualMachineScaleSetInstanceView struct {
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // READ-ONLY; The extensions information.
+ Extensions []*VirtualMachineScaleSetVMExtensionsSummary `json:"extensions,omitempty" azure:"ro"`
+
+ // READ-ONLY; The orchestration services information.
+ OrchestrationServices []*OrchestrationServiceSummary `json:"orchestrationServices,omitempty" azure:"ro"`
+
+ // READ-ONLY; The instance view status summary for the virtual machine scale set.
+ VirtualMachine *VirtualMachineScaleSetInstanceViewStatusesSummary `json:"virtualMachine,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetInstanceViewStatusesSummary - Instance view statuses summary for virtual machines of a virtual machine
+// scale set.
+type VirtualMachineScaleSetInstanceViewStatusesSummary struct {
+ // READ-ONLY; The extensions information.
+ StatusesSummary []*VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetListOSUpgradeHistory - List of Virtual Machine Scale Set OS Upgrade History operation response.
+type VirtualMachineScaleSetListOSUpgradeHistory struct {
+ // REQUIRED; The list of OS upgrades performed on the virtual machine scale set.
+ Value []*UpgradeOperationHistoricalStatusInfo `json:"value,omitempty"`
+
+ // The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the next page of history of upgrades.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// VirtualMachineScaleSetListResult - The List Virtual Machine operation response.
+type VirtualMachineScaleSetListResult struct {
+ // REQUIRED; The list of virtual machine scale sets.
+ Value []*VirtualMachineScaleSet `json:"value,omitempty"`
+
+ // The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// VirtualMachineScaleSetListSKUsResult - The Virtual Machine Scale Set List Skus operation response.
+type VirtualMachineScaleSetListSKUsResult struct {
+ // REQUIRED; The list of skus available for the virtual machine scale set.
+ Value []*VirtualMachineScaleSetSKU `json:"value,omitempty"`
+
+ // The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS
+ // Skus.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// VirtualMachineScaleSetListWithLinkResult - The List Virtual Machine operation response.
+type VirtualMachineScaleSetListWithLinkResult struct {
+ // REQUIRED; The list of virtual machine scale sets.
+ Value []*VirtualMachineScaleSet `json:"value,omitempty"`
+
+ // The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual
+ // Machine Scale Sets.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// VirtualMachineScaleSetManagedDiskParameters - Describes the parameters of a ScaleSet managed disk.
+type VirtualMachineScaleSetManagedDiskParameters struct {
+ // Specifies the customer managed disk encryption set resource id for the managed disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
+
+ // Specifies the security profile for the managed disk.
+ SecurityProfile *VMDiskSecurityProfile `json:"securityProfile,omitempty"`
+
+ // Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot
+ // be used with OS Disk.
+ StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"`
+}
+
+// VirtualMachineScaleSetNetworkConfiguration - Describes a virtual machine scale set network profile's network configurations.
+type VirtualMachineScaleSetNetworkConfiguration struct {
+ // REQUIRED; The network configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // Describes a virtual machine scale set network profile's IP configuration.
+ Properties *VirtualMachineScaleSetNetworkConfigurationProperties `json:"properties,omitempty"`
+}
+
+// VirtualMachineScaleSetNetworkConfigurationDNSSettings - Describes a virtual machines scale sets network configuration's
+// DNS settings.
+type VirtualMachineScaleSetNetworkConfigurationDNSSettings struct {
+ // List of DNS servers IP addresses
+ DNSServers []*string `json:"dnsServers,omitempty"`
+}
+
+// VirtualMachineScaleSetNetworkConfigurationProperties - Describes a virtual machine scale set network profile's IP configuration.
+type VirtualMachineScaleSetNetworkConfigurationProperties struct {
+ // REQUIRED; Specifies the IP configurations of the network interface.
+ IPConfigurations []*VirtualMachineScaleSetIPConfiguration `json:"ipConfigurations,omitempty"`
+
+ // The dns settings to be applied on the network interfaces.
+ DNSSettings *VirtualMachineScaleSetNetworkConfigurationDNSSettings `json:"dnsSettings,omitempty"`
+
+ // Specify what happens to the network interface when the VM is deleted
+ DeleteOption *DeleteOptions `json:"deleteOption,omitempty"`
+
+ // Specifies whether the network interface is accelerated networking-enabled.
+ EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"`
+
+ // Specifies whether the network interface is FPGA networking-enabled.
+ EnableFpga *bool `json:"enableFpga,omitempty"`
+
+ // Whether IP forwarding enabled on this NIC.
+ EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"`
+
+ // The network security group.
+ NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"`
+
+ // Specifies the primary network interface in case the virtual machine has more than 1 network interface.
+ Primary *bool `json:"primary,omitempty"`
+}
+
+// VirtualMachineScaleSetNetworkProfile - Describes a virtual machine scale set network profile.
+type VirtualMachineScaleSetNetworkProfile struct {
+ // A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The
+ // reference will be in the form:
+ // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
+ HealthProbe *APIEntityReference `json:"healthProbe,omitempty"`
+
+ // specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations
+ // for Virtual Machine Scale Set with orchestration mode 'Flexible'
+ NetworkAPIVersion *NetworkAPIVersion `json:"networkApiVersion,omitempty"`
+
+ // The list of network configurations.
+ NetworkInterfaceConfigurations []*VirtualMachineScaleSetNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"`
+}
+
+// VirtualMachineScaleSetOSDisk - Describes a virtual machine scale set operating system disk.
+type VirtualMachineScaleSetOSDisk struct {
+ // REQUIRED; Specifies how the virtual machines in the scale set should be created.
+ // The only allowed value is: FromImage \u2013 This value is used when you are using an image to create the virtual machine.
+ // If you are using a platform image, you also use the imageReference element
+ // described above. If you are using a marketplace image, you also use the plan element previously described.
+ CreateOption *DiskCreateOptionTypes `json:"createOption,omitempty"`
+
+ // Specifies the caching requirements.
+ // Possible values are:
+ // None
+ // ReadOnly
+ // ReadWrite
+ // Default: None for Standard storage. ReadOnly for Premium storage
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with
+ // Flexible OrchestrationMode only).
+ // Possible values:
+ // Delete If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.
+ // Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted.
+ // The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the
+ // delete option for Ephemeral OS Disk.
+ DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"`
+
+ // Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
+ DiffDiskSettings *DiffDiskSettings `json:"diffDiskSettings,omitempty"`
+
+ // Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk
+ // in a virtual machine image.
+ // This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // Specifies information about the unmanaged user image to base the scale set on.
+ Image *VirtualHardDisk `json:"image,omitempty"`
+
+ // The managed disk parameters.
+ ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"`
+
+ // The disk name.
+ Name *string `json:"name,omitempty"`
+
+ // This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or
+ // a specialized VHD.
+ // Possible values are:
+ // Windows
+ // Linux
+ OSType *OperatingSystemTypes `json:"osType,omitempty"`
+
+ // Specifies the container urls that are used to store operating system disks for the scale set.
+ VhdContainers []*string `json:"vhdContainers,omitempty"`
+
+ // Specifies whether writeAccelerator should be enabled or disabled on the disk.
+ WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"`
+}
+
+// VirtualMachineScaleSetOSProfile - Describes a virtual machine scale set OS profile.
+type VirtualMachineScaleSetOSProfile struct {
+ // Specifies the password of the administrator account.
+ // Minimum-length (Windows): 8 characters
+ // Minimum-length (Linux): 6 characters
+ // Max-length (Windows): 123 characters
+ // Max-length (Linux): 72 characters
+ // Complexity requirements: 3 out of 4 conditions below need to be fulfilled
+ // Has lower characters
+ // Has upper characters
+ // Has a digit
+ // Has a special character (Regex match [\W_])
+ // Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1",
+ // "Password22", "iloveyou!"
+ // For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp]
+ // For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension
+ // [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection]
+ AdminPassword *string `json:"adminPassword,omitempty"`
+
+ // Specifies the name of the administrator account.
+ // Windows-only restriction: Cannot end in "."
+ // Disallowed values: "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123",
+ // "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest",
+ // "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
+ // Minimum-length (Linux): 1 character
+ // Max-length (Linux): 64 characters
+ // Max-length (Windows): 20 characters
+ AdminUsername *string `json:"adminUsername,omitempty"`
+
+ // Specifies whether extension operations should be allowed on the virtual machine scale set.
+ // This may only be set to False when no extensions are present on the virtual machine scale set.
+ AllowExtensionOperations *bool `json:"allowExtensionOperations,omitempty"`
+
+ // Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to
+ // 15 characters long.
+ ComputerNamePrefix *string `json:"computerNamePrefix,omitempty"`
+
+ // Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved
+ // as a file on the Virtual Machine. The maximum length of the binary array is
+ // 65535 bytes.
+ // For using cloud-init for your VM, see Using cloud-init to customize a Linux VM during creation [https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init]
+ CustomData *string `json:"customData,omitempty"`
+
+ // Specifies the Linux operating system settings on the virtual machine.
+ // For a list of supported Linux distributions, see Linux on Azure-Endorsed Distributions [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros].
+ LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"`
+
+ // Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates
+ // on a virtual machine it is recommended to use the Azure Key Vault virtual
+ // machine extension for Linux [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux] or the Azure
+ // Key Vault virtual machine extension for Windows
+ // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows].
+ Secrets []*VaultSecretGroup `json:"secrets,omitempty"`
+
+ // Specifies Windows operating system settings on the virtual machine.
+ WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`
+}
+
+// VirtualMachineScaleSetProperties - Describes the properties of a Virtual Machine Scale Set.
+type VirtualMachineScaleSetProperties struct {
+ // Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance:
+ // whether the Virtual Machines have the capability to support attaching
+ // managed data disks with UltraSSD_LRS storage account type.
+ AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"`
+
+ // Policy for automatic repairs.
+ AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"`
+
+ // When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This
+ // property will hence ensure that the extensions do not run on the extra
+ // overprovisioned VMs.
+ DoNotRunExtensionsOnOverprovisionedVMs *bool `json:"doNotRunExtensionsOnOverprovisionedVMs,omitempty"`
+
+ // Specifies information about the dedicated host group that the virtual machine scale set resides in.
+ // Minimum api-version: 2020-06-01.
+ HostGroup *SubResource `json:"hostGroup,omitempty"`
+
+ // Specifies the orchestration mode for the virtual machine scale set.
+ OrchestrationMode *OrchestrationMode `json:"orchestrationMode,omitempty"`
+
+ // Specifies whether the Virtual Machine Scale Set should be overprovisioned.
+ Overprovision *bool `json:"overprovision,omitempty"`
+
+ // Fault Domain count for each placement group.
+ PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"`
+
+ // Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.
+ // Minimum api-version: 2018-04-01.
+ ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"`
+
+ // Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.
+ ScaleInPolicy *ScaleInPolicy `json:"scaleInPolicy,omitempty"`
+
+ // When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup
+ // is true, it may be modified to false. However, if singlePlacementGroup
+ // is false, it may not be modified to true.
+ SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"`
+
+ // Specifies the Spot Restore properties for the virtual machine scale set.
+ SpotRestorePolicy *SpotRestorePolicy `json:"spotRestorePolicy,omitempty"`
+
+ // The upgrade policy.
+ UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
+
+ // The virtual machine profile.
+ VirtualMachineProfile *VirtualMachineScaleSetVMProfile `json:"virtualMachineProfile,omitempty"`
+
+ // Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. zoneBalance property
+ // can only be set if the zones property of the scale set contains more than
+ // one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set.
+ ZoneBalance *bool `json:"zoneBalance,omitempty"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the time at which the Virtual Machine Scale Set resource was created.
+ // Minimum api-version: 2022-03-01.
+ TimeCreated *time.Time `json:"timeCreated,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies the ID which uniquely identifies a Virtual Machine Scale Set.
+ UniqueID *string `json:"uniqueId,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetPublicIPAddressConfiguration - Describes a virtual machines scale set IP Configuration's PublicIPAddress
+// configuration
+type VirtualMachineScaleSetPublicIPAddressConfiguration struct {
+ // REQUIRED; The publicIP address configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration
+ Properties *VirtualMachineScaleSetPublicIPAddressConfigurationProperties `json:"properties,omitempty"`
+
+ // Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.
+ SKU *PublicIPAddressSKU `json:"sku,omitempty"`
+}
+
+// VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings - Describes a virtual machines scale sets network configuration's
+// DNS settings.
+type VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings struct {
+ // REQUIRED; The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels
+ // of the PublicIPAddress resources that will be created
+ DomainNameLabel *string `json:"domainNameLabel,omitempty"`
+}
+
+// VirtualMachineScaleSetPublicIPAddressConfigurationProperties - Describes a virtual machines scale set IP Configuration's
+// PublicIPAddress configuration
+type VirtualMachineScaleSetPublicIPAddressConfigurationProperties struct {
+ // The dns settings to be applied on the publicIP addresses .
+ DNSSettings *VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings `json:"dnsSettings,omitempty"`
+
+ // Specify what happens to the public IP when the VM is deleted
+ DeleteOption *DeleteOptions `json:"deleteOption,omitempty"`
+
+ // The list of IP tags associated with the public IP address.
+ IPTags []*VirtualMachineScaleSetIPTag `json:"ipTags,omitempty"`
+
+ // The idle timeout of the public IP address.
+ IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"`
+
+ // Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default
+ // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+ PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"`
+
+ // The PublicIPPrefix from which to allocate publicIP addresses.
+ PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"`
+}
+
+// VirtualMachineScaleSetReimageParameters - Describes a Virtual Machine Scale Set VM Reimage Parameters.
+type VirtualMachineScaleSetReimageParameters struct {
+ // The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation
+ // being performed on all virtual machines in the virtual machine scale set.
+ InstanceIDs []*string `json:"instanceIds,omitempty"`
+
+ // Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported
+ // for VM/VMSS with Ephemeral OS disk.
+ TempDisk *bool `json:"tempDisk,omitempty"`
+}
+
+// VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginCancel
+// method.
+type VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade
+// method.
+type VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade
+// method.
+type VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.GetLatest
+// method.
+type VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetSKU - Describes an available virtual machine scale set sku.
+type VirtualMachineScaleSetSKU struct {
+ // READ-ONLY; Specifies the number of virtual machines in the scale set.
+ Capacity *VirtualMachineScaleSetSKUCapacity `json:"capacity,omitempty" azure:"ro"`
+
+ // READ-ONLY; The type of resource the sku applies to.
+ ResourceType *string `json:"resourceType,omitempty" azure:"ro"`
+
+ // READ-ONLY; The Sku.
+ SKU *SKU `json:"sku,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetSKUCapacity - Describes scaling information of a sku.
+type VirtualMachineScaleSetSKUCapacity struct {
+ // READ-ONLY; The default capacity.
+ DefaultCapacity *int64 `json:"defaultCapacity,omitempty" azure:"ro"`
+
+ // READ-ONLY; The maximum capacity that can be set.
+ Maximum *int64 `json:"maximum,omitempty" azure:"ro"`
+
+ // READ-ONLY; The minimum capacity.
+ Minimum *int64 `json:"minimum,omitempty" azure:"ro"`
+
+ // READ-ONLY; The scale type applicable to the sku.
+ ScaleType *VirtualMachineScaleSetSKUScaleType `json:"scaleType,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetStorageProfile - Describes a virtual machine scale set storage profile.
+type VirtualMachineScaleSetStorageProfile struct {
+ // Specifies the parameters that are used to add data disks to the virtual machines in the scale set.
+ // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
+ DataDisks []*VirtualMachineScaleSetDataDisk `json:"dataDisks,omitempty"`
+
+ // Specifies information about the image to use. You can specify information about platform images, marketplace images, or
+ // virtual machine images. This element is required when you want to use a platform
+ // image, marketplace image, or virtual machine image, but is not used in other creation operations.
+ ImageReference *ImageReference `json:"imageReference,omitempty"`
+
+ // Specifies information about the operating system disk used by the virtual machines in the scale set.
+ // For more information about disks, see About disks and VHDs for Azure virtual machines [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
+ OSDisk *VirtualMachineScaleSetOSDisk `json:"osDisk,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdate - Describes a Virtual Machine Scale Set.
+type VirtualMachineScaleSetUpdate struct {
+ // The identity of the virtual machine scale set, if configured.
+ Identity *VirtualMachineScaleSetIdentity `json:"identity,omitempty"`
+
+ // The purchase plan when deploying a virtual machine scale set from VM Marketplace images.
+ Plan *Plan `json:"plan,omitempty"`
+
+ // Describes the properties of a Virtual Machine Scale Set.
+ Properties *VirtualMachineScaleSetUpdateProperties `json:"properties,omitempty"`
+
+ // The virtual machine scale set sku.
+ SKU *SKU `json:"sku,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateIPConfiguration - Describes a virtual machine scale set network profile's IP configuration.
+// NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual
+// network
+type VirtualMachineScaleSetUpdateIPConfiguration struct {
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // The IP configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Describes a virtual machine scale set network profile's IP configuration properties.
+ Properties *VirtualMachineScaleSetUpdateIPConfigurationProperties `json:"properties,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateIPConfigurationProperties - Describes a virtual machine scale set network profile's IP configuration
+// properties.
+type VirtualMachineScaleSetUpdateIPConfigurationProperties struct {
+ // The application gateway backend address pools.
+ ApplicationGatewayBackendAddressPools []*SubResource `json:"applicationGatewayBackendAddressPools,omitempty"`
+
+ // Specifies an array of references to application security group.
+ ApplicationSecurityGroups []*SubResource `json:"applicationSecurityGroups,omitempty"`
+
+ // The load balancer backend address pools.
+ LoadBalancerBackendAddressPools []*SubResource `json:"loadBalancerBackendAddressPools,omitempty"`
+
+ // The load balancer inbound nat pools.
+ LoadBalancerInboundNatPools []*SubResource `json:"loadBalancerInboundNatPools,omitempty"`
+
+ // Specifies the primary IP Configuration in case the network interface has more than one IP Configuration.
+ Primary *bool `json:"primary,omitempty"`
+
+ // Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default
+ // is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+ PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"`
+
+ // The publicIPAddressConfiguration.
+ PublicIPAddressConfiguration *VirtualMachineScaleSetUpdatePublicIPAddressConfiguration `json:"publicIPAddressConfiguration,omitempty"`
+
+ // The subnet.
+ Subnet *APIEntityReference `json:"subnet,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateNetworkConfiguration - Describes a virtual machine scale set network profile's network configurations.
+type VirtualMachineScaleSetUpdateNetworkConfiguration struct {
+ // Resource Id
+ ID *string `json:"id,omitempty"`
+
+ // The network configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Describes a virtual machine scale set updatable network profile's IP configuration.Use this object for updating network
+ // profile's IP Configuration.
+ Properties *VirtualMachineScaleSetUpdateNetworkConfigurationProperties `json:"properties,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateNetworkConfigurationProperties - Describes a virtual machine scale set updatable network profile's
+// IP configuration.Use this object for updating network profile's IP Configuration.
+type VirtualMachineScaleSetUpdateNetworkConfigurationProperties struct {
+ // The dns settings to be applied on the network interfaces.
+ DNSSettings *VirtualMachineScaleSetNetworkConfigurationDNSSettings `json:"dnsSettings,omitempty"`
+
+ // Specify what happens to the network interface when the VM is deleted
+ DeleteOption *DeleteOptions `json:"deleteOption,omitempty"`
+
+ // Specifies whether the network interface is accelerated networking-enabled.
+ EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"`
+
+ // Specifies whether the network interface is FPGA networking-enabled.
+ EnableFpga *bool `json:"enableFpga,omitempty"`
+
+ // Whether IP forwarding enabled on this NIC.
+ EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"`
+
+ // The virtual machine scale set IP Configuration.
+ IPConfigurations []*VirtualMachineScaleSetUpdateIPConfiguration `json:"ipConfigurations,omitempty"`
+
+ // The network security group.
+ NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"`
+
+ // Whether this is a primary NIC on a virtual machine.
+ Primary *bool `json:"primary,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateNetworkProfile - Describes a virtual machine scale set network profile.
+type VirtualMachineScaleSetUpdateNetworkProfile struct {
+ // A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The
+ // reference will be in the form:
+ // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
+ HealthProbe *APIEntityReference `json:"healthProbe,omitempty"`
+
+ // specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations
+ // for Virtual Machine Scale Set with orchestration mode 'Flexible'
+ NetworkAPIVersion *NetworkAPIVersion `json:"networkApiVersion,omitempty"`
+
+ // The list of network configurations.
+ NetworkInterfaceConfigurations []*VirtualMachineScaleSetUpdateNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateOSDisk - Describes virtual machine scale set operating system disk Update Object. This should
+// be used for Updating VMSS OS Disk.
+type VirtualMachineScaleSetUpdateOSDisk struct {
+ // The caching type.
+ Caching *CachingTypes `json:"caching,omitempty"`
+
+ // Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with
+ // Flexible OrchestrationMode only).
+ // Possible values:
+ // Delete If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.
+ // Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted.
+ // The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the
+ // delete option for Ephemeral OS Disk.
+ DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"`
+
+ // Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk
+ // in a virtual machine image.
+ // This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+
+ // The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine.
+ // If SourceImage is provided, the destination VirtualHardDisk should not
+ // exist.
+ Image *VirtualHardDisk `json:"image,omitempty"`
+
+ // The managed disk parameters.
+ ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"`
+
+ // The list of virtual hard disk container uris.
+ VhdContainers []*string `json:"vhdContainers,omitempty"`
+
+ // Specifies whether writeAccelerator should be enabled or disabled on the disk.
+ WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateOSProfile - Describes a virtual machine scale set OS profile.
+type VirtualMachineScaleSetUpdateOSProfile struct {
+ // A base-64 encoded string of custom data.
+ CustomData *string `json:"customData,omitempty"`
+
+ // The Linux Configuration of the OS profile.
+ LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"`
+
+ // The List of certificates for addition to the VM.
+ Secrets []*VaultSecretGroup `json:"secrets,omitempty"`
+
+ // The Windows Configuration of the OS profile.
+ WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateProperties - Describes the properties of a Virtual Machine Scale Set.
+type VirtualMachineScaleSetUpdateProperties struct {
+ // Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance:
+ // whether the Virtual Machines have the capability to support attaching
+ // managed data disks with UltraSSD_LRS storage account type.
+ AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"`
+
+ // Policy for automatic repairs.
+ AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"`
+
+ // When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This
+ // property will hence ensure that the extensions do not run on the extra
+ // overprovisioned VMs.
+ DoNotRunExtensionsOnOverprovisionedVMs *bool `json:"doNotRunExtensionsOnOverprovisionedVMs,omitempty"`
+
+ // Specifies whether the Virtual Machine Scale Set should be overprovisioned.
+ Overprovision *bool `json:"overprovision,omitempty"`
+
+ // Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.
+ // Minimum api-version: 2018-04-01.
+ ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"`
+
+ // Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.
+ ScaleInPolicy *ScaleInPolicy `json:"scaleInPolicy,omitempty"`
+
+ // When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup
+ // is true, it may be modified to false. However, if singlePlacementGroup
+ // is false, it may not be modified to true.
+ SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"`
+
+ // The upgrade policy.
+ UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
+
+ // The virtual machine profile.
+ VirtualMachineProfile *VirtualMachineScaleSetUpdateVMProfile `json:"virtualMachineProfile,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdatePublicIPAddressConfiguration - Describes a virtual machines scale set IP Configuration's PublicIPAddress
+// configuration
+type VirtualMachineScaleSetUpdatePublicIPAddressConfiguration struct {
+ // The publicIP address configuration name.
+ Name *string `json:"name,omitempty"`
+
+ // Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration
+ Properties *VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties `json:"properties,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties - Describes a virtual machines scale set IP Configuration's
+// PublicIPAddress configuration
+type VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties struct {
+ // The dns settings to be applied on the publicIP addresses .
+ DNSSettings *VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings `json:"dnsSettings,omitempty"`
+
+ // Specify what happens to the public IP when the VM is deleted
+ DeleteOption *DeleteOptions `json:"deleteOption,omitempty"`
+
+ // The idle timeout of the public IP address.
+ IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"`
+
+ // The PublicIPPrefix from which to allocate publicIP addresses.
+ PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateStorageProfile - Describes a virtual machine scale set storage profile.
+type VirtualMachineScaleSetUpdateStorageProfile struct {
+ // The data disks.
+ DataDisks []*VirtualMachineScaleSetDataDisk `json:"dataDisks,omitempty"`
+
+ // The image reference.
+ ImageReference *ImageReference `json:"imageReference,omitempty"`
+
+ // The OS disk.
+ OSDisk *VirtualMachineScaleSetUpdateOSDisk `json:"osDisk,omitempty"`
+}
+
+// VirtualMachineScaleSetUpdateVMProfile - Describes a virtual machine scale set virtual machine profile.
+type VirtualMachineScaleSetUpdateVMProfile struct {
+ // Specifies the billing related details of a Azure Spot VMSS.
+ // Minimum api-version: 2019-03-01.
+ BillingProfile *BillingProfile `json:"billingProfile,omitempty"`
+
+ // The virtual machine scale set diagnostics profile.
+ DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
+
+ // The virtual machine scale set extension profile.
+ ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"`
+
+ // The license type, which is for bring your own license scenario.
+ LicenseType *string `json:"licenseType,omitempty"`
+
+ // The virtual machine scale set network profile.
+ NetworkProfile *VirtualMachineScaleSetUpdateNetworkProfile `json:"networkProfile,omitempty"`
+
+ // The virtual machine scale set OS profile.
+ OSProfile *VirtualMachineScaleSetUpdateOSProfile `json:"osProfile,omitempty"`
+
+ // Specifies Scheduled Event related configurations.
+ ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"`
+
+ // The virtual machine scale set Security profile
+ SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
+
+ // The virtual machine scale set storage profile.
+ StorageProfile *VirtualMachineScaleSetUpdateStorageProfile `json:"storageProfile,omitempty"`
+
+ // UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.
+ // Minimum api-version: 2021-03-01
+ UserData *string `json:"userData,omitempty"`
+}
+
+// VirtualMachineScaleSetVM - Describes a virtual machine scale set virtual machine.
+type VirtualMachineScaleSetVM struct {
+ // REQUIRED; Resource location
+ Location *string `json:"location,omitempty"`
+
+ // The identity of the virtual machine, if configured.
+ Identity *VirtualMachineIdentity `json:"identity,omitempty"`
+
+ // Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace
+ // images. Before you can use a marketplace image from an API, you must
+ // enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click
+ // Want to deploy programmatically, Get Started ->. Enter any required
+ // information and then click Save.
+ Plan *Plan `json:"plan,omitempty"`
+
+ // Describes the properties of a virtual machine scale set virtual machine.
+ Properties *VirtualMachineScaleSetVMProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; The virtual machine instance ID.
+ InstanceID *string `json:"instanceId,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource name
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; The virtual machine child extension resources.
+ Resources []*VirtualMachineExtension `json:"resources,omitempty" azure:"ro"`
+
+ // READ-ONLY; The virtual machine SKU.
+ SKU *SKU `json:"sku,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+
+ // READ-ONLY; The virtual machine zones.
+ Zones []*string `json:"zones,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetVMExtension - Describes a VMSS VM Extension.
+type VirtualMachineScaleSetVMExtension struct {
+ // Describes the properties of a Virtual Machine Extension.
+ Properties *VirtualMachineExtensionProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; The name of the extension.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetVMExtensionUpdate - Describes a VMSS VM Extension.
+type VirtualMachineScaleSetVMExtensionUpdate struct {
+ // Describes the properties of a Virtual Machine Extension.
+ Properties *VirtualMachineExtensionUpdateProperties `json:"properties,omitempty"`
+
+ // READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty" azure:"ro"`
+
+ // READ-ONLY; The name of the extension.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; Resource type
+ Type *string `json:"type,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate
+// method.
+type VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginDelete
+// method.
+type VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginUpdate
+// method.
+type VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.Get
+// method.
+type VirtualMachineScaleSetVMExtensionsClientGetOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineScaleSetVMExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.List
+// method.
+type VirtualMachineScaleSetVMExtensionsClientListOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineScaleSetVMExtensionsListResult - The List VMSS VM Extension operation response
+type VirtualMachineScaleSetVMExtensionsListResult struct {
+ // The list of VMSS VM extensions
+ Value []*VirtualMachineScaleSetVMExtension `json:"value,omitempty"`
+}
+
+// VirtualMachineScaleSetVMExtensionsSummary - Extensions summary for virtual machines of a virtual machine scale set.
+type VirtualMachineScaleSetVMExtensionsSummary struct {
+ // READ-ONLY; The extension name.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; The extensions information.
+ StatusesSummary []*VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetVMInstanceIDs - Specifies a list of virtual machine instance IDs from the VM scale set.
+type VirtualMachineScaleSetVMInstanceIDs struct {
+ // The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation
+ // being performed on all virtual machines in the virtual machine scale set.
+ InstanceIDs []*string `json:"instanceIds,omitempty"`
+}
+
+// VirtualMachineScaleSetVMInstanceRequiredIDs - Specifies a list of virtual machine instance IDs from the VM scale set.
+type VirtualMachineScaleSetVMInstanceRequiredIDs struct {
+ // REQUIRED; The virtual machine scale set instance ids.
+ InstanceIDs []*string `json:"instanceIds,omitempty"`
+}
+
+// VirtualMachineScaleSetVMInstanceView - The instance view of a virtual machine scale set VM.
+type VirtualMachineScaleSetVMInstanceView struct {
+ // Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
+ // You can easily view the output of your console log.
+ // Azure also enables you to see a screenshot of the VM from the hypervisor.
+ BootDiagnostics *BootDiagnosticsInstanceView `json:"bootDiagnostics,omitempty"`
+
+ // The disks information.
+ Disks []*DiskInstanceView `json:"disks,omitempty"`
+
+ // The extensions information.
+ Extensions []*VirtualMachineExtensionInstanceView `json:"extensions,omitempty"`
+
+ // The Maintenance Operation status on the virtual machine.
+ MaintenanceRedeployStatus *MaintenanceRedeployStatus `json:"maintenanceRedeployStatus,omitempty"`
+
+ // The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId.
+ PlacementGroupID *string `json:"placementGroupId,omitempty"`
+
+ // The Fault Domain count.
+ PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"`
+
+ // The Update Domain count.
+ PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty"`
+
+ // The Remote desktop certificate thumbprint.
+ RdpThumbPrint *string `json:"rdpThumbPrint,omitempty"`
+
+ // The resource status information.
+ Statuses []*InstanceViewStatus `json:"statuses,omitempty"`
+
+ // The VM Agent running on the virtual machine.
+ VMAgent *VirtualMachineAgentInstanceView `json:"vmAgent,omitempty"`
+
+ // READ-ONLY; Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when
+ // the virtual machine is associated with a dedicated host group that has automatic
+ // placement enabled.
+ // Minimum api-version: 2020-06-01.
+ AssignedHost *string `json:"assignedHost,omitempty" azure:"ro"`
+
+ // READ-ONLY; The health status for the VM.
+ VMHealth *VirtualMachineHealthStatus `json:"vmHealth,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetVMListResult - The List Virtual Machine Scale Set VMs operation response.
+type VirtualMachineScaleSetVMListResult struct {
+ // REQUIRED; The list of virtual machine scale sets VMs.
+ Value []*VirtualMachineScaleSetVM `json:"value,omitempty"`
+
+ // The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS
+ // VMs
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// VirtualMachineScaleSetVMNetworkProfileConfiguration - Describes a virtual machine scale set VM network profile.
+type VirtualMachineScaleSetVMNetworkProfileConfiguration struct {
+ // The list of network configurations.
+ NetworkInterfaceConfigurations []*VirtualMachineScaleSetNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"`
+}
+
+// VirtualMachineScaleSetVMProfile - Describes a virtual machine scale set virtual machine profile.
+type VirtualMachineScaleSetVMProfile struct {
+ // Specifies the gallery applications that should be made available to the VM/VMSS
+ ApplicationProfile *ApplicationProfile `json:"applicationProfile,omitempty"`
+
+ // Specifies the billing related details of a Azure Spot VMSS.
+ // Minimum api-version: 2019-03-01.
+ BillingProfile *BillingProfile `json:"billingProfile,omitempty"`
+
+ // Specifies the capacity reservation related details of a scale set.
+ // Minimum api-version: 2021-04-01.
+ CapacityReservation *CapacityReservationProfile `json:"capacityReservation,omitempty"`
+
+ // Specifies the boot diagnostic settings state.
+ // Minimum api-version: 2015-06-15.
+ DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
+
+ // Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.
+ // For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.
+ // For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview.
+ EvictionPolicy *VirtualMachineEvictionPolicyTypes `json:"evictionPolicy,omitempty"`
+
+ // Specifies a collection of settings for extensions installed on virtual machines in the scale set.
+ ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"`
+
+ // Specifies the hardware profile related details of a scale set.
+ // Minimum api-version: 2022-03-01.
+ HardwareProfile *VirtualMachineScaleSetHardwareProfile `json:"hardwareProfile,omitempty"`
+
+ // Specifies that the image or disk that is being used was licensed on-premises.
+ // Possible values for Windows Server operating system are:
+ // WindowsClient
+ // WindowsServer
+ // Possible values for Linux Server operating system are:
+ // RHELBYOS (for RHEL)
+ // SLESBYOS (for SUSE)
+ // For more information, see Azure Hybrid Use Benefit for Windows Server [https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing]
+ // Azure Hybrid Use Benefit for Linux Server [https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux]
+ // Minimum api-version: 2015-06-15
+ LicenseType *string `json:"licenseType,omitempty"`
+
+ // Specifies properties of the network interfaces of the virtual machines in the scale set.
+ NetworkProfile *VirtualMachineScaleSetNetworkProfile `json:"networkProfile,omitempty"`
+
+ // Specifies the operating system settings for the virtual machines in the scale set.
+ OSProfile *VirtualMachineScaleSetOSProfile `json:"osProfile,omitempty"`
+
+ // Specifies the priority for the virtual machines in the scale set.
+ // Minimum api-version: 2017-10-30-preview
+ Priority *VirtualMachinePriorityTypes `json:"priority,omitempty"`
+
+ // Specifies Scheduled Event related configurations.
+ ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"`
+
+ // Specifies the Security related profile settings for the virtual machines in the scale set.
+ SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
+
+ // Specifies the storage settings for the virtual machine disks.
+ StorageProfile *VirtualMachineScaleSetStorageProfile `json:"storageProfile,omitempty"`
+
+ // UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets
+ // in here.
+ // Minimum api-version: 2021-03-01
+ UserData *string `json:"userData,omitempty"`
+}
+
+// VirtualMachineScaleSetVMProperties - Describes the properties of a virtual machine scale set virtual machine.
+type VirtualMachineScaleSetVMProperties struct {
+ // Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the
+ // virtual machine has the capability to support attaching managed data disks with
+ // UltraSSD_LRS storage account type.
+ AdditionalCapabilities *AdditionalCapabilities `json:"additionalCapabilities,omitempty"`
+
+ // Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified
+ // in the same availability set are allocated to different nodes to maximize
+ // availability. For more information about availability sets, see Availability sets overview [https://docs.microsoft.com/azure/virtual-machines/availability-set-overview].
+ // For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure [https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates]
+ // Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability
+ // set.
+ AvailabilitySet *SubResource `json:"availabilitySet,omitempty"`
+
+ // Specifies the boot diagnostic settings state.
+ // Minimum api-version: 2015-06-15.
+ DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
+
+ // Specifies the hardware settings for the virtual machine.
+ HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"`
+
+ // Specifies that the image or disk that is being used was licensed on-premises.
+ // Possible values for Windows Server operating system are:
+ // WindowsClient
+ // WindowsServer
+ // Possible values for Linux Server operating system are:
+ // RHELBYOS (for RHEL)
+ // SLESBYOS (for SUSE)
+ // For more information, see Azure Hybrid Use Benefit for Windows Server [https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing]
+ // Azure Hybrid Use Benefit for Linux Server [https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux]
+ // Minimum api-version: 2015-06-15
+ LicenseType *string `json:"licenseType,omitempty"`
+
+ // Specifies the network interfaces of the virtual machine.
+ NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
+
+ // Specifies the network profile configuration of the virtual machine.
+ NetworkProfileConfiguration *VirtualMachineScaleSetVMNetworkProfileConfiguration `json:"networkProfileConfiguration,omitempty"`
+
+ // Specifies the operating system settings for the virtual machine.
+ OSProfile *OSProfile `json:"osProfile,omitempty"`
+
+ // Specifies the protection policy of the virtual machine.
+ ProtectionPolicy *VirtualMachineScaleSetVMProtectionPolicy `json:"protectionPolicy,omitempty"`
+
+ // Specifies the Security related profile settings for the virtual machine.
+ SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
+
+ // Specifies the storage settings for the virtual machine disks.
+ StorageProfile *StorageProfile `json:"storageProfile,omitempty"`
+
+ // UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.
+ // Minimum api-version: 2021-03-01
+ UserData *string `json:"userData,omitempty"`
+
+ // READ-ONLY; The virtual machine instance view.
+ InstanceView *VirtualMachineScaleSetVMInstanceView `json:"instanceView,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies whether the latest model has been applied to the virtual machine.
+ LatestModelApplied *bool `json:"latestModelApplied,omitempty" azure:"ro"`
+
+ // READ-ONLY; Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or
+ // the customized model for the virtual machine.
+ ModelDefinitionApplied *string `json:"modelDefinitionApplied,omitempty" azure:"ro"`
+
+ // READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
+
+ // READ-ONLY; Azure VM unique ID.
+ VMID *string `json:"vmId,omitempty" azure:"ro"`
+}
+
+// VirtualMachineScaleSetVMProtectionPolicy - The protection policy of a virtual machine scale set VM.
+type VirtualMachineScaleSetVMProtectionPolicy struct {
+ // Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.
+ ProtectFromScaleIn *bool `json:"protectFromScaleIn,omitempty"`
+
+ // Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied
+ // to the virtual machine scale set VM.
+ ProtectFromScaleSetActions *bool `json:"protectFromScaleSetActions,omitempty"`
+}
+
+// VirtualMachineScaleSetVMReimageParameters - Describes a Virtual Machine Scale Set VM Reimage Parameters.
+type VirtualMachineScaleSetVMReimageParameters struct {
+ // Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported
+ // for VM/VMSS with Ephemeral OS disk.
+ TempDisk *bool `json:"tempDisk,omitempty"`
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate
+// method.
+type VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginDelete
+// method.
+type VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate
+// method.
+type VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.Get
+// method.
+type VirtualMachineScaleSetVMRunCommandsClientGetOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.List
+// method.
+type VirtualMachineScaleSetVMRunCommandsClientListOptions struct {
+ // The expand expression to apply on the operation.
+ Expand *string
+}
+
+// VirtualMachineScaleSetVMsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDeallocate
+// method.
+type VirtualMachineScaleSetVMsClientBeginDeallocateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDelete
+// method.
+type VirtualMachineScaleSetVMsClientBeginDeleteOptions struct {
+ // Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview)
+ ForceDeletion *bool
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPerformMaintenance
+// method.
+type VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPowerOff
+// method.
+type VirtualMachineScaleSetVMsClientBeginPowerOffOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false
+ // indicates otherwise. Default value for this flag is false if not specified
+ SkipShutdown *bool
+}
+
+// VirtualMachineScaleSetVMsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRedeploy
+// method.
+type VirtualMachineScaleSetVMsClientBeginRedeployOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimageAll
+// method.
+type VirtualMachineScaleSetVMsClientBeginReimageAllOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimage
+// method.
+type VirtualMachineScaleSetVMsClientBeginReimageOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // Parameters for the Reimaging Virtual machine in ScaleSet.
+ VMScaleSetVMReimageInput *VirtualMachineScaleSetVMReimageParameters
+}
+
+// VirtualMachineScaleSetVMsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRestart
+// method.
+type VirtualMachineScaleSetVMsClientBeginRestartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientBeginRunCommandOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRunCommand
+// method.
+type VirtualMachineScaleSetVMsClientBeginRunCommandOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginStart
+// method.
+type VirtualMachineScaleSetVMsClientBeginStartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginUpdate
+// method.
+type VirtualMachineScaleSetVMsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetVMsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.GetInstanceView
+// method.
+type VirtualMachineScaleSetVMsClientGetInstanceViewOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetVMsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.Get
+// method.
+type VirtualMachineScaleSetVMsClientGetOptions struct {
+ // The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine.
+ // 'UserData' will retrieve the UserData of the virtual machine.
+ Expand *InstanceViewTypes
+}
+
+// VirtualMachineScaleSetVMsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.List
+// method.
+type VirtualMachineScaleSetVMsClientListOptions struct {
+ // The expand expression to apply to the operation. Allowed values are 'instanceView'.
+ Expand *string
+ // The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true',
+ // 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq
+ // false'.
+ Filter *string
+ // The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'.
+ Select *string
+}
+
+// VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData
+// method.
+type VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions struct {
+ // Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes.
+ // NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes.
+ SasURIExpirationTimeInMinutes *int32
+}
+
+// VirtualMachineScaleSetVMsClientSimulateEvictionOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.SimulateEviction
+// method.
+type VirtualMachineScaleSetVMsClientSimulateEvictionOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginCreateOrUpdate
+// method.
+type VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeallocate
+// method.
+type VirtualMachineScaleSetsClientBeginDeallocateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // A list of virtual machine instance IDs from the VM scale set.
+ VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs
+}
+
+// VirtualMachineScaleSetsClientBeginDeleteInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeleteInstances
+// method.
+type VirtualMachineScaleSetsClientBeginDeleteInstancesOptions struct {
+ // Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview)
+ ForceDeletion *bool
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDelete
+// method.
+type VirtualMachineScaleSetsClientBeginDeleteOptions struct {
+ // Optional parameter to force delete a VM scale set. (Feature in Preview)
+ ForceDeletion *bool
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPerformMaintenance
+// method.
+type VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // A list of virtual machine instance IDs from the VM scale set.
+ VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs
+}
+
+// VirtualMachineScaleSetsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPowerOff
+// method.
+type VirtualMachineScaleSetsClientBeginPowerOffOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false
+ // indicates otherwise. Default value for this flag is false if not specified
+ SkipShutdown *bool
+ // A list of virtual machine instance IDs from the VM scale set.
+ VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs
+}
+
+// VirtualMachineScaleSetsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRedeploy
+// method.
+type VirtualMachineScaleSetsClientBeginRedeployOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // A list of virtual machine instance IDs from the VM scale set.
+ VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs
+}
+
+// VirtualMachineScaleSetsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimageAll
+// method.
+type VirtualMachineScaleSetsClientBeginReimageAllOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // A list of virtual machine instance IDs from the VM scale set.
+ VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs
+}
+
+// VirtualMachineScaleSetsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimage
+// method.
+type VirtualMachineScaleSetsClientBeginReimageOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // Parameters for Reimaging VM ScaleSet.
+ VMScaleSetReimageInput *VirtualMachineScaleSetReimageParameters
+}
+
+// VirtualMachineScaleSetsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRestart
+// method.
+type VirtualMachineScaleSetsClientBeginRestartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // A list of virtual machine instance IDs from the VM scale set.
+ VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs
+}
+
+// VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState
+// method.
+type VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginStart
+// method.
+type VirtualMachineScaleSetsClientBeginStartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // A list of virtual machine instance IDs from the VM scale set.
+ VMInstanceIDs *VirtualMachineScaleSetVMInstanceIDs
+}
+
+// VirtualMachineScaleSetsClientBeginUpdateInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdateInstances
+// method.
+type VirtualMachineScaleSetsClientBeginUpdateInstancesOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdate
+// method.
+type VirtualMachineScaleSetsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup
+// method.
+type VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions contains the optional parameters
+// for the VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk method.
+type VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions struct {
+ // The placement group id for which the manual recovery walk is requested.
+ PlacementGroupID *string
+ // The zone in which the manual recovery walk is requested for cross zone virtual machine scale set
+ Zone *string
+}
+
+// VirtualMachineScaleSetsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetInstanceView
+// method.
+type VirtualMachineScaleSetsClientGetInstanceViewOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetOSUpgradeHistory
+// method.
+type VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetsClient.Get method.
+type VirtualMachineScaleSetsClientGetOptions struct {
+ // The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was
+ // provided by the user during the VM scale set Create/Update operation
+ Expand *ExpandTypesForGetVMScaleSets
+}
+
+// VirtualMachineScaleSetsClientListAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListAll
+// method.
+type VirtualMachineScaleSetsClientListAllOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetsClientListByLocationOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListByLocation
+// method.
+type VirtualMachineScaleSetsClientListByLocationOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetsClientListOptions contains the optional parameters for the VirtualMachineScaleSetsClient.List method.
+type VirtualMachineScaleSetsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineScaleSetsClientListSKUsOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListSKUs
+// method.
+type VirtualMachineScaleSetsClientListSKUsOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineSize - Describes the properties of a VM size.
+type VirtualMachineSize struct {
+ // The maximum number of data disks that can be attached to the virtual machine size.
+ MaxDataDiskCount *int32 `json:"maxDataDiskCount,omitempty"`
+
+ // The amount of memory, in MB, supported by the virtual machine size.
+ MemoryInMB *int32 `json:"memoryInMB,omitempty"`
+
+ // The name of the virtual machine size.
+ Name *string `json:"name,omitempty"`
+
+ // The number of cores supported by the virtual machine size. For Constrained vCPU capable VM sizes, this number represents
+ // the total vCPUs of quota that the VM uses. For accurate vCPU count, please
+ // refer to https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or https://docs.microsoft.com/rest/api/compute/resourceskus/list
+ NumberOfCores *int32 `json:"numberOfCores,omitempty"`
+
+ // The OS disk size, in MB, allowed by the virtual machine size.
+ OSDiskSizeInMB *int32 `json:"osDiskSizeInMB,omitempty"`
+
+ // The resource disk size, in MB, allowed by the virtual machine size.
+ ResourceDiskSizeInMB *int32 `json:"resourceDiskSizeInMB,omitempty"`
+}
+
+// VirtualMachineSizeListResult - The List Virtual Machine operation response.
+type VirtualMachineSizeListResult struct {
+ // The list of virtual machine sizes.
+ Value []*VirtualMachineSize `json:"value,omitempty"`
+}
+
+// VirtualMachineSizesClientListOptions contains the optional parameters for the VirtualMachineSizesClient.List method.
+type VirtualMachineSizesClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachineSoftwarePatchProperties - Describes the properties of a Virtual Machine software patch.
+type VirtualMachineSoftwarePatchProperties struct {
+ // READ-ONLY; The activity ID of the operation that produced this result. It is used to correlate across CRP and extension
+ // logs.
+ ActivityID *string `json:"activityId,omitempty" azure:"ro"`
+
+ // READ-ONLY; Describes the availability of a given patch.
+ AssessmentState *PatchAssessmentState `json:"assessmentState,omitempty" azure:"ro"`
+
+ // READ-ONLY; The classification(s) of the patch as provided by the patch publisher.
+ Classifications []*string `json:"classifications,omitempty" azure:"ro"`
+
+ // READ-ONLY; The KBID of the patch. Only applies to Windows patches.
+ KbID *string `json:"kbId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The UTC timestamp of the last update to this patch record.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty" azure:"ro"`
+
+ // READ-ONLY; The friendly name of the patch.
+ Name *string `json:"name,omitempty" azure:"ro"`
+
+ // READ-ONLY; A unique identifier for the patch.
+ PatchID *string `json:"patchId,omitempty" azure:"ro"`
+
+ // READ-ONLY; The UTC timestamp when the repository published this patch.
+ PublishedDate *time.Time `json:"publishedDate,omitempty" azure:"ro"`
+
+ // READ-ONLY; Describes the reboot requirements of the patch.
+ RebootBehavior *VMGuestPatchRebootBehavior `json:"rebootBehavior,omitempty" azure:"ro"`
+
+ // READ-ONLY; The version number of the patch. This property applies only to Linux patches.
+ Version *string `json:"version,omitempty" azure:"ro"`
+}
+
+// VirtualMachineStatusCodeCount - The status code and count of the virtual machine scale set instance view status summary.
+type VirtualMachineStatusCodeCount struct {
+ // READ-ONLY; The instance view status code.
+ Code *string `json:"code,omitempty" azure:"ro"`
+
+ // READ-ONLY; The number of instances having a particular status code.
+ Count *int32 `json:"count,omitempty" azure:"ro"`
+}
+
+// VirtualMachineUpdate - Describes a Virtual Machine Update.
+type VirtualMachineUpdate struct {
+ // The identity of the virtual machine, if configured.
+ Identity *VirtualMachineIdentity `json:"identity,omitempty"`
+
+ // Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace
+ // images. Before you can use a marketplace image from an API, you must
+ // enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click
+ // Want to deploy programmatically, Get Started ->. Enter any required
+ // information and then click Save.
+ Plan *Plan `json:"plan,omitempty"`
+
+ // Describes the properties of a Virtual Machine.
+ Properties *VirtualMachineProperties `json:"properties,omitempty"`
+
+ // Resource tags
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // The virtual machine zones.
+ Zones []*string `json:"zones,omitempty"`
+}
+
+// VirtualMachinesClientBeginAssessPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginAssessPatches
+// method.
+type VirtualMachinesClientBeginAssessPatchesOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginCaptureOptions contains the optional parameters for the VirtualMachinesClient.BeginCapture method.
+type VirtualMachinesClientBeginCaptureOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginConvertToManagedDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginConvertToManagedDisks
+// method.
+type VirtualMachinesClientBeginConvertToManagedDisksOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginCreateOrUpdate
+// method.
+type VirtualMachinesClientBeginCreateOrUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginDeallocateOptions contains the optional parameters for the VirtualMachinesClient.BeginDeallocate
+// method.
+type VirtualMachinesClientBeginDeallocateOptions struct {
+ // Optional parameter to hibernate a virtual machine. (Feature in Preview)
+ Hibernate *bool
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete method.
+type VirtualMachinesClientBeginDeleteOptions struct {
+ // Optional parameter to force delete virtual machines.
+ ForceDeletion *bool
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginInstallPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginInstallPatches
+// method.
+type VirtualMachinesClientBeginInstallPatchesOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachinesClient.BeginPerformMaintenance
+// method.
+type VirtualMachinesClientBeginPerformMaintenanceOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff
+// method.
+type VirtualMachinesClientBeginPowerOffOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+ // The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false
+ // indicates otherwise. Default value for this flag is false if not specified
+ SkipShutdown *bool
+}
+
+// VirtualMachinesClientBeginReapplyOptions contains the optional parameters for the VirtualMachinesClient.BeginReapply method.
+type VirtualMachinesClientBeginReapplyOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginRedeployOptions contains the optional parameters for the VirtualMachinesClient.BeginRedeploy
+// method.
+type VirtualMachinesClientBeginRedeployOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage method.
+type VirtualMachinesClientBeginReimageOptions struct {
+ // Parameters supplied to the Reimage Virtual Machine operation.
+ Parameters *VirtualMachineReimageParameters
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart method.
+type VirtualMachinesClientBeginRestartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginRunCommandOptions contains the optional parameters for the VirtualMachinesClient.BeginRunCommand
+// method.
+type VirtualMachinesClientBeginRunCommandOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart method.
+type VirtualMachinesClientBeginStartOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientBeginUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginUpdate method.
+type VirtualMachinesClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// VirtualMachinesClientGeneralizeOptions contains the optional parameters for the VirtualMachinesClient.Generalize method.
+type VirtualMachinesClientGeneralizeOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method.
+type VirtualMachinesClientGetOptions struct {
+ // The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual
+ // machine that is managed by the platform and can change outside of control
+ // plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user
+ // during the VM Create/Update operation.
+ Expand *InstanceViewTypes
+}
+
+// VirtualMachinesClientInstanceViewOptions contains the optional parameters for the VirtualMachinesClient.InstanceView method.
+type VirtualMachinesClientInstanceViewOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachinesClientListAllOptions contains the optional parameters for the VirtualMachinesClient.ListAll method.
+type VirtualMachinesClientListAllOptions struct {
+ // The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq
+ // /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'
+ Filter *string
+ // statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.
+ StatusOnly *string
+}
+
+// VirtualMachinesClientListAvailableSizesOptions contains the optional parameters for the VirtualMachinesClient.ListAvailableSizes
+// method.
+type VirtualMachinesClientListAvailableSizesOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachinesClientListByLocationOptions contains the optional parameters for the VirtualMachinesClient.ListByLocation
+// method.
+type VirtualMachinesClientListByLocationOptions struct {
+ // placeholder for future optional parameters
+}
+
+// VirtualMachinesClientListOptions contains the optional parameters for the VirtualMachinesClient.List method.
+type VirtualMachinesClientListOptions struct {
+ // The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq
+ // /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'
+ Filter *string
+}
+
+// VirtualMachinesClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachinesClient.RetrieveBootDiagnosticsData
+// method.
+type VirtualMachinesClientRetrieveBootDiagnosticsDataOptions struct {
+ // Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes.
+ // NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes.
+ SasURIExpirationTimeInMinutes *int32
+}
+
+// VirtualMachinesClientSimulateEvictionOptions contains the optional parameters for the VirtualMachinesClient.SimulateEviction
+// method.
+type VirtualMachinesClientSimulateEvictionOptions struct {
+ // placeholder for future optional parameters
+}
+
+// WinRMConfiguration - Describes Windows Remote Management configuration of the VM
+type WinRMConfiguration struct {
+ // The list of Windows Remote Management listeners
+ Listeners []*WinRMListener `json:"listeners,omitempty"`
+}
+
+// WinRMListener - Describes Protocol and thumbprint of Windows Remote Management listener
+type WinRMListener struct {
+ // This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault,
+ // see Add a key or secret to the key vault
+ // [https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add]. In this case, your certificate needs to be It
+ // is the Base64 encoding of the following JSON Object which is encoded in UTF-8:
+ // {
+ // "data":"",
+ // "dataType":"pfx",
+ // "password":""
+ // }
+ // To install certificates on a virtual machine it is recommended to use the Azure Key Vault virtual machine extension for
+ // Linux
+ // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux] or the Azure Key Vault virtual machine extension
+ // for Windows
+ // [https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows].
+ CertificateURL *string `json:"certificateUrl,omitempty"`
+
+ // Specifies the protocol of WinRM listener.
+ // Possible values are:
+ // http
+ // https
+ Protocol *ProtocolTypes `json:"protocol,omitempty"`
+}
+
+// WindowsConfiguration - Specifies Windows operating system settings on the virtual machine.
+type WindowsConfiguration struct {
+ // Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is
+ // used by Windows Setup.
+ AdditionalUnattendContent []*AdditionalUnattendContent `json:"additionalUnattendContent,omitempty"`
+
+ // Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true.
+ // For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning.
+ EnableAutomaticUpdates *bool `json:"enableAutomaticUpdates,omitempty"`
+
+ // [Preview Feature] Specifies settings related to VM Guest Patching on Windows.
+ PatchSettings *PatchSettings `json:"patchSettings,omitempty"`
+
+ // Indicates whether virtual machine agent should be provisioned on the virtual machine.
+ // When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM
+ // Agent is installed on the VM so that extensions can be added to the VM later.
+ ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"`
+
+ // Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time".
+ // Possible values can be TimeZoneInfo.Id [https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id]
+ // value from time zones returned by TimeZoneInfo.GetSystemTimeZones
+ // [https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones].
+ TimeZone *string `json:"timeZone,omitempty"`
+
+ // Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.
+ WinRM *WinRMConfiguration `json:"winRM,omitempty"`
+}
+
+// WindowsParameters - Input for InstallPatches on a Windows VM, as directly received by the API
+type WindowsParameters struct {
+ // The update classifications to select when installing patches for Windows.
+ ClassificationsToInclude []*VMGuestPatchClassificationWindows `json:"classificationsToInclude,omitempty"`
+
+ // Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true.
+ ExcludeKbsRequiringReboot *bool `json:"excludeKbsRequiringReboot,omitempty"`
+
+ // Kbs to exclude in the patch operation
+ KbNumbersToExclude []*string `json:"kbNumbersToExclude,omitempty"`
+
+ // Kbs to include in the patch operation
+ KbNumbersToInclude []*string `json:"kbNumbersToInclude,omitempty"`
+
+ // This is used to install patches that were published on or before this given max published date.
+ MaxPatchPublishDate *time.Time `json:"maxPatchPublishDate,omitempty"`
+}
+
+// WindowsVMGuestPatchAutomaticByPlatformSettings - Specifies additional settings to be applied when patch mode AutomaticByPlatform
+// is selected in Windows patch settings.
+type WindowsVMGuestPatchAutomaticByPlatformSettings struct {
+ // Specifies the reboot setting for all AutomaticByPlatform patch installation operations.
+ RebootSetting *WindowsVMGuestPatchAutomaticByPlatformRebootSetting `json:"rebootSetting,omitempty"`
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models_serde.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models_serde.go
new file mode 100644
index 0000000000..3de3985664
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_models_serde.go
@@ -0,0 +1,3416 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "encoding/json"
+ "fmt"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "reflect"
+)
+
+// MarshalJSON implements the json.Marshaller interface for type APIError.
+func (a APIError) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "code", a.Code)
+ populate(objectMap, "details", a.Details)
+ populate(objectMap, "innererror", a.Innererror)
+ populate(objectMap, "message", a.Message)
+ populate(objectMap, "target", a.Target)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ApplicationProfile.
+func (a ApplicationProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "galleryApplications", a.GalleryApplications)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type AvailabilitySet.
+func (a AvailabilitySet) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", a.ID)
+ populate(objectMap, "location", a.Location)
+ populate(objectMap, "name", a.Name)
+ populate(objectMap, "properties", a.Properties)
+ populate(objectMap, "sku", a.SKU)
+ populate(objectMap, "tags", a.Tags)
+ populate(objectMap, "type", a.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type AvailabilitySetProperties.
+func (a AvailabilitySetProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "platformFaultDomainCount", a.PlatformFaultDomainCount)
+ populate(objectMap, "platformUpdateDomainCount", a.PlatformUpdateDomainCount)
+ populate(objectMap, "proximityPlacementGroup", a.ProximityPlacementGroup)
+ populate(objectMap, "statuses", a.Statuses)
+ populate(objectMap, "virtualMachines", a.VirtualMachines)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type AvailabilitySetUpdate.
+func (a AvailabilitySetUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", a.Properties)
+ populate(objectMap, "sku", a.SKU)
+ populate(objectMap, "tags", a.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type AvailablePatchSummary.
+func (a AvailablePatchSummary) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "assessmentActivityId", a.AssessmentActivityID)
+ populate(objectMap, "criticalAndSecurityPatchCount", a.CriticalAndSecurityPatchCount)
+ populate(objectMap, "error", a.Error)
+ populateTimeRFC3339(objectMap, "lastModifiedTime", a.LastModifiedTime)
+ populate(objectMap, "otherPatchCount", a.OtherPatchCount)
+ populate(objectMap, "rebootPending", a.RebootPending)
+ populateTimeRFC3339(objectMap, "startTime", a.StartTime)
+ populate(objectMap, "status", a.Status)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type AvailablePatchSummary.
+func (a *AvailablePatchSummary) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", a, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "assessmentActivityId":
+ err = unpopulate(val, "AssessmentActivityID", &a.AssessmentActivityID)
+ delete(rawMsg, key)
+ case "criticalAndSecurityPatchCount":
+ err = unpopulate(val, "CriticalAndSecurityPatchCount", &a.CriticalAndSecurityPatchCount)
+ delete(rawMsg, key)
+ case "error":
+ err = unpopulate(val, "Error", &a.Error)
+ delete(rawMsg, key)
+ case "lastModifiedTime":
+ err = unpopulateTimeRFC3339(val, "LastModifiedTime", &a.LastModifiedTime)
+ delete(rawMsg, key)
+ case "otherPatchCount":
+ err = unpopulate(val, "OtherPatchCount", &a.OtherPatchCount)
+ delete(rawMsg, key)
+ case "rebootPending":
+ err = unpopulate(val, "RebootPending", &a.RebootPending)
+ delete(rawMsg, key)
+ case "startTime":
+ err = unpopulateTimeRFC3339(val, "StartTime", &a.StartTime)
+ delete(rawMsg, key)
+ case "status":
+ err = unpopulate(val, "Status", &a.Status)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", a, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservation.
+func (c CapacityReservation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", c.ID)
+ populate(objectMap, "location", c.Location)
+ populate(objectMap, "name", c.Name)
+ populate(objectMap, "properties", c.Properties)
+ populate(objectMap, "sku", c.SKU)
+ populate(objectMap, "tags", c.Tags)
+ populate(objectMap, "type", c.Type)
+ populate(objectMap, "zones", c.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationGroup.
+func (c CapacityReservationGroup) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", c.ID)
+ populate(objectMap, "location", c.Location)
+ populate(objectMap, "name", c.Name)
+ populate(objectMap, "properties", c.Properties)
+ populate(objectMap, "tags", c.Tags)
+ populate(objectMap, "type", c.Type)
+ populate(objectMap, "zones", c.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationGroupInstanceView.
+func (c CapacityReservationGroupInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "capacityReservations", c.CapacityReservations)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationGroupProperties.
+func (c CapacityReservationGroupProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "capacityReservations", c.CapacityReservations)
+ populate(objectMap, "instanceView", c.InstanceView)
+ populate(objectMap, "virtualMachinesAssociated", c.VirtualMachinesAssociated)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationGroupUpdate.
+func (c CapacityReservationGroupUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", c.Properties)
+ populate(objectMap, "tags", c.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationInstanceView.
+func (c CapacityReservationInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "statuses", c.Statuses)
+ populate(objectMap, "utilizationInfo", c.UtilizationInfo)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationInstanceViewWithName.
+func (c CapacityReservationInstanceViewWithName) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "name", c.Name)
+ populate(objectMap, "statuses", c.Statuses)
+ populate(objectMap, "utilizationInfo", c.UtilizationInfo)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationProperties.
+func (c CapacityReservationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "instanceView", c.InstanceView)
+ populate(objectMap, "provisioningState", c.ProvisioningState)
+ populateTimeRFC3339(objectMap, "provisioningTime", c.ProvisioningTime)
+ populate(objectMap, "reservationId", c.ReservationID)
+ populateTimeRFC3339(objectMap, "timeCreated", c.TimeCreated)
+ populate(objectMap, "virtualMachinesAssociated", c.VirtualMachinesAssociated)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type CapacityReservationProperties.
+func (c *CapacityReservationProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", c, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "instanceView":
+ err = unpopulate(val, "InstanceView", &c.InstanceView)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &c.ProvisioningState)
+ delete(rawMsg, key)
+ case "provisioningTime":
+ err = unpopulateTimeRFC3339(val, "ProvisioningTime", &c.ProvisioningTime)
+ delete(rawMsg, key)
+ case "reservationId":
+ err = unpopulate(val, "ReservationID", &c.ReservationID)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &c.TimeCreated)
+ delete(rawMsg, key)
+ case "virtualMachinesAssociated":
+ err = unpopulate(val, "VirtualMachinesAssociated", &c.VirtualMachinesAssociated)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", c, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationUpdate.
+func (c CapacityReservationUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", c.Properties)
+ populate(objectMap, "sku", c.SKU)
+ populate(objectMap, "tags", c.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CapacityReservationUtilization.
+func (c CapacityReservationUtilization) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "virtualMachinesAllocated", c.VirtualMachinesAllocated)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CloudService.
+func (c CloudService) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", c.ID)
+ populate(objectMap, "location", c.Location)
+ populate(objectMap, "name", c.Name)
+ populate(objectMap, "properties", c.Properties)
+ populate(objectMap, "tags", c.Tags)
+ populate(objectMap, "type", c.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CloudServiceExtensionProfile.
+func (c CloudServiceExtensionProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extensions", c.Extensions)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CloudServiceExtensionProperties.
+func (c CloudServiceExtensionProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "autoUpgradeMinorVersion", c.AutoUpgradeMinorVersion)
+ populate(objectMap, "forceUpdateTag", c.ForceUpdateTag)
+ populate(objectMap, "protectedSettings", c.ProtectedSettings)
+ populate(objectMap, "protectedSettingsFromKeyVault", c.ProtectedSettingsFromKeyVault)
+ populate(objectMap, "provisioningState", c.ProvisioningState)
+ populate(objectMap, "publisher", c.Publisher)
+ populate(objectMap, "rolesAppliedTo", c.RolesAppliedTo)
+ populate(objectMap, "settings", c.Settings)
+ populate(objectMap, "type", c.Type)
+ populate(objectMap, "typeHandlerVersion", c.TypeHandlerVersion)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CloudServiceNetworkProfile.
+func (c CloudServiceNetworkProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "loadBalancerConfigurations", c.LoadBalancerConfigurations)
+ populate(objectMap, "swappableCloudService", c.SwappableCloudService)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CloudServiceOsProfile.
+func (c CloudServiceOsProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "secrets", c.Secrets)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CloudServiceRoleProfile.
+func (c CloudServiceRoleProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "roles", c.Roles)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CloudServiceUpdate.
+func (c CloudServiceUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "tags", c.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type CloudServiceVaultSecretGroup.
+func (c CloudServiceVaultSecretGroup) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "sourceVault", c.SourceVault)
+ populate(objectMap, "vaultCertificates", c.VaultCertificates)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageProperties.
+func (c *CommunityGalleryImageProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", c, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "disallowed":
+ err = unpopulate(val, "Disallowed", &c.Disallowed)
+ delete(rawMsg, key)
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &c.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "features":
+ err = unpopulate(val, "Features", &c.Features)
+ delete(rawMsg, key)
+ case "hyperVGeneration":
+ err = unpopulate(val, "HyperVGeneration", &c.HyperVGeneration)
+ delete(rawMsg, key)
+ case "identifier":
+ err = unpopulate(val, "Identifier", &c.Identifier)
+ delete(rawMsg, key)
+ case "osState":
+ err = unpopulate(val, "OSState", &c.OSState)
+ delete(rawMsg, key)
+ case "osType":
+ err = unpopulate(val, "OSType", &c.OSType)
+ delete(rawMsg, key)
+ case "purchasePlan":
+ err = unpopulate(val, "PurchasePlan", &c.PurchasePlan)
+ delete(rawMsg, key)
+ case "recommended":
+ err = unpopulate(val, "Recommended", &c.Recommended)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", c, err)
+ }
+ }
+ return nil
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type CommunityGalleryImageVersionProperties.
+func (c *CommunityGalleryImageVersionProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", c, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &c.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "publishedDate":
+ err = unpopulateTimeRFC3339(val, "PublishedDate", &c.PublishedDate)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", c, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHost.
+func (d DedicatedHost) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", d.ID)
+ populate(objectMap, "location", d.Location)
+ populate(objectMap, "name", d.Name)
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "sku", d.SKU)
+ populate(objectMap, "tags", d.Tags)
+ populate(objectMap, "type", d.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostAvailableCapacity.
+func (d DedicatedHostAvailableCapacity) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "allocatableVMs", d.AllocatableVMs)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostGroup.
+func (d DedicatedHostGroup) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", d.ID)
+ populate(objectMap, "location", d.Location)
+ populate(objectMap, "name", d.Name)
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "tags", d.Tags)
+ populate(objectMap, "type", d.Type)
+ populate(objectMap, "zones", d.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostGroupInstanceView.
+func (d DedicatedHostGroupInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "hosts", d.Hosts)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostGroupProperties.
+func (d DedicatedHostGroupProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "additionalCapabilities", d.AdditionalCapabilities)
+ populate(objectMap, "hosts", d.Hosts)
+ populate(objectMap, "instanceView", d.InstanceView)
+ populate(objectMap, "platformFaultDomainCount", d.PlatformFaultDomainCount)
+ populate(objectMap, "supportAutomaticPlacement", d.SupportAutomaticPlacement)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostGroupUpdate.
+func (d DedicatedHostGroupUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "tags", d.Tags)
+ populate(objectMap, "zones", d.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostInstanceView.
+func (d DedicatedHostInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "assetId", d.AssetID)
+ populate(objectMap, "availableCapacity", d.AvailableCapacity)
+ populate(objectMap, "statuses", d.Statuses)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostInstanceViewWithName.
+func (d DedicatedHostInstanceViewWithName) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "assetId", d.AssetID)
+ populate(objectMap, "availableCapacity", d.AvailableCapacity)
+ populate(objectMap, "name", d.Name)
+ populate(objectMap, "statuses", d.Statuses)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostProperties.
+func (d DedicatedHostProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "autoReplaceOnFailure", d.AutoReplaceOnFailure)
+ populate(objectMap, "hostId", d.HostID)
+ populate(objectMap, "instanceView", d.InstanceView)
+ populate(objectMap, "licenseType", d.LicenseType)
+ populate(objectMap, "platformFaultDomain", d.PlatformFaultDomain)
+ populate(objectMap, "provisioningState", d.ProvisioningState)
+ populateTimeRFC3339(objectMap, "provisioningTime", d.ProvisioningTime)
+ populateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated)
+ populate(objectMap, "virtualMachines", d.VirtualMachines)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedHostProperties.
+func (d *DedicatedHostProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "autoReplaceOnFailure":
+ err = unpopulate(val, "AutoReplaceOnFailure", &d.AutoReplaceOnFailure)
+ delete(rawMsg, key)
+ case "hostId":
+ err = unpopulate(val, "HostID", &d.HostID)
+ delete(rawMsg, key)
+ case "instanceView":
+ err = unpopulate(val, "InstanceView", &d.InstanceView)
+ delete(rawMsg, key)
+ case "licenseType":
+ err = unpopulate(val, "LicenseType", &d.LicenseType)
+ delete(rawMsg, key)
+ case "platformFaultDomain":
+ err = unpopulate(val, "PlatformFaultDomain", &d.PlatformFaultDomain)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &d.ProvisioningState)
+ delete(rawMsg, key)
+ case "provisioningTime":
+ err = unpopulateTimeRFC3339(val, "ProvisioningTime", &d.ProvisioningTime)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &d.TimeCreated)
+ delete(rawMsg, key)
+ case "virtualMachines":
+ err = unpopulate(val, "VirtualMachines", &d.VirtualMachines)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DedicatedHostUpdate.
+func (d DedicatedHostUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "tags", d.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Disallowed.
+func (d Disallowed) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "diskTypes", d.DiskTypes)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Disk.
+func (d Disk) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extendedLocation", d.ExtendedLocation)
+ populate(objectMap, "id", d.ID)
+ populate(objectMap, "location", d.Location)
+ populate(objectMap, "managedBy", d.ManagedBy)
+ populate(objectMap, "managedByExtended", d.ManagedByExtended)
+ populate(objectMap, "name", d.Name)
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "sku", d.SKU)
+ populate(objectMap, "tags", d.Tags)
+ populate(objectMap, "type", d.Type)
+ populate(objectMap, "zones", d.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DiskAccess.
+func (d DiskAccess) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extendedLocation", d.ExtendedLocation)
+ populate(objectMap, "id", d.ID)
+ populate(objectMap, "location", d.Location)
+ populate(objectMap, "name", d.Name)
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "tags", d.Tags)
+ populate(objectMap, "type", d.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DiskAccessProperties.
+func (d DiskAccessProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "privateEndpointConnections", d.PrivateEndpointConnections)
+ populate(objectMap, "provisioningState", d.ProvisioningState)
+ populateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type DiskAccessProperties.
+func (d *DiskAccessProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "privateEndpointConnections":
+ err = unpopulate(val, "PrivateEndpointConnections", &d.PrivateEndpointConnections)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &d.ProvisioningState)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &d.TimeCreated)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DiskAccessUpdate.
+func (d DiskAccessUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "tags", d.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DiskEncryptionSet.
+func (d DiskEncryptionSet) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", d.ID)
+ populate(objectMap, "identity", d.Identity)
+ populate(objectMap, "location", d.Location)
+ populate(objectMap, "name", d.Name)
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "tags", d.Tags)
+ populate(objectMap, "type", d.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DiskEncryptionSetUpdate.
+func (d DiskEncryptionSetUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "identity", d.Identity)
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "tags", d.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DiskInstanceView.
+func (d DiskInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "encryptionSettings", d.EncryptionSettings)
+ populate(objectMap, "name", d.Name)
+ populate(objectMap, "statuses", d.Statuses)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DiskProperties.
+func (d DiskProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "burstingEnabled", d.BurstingEnabled)
+ populate(objectMap, "completionPercent", d.CompletionPercent)
+ populate(objectMap, "creationData", d.CreationData)
+ populate(objectMap, "dataAccessAuthMode", d.DataAccessAuthMode)
+ populate(objectMap, "diskAccessId", d.DiskAccessID)
+ populate(objectMap, "diskIOPSReadOnly", d.DiskIOPSReadOnly)
+ populate(objectMap, "diskIOPSReadWrite", d.DiskIOPSReadWrite)
+ populate(objectMap, "diskMBpsReadOnly", d.DiskMBpsReadOnly)
+ populate(objectMap, "diskMBpsReadWrite", d.DiskMBpsReadWrite)
+ populate(objectMap, "diskSizeBytes", d.DiskSizeBytes)
+ populate(objectMap, "diskSizeGB", d.DiskSizeGB)
+ populate(objectMap, "diskState", d.DiskState)
+ populate(objectMap, "encryption", d.Encryption)
+ populate(objectMap, "encryptionSettingsCollection", d.EncryptionSettingsCollection)
+ populate(objectMap, "hyperVGeneration", d.HyperVGeneration)
+ populate(objectMap, "maxShares", d.MaxShares)
+ populate(objectMap, "networkAccessPolicy", d.NetworkAccessPolicy)
+ populate(objectMap, "osType", d.OSType)
+ populate(objectMap, "propertyUpdatesInProgress", d.PropertyUpdatesInProgress)
+ populate(objectMap, "provisioningState", d.ProvisioningState)
+ populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess)
+ populate(objectMap, "purchasePlan", d.PurchasePlan)
+ populate(objectMap, "securityProfile", d.SecurityProfile)
+ populate(objectMap, "shareInfo", d.ShareInfo)
+ populate(objectMap, "supportedCapabilities", d.SupportedCapabilities)
+ populate(objectMap, "supportsHibernation", d.SupportsHibernation)
+ populate(objectMap, "tier", d.Tier)
+ populateTimeRFC3339(objectMap, "timeCreated", d.TimeCreated)
+ populate(objectMap, "uniqueId", d.UniqueID)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type DiskProperties.
+func (d *DiskProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "burstingEnabled":
+ err = unpopulate(val, "BurstingEnabled", &d.BurstingEnabled)
+ delete(rawMsg, key)
+ case "completionPercent":
+ err = unpopulate(val, "CompletionPercent", &d.CompletionPercent)
+ delete(rawMsg, key)
+ case "creationData":
+ err = unpopulate(val, "CreationData", &d.CreationData)
+ delete(rawMsg, key)
+ case "dataAccessAuthMode":
+ err = unpopulate(val, "DataAccessAuthMode", &d.DataAccessAuthMode)
+ delete(rawMsg, key)
+ case "diskAccessId":
+ err = unpopulate(val, "DiskAccessID", &d.DiskAccessID)
+ delete(rawMsg, key)
+ case "diskIOPSReadOnly":
+ err = unpopulate(val, "DiskIOPSReadOnly", &d.DiskIOPSReadOnly)
+ delete(rawMsg, key)
+ case "diskIOPSReadWrite":
+ err = unpopulate(val, "DiskIOPSReadWrite", &d.DiskIOPSReadWrite)
+ delete(rawMsg, key)
+ case "diskMBpsReadOnly":
+ err = unpopulate(val, "DiskMBpsReadOnly", &d.DiskMBpsReadOnly)
+ delete(rawMsg, key)
+ case "diskMBpsReadWrite":
+ err = unpopulate(val, "DiskMBpsReadWrite", &d.DiskMBpsReadWrite)
+ delete(rawMsg, key)
+ case "diskSizeBytes":
+ err = unpopulate(val, "DiskSizeBytes", &d.DiskSizeBytes)
+ delete(rawMsg, key)
+ case "diskSizeGB":
+ err = unpopulate(val, "DiskSizeGB", &d.DiskSizeGB)
+ delete(rawMsg, key)
+ case "diskState":
+ err = unpopulate(val, "DiskState", &d.DiskState)
+ delete(rawMsg, key)
+ case "encryption":
+ err = unpopulate(val, "Encryption", &d.Encryption)
+ delete(rawMsg, key)
+ case "encryptionSettingsCollection":
+ err = unpopulate(val, "EncryptionSettingsCollection", &d.EncryptionSettingsCollection)
+ delete(rawMsg, key)
+ case "hyperVGeneration":
+ err = unpopulate(val, "HyperVGeneration", &d.HyperVGeneration)
+ delete(rawMsg, key)
+ case "maxShares":
+ err = unpopulate(val, "MaxShares", &d.MaxShares)
+ delete(rawMsg, key)
+ case "networkAccessPolicy":
+ err = unpopulate(val, "NetworkAccessPolicy", &d.NetworkAccessPolicy)
+ delete(rawMsg, key)
+ case "osType":
+ err = unpopulate(val, "OSType", &d.OSType)
+ delete(rawMsg, key)
+ case "propertyUpdatesInProgress":
+ err = unpopulate(val, "PropertyUpdatesInProgress", &d.PropertyUpdatesInProgress)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &d.ProvisioningState)
+ delete(rawMsg, key)
+ case "publicNetworkAccess":
+ err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess)
+ delete(rawMsg, key)
+ case "purchasePlan":
+ err = unpopulate(val, "PurchasePlan", &d.PurchasePlan)
+ delete(rawMsg, key)
+ case "securityProfile":
+ err = unpopulate(val, "SecurityProfile", &d.SecurityProfile)
+ delete(rawMsg, key)
+ case "shareInfo":
+ err = unpopulate(val, "ShareInfo", &d.ShareInfo)
+ delete(rawMsg, key)
+ case "supportedCapabilities":
+ err = unpopulate(val, "SupportedCapabilities", &d.SupportedCapabilities)
+ delete(rawMsg, key)
+ case "supportsHibernation":
+ err = unpopulate(val, "SupportsHibernation", &d.SupportsHibernation)
+ delete(rawMsg, key)
+ case "tier":
+ err = unpopulate(val, "Tier", &d.Tier)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &d.TimeCreated)
+ delete(rawMsg, key)
+ case "uniqueId":
+ err = unpopulate(val, "UniqueID", &d.UniqueID)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ }
+ return nil
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type DiskRestorePointProperties.
+func (d *DiskRestorePointProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "completionPercent":
+ err = unpopulate(val, "CompletionPercent", &d.CompletionPercent)
+ delete(rawMsg, key)
+ case "diskAccessId":
+ err = unpopulate(val, "DiskAccessID", &d.DiskAccessID)
+ delete(rawMsg, key)
+ case "encryption":
+ err = unpopulate(val, "Encryption", &d.Encryption)
+ delete(rawMsg, key)
+ case "familyId":
+ err = unpopulate(val, "FamilyID", &d.FamilyID)
+ delete(rawMsg, key)
+ case "hyperVGeneration":
+ err = unpopulate(val, "HyperVGeneration", &d.HyperVGeneration)
+ delete(rawMsg, key)
+ case "networkAccessPolicy":
+ err = unpopulate(val, "NetworkAccessPolicy", &d.NetworkAccessPolicy)
+ delete(rawMsg, key)
+ case "osType":
+ err = unpopulate(val, "OSType", &d.OSType)
+ delete(rawMsg, key)
+ case "publicNetworkAccess":
+ err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess)
+ delete(rawMsg, key)
+ case "purchasePlan":
+ err = unpopulate(val, "PurchasePlan", &d.PurchasePlan)
+ delete(rawMsg, key)
+ case "replicationState":
+ err = unpopulate(val, "ReplicationState", &d.ReplicationState)
+ delete(rawMsg, key)
+ case "sourceResourceId":
+ err = unpopulate(val, "SourceResourceID", &d.SourceResourceID)
+ delete(rawMsg, key)
+ case "sourceResourceLocation":
+ err = unpopulate(val, "SourceResourceLocation", &d.SourceResourceLocation)
+ delete(rawMsg, key)
+ case "sourceUniqueId":
+ err = unpopulate(val, "SourceUniqueID", &d.SourceUniqueID)
+ delete(rawMsg, key)
+ case "supportedCapabilities":
+ err = unpopulate(val, "SupportedCapabilities", &d.SupportedCapabilities)
+ delete(rawMsg, key)
+ case "supportsHibernation":
+ err = unpopulate(val, "SupportsHibernation", &d.SupportsHibernation)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &d.TimeCreated)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DiskUpdate.
+func (d DiskUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", d.Properties)
+ populate(objectMap, "sku", d.SKU)
+ populate(objectMap, "tags", d.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type EncryptionImages.
+func (e EncryptionImages) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dataDiskImages", e.DataDiskImages)
+ populate(objectMap, "osDiskImage", e.OSDiskImage)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type EncryptionSetProperties.
+func (e EncryptionSetProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "activeKey", e.ActiveKey)
+ populate(objectMap, "autoKeyRotationError", e.AutoKeyRotationError)
+ populate(objectMap, "encryptionType", e.EncryptionType)
+ populateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", e.LastKeyRotationTimestamp)
+ populate(objectMap, "previousKeys", e.PreviousKeys)
+ populate(objectMap, "provisioningState", e.ProvisioningState)
+ populate(objectMap, "rotationToLatestKeyVersionEnabled", e.RotationToLatestKeyVersionEnabled)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSetProperties.
+func (e *EncryptionSetProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "activeKey":
+ err = unpopulate(val, "ActiveKey", &e.ActiveKey)
+ delete(rawMsg, key)
+ case "autoKeyRotationError":
+ err = unpopulate(val, "AutoKeyRotationError", &e.AutoKeyRotationError)
+ delete(rawMsg, key)
+ case "encryptionType":
+ err = unpopulate(val, "EncryptionType", &e.EncryptionType)
+ delete(rawMsg, key)
+ case "lastKeyRotationTimestamp":
+ err = unpopulateTimeRFC3339(val, "LastKeyRotationTimestamp", &e.LastKeyRotationTimestamp)
+ delete(rawMsg, key)
+ case "previousKeys":
+ err = unpopulate(val, "PreviousKeys", &e.PreviousKeys)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &e.ProvisioningState)
+ delete(rawMsg, key)
+ case "rotationToLatestKeyVersionEnabled":
+ err = unpopulate(val, "RotationToLatestKeyVersionEnabled", &e.RotationToLatestKeyVersionEnabled)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type EncryptionSettingsCollection.
+func (e EncryptionSettingsCollection) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "enabled", e.Enabled)
+ populate(objectMap, "encryptionSettings", e.EncryptionSettings)
+ populate(objectMap, "encryptionSettingsVersion", e.EncryptionSettingsVersion)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Gallery.
+func (g Gallery) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "location", g.Location)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryApplication.
+func (g GalleryApplication) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "location", g.Location)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryApplicationProperties.
+func (g GalleryApplicationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "description", g.Description)
+ populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate)
+ populate(objectMap, "eula", g.Eula)
+ populate(objectMap, "privacyStatementUri", g.PrivacyStatementURI)
+ populate(objectMap, "releaseNoteUri", g.ReleaseNoteURI)
+ populate(objectMap, "supportedOSType", g.SupportedOSType)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationProperties.
+func (g *GalleryApplicationProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "description":
+ err = unpopulate(val, "Description", &g.Description)
+ delete(rawMsg, key)
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "eula":
+ err = unpopulate(val, "Eula", &g.Eula)
+ delete(rawMsg, key)
+ case "privacyStatementUri":
+ err = unpopulate(val, "PrivacyStatementURI", &g.PrivacyStatementURI)
+ delete(rawMsg, key)
+ case "releaseNoteUri":
+ err = unpopulate(val, "ReleaseNoteURI", &g.ReleaseNoteURI)
+ delete(rawMsg, key)
+ case "supportedOSType":
+ err = unpopulate(val, "SupportedOSType", &g.SupportedOSType)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryApplicationUpdate.
+func (g GalleryApplicationUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryApplicationVersion.
+func (g GalleryApplicationVersion) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "location", g.Location)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryApplicationVersionPublishingProfile.
+func (g GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "enableHealthCheck", g.EnableHealthCheck)
+ populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate)
+ populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest)
+ populate(objectMap, "manageActions", g.ManageActions)
+ populateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate)
+ populate(objectMap, "replicaCount", g.ReplicaCount)
+ populate(objectMap, "replicationMode", g.ReplicationMode)
+ populate(objectMap, "source", g.Source)
+ populate(objectMap, "storageAccountType", g.StorageAccountType)
+ populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations)
+ populate(objectMap, "targetRegions", g.TargetRegions)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryApplicationVersionPublishingProfile.
+func (g *GalleryApplicationVersionPublishingProfile) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "enableHealthCheck":
+ err = unpopulate(val, "EnableHealthCheck", &g.EnableHealthCheck)
+ delete(rawMsg, key)
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "excludeFromLatest":
+ err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest)
+ delete(rawMsg, key)
+ case "manageActions":
+ err = unpopulate(val, "ManageActions", &g.ManageActions)
+ delete(rawMsg, key)
+ case "publishedDate":
+ err = unpopulateTimeRFC3339(val, "PublishedDate", &g.PublishedDate)
+ delete(rawMsg, key)
+ case "replicaCount":
+ err = unpopulate(val, "ReplicaCount", &g.ReplicaCount)
+ delete(rawMsg, key)
+ case "replicationMode":
+ err = unpopulate(val, "ReplicationMode", &g.ReplicationMode)
+ delete(rawMsg, key)
+ case "source":
+ err = unpopulate(val, "Source", &g.Source)
+ delete(rawMsg, key)
+ case "storageAccountType":
+ err = unpopulate(val, "StorageAccountType", &g.StorageAccountType)
+ delete(rawMsg, key)
+ case "targetExtendedLocations":
+ err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations)
+ delete(rawMsg, key)
+ case "targetRegions":
+ err = unpopulate(val, "TargetRegions", &g.TargetRegions)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryApplicationVersionUpdate.
+func (g GalleryApplicationVersionUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryArtifactPublishingProfileBase.
+func (g GalleryArtifactPublishingProfileBase) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate)
+ populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest)
+ populateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate)
+ populate(objectMap, "replicaCount", g.ReplicaCount)
+ populate(objectMap, "replicationMode", g.ReplicationMode)
+ populate(objectMap, "storageAccountType", g.StorageAccountType)
+ populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations)
+ populate(objectMap, "targetRegions", g.TargetRegions)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryArtifactPublishingProfileBase.
+func (g *GalleryArtifactPublishingProfileBase) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "excludeFromLatest":
+ err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest)
+ delete(rawMsg, key)
+ case "publishedDate":
+ err = unpopulateTimeRFC3339(val, "PublishedDate", &g.PublishedDate)
+ delete(rawMsg, key)
+ case "replicaCount":
+ err = unpopulate(val, "ReplicaCount", &g.ReplicaCount)
+ delete(rawMsg, key)
+ case "replicationMode":
+ err = unpopulate(val, "ReplicationMode", &g.ReplicationMode)
+ delete(rawMsg, key)
+ case "storageAccountType":
+ err = unpopulate(val, "StorageAccountType", &g.StorageAccountType)
+ delete(rawMsg, key)
+ case "targetExtendedLocations":
+ err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations)
+ delete(rawMsg, key)
+ case "targetRegions":
+ err = unpopulate(val, "TargetRegions", &g.TargetRegions)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryImage.
+func (g GalleryImage) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "location", g.Location)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryImageProperties.
+func (g GalleryImageProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "architecture", g.Architecture)
+ populate(objectMap, "description", g.Description)
+ populate(objectMap, "disallowed", g.Disallowed)
+ populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate)
+ populate(objectMap, "eula", g.Eula)
+ populate(objectMap, "features", g.Features)
+ populate(objectMap, "hyperVGeneration", g.HyperVGeneration)
+ populate(objectMap, "identifier", g.Identifier)
+ populate(objectMap, "osState", g.OSState)
+ populate(objectMap, "osType", g.OSType)
+ populate(objectMap, "privacyStatementUri", g.PrivacyStatementURI)
+ populate(objectMap, "provisioningState", g.ProvisioningState)
+ populate(objectMap, "purchasePlan", g.PurchasePlan)
+ populate(objectMap, "recommended", g.Recommended)
+ populate(objectMap, "releaseNoteUri", g.ReleaseNoteURI)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageProperties.
+func (g *GalleryImageProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "architecture":
+ err = unpopulate(val, "Architecture", &g.Architecture)
+ delete(rawMsg, key)
+ case "description":
+ err = unpopulate(val, "Description", &g.Description)
+ delete(rawMsg, key)
+ case "disallowed":
+ err = unpopulate(val, "Disallowed", &g.Disallowed)
+ delete(rawMsg, key)
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "eula":
+ err = unpopulate(val, "Eula", &g.Eula)
+ delete(rawMsg, key)
+ case "features":
+ err = unpopulate(val, "Features", &g.Features)
+ delete(rawMsg, key)
+ case "hyperVGeneration":
+ err = unpopulate(val, "HyperVGeneration", &g.HyperVGeneration)
+ delete(rawMsg, key)
+ case "identifier":
+ err = unpopulate(val, "Identifier", &g.Identifier)
+ delete(rawMsg, key)
+ case "osState":
+ err = unpopulate(val, "OSState", &g.OSState)
+ delete(rawMsg, key)
+ case "osType":
+ err = unpopulate(val, "OSType", &g.OSType)
+ delete(rawMsg, key)
+ case "privacyStatementUri":
+ err = unpopulate(val, "PrivacyStatementURI", &g.PrivacyStatementURI)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &g.ProvisioningState)
+ delete(rawMsg, key)
+ case "purchasePlan":
+ err = unpopulate(val, "PurchasePlan", &g.PurchasePlan)
+ delete(rawMsg, key)
+ case "recommended":
+ err = unpopulate(val, "Recommended", &g.Recommended)
+ delete(rawMsg, key)
+ case "releaseNoteUri":
+ err = unpopulate(val, "ReleaseNoteURI", &g.ReleaseNoteURI)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryImageUpdate.
+func (g GalleryImageUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryImageVersion.
+func (g GalleryImageVersion) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "location", g.Location)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryImageVersionPublishingProfile.
+func (g GalleryImageVersionPublishingProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populateTimeRFC3339(objectMap, "endOfLifeDate", g.EndOfLifeDate)
+ populate(objectMap, "excludeFromLatest", g.ExcludeFromLatest)
+ populateTimeRFC3339(objectMap, "publishedDate", g.PublishedDate)
+ populate(objectMap, "replicaCount", g.ReplicaCount)
+ populate(objectMap, "replicationMode", g.ReplicationMode)
+ populate(objectMap, "storageAccountType", g.StorageAccountType)
+ populate(objectMap, "targetExtendedLocations", g.TargetExtendedLocations)
+ populate(objectMap, "targetRegions", g.TargetRegions)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type GalleryImageVersionPublishingProfile.
+func (g *GalleryImageVersionPublishingProfile) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &g.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "excludeFromLatest":
+ err = unpopulate(val, "ExcludeFromLatest", &g.ExcludeFromLatest)
+ delete(rawMsg, key)
+ case "publishedDate":
+ err = unpopulateTimeRFC3339(val, "PublishedDate", &g.PublishedDate)
+ delete(rawMsg, key)
+ case "replicaCount":
+ err = unpopulate(val, "ReplicaCount", &g.ReplicaCount)
+ delete(rawMsg, key)
+ case "replicationMode":
+ err = unpopulate(val, "ReplicationMode", &g.ReplicationMode)
+ delete(rawMsg, key)
+ case "storageAccountType":
+ err = unpopulate(val, "StorageAccountType", &g.StorageAccountType)
+ delete(rawMsg, key)
+ case "targetExtendedLocations":
+ err = unpopulate(val, "TargetExtendedLocations", &g.TargetExtendedLocations)
+ delete(rawMsg, key)
+ case "targetRegions":
+ err = unpopulate(val, "TargetRegions", &g.TargetRegions)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", g, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryImageVersionStorageProfile.
+func (g GalleryImageVersionStorageProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dataDiskImages", g.DataDiskImages)
+ populate(objectMap, "osDiskImage", g.OSDiskImage)
+ populate(objectMap, "source", g.Source)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryImageVersionUpdate.
+func (g GalleryImageVersionUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type GalleryUpdate.
+func (g GalleryUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", g.ID)
+ populate(objectMap, "name", g.Name)
+ populate(objectMap, "properties", g.Properties)
+ populate(objectMap, "tags", g.Tags)
+ populate(objectMap, "type", g.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Image.
+func (i Image) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extendedLocation", i.ExtendedLocation)
+ populate(objectMap, "id", i.ID)
+ populate(objectMap, "location", i.Location)
+ populate(objectMap, "name", i.Name)
+ populate(objectMap, "properties", i.Properties)
+ populate(objectMap, "tags", i.Tags)
+ populate(objectMap, "type", i.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ImageStorageProfile.
+func (i ImageStorageProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dataDisks", i.DataDisks)
+ populate(objectMap, "osDisk", i.OSDisk)
+ populate(objectMap, "zoneResilient", i.ZoneResilient)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ImageUpdate.
+func (i ImageUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", i.Properties)
+ populate(objectMap, "tags", i.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type InstanceViewStatus.
+func (i InstanceViewStatus) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "code", i.Code)
+ populate(objectMap, "displayStatus", i.DisplayStatus)
+ populate(objectMap, "level", i.Level)
+ populate(objectMap, "message", i.Message)
+ populateTimeRFC3339(objectMap, "time", i.Time)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type InstanceViewStatus.
+func (i *InstanceViewStatus) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", i, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "code":
+ err = unpopulate(val, "Code", &i.Code)
+ delete(rawMsg, key)
+ case "displayStatus":
+ err = unpopulate(val, "DisplayStatus", &i.DisplayStatus)
+ delete(rawMsg, key)
+ case "level":
+ err = unpopulate(val, "Level", &i.Level)
+ delete(rawMsg, key)
+ case "message":
+ err = unpopulate(val, "Message", &i.Message)
+ delete(rawMsg, key)
+ case "time":
+ err = unpopulateTimeRFC3339(val, "Time", &i.Time)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", i, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type LastPatchInstallationSummary.
+func (l LastPatchInstallationSummary) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "error", l.Error)
+ populate(objectMap, "excludedPatchCount", l.ExcludedPatchCount)
+ populate(objectMap, "failedPatchCount", l.FailedPatchCount)
+ populate(objectMap, "installationActivityId", l.InstallationActivityID)
+ populate(objectMap, "installedPatchCount", l.InstalledPatchCount)
+ populateTimeRFC3339(objectMap, "lastModifiedTime", l.LastModifiedTime)
+ populate(objectMap, "maintenanceWindowExceeded", l.MaintenanceWindowExceeded)
+ populate(objectMap, "notSelectedPatchCount", l.NotSelectedPatchCount)
+ populate(objectMap, "pendingPatchCount", l.PendingPatchCount)
+ populateTimeRFC3339(objectMap, "startTime", l.StartTime)
+ populate(objectMap, "status", l.Status)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type LastPatchInstallationSummary.
+func (l *LastPatchInstallationSummary) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", l, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "error":
+ err = unpopulate(val, "Error", &l.Error)
+ delete(rawMsg, key)
+ case "excludedPatchCount":
+ err = unpopulate(val, "ExcludedPatchCount", &l.ExcludedPatchCount)
+ delete(rawMsg, key)
+ case "failedPatchCount":
+ err = unpopulate(val, "FailedPatchCount", &l.FailedPatchCount)
+ delete(rawMsg, key)
+ case "installationActivityId":
+ err = unpopulate(val, "InstallationActivityID", &l.InstallationActivityID)
+ delete(rawMsg, key)
+ case "installedPatchCount":
+ err = unpopulate(val, "InstalledPatchCount", &l.InstalledPatchCount)
+ delete(rawMsg, key)
+ case "lastModifiedTime":
+ err = unpopulateTimeRFC3339(val, "LastModifiedTime", &l.LastModifiedTime)
+ delete(rawMsg, key)
+ case "maintenanceWindowExceeded":
+ err = unpopulate(val, "MaintenanceWindowExceeded", &l.MaintenanceWindowExceeded)
+ delete(rawMsg, key)
+ case "notSelectedPatchCount":
+ err = unpopulate(val, "NotSelectedPatchCount", &l.NotSelectedPatchCount)
+ delete(rawMsg, key)
+ case "pendingPatchCount":
+ err = unpopulate(val, "PendingPatchCount", &l.PendingPatchCount)
+ delete(rawMsg, key)
+ case "startTime":
+ err = unpopulateTimeRFC3339(val, "StartTime", &l.StartTime)
+ delete(rawMsg, key)
+ case "status":
+ err = unpopulate(val, "Status", &l.Status)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", l, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type LinuxParameters.
+func (l LinuxParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "classificationsToInclude", l.ClassificationsToInclude)
+ populate(objectMap, "maintenanceRunId", l.MaintenanceRunID)
+ populate(objectMap, "packageNameMasksToExclude", l.PackageNameMasksToExclude)
+ populate(objectMap, "packageNameMasksToInclude", l.PackageNameMasksToInclude)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type LoadBalancerConfigurationProperties.
+func (l LoadBalancerConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "frontendIPConfigurations", l.FrontendIPConfigurations)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type LogAnalyticsInputBase.
+func (l LogAnalyticsInputBase) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "blobContainerSasUri", l.BlobContainerSasURI)
+ populateTimeRFC3339(objectMap, "fromTime", l.FromTime)
+ populate(objectMap, "groupByClientApplicationId", l.GroupByClientApplicationID)
+ populate(objectMap, "groupByOperationName", l.GroupByOperationName)
+ populate(objectMap, "groupByResourceName", l.GroupByResourceName)
+ populate(objectMap, "groupByThrottlePolicy", l.GroupByThrottlePolicy)
+ populate(objectMap, "groupByUserAgent", l.GroupByUserAgent)
+ populateTimeRFC3339(objectMap, "toTime", l.ToTime)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsInputBase.
+func (l *LogAnalyticsInputBase) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", l, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "blobContainerSasUri":
+ err = unpopulate(val, "BlobContainerSasURI", &l.BlobContainerSasURI)
+ delete(rawMsg, key)
+ case "fromTime":
+ err = unpopulateTimeRFC3339(val, "FromTime", &l.FromTime)
+ delete(rawMsg, key)
+ case "groupByClientApplicationId":
+ err = unpopulate(val, "GroupByClientApplicationID", &l.GroupByClientApplicationID)
+ delete(rawMsg, key)
+ case "groupByOperationName":
+ err = unpopulate(val, "GroupByOperationName", &l.GroupByOperationName)
+ delete(rawMsg, key)
+ case "groupByResourceName":
+ err = unpopulate(val, "GroupByResourceName", &l.GroupByResourceName)
+ delete(rawMsg, key)
+ case "groupByThrottlePolicy":
+ err = unpopulate(val, "GroupByThrottlePolicy", &l.GroupByThrottlePolicy)
+ delete(rawMsg, key)
+ case "groupByUserAgent":
+ err = unpopulate(val, "GroupByUserAgent", &l.GroupByUserAgent)
+ delete(rawMsg, key)
+ case "toTime":
+ err = unpopulateTimeRFC3339(val, "ToTime", &l.ToTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", l, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type MaintenanceRedeployStatus.
+func (m MaintenanceRedeployStatus) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "isCustomerInitiatedMaintenanceAllowed", m.IsCustomerInitiatedMaintenanceAllowed)
+ populate(objectMap, "lastOperationMessage", m.LastOperationMessage)
+ populate(objectMap, "lastOperationResultCode", m.LastOperationResultCode)
+ populateTimeRFC3339(objectMap, "maintenanceWindowEndTime", m.MaintenanceWindowEndTime)
+ populateTimeRFC3339(objectMap, "maintenanceWindowStartTime", m.MaintenanceWindowStartTime)
+ populateTimeRFC3339(objectMap, "preMaintenanceWindowEndTime", m.PreMaintenanceWindowEndTime)
+ populateTimeRFC3339(objectMap, "preMaintenanceWindowStartTime", m.PreMaintenanceWindowStartTime)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceRedeployStatus.
+func (m *MaintenanceRedeployStatus) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", m, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "isCustomerInitiatedMaintenanceAllowed":
+ err = unpopulate(val, "IsCustomerInitiatedMaintenanceAllowed", &m.IsCustomerInitiatedMaintenanceAllowed)
+ delete(rawMsg, key)
+ case "lastOperationMessage":
+ err = unpopulate(val, "LastOperationMessage", &m.LastOperationMessage)
+ delete(rawMsg, key)
+ case "lastOperationResultCode":
+ err = unpopulate(val, "LastOperationResultCode", &m.LastOperationResultCode)
+ delete(rawMsg, key)
+ case "maintenanceWindowEndTime":
+ err = unpopulateTimeRFC3339(val, "MaintenanceWindowEndTime", &m.MaintenanceWindowEndTime)
+ delete(rawMsg, key)
+ case "maintenanceWindowStartTime":
+ err = unpopulateTimeRFC3339(val, "MaintenanceWindowStartTime", &m.MaintenanceWindowStartTime)
+ delete(rawMsg, key)
+ case "preMaintenanceWindowEndTime":
+ err = unpopulateTimeRFC3339(val, "PreMaintenanceWindowEndTime", &m.PreMaintenanceWindowEndTime)
+ delete(rawMsg, key)
+ case "preMaintenanceWindowStartTime":
+ err = unpopulateTimeRFC3339(val, "PreMaintenanceWindowStartTime", &m.PreMaintenanceWindowStartTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", m, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type NetworkProfile.
+func (n NetworkProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "networkApiVersion", n.NetworkAPIVersion)
+ populate(objectMap, "networkInterfaceConfigurations", n.NetworkInterfaceConfigurations)
+ populate(objectMap, "networkInterfaces", n.NetworkInterfaces)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type OSProfile.
+func (o OSProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "adminPassword", o.AdminPassword)
+ populate(objectMap, "adminUsername", o.AdminUsername)
+ populate(objectMap, "allowExtensionOperations", o.AllowExtensionOperations)
+ populate(objectMap, "computerName", o.ComputerName)
+ populate(objectMap, "customData", o.CustomData)
+ populate(objectMap, "linuxConfiguration", o.LinuxConfiguration)
+ populate(objectMap, "requireGuestProvisionSignal", o.RequireGuestProvisionSignal)
+ populate(objectMap, "secrets", o.Secrets)
+ populate(objectMap, "windowsConfiguration", o.WindowsConfiguration)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ProximityPlacementGroup.
+func (p ProximityPlacementGroup) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", p.ID)
+ populate(objectMap, "location", p.Location)
+ populate(objectMap, "name", p.Name)
+ populate(objectMap, "properties", p.Properties)
+ populate(objectMap, "tags", p.Tags)
+ populate(objectMap, "type", p.Type)
+ populate(objectMap, "zones", p.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ProximityPlacementGroupProperties.
+func (p ProximityPlacementGroupProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "availabilitySets", p.AvailabilitySets)
+ populate(objectMap, "colocationStatus", p.ColocationStatus)
+ populate(objectMap, "intent", p.Intent)
+ populate(objectMap, "proximityPlacementGroupType", p.ProximityPlacementGroupType)
+ populate(objectMap, "virtualMachineScaleSets", p.VirtualMachineScaleSets)
+ populate(objectMap, "virtualMachines", p.VirtualMachines)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ProximityPlacementGroupPropertiesIntent.
+func (p ProximityPlacementGroupPropertiesIntent) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "vmSizes", p.VMSizes)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ProximityPlacementGroupUpdate.
+func (p ProximityPlacementGroupUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "tags", p.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ReplicationStatus.
+func (r ReplicationStatus) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "aggregatedState", r.AggregatedState)
+ populate(objectMap, "summary", r.Summary)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RequestRateByIntervalInput.
+func (r RequestRateByIntervalInput) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "blobContainerSasUri", r.BlobContainerSasURI)
+ populateTimeRFC3339(objectMap, "fromTime", r.FromTime)
+ populate(objectMap, "groupByClientApplicationId", r.GroupByClientApplicationID)
+ populate(objectMap, "groupByOperationName", r.GroupByOperationName)
+ populate(objectMap, "groupByResourceName", r.GroupByResourceName)
+ populate(objectMap, "groupByThrottlePolicy", r.GroupByThrottlePolicy)
+ populate(objectMap, "groupByUserAgent", r.GroupByUserAgent)
+ populate(objectMap, "intervalLength", r.IntervalLength)
+ populateTimeRFC3339(objectMap, "toTime", r.ToTime)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type RequestRateByIntervalInput.
+func (r *RequestRateByIntervalInput) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "blobContainerSasUri":
+ err = unpopulate(val, "BlobContainerSasURI", &r.BlobContainerSasURI)
+ delete(rawMsg, key)
+ case "fromTime":
+ err = unpopulateTimeRFC3339(val, "FromTime", &r.FromTime)
+ delete(rawMsg, key)
+ case "groupByClientApplicationId":
+ err = unpopulate(val, "GroupByClientApplicationID", &r.GroupByClientApplicationID)
+ delete(rawMsg, key)
+ case "groupByOperationName":
+ err = unpopulate(val, "GroupByOperationName", &r.GroupByOperationName)
+ delete(rawMsg, key)
+ case "groupByResourceName":
+ err = unpopulate(val, "GroupByResourceName", &r.GroupByResourceName)
+ delete(rawMsg, key)
+ case "groupByThrottlePolicy":
+ err = unpopulate(val, "GroupByThrottlePolicy", &r.GroupByThrottlePolicy)
+ delete(rawMsg, key)
+ case "groupByUserAgent":
+ err = unpopulate(val, "GroupByUserAgent", &r.GroupByUserAgent)
+ delete(rawMsg, key)
+ case "intervalLength":
+ err = unpopulate(val, "IntervalLength", &r.IntervalLength)
+ delete(rawMsg, key)
+ case "toTime":
+ err = unpopulateTimeRFC3339(val, "ToTime", &r.ToTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Resource.
+func (r Resource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", r.ID)
+ populate(objectMap, "location", r.Location)
+ populate(objectMap, "name", r.Name)
+ populate(objectMap, "tags", r.Tags)
+ populate(objectMap, "type", r.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceInstanceViewStatus.
+func (r *ResourceInstanceViewStatus) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "code":
+ err = unpopulate(val, "Code", &r.Code)
+ delete(rawMsg, key)
+ case "displayStatus":
+ err = unpopulate(val, "DisplayStatus", &r.DisplayStatus)
+ delete(rawMsg, key)
+ case "level":
+ err = unpopulate(val, "Level", &r.Level)
+ delete(rawMsg, key)
+ case "message":
+ err = unpopulate(val, "Message", &r.Message)
+ delete(rawMsg, key)
+ case "time":
+ err = unpopulateTimeRFC3339(val, "Time", &r.Time)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ResourceWithOptionalLocation.
+func (r ResourceWithOptionalLocation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", r.ID)
+ populate(objectMap, "location", r.Location)
+ populate(objectMap, "name", r.Name)
+ populate(objectMap, "tags", r.Tags)
+ populate(objectMap, "type", r.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RestorePointCollection.
+func (r RestorePointCollection) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", r.ID)
+ populate(objectMap, "location", r.Location)
+ populate(objectMap, "name", r.Name)
+ populate(objectMap, "properties", r.Properties)
+ populate(objectMap, "tags", r.Tags)
+ populate(objectMap, "type", r.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RestorePointCollectionProperties.
+func (r RestorePointCollectionProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "provisioningState", r.ProvisioningState)
+ populate(objectMap, "restorePointCollectionId", r.RestorePointCollectionID)
+ populate(objectMap, "restorePoints", r.RestorePoints)
+ populate(objectMap, "source", r.Source)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RestorePointCollectionUpdate.
+func (r RestorePointCollectionUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", r.Properties)
+ populate(objectMap, "tags", r.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RestorePointInstanceView.
+func (r RestorePointInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "diskRestorePoints", r.DiskRestorePoints)
+ populate(objectMap, "statuses", r.Statuses)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RestorePointProperties.
+func (r RestorePointProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "consistencyMode", r.ConsistencyMode)
+ populate(objectMap, "excludeDisks", r.ExcludeDisks)
+ populate(objectMap, "instanceView", r.InstanceView)
+ populate(objectMap, "provisioningState", r.ProvisioningState)
+ populate(objectMap, "sourceMetadata", r.SourceMetadata)
+ populate(objectMap, "sourceRestorePoint", r.SourceRestorePoint)
+ populateTimeRFC3339(objectMap, "timeCreated", r.TimeCreated)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointProperties.
+func (r *RestorePointProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "consistencyMode":
+ err = unpopulate(val, "ConsistencyMode", &r.ConsistencyMode)
+ delete(rawMsg, key)
+ case "excludeDisks":
+ err = unpopulate(val, "ExcludeDisks", &r.ExcludeDisks)
+ delete(rawMsg, key)
+ case "instanceView":
+ err = unpopulate(val, "InstanceView", &r.InstanceView)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &r.ProvisioningState)
+ delete(rawMsg, key)
+ case "sourceMetadata":
+ err = unpopulate(val, "SourceMetadata", &r.SourceMetadata)
+ delete(rawMsg, key)
+ case "sourceRestorePoint":
+ err = unpopulate(val, "SourceRestorePoint", &r.SourceRestorePoint)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &r.TimeCreated)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RestorePointSourceVMStorageProfile.
+func (r RestorePointSourceVMStorageProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dataDisks", r.DataDisks)
+ populate(objectMap, "osDisk", r.OSDisk)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RoleInstances.
+func (r RoleInstances) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "roleInstances", r.RoleInstances)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RollingUpgradeRunningStatus.
+func (r RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "code", r.Code)
+ populate(objectMap, "lastAction", r.LastAction)
+ populateTimeRFC3339(objectMap, "lastActionTime", r.LastActionTime)
+ populateTimeRFC3339(objectMap, "startTime", r.StartTime)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type RollingUpgradeRunningStatus.
+func (r *RollingUpgradeRunningStatus) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "code":
+ err = unpopulate(val, "Code", &r.Code)
+ delete(rawMsg, key)
+ case "lastAction":
+ err = unpopulate(val, "LastAction", &r.LastAction)
+ delete(rawMsg, key)
+ case "lastActionTime":
+ err = unpopulateTimeRFC3339(val, "LastActionTime", &r.LastActionTime)
+ delete(rawMsg, key)
+ case "startTime":
+ err = unpopulateTimeRFC3339(val, "StartTime", &r.StartTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RollingUpgradeStatusInfo.
+func (r RollingUpgradeStatusInfo) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", r.ID)
+ populate(objectMap, "location", r.Location)
+ populate(objectMap, "name", r.Name)
+ populate(objectMap, "properties", r.Properties)
+ populate(objectMap, "tags", r.Tags)
+ populate(objectMap, "type", r.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RunCommandInput.
+func (r RunCommandInput) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "commandId", r.CommandID)
+ populate(objectMap, "parameters", r.Parameters)
+ populate(objectMap, "script", r.Script)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SSHConfiguration.
+func (s SSHConfiguration) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "publicKeys", s.PublicKeys)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SSHPublicKeyResource.
+func (s SSHPublicKeyResource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", s.ID)
+ populate(objectMap, "location", s.Location)
+ populate(objectMap, "name", s.Name)
+ populate(objectMap, "properties", s.Properties)
+ populate(objectMap, "tags", s.Tags)
+ populate(objectMap, "type", s.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SSHPublicKeyUpdateResource.
+func (s SSHPublicKeyUpdateResource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", s.Properties)
+ populate(objectMap, "tags", s.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ScaleInPolicy.
+func (s ScaleInPolicy) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "forceDeletion", s.ForceDeletion)
+ populate(objectMap, "rules", s.Rules)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageProperties.
+func (s *SharedGalleryImageProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "disallowed":
+ err = unpopulate(val, "Disallowed", &s.Disallowed)
+ delete(rawMsg, key)
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &s.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "features":
+ err = unpopulate(val, "Features", &s.Features)
+ delete(rawMsg, key)
+ case "hyperVGeneration":
+ err = unpopulate(val, "HyperVGeneration", &s.HyperVGeneration)
+ delete(rawMsg, key)
+ case "identifier":
+ err = unpopulate(val, "Identifier", &s.Identifier)
+ delete(rawMsg, key)
+ case "osState":
+ err = unpopulate(val, "OSState", &s.OSState)
+ delete(rawMsg, key)
+ case "osType":
+ err = unpopulate(val, "OSType", &s.OSType)
+ delete(rawMsg, key)
+ case "purchasePlan":
+ err = unpopulate(val, "PurchasePlan", &s.PurchasePlan)
+ delete(rawMsg, key)
+ case "recommended":
+ err = unpopulate(val, "Recommended", &s.Recommended)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SharedGalleryImageVersionProperties.
+func (s *SharedGalleryImageVersionProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "endOfLifeDate":
+ err = unpopulateTimeRFC3339(val, "EndOfLifeDate", &s.EndOfLifeDate)
+ delete(rawMsg, key)
+ case "publishedDate":
+ err = unpopulateTimeRFC3339(val, "PublishedDate", &s.PublishedDate)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SharingProfile.
+func (s SharingProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "communityGalleryInfo", &s.CommunityGalleryInfo)
+ populate(objectMap, "groups", s.Groups)
+ populate(objectMap, "permissions", s.Permissions)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SharingProfileGroup.
+func (s SharingProfileGroup) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "ids", s.IDs)
+ populate(objectMap, "type", s.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SharingStatus.
+func (s SharingStatus) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "aggregatedState", s.AggregatedState)
+ populate(objectMap, "summary", s.Summary)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SharingUpdate.
+func (s SharingUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "groups", s.Groups)
+ populate(objectMap, "operationType", s.OperationType)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Snapshot.
+func (s Snapshot) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extendedLocation", s.ExtendedLocation)
+ populate(objectMap, "id", s.ID)
+ populate(objectMap, "location", s.Location)
+ populate(objectMap, "managedBy", s.ManagedBy)
+ populate(objectMap, "name", s.Name)
+ populate(objectMap, "properties", s.Properties)
+ populate(objectMap, "sku", s.SKU)
+ populate(objectMap, "tags", s.Tags)
+ populate(objectMap, "type", s.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SnapshotProperties.
+func (s SnapshotProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "completionPercent", s.CompletionPercent)
+ populate(objectMap, "creationData", s.CreationData)
+ populate(objectMap, "dataAccessAuthMode", s.DataAccessAuthMode)
+ populate(objectMap, "diskAccessId", s.DiskAccessID)
+ populate(objectMap, "diskSizeBytes", s.DiskSizeBytes)
+ populate(objectMap, "diskSizeGB", s.DiskSizeGB)
+ populate(objectMap, "diskState", s.DiskState)
+ populate(objectMap, "encryption", s.Encryption)
+ populate(objectMap, "encryptionSettingsCollection", s.EncryptionSettingsCollection)
+ populate(objectMap, "hyperVGeneration", s.HyperVGeneration)
+ populate(objectMap, "incremental", s.Incremental)
+ populate(objectMap, "networkAccessPolicy", s.NetworkAccessPolicy)
+ populate(objectMap, "osType", s.OSType)
+ populate(objectMap, "provisioningState", s.ProvisioningState)
+ populate(objectMap, "publicNetworkAccess", s.PublicNetworkAccess)
+ populate(objectMap, "purchasePlan", s.PurchasePlan)
+ populate(objectMap, "securityProfile", s.SecurityProfile)
+ populate(objectMap, "supportedCapabilities", s.SupportedCapabilities)
+ populate(objectMap, "supportsHibernation", s.SupportsHibernation)
+ populateTimeRFC3339(objectMap, "timeCreated", s.TimeCreated)
+ populate(objectMap, "uniqueId", s.UniqueID)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotProperties.
+func (s *SnapshotProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "completionPercent":
+ err = unpopulate(val, "CompletionPercent", &s.CompletionPercent)
+ delete(rawMsg, key)
+ case "creationData":
+ err = unpopulate(val, "CreationData", &s.CreationData)
+ delete(rawMsg, key)
+ case "dataAccessAuthMode":
+ err = unpopulate(val, "DataAccessAuthMode", &s.DataAccessAuthMode)
+ delete(rawMsg, key)
+ case "diskAccessId":
+ err = unpopulate(val, "DiskAccessID", &s.DiskAccessID)
+ delete(rawMsg, key)
+ case "diskSizeBytes":
+ err = unpopulate(val, "DiskSizeBytes", &s.DiskSizeBytes)
+ delete(rawMsg, key)
+ case "diskSizeGB":
+ err = unpopulate(val, "DiskSizeGB", &s.DiskSizeGB)
+ delete(rawMsg, key)
+ case "diskState":
+ err = unpopulate(val, "DiskState", &s.DiskState)
+ delete(rawMsg, key)
+ case "encryption":
+ err = unpopulate(val, "Encryption", &s.Encryption)
+ delete(rawMsg, key)
+ case "encryptionSettingsCollection":
+ err = unpopulate(val, "EncryptionSettingsCollection", &s.EncryptionSettingsCollection)
+ delete(rawMsg, key)
+ case "hyperVGeneration":
+ err = unpopulate(val, "HyperVGeneration", &s.HyperVGeneration)
+ delete(rawMsg, key)
+ case "incremental":
+ err = unpopulate(val, "Incremental", &s.Incremental)
+ delete(rawMsg, key)
+ case "networkAccessPolicy":
+ err = unpopulate(val, "NetworkAccessPolicy", &s.NetworkAccessPolicy)
+ delete(rawMsg, key)
+ case "osType":
+ err = unpopulate(val, "OSType", &s.OSType)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &s.ProvisioningState)
+ delete(rawMsg, key)
+ case "publicNetworkAccess":
+ err = unpopulate(val, "PublicNetworkAccess", &s.PublicNetworkAccess)
+ delete(rawMsg, key)
+ case "purchasePlan":
+ err = unpopulate(val, "PurchasePlan", &s.PurchasePlan)
+ delete(rawMsg, key)
+ case "securityProfile":
+ err = unpopulate(val, "SecurityProfile", &s.SecurityProfile)
+ delete(rawMsg, key)
+ case "supportedCapabilities":
+ err = unpopulate(val, "SupportedCapabilities", &s.SupportedCapabilities)
+ delete(rawMsg, key)
+ case "supportsHibernation":
+ err = unpopulate(val, "SupportsHibernation", &s.SupportsHibernation)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &s.TimeCreated)
+ delete(rawMsg, key)
+ case "uniqueId":
+ err = unpopulate(val, "UniqueID", &s.UniqueID)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SnapshotUpdate.
+func (s SnapshotUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", s.Properties)
+ populate(objectMap, "sku", s.SKU)
+ populate(objectMap, "tags", s.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type StorageProfile.
+func (s StorageProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dataDisks", s.DataDisks)
+ populate(objectMap, "imageReference", s.ImageReference)
+ populate(objectMap, "osDisk", s.OSDisk)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ThrottledRequestsInput.
+func (t ThrottledRequestsInput) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "blobContainerSasUri", t.BlobContainerSasURI)
+ populateTimeRFC3339(objectMap, "fromTime", t.FromTime)
+ populate(objectMap, "groupByClientApplicationId", t.GroupByClientApplicationID)
+ populate(objectMap, "groupByOperationName", t.GroupByOperationName)
+ populate(objectMap, "groupByResourceName", t.GroupByResourceName)
+ populate(objectMap, "groupByThrottlePolicy", t.GroupByThrottlePolicy)
+ populate(objectMap, "groupByUserAgent", t.GroupByUserAgent)
+ populateTimeRFC3339(objectMap, "toTime", t.ToTime)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ThrottledRequestsInput.
+func (t *ThrottledRequestsInput) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "blobContainerSasUri":
+ err = unpopulate(val, "BlobContainerSasURI", &t.BlobContainerSasURI)
+ delete(rawMsg, key)
+ case "fromTime":
+ err = unpopulateTimeRFC3339(val, "FromTime", &t.FromTime)
+ delete(rawMsg, key)
+ case "groupByClientApplicationId":
+ err = unpopulate(val, "GroupByClientApplicationID", &t.GroupByClientApplicationID)
+ delete(rawMsg, key)
+ case "groupByOperationName":
+ err = unpopulate(val, "GroupByOperationName", &t.GroupByOperationName)
+ delete(rawMsg, key)
+ case "groupByResourceName":
+ err = unpopulate(val, "GroupByResourceName", &t.GroupByResourceName)
+ delete(rawMsg, key)
+ case "groupByThrottlePolicy":
+ err = unpopulate(val, "GroupByThrottlePolicy", &t.GroupByThrottlePolicy)
+ delete(rawMsg, key)
+ case "groupByUserAgent":
+ err = unpopulate(val, "GroupByUserAgent", &t.GroupByUserAgent)
+ delete(rawMsg, key)
+ case "toTime":
+ err = unpopulateTimeRFC3339(val, "ToTime", &t.ToTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type UpdateResource.
+func (u UpdateResource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "tags", u.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type UpdateResourceDefinition.
+func (u UpdateResourceDefinition) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", u.ID)
+ populate(objectMap, "name", u.Name)
+ populate(objectMap, "tags", u.Tags)
+ populate(objectMap, "type", u.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type UpgradeOperationHistoryStatus.
+func (u *UpgradeOperationHistoryStatus) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", u, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "code":
+ err = unpopulate(val, "Code", &u.Code)
+ delete(rawMsg, key)
+ case "endTime":
+ err = unpopulateTimeRFC3339(val, "EndTime", &u.EndTime)
+ delete(rawMsg, key)
+ case "startTime":
+ err = unpopulateTimeRFC3339(val, "StartTime", &u.StartTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", u, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VaultSecretGroup.
+func (v VaultSecretGroup) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "sourceVault", v.SourceVault)
+ populate(objectMap, "vaultCertificates", v.VaultCertificates)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachine.
+func (v VirtualMachine) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extendedLocation", v.ExtendedLocation)
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "identity", v.Identity)
+ populate(objectMap, "location", v.Location)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "plan", v.Plan)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "resources", v.Resources)
+ populate(objectMap, "tags", v.Tags)
+ populate(objectMap, "type", v.Type)
+ populate(objectMap, "zones", v.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineAgentInstanceView.
+func (v VirtualMachineAgentInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extensionHandlers", v.ExtensionHandlers)
+ populate(objectMap, "statuses", v.Statuses)
+ populate(objectMap, "vmAgentVersion", v.VMAgentVersion)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineAssessPatchesResult.
+func (v *VirtualMachineAssessPatchesResult) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "assessmentActivityId":
+ err = unpopulate(val, "AssessmentActivityID", &v.AssessmentActivityID)
+ delete(rawMsg, key)
+ case "availablePatches":
+ err = unpopulate(val, "AvailablePatches", &v.AvailablePatches)
+ delete(rawMsg, key)
+ case "criticalAndSecurityPatchCount":
+ err = unpopulate(val, "CriticalAndSecurityPatchCount", &v.CriticalAndSecurityPatchCount)
+ delete(rawMsg, key)
+ case "error":
+ err = unpopulate(val, "Error", &v.Error)
+ delete(rawMsg, key)
+ case "otherPatchCount":
+ err = unpopulate(val, "OtherPatchCount", &v.OtherPatchCount)
+ delete(rawMsg, key)
+ case "rebootPending":
+ err = unpopulate(val, "RebootPending", &v.RebootPending)
+ delete(rawMsg, key)
+ case "startDateTime":
+ err = unpopulateTimeRFC3339(val, "StartDateTime", &v.StartDateTime)
+ delete(rawMsg, key)
+ case "status":
+ err = unpopulate(val, "Status", &v.Status)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineCaptureResult.
+func (v VirtualMachineCaptureResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "contentVersion", v.ContentVersion)
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "parameters", &v.Parameters)
+ populate(objectMap, "resources", v.Resources)
+ populate(objectMap, "$schema", v.Schema)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineExtension.
+func (v VirtualMachineExtension) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "location", v.Location)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "tags", v.Tags)
+ populate(objectMap, "type", v.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineExtensionImage.
+func (v VirtualMachineExtensionImage) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "location", v.Location)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "tags", v.Tags)
+ populate(objectMap, "type", v.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineExtensionInstanceView.
+func (v VirtualMachineExtensionInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "statuses", v.Statuses)
+ populate(objectMap, "substatuses", v.Substatuses)
+ populate(objectMap, "type", v.Type)
+ populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineExtensionUpdate.
+func (v VirtualMachineExtensionUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "tags", v.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineIdentity.
+func (v VirtualMachineIdentity) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "principalId", v.PrincipalID)
+ populate(objectMap, "tenantId", v.TenantID)
+ populate(objectMap, "type", v.Type)
+ populate(objectMap, "userAssignedIdentities", v.UserAssignedIdentities)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineImage.
+func (v VirtualMachineImage) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extendedLocation", v.ExtendedLocation)
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "location", v.Location)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "tags", v.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineImageProperties.
+func (v VirtualMachineImageProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "architecture", v.Architecture)
+ populate(objectMap, "automaticOSUpgradeProperties", v.AutomaticOSUpgradeProperties)
+ populate(objectMap, "dataDiskImages", v.DataDiskImages)
+ populate(objectMap, "disallowed", v.Disallowed)
+ populate(objectMap, "features", v.Features)
+ populate(objectMap, "hyperVGeneration", v.HyperVGeneration)
+ populate(objectMap, "osDiskImage", v.OSDiskImage)
+ populate(objectMap, "plan", v.Plan)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineImageResource.
+func (v VirtualMachineImageResource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extendedLocation", v.ExtendedLocation)
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "location", v.Location)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "tags", v.Tags)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineInstallPatchesResult.
+func (v *VirtualMachineInstallPatchesResult) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "error":
+ err = unpopulate(val, "Error", &v.Error)
+ delete(rawMsg, key)
+ case "excludedPatchCount":
+ err = unpopulate(val, "ExcludedPatchCount", &v.ExcludedPatchCount)
+ delete(rawMsg, key)
+ case "failedPatchCount":
+ err = unpopulate(val, "FailedPatchCount", &v.FailedPatchCount)
+ delete(rawMsg, key)
+ case "installationActivityId":
+ err = unpopulate(val, "InstallationActivityID", &v.InstallationActivityID)
+ delete(rawMsg, key)
+ case "installedPatchCount":
+ err = unpopulate(val, "InstalledPatchCount", &v.InstalledPatchCount)
+ delete(rawMsg, key)
+ case "maintenanceWindowExceeded":
+ err = unpopulate(val, "MaintenanceWindowExceeded", &v.MaintenanceWindowExceeded)
+ delete(rawMsg, key)
+ case "notSelectedPatchCount":
+ err = unpopulate(val, "NotSelectedPatchCount", &v.NotSelectedPatchCount)
+ delete(rawMsg, key)
+ case "patches":
+ err = unpopulate(val, "Patches", &v.Patches)
+ delete(rawMsg, key)
+ case "pendingPatchCount":
+ err = unpopulate(val, "PendingPatchCount", &v.PendingPatchCount)
+ delete(rawMsg, key)
+ case "rebootStatus":
+ err = unpopulate(val, "RebootStatus", &v.RebootStatus)
+ delete(rawMsg, key)
+ case "startDateTime":
+ err = unpopulateTimeRFC3339(val, "StartDateTime", &v.StartDateTime)
+ delete(rawMsg, key)
+ case "status":
+ err = unpopulate(val, "Status", &v.Status)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineInstanceView.
+func (v VirtualMachineInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "assignedHost", v.AssignedHost)
+ populate(objectMap, "bootDiagnostics", v.BootDiagnostics)
+ populate(objectMap, "computerName", v.ComputerName)
+ populate(objectMap, "disks", v.Disks)
+ populate(objectMap, "extensions", v.Extensions)
+ populate(objectMap, "hyperVGeneration", v.HyperVGeneration)
+ populate(objectMap, "maintenanceRedeployStatus", v.MaintenanceRedeployStatus)
+ populate(objectMap, "osName", v.OSName)
+ populate(objectMap, "osVersion", v.OSVersion)
+ populate(objectMap, "patchStatus", v.PatchStatus)
+ populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain)
+ populate(objectMap, "platformUpdateDomain", v.PlatformUpdateDomain)
+ populate(objectMap, "rdpThumbPrint", v.RdpThumbPrint)
+ populate(objectMap, "statuses", v.Statuses)
+ populate(objectMap, "vmAgent", v.VMAgent)
+ populate(objectMap, "vmHealth", v.VMHealth)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineNetworkInterfaceConfigurationProperties.
+func (v VirtualMachineNetworkInterfaceConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dnsSettings", v.DNSSettings)
+ populate(objectMap, "deleteOption", v.DeleteOption)
+ populate(objectMap, "dscpConfiguration", v.DscpConfiguration)
+ populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking)
+ populate(objectMap, "enableFpga", v.EnableFpga)
+ populate(objectMap, "enableIPForwarding", v.EnableIPForwarding)
+ populate(objectMap, "ipConfigurations", v.IPConfigurations)
+ populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup)
+ populate(objectMap, "primary", v.Primary)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineNetworkInterfaceDNSSettingsConfiguration.
+func (v VirtualMachineNetworkInterfaceDNSSettingsConfiguration) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dnsServers", v.DNSServers)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineNetworkInterfaceIPConfigurationProperties.
+func (v VirtualMachineNetworkInterfaceIPConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools)
+ populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups)
+ populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools)
+ populate(objectMap, "primary", v.Primary)
+ populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion)
+ populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration)
+ populate(objectMap, "subnet", v.Subnet)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachinePatchStatus.
+func (v VirtualMachinePatchStatus) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "availablePatchSummary", v.AvailablePatchSummary)
+ populate(objectMap, "configurationStatuses", v.ConfigurationStatuses)
+ populate(objectMap, "lastPatchInstallationSummary", v.LastPatchInstallationSummary)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineProperties.
+func (v VirtualMachineProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "additionalCapabilities", v.AdditionalCapabilities)
+ populate(objectMap, "applicationProfile", v.ApplicationProfile)
+ populate(objectMap, "availabilitySet", v.AvailabilitySet)
+ populate(objectMap, "billingProfile", v.BillingProfile)
+ populate(objectMap, "capacityReservation", v.CapacityReservation)
+ populate(objectMap, "diagnosticsProfile", v.DiagnosticsProfile)
+ populate(objectMap, "evictionPolicy", v.EvictionPolicy)
+ populate(objectMap, "extensionsTimeBudget", v.ExtensionsTimeBudget)
+ populate(objectMap, "hardwareProfile", v.HardwareProfile)
+ populate(objectMap, "host", v.Host)
+ populate(objectMap, "hostGroup", v.HostGroup)
+ populate(objectMap, "instanceView", v.InstanceView)
+ populate(objectMap, "licenseType", v.LicenseType)
+ populate(objectMap, "networkProfile", v.NetworkProfile)
+ populate(objectMap, "osProfile", v.OSProfile)
+ populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain)
+ populate(objectMap, "priority", v.Priority)
+ populate(objectMap, "provisioningState", v.ProvisioningState)
+ populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup)
+ populate(objectMap, "scheduledEventsProfile", v.ScheduledEventsProfile)
+ populate(objectMap, "securityProfile", v.SecurityProfile)
+ populate(objectMap, "storageProfile", v.StorageProfile)
+ populateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated)
+ populate(objectMap, "userData", v.UserData)
+ populate(objectMap, "vmId", v.VMID)
+ populate(objectMap, "virtualMachineScaleSet", v.VirtualMachineScaleSet)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineProperties.
+func (v *VirtualMachineProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "additionalCapabilities":
+ err = unpopulate(val, "AdditionalCapabilities", &v.AdditionalCapabilities)
+ delete(rawMsg, key)
+ case "applicationProfile":
+ err = unpopulate(val, "ApplicationProfile", &v.ApplicationProfile)
+ delete(rawMsg, key)
+ case "availabilitySet":
+ err = unpopulate(val, "AvailabilitySet", &v.AvailabilitySet)
+ delete(rawMsg, key)
+ case "billingProfile":
+ err = unpopulate(val, "BillingProfile", &v.BillingProfile)
+ delete(rawMsg, key)
+ case "capacityReservation":
+ err = unpopulate(val, "CapacityReservation", &v.CapacityReservation)
+ delete(rawMsg, key)
+ case "diagnosticsProfile":
+ err = unpopulate(val, "DiagnosticsProfile", &v.DiagnosticsProfile)
+ delete(rawMsg, key)
+ case "evictionPolicy":
+ err = unpopulate(val, "EvictionPolicy", &v.EvictionPolicy)
+ delete(rawMsg, key)
+ case "extensionsTimeBudget":
+ err = unpopulate(val, "ExtensionsTimeBudget", &v.ExtensionsTimeBudget)
+ delete(rawMsg, key)
+ case "hardwareProfile":
+ err = unpopulate(val, "HardwareProfile", &v.HardwareProfile)
+ delete(rawMsg, key)
+ case "host":
+ err = unpopulate(val, "Host", &v.Host)
+ delete(rawMsg, key)
+ case "hostGroup":
+ err = unpopulate(val, "HostGroup", &v.HostGroup)
+ delete(rawMsg, key)
+ case "instanceView":
+ err = unpopulate(val, "InstanceView", &v.InstanceView)
+ delete(rawMsg, key)
+ case "licenseType":
+ err = unpopulate(val, "LicenseType", &v.LicenseType)
+ delete(rawMsg, key)
+ case "networkProfile":
+ err = unpopulate(val, "NetworkProfile", &v.NetworkProfile)
+ delete(rawMsg, key)
+ case "osProfile":
+ err = unpopulate(val, "OSProfile", &v.OSProfile)
+ delete(rawMsg, key)
+ case "platformFaultDomain":
+ err = unpopulate(val, "PlatformFaultDomain", &v.PlatformFaultDomain)
+ delete(rawMsg, key)
+ case "priority":
+ err = unpopulate(val, "Priority", &v.Priority)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &v.ProvisioningState)
+ delete(rawMsg, key)
+ case "proximityPlacementGroup":
+ err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup)
+ delete(rawMsg, key)
+ case "scheduledEventsProfile":
+ err = unpopulate(val, "ScheduledEventsProfile", &v.ScheduledEventsProfile)
+ delete(rawMsg, key)
+ case "securityProfile":
+ err = unpopulate(val, "SecurityProfile", &v.SecurityProfile)
+ delete(rawMsg, key)
+ case "storageProfile":
+ err = unpopulate(val, "StorageProfile", &v.StorageProfile)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &v.TimeCreated)
+ delete(rawMsg, key)
+ case "userData":
+ err = unpopulate(val, "UserData", &v.UserData)
+ delete(rawMsg, key)
+ case "vmId":
+ err = unpopulate(val, "VMID", &v.VMID)
+ delete(rawMsg, key)
+ case "virtualMachineScaleSet":
+ err = unpopulate(val, "VirtualMachineScaleSet", &v.VirtualMachineScaleSet)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachinePublicIPAddressConfigurationProperties.
+func (v VirtualMachinePublicIPAddressConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dnsSettings", v.DNSSettings)
+ populate(objectMap, "deleteOption", v.DeleteOption)
+ populate(objectMap, "ipTags", v.IPTags)
+ populate(objectMap, "idleTimeoutInMinutes", v.IdleTimeoutInMinutes)
+ populate(objectMap, "publicIPAddressVersion", v.PublicIPAddressVersion)
+ populate(objectMap, "publicIPAllocationMethod", v.PublicIPAllocationMethod)
+ populate(objectMap, "publicIPPrefix", v.PublicIPPrefix)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineRunCommand.
+func (v VirtualMachineRunCommand) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "location", v.Location)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "tags", v.Tags)
+ populate(objectMap, "type", v.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineRunCommandInstanceView.
+func (v VirtualMachineRunCommandInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populateTimeRFC3339(objectMap, "endTime", v.EndTime)
+ populate(objectMap, "error", v.Error)
+ populate(objectMap, "executionMessage", v.ExecutionMessage)
+ populate(objectMap, "executionState", v.ExecutionState)
+ populate(objectMap, "exitCode", v.ExitCode)
+ populate(objectMap, "output", v.Output)
+ populateTimeRFC3339(objectMap, "startTime", v.StartTime)
+ populate(objectMap, "statuses", v.Statuses)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineRunCommandInstanceView.
+func (v *VirtualMachineRunCommandInstanceView) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "endTime":
+ err = unpopulateTimeRFC3339(val, "EndTime", &v.EndTime)
+ delete(rawMsg, key)
+ case "error":
+ err = unpopulate(val, "Error", &v.Error)
+ delete(rawMsg, key)
+ case "executionMessage":
+ err = unpopulate(val, "ExecutionMessage", &v.ExecutionMessage)
+ delete(rawMsg, key)
+ case "executionState":
+ err = unpopulate(val, "ExecutionState", &v.ExecutionState)
+ delete(rawMsg, key)
+ case "exitCode":
+ err = unpopulate(val, "ExitCode", &v.ExitCode)
+ delete(rawMsg, key)
+ case "output":
+ err = unpopulate(val, "Output", &v.Output)
+ delete(rawMsg, key)
+ case "startTime":
+ err = unpopulateTimeRFC3339(val, "StartTime", &v.StartTime)
+ delete(rawMsg, key)
+ case "statuses":
+ err = unpopulate(val, "Statuses", &v.Statuses)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineRunCommandProperties.
+func (v VirtualMachineRunCommandProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "asyncExecution", v.AsyncExecution)
+ populate(objectMap, "errorBlobUri", v.ErrorBlobURI)
+ populate(objectMap, "instanceView", v.InstanceView)
+ populate(objectMap, "outputBlobUri", v.OutputBlobURI)
+ populate(objectMap, "parameters", v.Parameters)
+ populate(objectMap, "protectedParameters", v.ProtectedParameters)
+ populate(objectMap, "provisioningState", v.ProvisioningState)
+ populate(objectMap, "runAsPassword", v.RunAsPassword)
+ populate(objectMap, "runAsUser", v.RunAsUser)
+ populate(objectMap, "source", v.Source)
+ populate(objectMap, "timeoutInSeconds", v.TimeoutInSeconds)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineRunCommandUpdate.
+func (v VirtualMachineRunCommandUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "tags", v.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSet.
+func (v VirtualMachineScaleSet) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extendedLocation", v.ExtendedLocation)
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "identity", v.Identity)
+ populate(objectMap, "location", v.Location)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "plan", v.Plan)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "sku", v.SKU)
+ populate(objectMap, "tags", v.Tags)
+ populate(objectMap, "type", v.Type)
+ populate(objectMap, "zones", v.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetExtensionProfile.
+func (v VirtualMachineScaleSetExtensionProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "extensions", v.Extensions)
+ populate(objectMap, "extensionsTimeBudget", v.ExtensionsTimeBudget)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetExtensionProperties.
+func (v VirtualMachineScaleSetExtensionProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "autoUpgradeMinorVersion", v.AutoUpgradeMinorVersion)
+ populate(objectMap, "enableAutomaticUpgrade", v.EnableAutomaticUpgrade)
+ populate(objectMap, "forceUpdateTag", v.ForceUpdateTag)
+ populate(objectMap, "protectedSettings", &v.ProtectedSettings)
+ populate(objectMap, "protectedSettingsFromKeyVault", &v.ProtectedSettingsFromKeyVault)
+ populate(objectMap, "provisionAfterExtensions", v.ProvisionAfterExtensions)
+ populate(objectMap, "provisioningState", v.ProvisioningState)
+ populate(objectMap, "publisher", v.Publisher)
+ populate(objectMap, "settings", &v.Settings)
+ populate(objectMap, "suppressFailures", v.SuppressFailures)
+ populate(objectMap, "type", v.Type)
+ populate(objectMap, "typeHandlerVersion", v.TypeHandlerVersion)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetExtensionUpdate.
+func (v VirtualMachineScaleSetExtensionUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "type", v.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetIPConfigurationProperties.
+func (v VirtualMachineScaleSetIPConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools)
+ populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups)
+ populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools)
+ populate(objectMap, "loadBalancerInboundNatPools", v.LoadBalancerInboundNatPools)
+ populate(objectMap, "primary", v.Primary)
+ populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion)
+ populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration)
+ populate(objectMap, "subnet", v.Subnet)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetIdentity.
+func (v VirtualMachineScaleSetIdentity) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "principalId", v.PrincipalID)
+ populate(objectMap, "tenantId", v.TenantID)
+ populate(objectMap, "type", v.Type)
+ populate(objectMap, "userAssignedIdentities", v.UserAssignedIdentities)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetNetworkConfigurationDNSSettings.
+func (v VirtualMachineScaleSetNetworkConfigurationDNSSettings) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dnsServers", v.DNSServers)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetNetworkConfigurationProperties.
+func (v VirtualMachineScaleSetNetworkConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dnsSettings", v.DNSSettings)
+ populate(objectMap, "deleteOption", v.DeleteOption)
+ populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking)
+ populate(objectMap, "enableFpga", v.EnableFpga)
+ populate(objectMap, "enableIPForwarding", v.EnableIPForwarding)
+ populate(objectMap, "ipConfigurations", v.IPConfigurations)
+ populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup)
+ populate(objectMap, "primary", v.Primary)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetNetworkProfile.
+func (v VirtualMachineScaleSetNetworkProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "healthProbe", v.HealthProbe)
+ populate(objectMap, "networkApiVersion", v.NetworkAPIVersion)
+ populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetOSDisk.
+func (v VirtualMachineScaleSetOSDisk) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "caching", v.Caching)
+ populate(objectMap, "createOption", v.CreateOption)
+ populate(objectMap, "deleteOption", v.DeleteOption)
+ populate(objectMap, "diffDiskSettings", v.DiffDiskSettings)
+ populate(objectMap, "diskSizeGB", v.DiskSizeGB)
+ populate(objectMap, "image", v.Image)
+ populate(objectMap, "managedDisk", v.ManagedDisk)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "osType", v.OSType)
+ populate(objectMap, "vhdContainers", v.VhdContainers)
+ populate(objectMap, "writeAcceleratorEnabled", v.WriteAcceleratorEnabled)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetOSProfile.
+func (v VirtualMachineScaleSetOSProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "adminPassword", v.AdminPassword)
+ populate(objectMap, "adminUsername", v.AdminUsername)
+ populate(objectMap, "allowExtensionOperations", v.AllowExtensionOperations)
+ populate(objectMap, "computerNamePrefix", v.ComputerNamePrefix)
+ populate(objectMap, "customData", v.CustomData)
+ populate(objectMap, "linuxConfiguration", v.LinuxConfiguration)
+ populate(objectMap, "secrets", v.Secrets)
+ populate(objectMap, "windowsConfiguration", v.WindowsConfiguration)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetProperties.
+func (v VirtualMachineScaleSetProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "additionalCapabilities", v.AdditionalCapabilities)
+ populate(objectMap, "automaticRepairsPolicy", v.AutomaticRepairsPolicy)
+ populate(objectMap, "doNotRunExtensionsOnOverprovisionedVMs", v.DoNotRunExtensionsOnOverprovisionedVMs)
+ populate(objectMap, "hostGroup", v.HostGroup)
+ populate(objectMap, "orchestrationMode", v.OrchestrationMode)
+ populate(objectMap, "overprovision", v.Overprovision)
+ populate(objectMap, "platformFaultDomainCount", v.PlatformFaultDomainCount)
+ populate(objectMap, "provisioningState", v.ProvisioningState)
+ populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup)
+ populate(objectMap, "scaleInPolicy", v.ScaleInPolicy)
+ populate(objectMap, "singlePlacementGroup", v.SinglePlacementGroup)
+ populate(objectMap, "spotRestorePolicy", v.SpotRestorePolicy)
+ populateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated)
+ populate(objectMap, "uniqueId", v.UniqueID)
+ populate(objectMap, "upgradePolicy", v.UpgradePolicy)
+ populate(objectMap, "virtualMachineProfile", v.VirtualMachineProfile)
+ populate(objectMap, "zoneBalance", v.ZoneBalance)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineScaleSetProperties.
+func (v *VirtualMachineScaleSetProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "additionalCapabilities":
+ err = unpopulate(val, "AdditionalCapabilities", &v.AdditionalCapabilities)
+ delete(rawMsg, key)
+ case "automaticRepairsPolicy":
+ err = unpopulate(val, "AutomaticRepairsPolicy", &v.AutomaticRepairsPolicy)
+ delete(rawMsg, key)
+ case "doNotRunExtensionsOnOverprovisionedVMs":
+ err = unpopulate(val, "DoNotRunExtensionsOnOverprovisionedVMs", &v.DoNotRunExtensionsOnOverprovisionedVMs)
+ delete(rawMsg, key)
+ case "hostGroup":
+ err = unpopulate(val, "HostGroup", &v.HostGroup)
+ delete(rawMsg, key)
+ case "orchestrationMode":
+ err = unpopulate(val, "OrchestrationMode", &v.OrchestrationMode)
+ delete(rawMsg, key)
+ case "overprovision":
+ err = unpopulate(val, "Overprovision", &v.Overprovision)
+ delete(rawMsg, key)
+ case "platformFaultDomainCount":
+ err = unpopulate(val, "PlatformFaultDomainCount", &v.PlatformFaultDomainCount)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &v.ProvisioningState)
+ delete(rawMsg, key)
+ case "proximityPlacementGroup":
+ err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup)
+ delete(rawMsg, key)
+ case "scaleInPolicy":
+ err = unpopulate(val, "ScaleInPolicy", &v.ScaleInPolicy)
+ delete(rawMsg, key)
+ case "singlePlacementGroup":
+ err = unpopulate(val, "SinglePlacementGroup", &v.SinglePlacementGroup)
+ delete(rawMsg, key)
+ case "spotRestorePolicy":
+ err = unpopulate(val, "SpotRestorePolicy", &v.SpotRestorePolicy)
+ delete(rawMsg, key)
+ case "timeCreated":
+ err = unpopulateTimeRFC3339(val, "TimeCreated", &v.TimeCreated)
+ delete(rawMsg, key)
+ case "uniqueId":
+ err = unpopulate(val, "UniqueID", &v.UniqueID)
+ delete(rawMsg, key)
+ case "upgradePolicy":
+ err = unpopulate(val, "UpgradePolicy", &v.UpgradePolicy)
+ delete(rawMsg, key)
+ case "virtualMachineProfile":
+ err = unpopulate(val, "VirtualMachineProfile", &v.VirtualMachineProfile)
+ delete(rawMsg, key)
+ case "zoneBalance":
+ err = unpopulate(val, "ZoneBalance", &v.ZoneBalance)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetPublicIPAddressConfigurationProperties.
+func (v VirtualMachineScaleSetPublicIPAddressConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dnsSettings", v.DNSSettings)
+ populate(objectMap, "deleteOption", v.DeleteOption)
+ populate(objectMap, "ipTags", v.IPTags)
+ populate(objectMap, "idleTimeoutInMinutes", v.IdleTimeoutInMinutes)
+ populate(objectMap, "publicIPAddressVersion", v.PublicIPAddressVersion)
+ populate(objectMap, "publicIPPrefix", v.PublicIPPrefix)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetReimageParameters.
+func (v VirtualMachineScaleSetReimageParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "instanceIds", v.InstanceIDs)
+ populate(objectMap, "tempDisk", v.TempDisk)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetStorageProfile.
+func (v VirtualMachineScaleSetStorageProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dataDisks", v.DataDisks)
+ populate(objectMap, "imageReference", v.ImageReference)
+ populate(objectMap, "osDisk", v.OSDisk)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdate.
+func (v VirtualMachineScaleSetUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "identity", v.Identity)
+ populate(objectMap, "plan", v.Plan)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "sku", v.SKU)
+ populate(objectMap, "tags", v.Tags)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateIPConfigurationProperties.
+func (v VirtualMachineScaleSetUpdateIPConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "applicationGatewayBackendAddressPools", v.ApplicationGatewayBackendAddressPools)
+ populate(objectMap, "applicationSecurityGroups", v.ApplicationSecurityGroups)
+ populate(objectMap, "loadBalancerBackendAddressPools", v.LoadBalancerBackendAddressPools)
+ populate(objectMap, "loadBalancerInboundNatPools", v.LoadBalancerInboundNatPools)
+ populate(objectMap, "primary", v.Primary)
+ populate(objectMap, "privateIPAddressVersion", v.PrivateIPAddressVersion)
+ populate(objectMap, "publicIPAddressConfiguration", v.PublicIPAddressConfiguration)
+ populate(objectMap, "subnet", v.Subnet)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateNetworkConfigurationProperties.
+func (v VirtualMachineScaleSetUpdateNetworkConfigurationProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dnsSettings", v.DNSSettings)
+ populate(objectMap, "deleteOption", v.DeleteOption)
+ populate(objectMap, "enableAcceleratedNetworking", v.EnableAcceleratedNetworking)
+ populate(objectMap, "enableFpga", v.EnableFpga)
+ populate(objectMap, "enableIPForwarding", v.EnableIPForwarding)
+ populate(objectMap, "ipConfigurations", v.IPConfigurations)
+ populate(objectMap, "networkSecurityGroup", v.NetworkSecurityGroup)
+ populate(objectMap, "primary", v.Primary)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateNetworkProfile.
+func (v VirtualMachineScaleSetUpdateNetworkProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "healthProbe", v.HealthProbe)
+ populate(objectMap, "networkApiVersion", v.NetworkAPIVersion)
+ populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateOSDisk.
+func (v VirtualMachineScaleSetUpdateOSDisk) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "caching", v.Caching)
+ populate(objectMap, "deleteOption", v.DeleteOption)
+ populate(objectMap, "diskSizeGB", v.DiskSizeGB)
+ populate(objectMap, "image", v.Image)
+ populate(objectMap, "managedDisk", v.ManagedDisk)
+ populate(objectMap, "vhdContainers", v.VhdContainers)
+ populate(objectMap, "writeAcceleratorEnabled", v.WriteAcceleratorEnabled)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateOSProfile.
+func (v VirtualMachineScaleSetUpdateOSProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "customData", v.CustomData)
+ populate(objectMap, "linuxConfiguration", v.LinuxConfiguration)
+ populate(objectMap, "secrets", v.Secrets)
+ populate(objectMap, "windowsConfiguration", v.WindowsConfiguration)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetUpdateStorageProfile.
+func (v VirtualMachineScaleSetUpdateStorageProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "dataDisks", v.DataDisks)
+ populate(objectMap, "imageReference", v.ImageReference)
+ populate(objectMap, "osDisk", v.OSDisk)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVM.
+func (v VirtualMachineScaleSetVM) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "identity", v.Identity)
+ populate(objectMap, "instanceId", v.InstanceID)
+ populate(objectMap, "location", v.Location)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "plan", v.Plan)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "resources", v.Resources)
+ populate(objectMap, "sku", v.SKU)
+ populate(objectMap, "tags", v.Tags)
+ populate(objectMap, "type", v.Type)
+ populate(objectMap, "zones", v.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMExtensionUpdate.
+func (v VirtualMachineScaleSetVMExtensionUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "id", v.ID)
+ populate(objectMap, "name", v.Name)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "type", v.Type)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMInstanceIDs.
+func (v VirtualMachineScaleSetVMInstanceIDs) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "instanceIds", v.InstanceIDs)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMInstanceRequiredIDs.
+func (v VirtualMachineScaleSetVMInstanceRequiredIDs) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "instanceIds", v.InstanceIDs)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMInstanceView.
+func (v VirtualMachineScaleSetVMInstanceView) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "assignedHost", v.AssignedHost)
+ populate(objectMap, "bootDiagnostics", v.BootDiagnostics)
+ populate(objectMap, "disks", v.Disks)
+ populate(objectMap, "extensions", v.Extensions)
+ populate(objectMap, "maintenanceRedeployStatus", v.MaintenanceRedeployStatus)
+ populate(objectMap, "placementGroupId", v.PlacementGroupID)
+ populate(objectMap, "platformFaultDomain", v.PlatformFaultDomain)
+ populate(objectMap, "platformUpdateDomain", v.PlatformUpdateDomain)
+ populate(objectMap, "rdpThumbPrint", v.RdpThumbPrint)
+ populate(objectMap, "statuses", v.Statuses)
+ populate(objectMap, "vmAgent", v.VMAgent)
+ populate(objectMap, "vmHealth", v.VMHealth)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineScaleSetVMNetworkProfileConfiguration.
+func (v VirtualMachineScaleSetVMNetworkProfileConfiguration) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "networkInterfaceConfigurations", v.NetworkInterfaceConfigurations)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineSoftwarePatchProperties.
+func (v *VirtualMachineSoftwarePatchProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "activityId":
+ err = unpopulate(val, "ActivityID", &v.ActivityID)
+ delete(rawMsg, key)
+ case "assessmentState":
+ err = unpopulate(val, "AssessmentState", &v.AssessmentState)
+ delete(rawMsg, key)
+ case "classifications":
+ err = unpopulate(val, "Classifications", &v.Classifications)
+ delete(rawMsg, key)
+ case "kbId":
+ err = unpopulate(val, "KbID", &v.KbID)
+ delete(rawMsg, key)
+ case "lastModifiedDateTime":
+ err = unpopulateTimeRFC3339(val, "LastModifiedDateTime", &v.LastModifiedDateTime)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &v.Name)
+ delete(rawMsg, key)
+ case "patchId":
+ err = unpopulate(val, "PatchID", &v.PatchID)
+ delete(rawMsg, key)
+ case "publishedDate":
+ err = unpopulateTimeRFC3339(val, "PublishedDate", &v.PublishedDate)
+ delete(rawMsg, key)
+ case "rebootBehavior":
+ err = unpopulate(val, "RebootBehavior", &v.RebootBehavior)
+ delete(rawMsg, key)
+ case "version":
+ err = unpopulate(val, "Version", &v.Version)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", v, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type VirtualMachineUpdate.
+func (v VirtualMachineUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "identity", v.Identity)
+ populate(objectMap, "plan", v.Plan)
+ populate(objectMap, "properties", v.Properties)
+ populate(objectMap, "tags", v.Tags)
+ populate(objectMap, "zones", v.Zones)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type WinRMConfiguration.
+func (w WinRMConfiguration) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "listeners", w.Listeners)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type WindowsConfiguration.
+func (w WindowsConfiguration) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "additionalUnattendContent", w.AdditionalUnattendContent)
+ populate(objectMap, "enableAutomaticUpdates", w.EnableAutomaticUpdates)
+ populate(objectMap, "patchSettings", w.PatchSettings)
+ populate(objectMap, "provisionVMAgent", w.ProvisionVMAgent)
+ populate(objectMap, "timeZone", w.TimeZone)
+ populate(objectMap, "winRM", w.WinRM)
+ return json.Marshal(objectMap)
+}
+
+// MarshalJSON implements the json.Marshaller interface for type WindowsParameters.
+func (w WindowsParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ populate(objectMap, "classificationsToInclude", w.ClassificationsToInclude)
+ populate(objectMap, "excludeKbsRequiringReboot", w.ExcludeKbsRequiringReboot)
+ populate(objectMap, "kbNumbersToExclude", w.KbNumbersToExclude)
+ populate(objectMap, "kbNumbersToInclude", w.KbNumbersToInclude)
+ populateTimeRFC3339(objectMap, "maxPatchPublishDate", w.MaxPatchPublishDate)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type WindowsParameters.
+func (w *WindowsParameters) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", w, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "classificationsToInclude":
+ err = unpopulate(val, "ClassificationsToInclude", &w.ClassificationsToInclude)
+ delete(rawMsg, key)
+ case "excludeKbsRequiringReboot":
+ err = unpopulate(val, "ExcludeKbsRequiringReboot", &w.ExcludeKbsRequiringReboot)
+ delete(rawMsg, key)
+ case "kbNumbersToExclude":
+ err = unpopulate(val, "KbNumbersToExclude", &w.KbNumbersToExclude)
+ delete(rawMsg, key)
+ case "kbNumbersToInclude":
+ err = unpopulate(val, "KbNumbersToInclude", &w.KbNumbersToInclude)
+ delete(rawMsg, key)
+ case "maxPatchPublishDate":
+ err = unpopulateTimeRFC3339(val, "MaxPatchPublishDate", &w.MaxPatchPublishDate)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", w, err)
+ }
+ }
+ return nil
+}
+
+func populate(m map[string]interface{}, k string, v interface{}) {
+ if v == nil {
+ return
+ } else if azcore.IsNullValue(v) {
+ m[k] = nil
+ } else if !reflect.ValueOf(v).IsNil() {
+ m[k] = v
+ }
+}
+
+func unpopulate(data json.RawMessage, fn string, v interface{}) error {
+ if data == nil {
+ return nil
+ }
+ if err := json.Unmarshal(data, v); err != nil {
+ return fmt.Errorf("struct field %s: %v", fn, err)
+ }
+ return nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_operations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_operations_client.go
new file mode 100644
index 0000000000..4bc1464001
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_operations_client.go
@@ -0,0 +1,98 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+)
+
+// OperationsClient contains the methods for the Operations group.
+// Don't use this type directly, use NewOperationsClient() instead.
+type OperationsClient struct {
+ host string
+ pl runtime.Pipeline
+}
+
+// NewOperationsClient creates a new instance of OperationsClient with the specified values.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &OperationsClient{
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// NewListPager - Gets a list of compute operations.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
+func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{
+ More: func(page OperationsClientListResponse) bool {
+ return false
+ },
+ Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) {
+ req, err := client.listCreateRequest(ctx, options)
+ if err != nil {
+ return OperationsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return OperationsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return OperationsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) {
+ urlPath := "/providers/Microsoft.Compute/operations"
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) {
+ result := OperationsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil {
+ return OperationsClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_proximityplacementgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_proximityplacementgroups_client.go
new file mode 100644
index 0000000000..4c1fa00c38
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_proximityplacementgroups_client.go
@@ -0,0 +1,405 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// ProximityPlacementGroupsClient contains the methods for the ProximityPlacementGroups group.
+// Don't use this type directly, use NewProximityPlacementGroupsClient() instead.
+type ProximityPlacementGroupsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewProximityPlacementGroupsClient creates a new instance of ProximityPlacementGroupsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewProximityPlacementGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProximityPlacementGroupsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &ProximityPlacementGroupsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// CreateOrUpdate - Create or update a proximity placement group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// proximityPlacementGroupName - The name of the proximity placement group.
+// parameters - Parameters supplied to the Create Proximity Placement Group operation.
+// options - ProximityPlacementGroupsClientCreateOrUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.CreateOrUpdate
+// method.
+func (client *ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroup, options *ProximityPlacementGroupsClientCreateOrUpdateOptions) (ProximityPlacementGroupsClientCreateOrUpdateResponse, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, proximityPlacementGroupName, parameters, options)
+ if err != nil {
+ return ProximityPlacementGroupsClientCreateOrUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ProximityPlacementGroupsClientCreateOrUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return ProximityPlacementGroupsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.createOrUpdateHandleResponse(resp)
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *ProximityPlacementGroupsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroup, options *ProximityPlacementGroupsClientCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if proximityPlacementGroupName == "" {
+ return nil, errors.New("parameter proximityPlacementGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{proximityPlacementGroupName}", url.PathEscape(proximityPlacementGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// createOrUpdateHandleResponse handles the CreateOrUpdate response.
+func (client *ProximityPlacementGroupsClient) createOrUpdateHandleResponse(resp *http.Response) (ProximityPlacementGroupsClientCreateOrUpdateResponse, error) {
+ result := ProximityPlacementGroupsClientCreateOrUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ProximityPlacementGroup); err != nil {
+ return ProximityPlacementGroupsClientCreateOrUpdateResponse{}, err
+ }
+ return result, nil
+}
+
+// Delete - Delete a proximity placement group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// proximityPlacementGroupName - The name of the proximity placement group.
+// options - ProximityPlacementGroupsClientDeleteOptions contains the optional parameters for the ProximityPlacementGroupsClient.Delete
+// method.
+func (client *ProximityPlacementGroupsClient) Delete(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, options *ProximityPlacementGroupsClientDeleteOptions) (ProximityPlacementGroupsClientDeleteResponse, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, proximityPlacementGroupName, options)
+ if err != nil {
+ return ProximityPlacementGroupsClientDeleteResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ProximityPlacementGroupsClientDeleteResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ProximityPlacementGroupsClientDeleteResponse{}, runtime.NewResponseError(resp)
+ }
+ return ProximityPlacementGroupsClientDeleteResponse{}, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *ProximityPlacementGroupsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, options *ProximityPlacementGroupsClientDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if proximityPlacementGroupName == "" {
+ return nil, errors.New("parameter proximityPlacementGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{proximityPlacementGroupName}", url.PathEscape(proximityPlacementGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about a proximity placement group .
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// proximityPlacementGroupName - The name of the proximity placement group.
+// options - ProximityPlacementGroupsClientGetOptions contains the optional parameters for the ProximityPlacementGroupsClient.Get
+// method.
+func (client *ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, options *ProximityPlacementGroupsClientGetOptions) (ProximityPlacementGroupsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, proximityPlacementGroupName, options)
+ if err != nil {
+ return ProximityPlacementGroupsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ProximityPlacementGroupsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ProximityPlacementGroupsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *ProximityPlacementGroupsClient) getCreateRequest(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, options *ProximityPlacementGroupsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if proximityPlacementGroupName == "" {
+ return nil, errors.New("parameter proximityPlacementGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{proximityPlacementGroupName}", url.PathEscape(proximityPlacementGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.IncludeColocationStatus != nil {
+ reqQP.Set("includeColocationStatus", *options.IncludeColocationStatus)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *ProximityPlacementGroupsClient) getHandleResponse(resp *http.Response) (ProximityPlacementGroupsClientGetResponse, error) {
+ result := ProximityPlacementGroupsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ProximityPlacementGroup); err != nil {
+ return ProximityPlacementGroupsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Lists all proximity placement groups in a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - ProximityPlacementGroupsClientListByResourceGroupOptions contains the optional parameters for the ProximityPlacementGroupsClient.ListByResourceGroup
+// method.
+func (client *ProximityPlacementGroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *ProximityPlacementGroupsClientListByResourceGroupOptions) *runtime.Pager[ProximityPlacementGroupsClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[ProximityPlacementGroupsClientListByResourceGroupResponse]{
+ More: func(page ProximityPlacementGroupsClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *ProximityPlacementGroupsClientListByResourceGroupResponse) (ProximityPlacementGroupsClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return ProximityPlacementGroupsClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ProximityPlacementGroupsClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ProximityPlacementGroupsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *ProximityPlacementGroupsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *ProximityPlacementGroupsClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *ProximityPlacementGroupsClient) listByResourceGroupHandleResponse(resp *http.Response) (ProximityPlacementGroupsClientListByResourceGroupResponse, error) {
+ result := ProximityPlacementGroupsClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ProximityPlacementGroupListResult); err != nil {
+ return ProximityPlacementGroupsClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListBySubscriptionPager - Lists all proximity placement groups in a subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - ProximityPlacementGroupsClientListBySubscriptionOptions contains the optional parameters for the ProximityPlacementGroupsClient.ListBySubscription
+// method.
+func (client *ProximityPlacementGroupsClient) NewListBySubscriptionPager(options *ProximityPlacementGroupsClientListBySubscriptionOptions) *runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse] {
+ return runtime.NewPager(runtime.PagingHandler[ProximityPlacementGroupsClientListBySubscriptionResponse]{
+ More: func(page ProximityPlacementGroupsClientListBySubscriptionResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *ProximityPlacementGroupsClientListBySubscriptionResponse) (ProximityPlacementGroupsClientListBySubscriptionResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listBySubscriptionCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return ProximityPlacementGroupsClientListBySubscriptionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ProximityPlacementGroupsClientListBySubscriptionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ProximityPlacementGroupsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listBySubscriptionHandleResponse(resp)
+ },
+ })
+}
+
+// listBySubscriptionCreateRequest creates the ListBySubscription request.
+func (client *ProximityPlacementGroupsClient) listBySubscriptionCreateRequest(ctx context.Context, options *ProximityPlacementGroupsClientListBySubscriptionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listBySubscriptionHandleResponse handles the ListBySubscription response.
+func (client *ProximityPlacementGroupsClient) listBySubscriptionHandleResponse(resp *http.Response) (ProximityPlacementGroupsClientListBySubscriptionResponse, error) {
+ result := ProximityPlacementGroupsClientListBySubscriptionResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ProximityPlacementGroupListResult); err != nil {
+ return ProximityPlacementGroupsClientListBySubscriptionResponse{}, err
+ }
+ return result, nil
+}
+
+// Update - Update a proximity placement group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// proximityPlacementGroupName - The name of the proximity placement group.
+// parameters - Parameters supplied to the Update Proximity Placement Group operation.
+// options - ProximityPlacementGroupsClientUpdateOptions contains the optional parameters for the ProximityPlacementGroupsClient.Update
+// method.
+func (client *ProximityPlacementGroupsClient) Update(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroupUpdate, options *ProximityPlacementGroupsClientUpdateOptions) (ProximityPlacementGroupsClientUpdateResponse, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, proximityPlacementGroupName, parameters, options)
+ if err != nil {
+ return ProximityPlacementGroupsClientUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ProximityPlacementGroupsClientUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ProximityPlacementGroupsClientUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.updateHandleResponse(resp)
+}
+
+// updateCreateRequest creates the Update request.
+func (client *ProximityPlacementGroupsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroupUpdate, options *ProximityPlacementGroupsClientUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if proximityPlacementGroupName == "" {
+ return nil, errors.New("parameter proximityPlacementGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{proximityPlacementGroupName}", url.PathEscape(proximityPlacementGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// updateHandleResponse handles the Update response.
+func (client *ProximityPlacementGroupsClient) updateHandleResponse(resp *http.Response) (ProximityPlacementGroupsClientUpdateResponse, error) {
+ result := ProximityPlacementGroupsClientUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ProximityPlacementGroup); err != nil {
+ return ProximityPlacementGroupsClientUpdateResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_resourceskus_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_resourceskus_client.go
new file mode 100644
index 0000000000..b064dbdd5d
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_resourceskus_client.go
@@ -0,0 +1,121 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// ResourceSKUsClient contains the methods for the ResourceSKUs group.
+// Don't use this type directly, use NewResourceSKUsClient() instead.
+type ResourceSKUsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewResourceSKUsClient creates a new instance of ResourceSKUsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewResourceSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceSKUsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &ResourceSKUsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// NewListPager - Gets the list of Microsoft.Compute SKUs available for your Subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// options - ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.List method.
+func (client *ResourceSKUsClient) NewListPager(options *ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[ResourceSKUsClientListResponse]{
+ More: func(page ResourceSKUsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *ResourceSKUsClientListResponse) (ResourceSKUsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return ResourceSKUsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return ResourceSKUsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ResourceSKUsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *ResourceSKUsClient) listCreateRequest(ctx context.Context, options *ResourceSKUsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/skus"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ if options != nil && options.Filter != nil {
+ reqQP.Set("$filter", *options.Filter)
+ }
+ if options != nil && options.IncludeExtendedLocations != nil {
+ reqQP.Set("includeExtendedLocations", *options.IncludeExtendedLocations)
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *ResourceSKUsClient) listHandleResponse(resp *http.Response) (ResourceSKUsClientListResponse, error) {
+ result := ResourceSKUsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ResourceSKUsResult); err != nil {
+ return ResourceSKUsClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_response_types.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_response_types.go
new file mode 100644
index 0000000000..4b95829dbf
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_response_types.go
@@ -0,0 +1,1403 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import "io"
+
+// AvailabilitySetsClientCreateOrUpdateResponse contains the response from method AvailabilitySetsClient.CreateOrUpdate.
+type AvailabilitySetsClientCreateOrUpdateResponse struct {
+ AvailabilitySet
+}
+
+// AvailabilitySetsClientDeleteResponse contains the response from method AvailabilitySetsClient.Delete.
+type AvailabilitySetsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// AvailabilitySetsClientGetResponse contains the response from method AvailabilitySetsClient.Get.
+type AvailabilitySetsClientGetResponse struct {
+ AvailabilitySet
+}
+
+// AvailabilitySetsClientListAvailableSizesResponse contains the response from method AvailabilitySetsClient.ListAvailableSizes.
+type AvailabilitySetsClientListAvailableSizesResponse struct {
+ VirtualMachineSizeListResult
+}
+
+// AvailabilitySetsClientListBySubscriptionResponse contains the response from method AvailabilitySetsClient.ListBySubscription.
+type AvailabilitySetsClientListBySubscriptionResponse struct {
+ AvailabilitySetListResult
+}
+
+// AvailabilitySetsClientListResponse contains the response from method AvailabilitySetsClient.List.
+type AvailabilitySetsClientListResponse struct {
+ AvailabilitySetListResult
+}
+
+// AvailabilitySetsClientUpdateResponse contains the response from method AvailabilitySetsClient.Update.
+type AvailabilitySetsClientUpdateResponse struct {
+ AvailabilitySet
+}
+
+// CapacityReservationGroupsClientCreateOrUpdateResponse contains the response from method CapacityReservationGroupsClient.CreateOrUpdate.
+type CapacityReservationGroupsClientCreateOrUpdateResponse struct {
+ CapacityReservationGroup
+}
+
+// CapacityReservationGroupsClientDeleteResponse contains the response from method CapacityReservationGroupsClient.Delete.
+type CapacityReservationGroupsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// CapacityReservationGroupsClientGetResponse contains the response from method CapacityReservationGroupsClient.Get.
+type CapacityReservationGroupsClientGetResponse struct {
+ CapacityReservationGroup
+}
+
+// CapacityReservationGroupsClientListByResourceGroupResponse contains the response from method CapacityReservationGroupsClient.ListByResourceGroup.
+type CapacityReservationGroupsClientListByResourceGroupResponse struct {
+ CapacityReservationGroupListResult
+}
+
+// CapacityReservationGroupsClientListBySubscriptionResponse contains the response from method CapacityReservationGroupsClient.ListBySubscription.
+type CapacityReservationGroupsClientListBySubscriptionResponse struct {
+ CapacityReservationGroupListResult
+}
+
+// CapacityReservationGroupsClientUpdateResponse contains the response from method CapacityReservationGroupsClient.Update.
+type CapacityReservationGroupsClientUpdateResponse struct {
+ CapacityReservationGroup
+}
+
+// CapacityReservationsClientCreateOrUpdateResponse contains the response from method CapacityReservationsClient.CreateOrUpdate.
+type CapacityReservationsClientCreateOrUpdateResponse struct {
+ CapacityReservation
+}
+
+// CapacityReservationsClientDeleteResponse contains the response from method CapacityReservationsClient.Delete.
+type CapacityReservationsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// CapacityReservationsClientGetResponse contains the response from method CapacityReservationsClient.Get.
+type CapacityReservationsClientGetResponse struct {
+ CapacityReservation
+}
+
+// CapacityReservationsClientListByCapacityReservationGroupResponse contains the response from method CapacityReservationsClient.ListByCapacityReservationGroup.
+type CapacityReservationsClientListByCapacityReservationGroupResponse struct {
+ CapacityReservationListResult
+}
+
+// CapacityReservationsClientUpdateResponse contains the response from method CapacityReservationsClient.Update.
+type CapacityReservationsClientUpdateResponse struct {
+ CapacityReservation
+}
+
+// CloudServiceOperatingSystemsClientGetOSFamilyResponse contains the response from method CloudServiceOperatingSystemsClient.GetOSFamily.
+type CloudServiceOperatingSystemsClientGetOSFamilyResponse struct {
+ OSFamily
+}
+
+// CloudServiceOperatingSystemsClientGetOSVersionResponse contains the response from method CloudServiceOperatingSystemsClient.GetOSVersion.
+type CloudServiceOperatingSystemsClientGetOSVersionResponse struct {
+ OSVersion
+}
+
+// CloudServiceOperatingSystemsClientListOSFamiliesResponse contains the response from method CloudServiceOperatingSystemsClient.ListOSFamilies.
+type CloudServiceOperatingSystemsClientListOSFamiliesResponse struct {
+ OSFamilyListResult
+}
+
+// CloudServiceOperatingSystemsClientListOSVersionsResponse contains the response from method CloudServiceOperatingSystemsClient.ListOSVersions.
+type CloudServiceOperatingSystemsClientListOSVersionsResponse struct {
+ OSVersionListResult
+}
+
+// CloudServiceRoleInstancesClientDeleteResponse contains the response from method CloudServiceRoleInstancesClient.Delete.
+type CloudServiceRoleInstancesClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServiceRoleInstancesClientGetInstanceViewResponse contains the response from method CloudServiceRoleInstancesClient.GetInstanceView.
+type CloudServiceRoleInstancesClientGetInstanceViewResponse struct {
+ RoleInstanceView
+}
+
+// CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse contains the response from method CloudServiceRoleInstancesClient.GetRemoteDesktopFile.
+type CloudServiceRoleInstancesClientGetRemoteDesktopFileResponse struct {
+ // Body contains the streaming response.
+ Body io.ReadCloser
+}
+
+// CloudServiceRoleInstancesClientGetResponse contains the response from method CloudServiceRoleInstancesClient.Get.
+type CloudServiceRoleInstancesClientGetResponse struct {
+ RoleInstance
+}
+
+// CloudServiceRoleInstancesClientListResponse contains the response from method CloudServiceRoleInstancesClient.List.
+type CloudServiceRoleInstancesClientListResponse struct {
+ RoleInstanceListResult
+}
+
+// CloudServiceRoleInstancesClientRebuildResponse contains the response from method CloudServiceRoleInstancesClient.Rebuild.
+type CloudServiceRoleInstancesClientRebuildResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServiceRoleInstancesClientReimageResponse contains the response from method CloudServiceRoleInstancesClient.Reimage.
+type CloudServiceRoleInstancesClientReimageResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServiceRoleInstancesClientRestartResponse contains the response from method CloudServiceRoleInstancesClient.Restart.
+type CloudServiceRoleInstancesClientRestartResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServiceRolesClientGetResponse contains the response from method CloudServiceRolesClient.Get.
+type CloudServiceRolesClientGetResponse struct {
+ CloudServiceRole
+}
+
+// CloudServiceRolesClientListResponse contains the response from method CloudServiceRolesClient.List.
+type CloudServiceRolesClientListResponse struct {
+ CloudServiceRoleListResult
+}
+
+// CloudServicesClientCreateOrUpdateResponse contains the response from method CloudServicesClient.CreateOrUpdate.
+type CloudServicesClientCreateOrUpdateResponse struct {
+ CloudService
+}
+
+// CloudServicesClientDeleteInstancesResponse contains the response from method CloudServicesClient.DeleteInstances.
+type CloudServicesClientDeleteInstancesResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServicesClientDeleteResponse contains the response from method CloudServicesClient.Delete.
+type CloudServicesClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServicesClientGetInstanceViewResponse contains the response from method CloudServicesClient.GetInstanceView.
+type CloudServicesClientGetInstanceViewResponse struct {
+ CloudServiceInstanceView
+}
+
+// CloudServicesClientGetResponse contains the response from method CloudServicesClient.Get.
+type CloudServicesClientGetResponse struct {
+ CloudService
+}
+
+// CloudServicesClientListAllResponse contains the response from method CloudServicesClient.ListAll.
+type CloudServicesClientListAllResponse struct {
+ CloudServiceListResult
+}
+
+// CloudServicesClientListResponse contains the response from method CloudServicesClient.List.
+type CloudServicesClientListResponse struct {
+ CloudServiceListResult
+}
+
+// CloudServicesClientPowerOffResponse contains the response from method CloudServicesClient.PowerOff.
+type CloudServicesClientPowerOffResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServicesClientRebuildResponse contains the response from method CloudServicesClient.Rebuild.
+type CloudServicesClientRebuildResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServicesClientReimageResponse contains the response from method CloudServicesClient.Reimage.
+type CloudServicesClientReimageResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServicesClientRestartResponse contains the response from method CloudServicesClient.Restart.
+type CloudServicesClientRestartResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServicesClientStartResponse contains the response from method CloudServicesClient.Start.
+type CloudServicesClientStartResponse struct {
+ // placeholder for future response values
+}
+
+// CloudServicesClientUpdateResponse contains the response from method CloudServicesClient.Update.
+type CloudServicesClientUpdateResponse struct {
+ CloudService
+}
+
+// CloudServicesUpdateDomainClientGetUpdateDomainResponse contains the response from method CloudServicesUpdateDomainClient.GetUpdateDomain.
+type CloudServicesUpdateDomainClientGetUpdateDomainResponse struct {
+ UpdateDomain
+}
+
+// CloudServicesUpdateDomainClientListUpdateDomainsResponse contains the response from method CloudServicesUpdateDomainClient.ListUpdateDomains.
+type CloudServicesUpdateDomainClientListUpdateDomainsResponse struct {
+ UpdateDomainListResult
+}
+
+// CloudServicesUpdateDomainClientWalkUpdateDomainResponse contains the response from method CloudServicesUpdateDomainClient.WalkUpdateDomain.
+type CloudServicesUpdateDomainClientWalkUpdateDomainResponse struct {
+ // placeholder for future response values
+}
+
+// CommunityGalleriesClientGetResponse contains the response from method CommunityGalleriesClient.Get.
+type CommunityGalleriesClientGetResponse struct {
+ CommunityGallery
+}
+
+// CommunityGalleryImageVersionsClientGetResponse contains the response from method CommunityGalleryImageVersionsClient.Get.
+type CommunityGalleryImageVersionsClientGetResponse struct {
+ CommunityGalleryImageVersion
+}
+
+// CommunityGalleryImagesClientGetResponse contains the response from method CommunityGalleryImagesClient.Get.
+type CommunityGalleryImagesClientGetResponse struct {
+ CommunityGalleryImage
+}
+
+// DedicatedHostGroupsClientCreateOrUpdateResponse contains the response from method DedicatedHostGroupsClient.CreateOrUpdate.
+type DedicatedHostGroupsClientCreateOrUpdateResponse struct {
+ DedicatedHostGroup
+}
+
+// DedicatedHostGroupsClientDeleteResponse contains the response from method DedicatedHostGroupsClient.Delete.
+type DedicatedHostGroupsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// DedicatedHostGroupsClientGetResponse contains the response from method DedicatedHostGroupsClient.Get.
+type DedicatedHostGroupsClientGetResponse struct {
+ DedicatedHostGroup
+}
+
+// DedicatedHostGroupsClientListByResourceGroupResponse contains the response from method DedicatedHostGroupsClient.ListByResourceGroup.
+type DedicatedHostGroupsClientListByResourceGroupResponse struct {
+ DedicatedHostGroupListResult
+}
+
+// DedicatedHostGroupsClientListBySubscriptionResponse contains the response from method DedicatedHostGroupsClient.ListBySubscription.
+type DedicatedHostGroupsClientListBySubscriptionResponse struct {
+ DedicatedHostGroupListResult
+}
+
+// DedicatedHostGroupsClientUpdateResponse contains the response from method DedicatedHostGroupsClient.Update.
+type DedicatedHostGroupsClientUpdateResponse struct {
+ DedicatedHostGroup
+}
+
+// DedicatedHostsClientCreateOrUpdateResponse contains the response from method DedicatedHostsClient.CreateOrUpdate.
+type DedicatedHostsClientCreateOrUpdateResponse struct {
+ DedicatedHost
+}
+
+// DedicatedHostsClientDeleteResponse contains the response from method DedicatedHostsClient.Delete.
+type DedicatedHostsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// DedicatedHostsClientGetResponse contains the response from method DedicatedHostsClient.Get.
+type DedicatedHostsClientGetResponse struct {
+ DedicatedHost
+}
+
+// DedicatedHostsClientListByHostGroupResponse contains the response from method DedicatedHostsClient.ListByHostGroup.
+type DedicatedHostsClientListByHostGroupResponse struct {
+ DedicatedHostListResult
+}
+
+// DedicatedHostsClientRestartResponse contains the response from method DedicatedHostsClient.Restart.
+type DedicatedHostsClientRestartResponse struct {
+ // placeholder for future response values
+}
+
+// DedicatedHostsClientUpdateResponse contains the response from method DedicatedHostsClient.Update.
+type DedicatedHostsClientUpdateResponse struct {
+ DedicatedHost
+}
+
+// DiskAccessesClientCreateOrUpdateResponse contains the response from method DiskAccessesClient.CreateOrUpdate.
+type DiskAccessesClientCreateOrUpdateResponse struct {
+ DiskAccess
+}
+
+// DiskAccessesClientDeleteAPrivateEndpointConnectionResponse contains the response from method DiskAccessesClient.DeleteAPrivateEndpointConnection.
+type DiskAccessesClientDeleteAPrivateEndpointConnectionResponse struct {
+ // placeholder for future response values
+}
+
+// DiskAccessesClientDeleteResponse contains the response from method DiskAccessesClient.Delete.
+type DiskAccessesClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// DiskAccessesClientGetAPrivateEndpointConnectionResponse contains the response from method DiskAccessesClient.GetAPrivateEndpointConnection.
+type DiskAccessesClientGetAPrivateEndpointConnectionResponse struct {
+ PrivateEndpointConnection
+}
+
+// DiskAccessesClientGetPrivateLinkResourcesResponse contains the response from method DiskAccessesClient.GetPrivateLinkResources.
+type DiskAccessesClientGetPrivateLinkResourcesResponse struct {
+ PrivateLinkResourceListResult
+}
+
+// DiskAccessesClientGetResponse contains the response from method DiskAccessesClient.Get.
+type DiskAccessesClientGetResponse struct {
+ DiskAccess
+}
+
+// DiskAccessesClientListByResourceGroupResponse contains the response from method DiskAccessesClient.ListByResourceGroup.
+type DiskAccessesClientListByResourceGroupResponse struct {
+ DiskAccessList
+}
+
+// DiskAccessesClientListPrivateEndpointConnectionsResponse contains the response from method DiskAccessesClient.ListPrivateEndpointConnections.
+type DiskAccessesClientListPrivateEndpointConnectionsResponse struct {
+ PrivateEndpointConnectionListResult
+}
+
+// DiskAccessesClientListResponse contains the response from method DiskAccessesClient.List.
+type DiskAccessesClientListResponse struct {
+ DiskAccessList
+}
+
+// DiskAccessesClientUpdateAPrivateEndpointConnectionResponse contains the response from method DiskAccessesClient.UpdateAPrivateEndpointConnection.
+type DiskAccessesClientUpdateAPrivateEndpointConnectionResponse struct {
+ PrivateEndpointConnection
+}
+
+// DiskAccessesClientUpdateResponse contains the response from method DiskAccessesClient.Update.
+type DiskAccessesClientUpdateResponse struct {
+ DiskAccess
+}
+
+// DiskEncryptionSetsClientCreateOrUpdateResponse contains the response from method DiskEncryptionSetsClient.CreateOrUpdate.
+type DiskEncryptionSetsClientCreateOrUpdateResponse struct {
+ DiskEncryptionSet
+}
+
+// DiskEncryptionSetsClientDeleteResponse contains the response from method DiskEncryptionSetsClient.Delete.
+type DiskEncryptionSetsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// DiskEncryptionSetsClientGetResponse contains the response from method DiskEncryptionSetsClient.Get.
+type DiskEncryptionSetsClientGetResponse struct {
+ DiskEncryptionSet
+}
+
+// DiskEncryptionSetsClientListAssociatedResourcesResponse contains the response from method DiskEncryptionSetsClient.ListAssociatedResources.
+type DiskEncryptionSetsClientListAssociatedResourcesResponse struct {
+ ResourceURIList
+}
+
+// DiskEncryptionSetsClientListByResourceGroupResponse contains the response from method DiskEncryptionSetsClient.ListByResourceGroup.
+type DiskEncryptionSetsClientListByResourceGroupResponse struct {
+ DiskEncryptionSetList
+}
+
+// DiskEncryptionSetsClientListResponse contains the response from method DiskEncryptionSetsClient.List.
+type DiskEncryptionSetsClientListResponse struct {
+ DiskEncryptionSetList
+}
+
+// DiskEncryptionSetsClientUpdateResponse contains the response from method DiskEncryptionSetsClient.Update.
+type DiskEncryptionSetsClientUpdateResponse struct {
+ DiskEncryptionSet
+}
+
+// DiskRestorePointClientGetResponse contains the response from method DiskRestorePointClient.Get.
+type DiskRestorePointClientGetResponse struct {
+ DiskRestorePoint
+}
+
+// DiskRestorePointClientGrantAccessResponse contains the response from method DiskRestorePointClient.GrantAccess.
+type DiskRestorePointClientGrantAccessResponse struct {
+ AccessURI
+}
+
+// DiskRestorePointClientListByRestorePointResponse contains the response from method DiskRestorePointClient.ListByRestorePoint.
+type DiskRestorePointClientListByRestorePointResponse struct {
+ DiskRestorePointList
+}
+
+// DiskRestorePointClientRevokeAccessResponse contains the response from method DiskRestorePointClient.RevokeAccess.
+type DiskRestorePointClientRevokeAccessResponse struct {
+ // placeholder for future response values
+}
+
+// DisksClientCreateOrUpdateResponse contains the response from method DisksClient.CreateOrUpdate.
+type DisksClientCreateOrUpdateResponse struct {
+ Disk
+}
+
+// DisksClientDeleteResponse contains the response from method DisksClient.Delete.
+type DisksClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// DisksClientGetResponse contains the response from method DisksClient.Get.
+type DisksClientGetResponse struct {
+ Disk
+}
+
+// DisksClientGrantAccessResponse contains the response from method DisksClient.GrantAccess.
+type DisksClientGrantAccessResponse struct {
+ AccessURI
+}
+
+// DisksClientListByResourceGroupResponse contains the response from method DisksClient.ListByResourceGroup.
+type DisksClientListByResourceGroupResponse struct {
+ DiskList
+}
+
+// DisksClientListResponse contains the response from method DisksClient.List.
+type DisksClientListResponse struct {
+ DiskList
+}
+
+// DisksClientRevokeAccessResponse contains the response from method DisksClient.RevokeAccess.
+type DisksClientRevokeAccessResponse struct {
+ // placeholder for future response values
+}
+
+// DisksClientUpdateResponse contains the response from method DisksClient.Update.
+type DisksClientUpdateResponse struct {
+ Disk
+}
+
+// GalleriesClientCreateOrUpdateResponse contains the response from method GalleriesClient.CreateOrUpdate.
+type GalleriesClientCreateOrUpdateResponse struct {
+ Gallery
+}
+
+// GalleriesClientDeleteResponse contains the response from method GalleriesClient.Delete.
+type GalleriesClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// GalleriesClientGetResponse contains the response from method GalleriesClient.Get.
+type GalleriesClientGetResponse struct {
+ Gallery
+}
+
+// GalleriesClientListByResourceGroupResponse contains the response from method GalleriesClient.ListByResourceGroup.
+type GalleriesClientListByResourceGroupResponse struct {
+ GalleryList
+}
+
+// GalleriesClientListResponse contains the response from method GalleriesClient.List.
+type GalleriesClientListResponse struct {
+ GalleryList
+}
+
+// GalleriesClientUpdateResponse contains the response from method GalleriesClient.Update.
+type GalleriesClientUpdateResponse struct {
+ Gallery
+}
+
+// GalleryApplicationVersionsClientCreateOrUpdateResponse contains the response from method GalleryApplicationVersionsClient.CreateOrUpdate.
+type GalleryApplicationVersionsClientCreateOrUpdateResponse struct {
+ GalleryApplicationVersion
+}
+
+// GalleryApplicationVersionsClientDeleteResponse contains the response from method GalleryApplicationVersionsClient.Delete.
+type GalleryApplicationVersionsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// GalleryApplicationVersionsClientGetResponse contains the response from method GalleryApplicationVersionsClient.Get.
+type GalleryApplicationVersionsClientGetResponse struct {
+ GalleryApplicationVersion
+}
+
+// GalleryApplicationVersionsClientListByGalleryApplicationResponse contains the response from method GalleryApplicationVersionsClient.ListByGalleryApplication.
+type GalleryApplicationVersionsClientListByGalleryApplicationResponse struct {
+ GalleryApplicationVersionList
+}
+
+// GalleryApplicationVersionsClientUpdateResponse contains the response from method GalleryApplicationVersionsClient.Update.
+type GalleryApplicationVersionsClientUpdateResponse struct {
+ GalleryApplicationVersion
+}
+
+// GalleryApplicationsClientCreateOrUpdateResponse contains the response from method GalleryApplicationsClient.CreateOrUpdate.
+type GalleryApplicationsClientCreateOrUpdateResponse struct {
+ GalleryApplication
+}
+
+// GalleryApplicationsClientDeleteResponse contains the response from method GalleryApplicationsClient.Delete.
+type GalleryApplicationsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// GalleryApplicationsClientGetResponse contains the response from method GalleryApplicationsClient.Get.
+type GalleryApplicationsClientGetResponse struct {
+ GalleryApplication
+}
+
+// GalleryApplicationsClientListByGalleryResponse contains the response from method GalleryApplicationsClient.ListByGallery.
+type GalleryApplicationsClientListByGalleryResponse struct {
+ GalleryApplicationList
+}
+
+// GalleryApplicationsClientUpdateResponse contains the response from method GalleryApplicationsClient.Update.
+type GalleryApplicationsClientUpdateResponse struct {
+ GalleryApplication
+}
+
+// GalleryImageVersionsClientCreateOrUpdateResponse contains the response from method GalleryImageVersionsClient.CreateOrUpdate.
+type GalleryImageVersionsClientCreateOrUpdateResponse struct {
+ GalleryImageVersion
+}
+
+// GalleryImageVersionsClientDeleteResponse contains the response from method GalleryImageVersionsClient.Delete.
+type GalleryImageVersionsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// GalleryImageVersionsClientGetResponse contains the response from method GalleryImageVersionsClient.Get.
+type GalleryImageVersionsClientGetResponse struct {
+ GalleryImageVersion
+}
+
+// GalleryImageVersionsClientListByGalleryImageResponse contains the response from method GalleryImageVersionsClient.ListByGalleryImage.
+type GalleryImageVersionsClientListByGalleryImageResponse struct {
+ GalleryImageVersionList
+}
+
+// GalleryImageVersionsClientUpdateResponse contains the response from method GalleryImageVersionsClient.Update.
+type GalleryImageVersionsClientUpdateResponse struct {
+ GalleryImageVersion
+}
+
+// GalleryImagesClientCreateOrUpdateResponse contains the response from method GalleryImagesClient.CreateOrUpdate.
+type GalleryImagesClientCreateOrUpdateResponse struct {
+ GalleryImage
+}
+
+// GalleryImagesClientDeleteResponse contains the response from method GalleryImagesClient.Delete.
+type GalleryImagesClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// GalleryImagesClientGetResponse contains the response from method GalleryImagesClient.Get.
+type GalleryImagesClientGetResponse struct {
+ GalleryImage
+}
+
+// GalleryImagesClientListByGalleryResponse contains the response from method GalleryImagesClient.ListByGallery.
+type GalleryImagesClientListByGalleryResponse struct {
+ GalleryImageList
+}
+
+// GalleryImagesClientUpdateResponse contains the response from method GalleryImagesClient.Update.
+type GalleryImagesClientUpdateResponse struct {
+ GalleryImage
+}
+
+// GallerySharingProfileClientUpdateResponse contains the response from method GallerySharingProfileClient.Update.
+type GallerySharingProfileClientUpdateResponse struct {
+ SharingUpdate
+}
+
+// ImagesClientCreateOrUpdateResponse contains the response from method ImagesClient.CreateOrUpdate.
+type ImagesClientCreateOrUpdateResponse struct {
+ Image
+}
+
+// ImagesClientDeleteResponse contains the response from method ImagesClient.Delete.
+type ImagesClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// ImagesClientGetResponse contains the response from method ImagesClient.Get.
+type ImagesClientGetResponse struct {
+ Image
+}
+
+// ImagesClientListByResourceGroupResponse contains the response from method ImagesClient.ListByResourceGroup.
+type ImagesClientListByResourceGroupResponse struct {
+ ImageListResult
+}
+
+// ImagesClientListResponse contains the response from method ImagesClient.List.
+type ImagesClientListResponse struct {
+ ImageListResult
+}
+
+// ImagesClientUpdateResponse contains the response from method ImagesClient.Update.
+type ImagesClientUpdateResponse struct {
+ Image
+}
+
+// LogAnalyticsClientExportRequestRateByIntervalResponse contains the response from method LogAnalyticsClient.ExportRequestRateByInterval.
+type LogAnalyticsClientExportRequestRateByIntervalResponse struct {
+ LogAnalyticsOperationResult
+}
+
+// LogAnalyticsClientExportThrottledRequestsResponse contains the response from method LogAnalyticsClient.ExportThrottledRequests.
+type LogAnalyticsClientExportThrottledRequestsResponse struct {
+ LogAnalyticsOperationResult
+}
+
+// OperationsClientListResponse contains the response from method OperationsClient.List.
+type OperationsClientListResponse struct {
+ OperationListResult
+}
+
+// ProximityPlacementGroupsClientCreateOrUpdateResponse contains the response from method ProximityPlacementGroupsClient.CreateOrUpdate.
+type ProximityPlacementGroupsClientCreateOrUpdateResponse struct {
+ ProximityPlacementGroup
+}
+
+// ProximityPlacementGroupsClientDeleteResponse contains the response from method ProximityPlacementGroupsClient.Delete.
+type ProximityPlacementGroupsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// ProximityPlacementGroupsClientGetResponse contains the response from method ProximityPlacementGroupsClient.Get.
+type ProximityPlacementGroupsClientGetResponse struct {
+ ProximityPlacementGroup
+}
+
+// ProximityPlacementGroupsClientListByResourceGroupResponse contains the response from method ProximityPlacementGroupsClient.ListByResourceGroup.
+type ProximityPlacementGroupsClientListByResourceGroupResponse struct {
+ ProximityPlacementGroupListResult
+}
+
+// ProximityPlacementGroupsClientListBySubscriptionResponse contains the response from method ProximityPlacementGroupsClient.ListBySubscription.
+type ProximityPlacementGroupsClientListBySubscriptionResponse struct {
+ ProximityPlacementGroupListResult
+}
+
+// ProximityPlacementGroupsClientUpdateResponse contains the response from method ProximityPlacementGroupsClient.Update.
+type ProximityPlacementGroupsClientUpdateResponse struct {
+ ProximityPlacementGroup
+}
+
+// ResourceSKUsClientListResponse contains the response from method ResourceSKUsClient.List.
+type ResourceSKUsClientListResponse struct {
+ ResourceSKUsResult
+}
+
+// RestorePointCollectionsClientCreateOrUpdateResponse contains the response from method RestorePointCollectionsClient.CreateOrUpdate.
+type RestorePointCollectionsClientCreateOrUpdateResponse struct {
+ RestorePointCollection
+}
+
+// RestorePointCollectionsClientDeleteResponse contains the response from method RestorePointCollectionsClient.Delete.
+type RestorePointCollectionsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// RestorePointCollectionsClientGetResponse contains the response from method RestorePointCollectionsClient.Get.
+type RestorePointCollectionsClientGetResponse struct {
+ RestorePointCollection
+}
+
+// RestorePointCollectionsClientListAllResponse contains the response from method RestorePointCollectionsClient.ListAll.
+type RestorePointCollectionsClientListAllResponse struct {
+ RestorePointCollectionListResult
+}
+
+// RestorePointCollectionsClientListResponse contains the response from method RestorePointCollectionsClient.List.
+type RestorePointCollectionsClientListResponse struct {
+ RestorePointCollectionListResult
+}
+
+// RestorePointCollectionsClientUpdateResponse contains the response from method RestorePointCollectionsClient.Update.
+type RestorePointCollectionsClientUpdateResponse struct {
+ RestorePointCollection
+}
+
+// RestorePointsClientCreateResponse contains the response from method RestorePointsClient.Create.
+type RestorePointsClientCreateResponse struct {
+ RestorePoint
+}
+
+// RestorePointsClientDeleteResponse contains the response from method RestorePointsClient.Delete.
+type RestorePointsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// RestorePointsClientGetResponse contains the response from method RestorePointsClient.Get.
+type RestorePointsClientGetResponse struct {
+ RestorePoint
+}
+
+// SSHPublicKeysClientCreateResponse contains the response from method SSHPublicKeysClient.Create.
+type SSHPublicKeysClientCreateResponse struct {
+ SSHPublicKeyResource
+}
+
+// SSHPublicKeysClientDeleteResponse contains the response from method SSHPublicKeysClient.Delete.
+type SSHPublicKeysClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// SSHPublicKeysClientGenerateKeyPairResponse contains the response from method SSHPublicKeysClient.GenerateKeyPair.
+type SSHPublicKeysClientGenerateKeyPairResponse struct {
+ SSHPublicKeyGenerateKeyPairResult
+}
+
+// SSHPublicKeysClientGetResponse contains the response from method SSHPublicKeysClient.Get.
+type SSHPublicKeysClientGetResponse struct {
+ SSHPublicKeyResource
+}
+
+// SSHPublicKeysClientListByResourceGroupResponse contains the response from method SSHPublicKeysClient.ListByResourceGroup.
+type SSHPublicKeysClientListByResourceGroupResponse struct {
+ SSHPublicKeysGroupListResult
+}
+
+// SSHPublicKeysClientListBySubscriptionResponse contains the response from method SSHPublicKeysClient.ListBySubscription.
+type SSHPublicKeysClientListBySubscriptionResponse struct {
+ SSHPublicKeysGroupListResult
+}
+
+// SSHPublicKeysClientUpdateResponse contains the response from method SSHPublicKeysClient.Update.
+type SSHPublicKeysClientUpdateResponse struct {
+ SSHPublicKeyResource
+}
+
+// SharedGalleriesClientGetResponse contains the response from method SharedGalleriesClient.Get.
+type SharedGalleriesClientGetResponse struct {
+ SharedGallery
+}
+
+// SharedGalleriesClientListResponse contains the response from method SharedGalleriesClient.List.
+type SharedGalleriesClientListResponse struct {
+ SharedGalleryList
+}
+
+// SharedGalleryImageVersionsClientGetResponse contains the response from method SharedGalleryImageVersionsClient.Get.
+type SharedGalleryImageVersionsClientGetResponse struct {
+ SharedGalleryImageVersion
+}
+
+// SharedGalleryImageVersionsClientListResponse contains the response from method SharedGalleryImageVersionsClient.List.
+type SharedGalleryImageVersionsClientListResponse struct {
+ SharedGalleryImageVersionList
+}
+
+// SharedGalleryImagesClientGetResponse contains the response from method SharedGalleryImagesClient.Get.
+type SharedGalleryImagesClientGetResponse struct {
+ SharedGalleryImage
+}
+
+// SharedGalleryImagesClientListResponse contains the response from method SharedGalleryImagesClient.List.
+type SharedGalleryImagesClientListResponse struct {
+ SharedGalleryImageList
+}
+
+// SnapshotsClientCreateOrUpdateResponse contains the response from method SnapshotsClient.CreateOrUpdate.
+type SnapshotsClientCreateOrUpdateResponse struct {
+ Snapshot
+}
+
+// SnapshotsClientDeleteResponse contains the response from method SnapshotsClient.Delete.
+type SnapshotsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// SnapshotsClientGetResponse contains the response from method SnapshotsClient.Get.
+type SnapshotsClientGetResponse struct {
+ Snapshot
+}
+
+// SnapshotsClientGrantAccessResponse contains the response from method SnapshotsClient.GrantAccess.
+type SnapshotsClientGrantAccessResponse struct {
+ AccessURI
+}
+
+// SnapshotsClientListByResourceGroupResponse contains the response from method SnapshotsClient.ListByResourceGroup.
+type SnapshotsClientListByResourceGroupResponse struct {
+ SnapshotList
+}
+
+// SnapshotsClientListResponse contains the response from method SnapshotsClient.List.
+type SnapshotsClientListResponse struct {
+ SnapshotList
+}
+
+// SnapshotsClientRevokeAccessResponse contains the response from method SnapshotsClient.RevokeAccess.
+type SnapshotsClientRevokeAccessResponse struct {
+ // placeholder for future response values
+}
+
+// SnapshotsClientUpdateResponse contains the response from method SnapshotsClient.Update.
+type SnapshotsClientUpdateResponse struct {
+ Snapshot
+}
+
+// UsageClientListResponse contains the response from method UsageClient.List.
+type UsageClientListResponse struct {
+ ListUsagesResult
+}
+
+// VirtualMachineExtensionImagesClientGetResponse contains the response from method VirtualMachineExtensionImagesClient.Get.
+type VirtualMachineExtensionImagesClientGetResponse struct {
+ VirtualMachineExtensionImage
+}
+
+// VirtualMachineExtensionImagesClientListTypesResponse contains the response from method VirtualMachineExtensionImagesClient.ListTypes.
+type VirtualMachineExtensionImagesClientListTypesResponse struct {
+ // Array of VirtualMachineExtensionImage
+ VirtualMachineExtensionImageArray []*VirtualMachineExtensionImage
+}
+
+// VirtualMachineExtensionImagesClientListVersionsResponse contains the response from method VirtualMachineExtensionImagesClient.ListVersions.
+type VirtualMachineExtensionImagesClientListVersionsResponse struct {
+ // Array of VirtualMachineExtensionImage
+ VirtualMachineExtensionImageArray []*VirtualMachineExtensionImage
+}
+
+// VirtualMachineExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineExtensionsClient.CreateOrUpdate.
+type VirtualMachineExtensionsClientCreateOrUpdateResponse struct {
+ VirtualMachineExtension
+}
+
+// VirtualMachineExtensionsClientDeleteResponse contains the response from method VirtualMachineExtensionsClient.Delete.
+type VirtualMachineExtensionsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineExtensionsClientGetResponse contains the response from method VirtualMachineExtensionsClient.Get.
+type VirtualMachineExtensionsClientGetResponse struct {
+ VirtualMachineExtension
+}
+
+// VirtualMachineExtensionsClientListResponse contains the response from method VirtualMachineExtensionsClient.List.
+type VirtualMachineExtensionsClientListResponse struct {
+ VirtualMachineExtensionsListResult
+}
+
+// VirtualMachineExtensionsClientUpdateResponse contains the response from method VirtualMachineExtensionsClient.Update.
+type VirtualMachineExtensionsClientUpdateResponse struct {
+ VirtualMachineExtension
+}
+
+// VirtualMachineImagesClientGetResponse contains the response from method VirtualMachineImagesClient.Get.
+type VirtualMachineImagesClientGetResponse struct {
+ VirtualMachineImage
+}
+
+// VirtualMachineImagesClientListOffersResponse contains the response from method VirtualMachineImagesClient.ListOffers.
+type VirtualMachineImagesClientListOffersResponse struct {
+ // Array of VirtualMachineImageResource
+ VirtualMachineImageResourceArray []*VirtualMachineImageResource
+}
+
+// VirtualMachineImagesClientListPublishersResponse contains the response from method VirtualMachineImagesClient.ListPublishers.
+type VirtualMachineImagesClientListPublishersResponse struct {
+ // Array of VirtualMachineImageResource
+ VirtualMachineImageResourceArray []*VirtualMachineImageResource
+}
+
+// VirtualMachineImagesClientListResponse contains the response from method VirtualMachineImagesClient.List.
+type VirtualMachineImagesClientListResponse struct {
+ // Array of VirtualMachineImageResource
+ VirtualMachineImageResourceArray []*VirtualMachineImageResource
+}
+
+// VirtualMachineImagesClientListSKUsResponse contains the response from method VirtualMachineImagesClient.ListSKUs.
+type VirtualMachineImagesClientListSKUsResponse struct {
+ // Array of VirtualMachineImageResource
+ VirtualMachineImageResourceArray []*VirtualMachineImageResource
+}
+
+// VirtualMachineImagesEdgeZoneClientGetResponse contains the response from method VirtualMachineImagesEdgeZoneClient.Get.
+type VirtualMachineImagesEdgeZoneClientGetResponse struct {
+ VirtualMachineImage
+}
+
+// VirtualMachineImagesEdgeZoneClientListOffersResponse contains the response from method VirtualMachineImagesEdgeZoneClient.ListOffers.
+type VirtualMachineImagesEdgeZoneClientListOffersResponse struct {
+ // Array of VirtualMachineImageResource
+ VirtualMachineImageResourceArray []*VirtualMachineImageResource
+}
+
+// VirtualMachineImagesEdgeZoneClientListPublishersResponse contains the response from method VirtualMachineImagesEdgeZoneClient.ListPublishers.
+type VirtualMachineImagesEdgeZoneClientListPublishersResponse struct {
+ // Array of VirtualMachineImageResource
+ VirtualMachineImageResourceArray []*VirtualMachineImageResource
+}
+
+// VirtualMachineImagesEdgeZoneClientListResponse contains the response from method VirtualMachineImagesEdgeZoneClient.List.
+type VirtualMachineImagesEdgeZoneClientListResponse struct {
+ // Array of VirtualMachineImageResource
+ VirtualMachineImageResourceArray []*VirtualMachineImageResource
+}
+
+// VirtualMachineImagesEdgeZoneClientListSKUsResponse contains the response from method VirtualMachineImagesEdgeZoneClient.ListSKUs.
+type VirtualMachineImagesEdgeZoneClientListSKUsResponse struct {
+ // Array of VirtualMachineImageResource
+ VirtualMachineImageResourceArray []*VirtualMachineImageResource
+}
+
+// VirtualMachineRunCommandsClientCreateOrUpdateResponse contains the response from method VirtualMachineRunCommandsClient.CreateOrUpdate.
+type VirtualMachineRunCommandsClientCreateOrUpdateResponse struct {
+ VirtualMachineRunCommand
+}
+
+// VirtualMachineRunCommandsClientDeleteResponse contains the response from method VirtualMachineRunCommandsClient.Delete.
+type VirtualMachineRunCommandsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineRunCommandsClientGetByVirtualMachineResponse contains the response from method VirtualMachineRunCommandsClient.GetByVirtualMachine.
+type VirtualMachineRunCommandsClientGetByVirtualMachineResponse struct {
+ VirtualMachineRunCommand
+}
+
+// VirtualMachineRunCommandsClientGetResponse contains the response from method VirtualMachineRunCommandsClient.Get.
+type VirtualMachineRunCommandsClientGetResponse struct {
+ RunCommandDocument
+}
+
+// VirtualMachineRunCommandsClientListByVirtualMachineResponse contains the response from method VirtualMachineRunCommandsClient.ListByVirtualMachine.
+type VirtualMachineRunCommandsClientListByVirtualMachineResponse struct {
+ VirtualMachineRunCommandsListResult
+}
+
+// VirtualMachineRunCommandsClientListResponse contains the response from method VirtualMachineRunCommandsClient.List.
+type VirtualMachineRunCommandsClientListResponse struct {
+ RunCommandListResult
+}
+
+// VirtualMachineRunCommandsClientUpdateResponse contains the response from method VirtualMachineRunCommandsClient.Update.
+type VirtualMachineRunCommandsClientUpdateResponse struct {
+ VirtualMachineRunCommand
+}
+
+// VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetExtensionsClient.CreateOrUpdate.
+type VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse struct {
+ VirtualMachineScaleSetExtension
+}
+
+// VirtualMachineScaleSetExtensionsClientDeleteResponse contains the response from method VirtualMachineScaleSetExtensionsClient.Delete.
+type VirtualMachineScaleSetExtensionsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetExtensionsClientGetResponse contains the response from method VirtualMachineScaleSetExtensionsClient.Get.
+type VirtualMachineScaleSetExtensionsClientGetResponse struct {
+ VirtualMachineScaleSetExtension
+}
+
+// VirtualMachineScaleSetExtensionsClientListResponse contains the response from method VirtualMachineScaleSetExtensionsClient.List.
+type VirtualMachineScaleSetExtensionsClientListResponse struct {
+ VirtualMachineScaleSetExtensionListResult
+}
+
+// VirtualMachineScaleSetExtensionsClientUpdateResponse contains the response from method VirtualMachineScaleSetExtensionsClient.Update.
+type VirtualMachineScaleSetExtensionsClientUpdateResponse struct {
+ VirtualMachineScaleSetExtension
+}
+
+// VirtualMachineScaleSetRollingUpgradesClientCancelResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.Cancel.
+type VirtualMachineScaleSetRollingUpgradesClientCancelResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.GetLatest.
+type VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse struct {
+ RollingUpgradeStatusInfo
+}
+
+// VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.StartExtensionUpgrade.
+type VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse contains the response from method VirtualMachineScaleSetRollingUpgradesClient.StartOSUpgrade.
+type VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.CreateOrUpdate.
+type VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse struct {
+ VirtualMachineScaleSetVMExtension
+}
+
+// VirtualMachineScaleSetVMExtensionsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.Delete.
+type VirtualMachineScaleSetVMExtensionsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMExtensionsClientGetResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.Get.
+type VirtualMachineScaleSetVMExtensionsClientGetResponse struct {
+ VirtualMachineScaleSetVMExtension
+}
+
+// VirtualMachineScaleSetVMExtensionsClientListResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.List.
+type VirtualMachineScaleSetVMExtensionsClientListResponse struct {
+ VirtualMachineScaleSetVMExtensionsListResult
+}
+
+// VirtualMachineScaleSetVMExtensionsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMExtensionsClient.Update.
+type VirtualMachineScaleSetVMExtensionsClientUpdateResponse struct {
+ VirtualMachineScaleSetVMExtension
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.CreateOrUpdate.
+type VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse struct {
+ VirtualMachineRunCommand
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.Delete.
+type VirtualMachineScaleSetVMRunCommandsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientGetResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.Get.
+type VirtualMachineScaleSetVMRunCommandsClientGetResponse struct {
+ VirtualMachineRunCommand
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientListResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.List.
+type VirtualMachineScaleSetVMRunCommandsClientListResponse struct {
+ VirtualMachineRunCommandsListResult
+}
+
+// VirtualMachineScaleSetVMRunCommandsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMRunCommandsClient.Update.
+type VirtualMachineScaleSetVMRunCommandsClientUpdateResponse struct {
+ VirtualMachineRunCommand
+}
+
+// VirtualMachineScaleSetVMsClientDeallocateResponse contains the response from method VirtualMachineScaleSetVMsClient.Deallocate.
+type VirtualMachineScaleSetVMsClientDeallocateResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientDeleteResponse contains the response from method VirtualMachineScaleSetVMsClient.Delete.
+type VirtualMachineScaleSetVMsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientGetInstanceViewResponse contains the response from method VirtualMachineScaleSetVMsClient.GetInstanceView.
+type VirtualMachineScaleSetVMsClientGetInstanceViewResponse struct {
+ VirtualMachineScaleSetVMInstanceView
+}
+
+// VirtualMachineScaleSetVMsClientGetResponse contains the response from method VirtualMachineScaleSetVMsClient.Get.
+type VirtualMachineScaleSetVMsClientGetResponse struct {
+ VirtualMachineScaleSetVM
+}
+
+// VirtualMachineScaleSetVMsClientListResponse contains the response from method VirtualMachineScaleSetVMsClient.List.
+type VirtualMachineScaleSetVMsClientListResponse struct {
+ VirtualMachineScaleSetVMListResult
+}
+
+// VirtualMachineScaleSetVMsClientPerformMaintenanceResponse contains the response from method VirtualMachineScaleSetVMsClient.PerformMaintenance.
+type VirtualMachineScaleSetVMsClientPerformMaintenanceResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientPowerOffResponse contains the response from method VirtualMachineScaleSetVMsClient.PowerOff.
+type VirtualMachineScaleSetVMsClientPowerOffResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientRedeployResponse contains the response from method VirtualMachineScaleSetVMsClient.Redeploy.
+type VirtualMachineScaleSetVMsClientRedeployResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientReimageAllResponse contains the response from method VirtualMachineScaleSetVMsClient.ReimageAll.
+type VirtualMachineScaleSetVMsClientReimageAllResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientReimageResponse contains the response from method VirtualMachineScaleSetVMsClient.Reimage.
+type VirtualMachineScaleSetVMsClientReimageResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientRestartResponse contains the response from method VirtualMachineScaleSetVMsClient.Restart.
+type VirtualMachineScaleSetVMsClientRestartResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse contains the response from method VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData.
+type VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse struct {
+ RetrieveBootDiagnosticsDataResult
+}
+
+// VirtualMachineScaleSetVMsClientRunCommandResponse contains the response from method VirtualMachineScaleSetVMsClient.RunCommand.
+type VirtualMachineScaleSetVMsClientRunCommandResponse struct {
+ RunCommandResult
+}
+
+// VirtualMachineScaleSetVMsClientSimulateEvictionResponse contains the response from method VirtualMachineScaleSetVMsClient.SimulateEviction.
+type VirtualMachineScaleSetVMsClientSimulateEvictionResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientStartResponse contains the response from method VirtualMachineScaleSetVMsClient.Start.
+type VirtualMachineScaleSetVMsClientStartResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetVMsClientUpdateResponse contains the response from method VirtualMachineScaleSetVMsClient.Update.
+type VirtualMachineScaleSetVMsClientUpdateResponse struct {
+ VirtualMachineScaleSetVM
+}
+
+// VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse contains the response from method VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup.
+type VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientCreateOrUpdateResponse contains the response from method VirtualMachineScaleSetsClient.CreateOrUpdate.
+type VirtualMachineScaleSetsClientCreateOrUpdateResponse struct {
+ VirtualMachineScaleSet
+}
+
+// VirtualMachineScaleSetsClientDeallocateResponse contains the response from method VirtualMachineScaleSetsClient.Deallocate.
+type VirtualMachineScaleSetsClientDeallocateResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientDeleteInstancesResponse contains the response from method VirtualMachineScaleSetsClient.DeleteInstances.
+type VirtualMachineScaleSetsClientDeleteInstancesResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientDeleteResponse contains the response from method VirtualMachineScaleSetsClient.Delete.
+type VirtualMachineScaleSetsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse contains the response from method
+// VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk.
+type VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse struct {
+ RecoveryWalkResponse
+}
+
+// VirtualMachineScaleSetsClientGetInstanceViewResponse contains the response from method VirtualMachineScaleSetsClient.GetInstanceView.
+type VirtualMachineScaleSetsClientGetInstanceViewResponse struct {
+ VirtualMachineScaleSetInstanceView
+}
+
+// VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse contains the response from method VirtualMachineScaleSetsClient.GetOSUpgradeHistory.
+type VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse struct {
+ VirtualMachineScaleSetListOSUpgradeHistory
+}
+
+// VirtualMachineScaleSetsClientGetResponse contains the response from method VirtualMachineScaleSetsClient.Get.
+type VirtualMachineScaleSetsClientGetResponse struct {
+ VirtualMachineScaleSet
+}
+
+// VirtualMachineScaleSetsClientListAllResponse contains the response from method VirtualMachineScaleSetsClient.ListAll.
+type VirtualMachineScaleSetsClientListAllResponse struct {
+ VirtualMachineScaleSetListWithLinkResult
+}
+
+// VirtualMachineScaleSetsClientListByLocationResponse contains the response from method VirtualMachineScaleSetsClient.ListByLocation.
+type VirtualMachineScaleSetsClientListByLocationResponse struct {
+ VirtualMachineScaleSetListResult
+}
+
+// VirtualMachineScaleSetsClientListResponse contains the response from method VirtualMachineScaleSetsClient.List.
+type VirtualMachineScaleSetsClientListResponse struct {
+ VirtualMachineScaleSetListResult
+}
+
+// VirtualMachineScaleSetsClientListSKUsResponse contains the response from method VirtualMachineScaleSetsClient.ListSKUs.
+type VirtualMachineScaleSetsClientListSKUsResponse struct {
+ VirtualMachineScaleSetListSKUsResult
+}
+
+// VirtualMachineScaleSetsClientPerformMaintenanceResponse contains the response from method VirtualMachineScaleSetsClient.PerformMaintenance.
+type VirtualMachineScaleSetsClientPerformMaintenanceResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientPowerOffResponse contains the response from method VirtualMachineScaleSetsClient.PowerOff.
+type VirtualMachineScaleSetsClientPowerOffResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientRedeployResponse contains the response from method VirtualMachineScaleSetsClient.Redeploy.
+type VirtualMachineScaleSetsClientRedeployResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientReimageAllResponse contains the response from method VirtualMachineScaleSetsClient.ReimageAll.
+type VirtualMachineScaleSetsClientReimageAllResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientReimageResponse contains the response from method VirtualMachineScaleSetsClient.Reimage.
+type VirtualMachineScaleSetsClientReimageResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientRestartResponse contains the response from method VirtualMachineScaleSetsClient.Restart.
+type VirtualMachineScaleSetsClientRestartResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse contains the response from method VirtualMachineScaleSetsClient.SetOrchestrationServiceState.
+type VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientStartResponse contains the response from method VirtualMachineScaleSetsClient.Start.
+type VirtualMachineScaleSetsClientStartResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientUpdateInstancesResponse contains the response from method VirtualMachineScaleSetsClient.UpdateInstances.
+type VirtualMachineScaleSetsClientUpdateInstancesResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachineScaleSetsClientUpdateResponse contains the response from method VirtualMachineScaleSetsClient.Update.
+type VirtualMachineScaleSetsClientUpdateResponse struct {
+ VirtualMachineScaleSet
+}
+
+// VirtualMachineSizesClientListResponse contains the response from method VirtualMachineSizesClient.List.
+type VirtualMachineSizesClientListResponse struct {
+ VirtualMachineSizeListResult
+}
+
+// VirtualMachinesClientAssessPatchesResponse contains the response from method VirtualMachinesClient.AssessPatches.
+type VirtualMachinesClientAssessPatchesResponse struct {
+ VirtualMachineAssessPatchesResult
+}
+
+// VirtualMachinesClientCaptureResponse contains the response from method VirtualMachinesClient.Capture.
+type VirtualMachinesClientCaptureResponse struct {
+ VirtualMachineCaptureResult
+}
+
+// VirtualMachinesClientConvertToManagedDisksResponse contains the response from method VirtualMachinesClient.ConvertToManagedDisks.
+type VirtualMachinesClientConvertToManagedDisksResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientCreateOrUpdateResponse contains the response from method VirtualMachinesClient.CreateOrUpdate.
+type VirtualMachinesClientCreateOrUpdateResponse struct {
+ VirtualMachine
+}
+
+// VirtualMachinesClientDeallocateResponse contains the response from method VirtualMachinesClient.Deallocate.
+type VirtualMachinesClientDeallocateResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientDeleteResponse contains the response from method VirtualMachinesClient.Delete.
+type VirtualMachinesClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientGeneralizeResponse contains the response from method VirtualMachinesClient.Generalize.
+type VirtualMachinesClientGeneralizeResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientGetResponse contains the response from method VirtualMachinesClient.Get.
+type VirtualMachinesClientGetResponse struct {
+ VirtualMachine
+}
+
+// VirtualMachinesClientInstallPatchesResponse contains the response from method VirtualMachinesClient.InstallPatches.
+type VirtualMachinesClientInstallPatchesResponse struct {
+ VirtualMachineInstallPatchesResult
+}
+
+// VirtualMachinesClientInstanceViewResponse contains the response from method VirtualMachinesClient.InstanceView.
+type VirtualMachinesClientInstanceViewResponse struct {
+ VirtualMachineInstanceView
+}
+
+// VirtualMachinesClientListAllResponse contains the response from method VirtualMachinesClient.ListAll.
+type VirtualMachinesClientListAllResponse struct {
+ VirtualMachineListResult
+}
+
+// VirtualMachinesClientListAvailableSizesResponse contains the response from method VirtualMachinesClient.ListAvailableSizes.
+type VirtualMachinesClientListAvailableSizesResponse struct {
+ VirtualMachineSizeListResult
+}
+
+// VirtualMachinesClientListByLocationResponse contains the response from method VirtualMachinesClient.ListByLocation.
+type VirtualMachinesClientListByLocationResponse struct {
+ VirtualMachineListResult
+}
+
+// VirtualMachinesClientListResponse contains the response from method VirtualMachinesClient.List.
+type VirtualMachinesClientListResponse struct {
+ VirtualMachineListResult
+}
+
+// VirtualMachinesClientPerformMaintenanceResponse contains the response from method VirtualMachinesClient.PerformMaintenance.
+type VirtualMachinesClientPerformMaintenanceResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientPowerOffResponse contains the response from method VirtualMachinesClient.PowerOff.
+type VirtualMachinesClientPowerOffResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientReapplyResponse contains the response from method VirtualMachinesClient.Reapply.
+type VirtualMachinesClientReapplyResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientRedeployResponse contains the response from method VirtualMachinesClient.Redeploy.
+type VirtualMachinesClientRedeployResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientReimageResponse contains the response from method VirtualMachinesClient.Reimage.
+type VirtualMachinesClientReimageResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientRestartResponse contains the response from method VirtualMachinesClient.Restart.
+type VirtualMachinesClientRestartResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientRetrieveBootDiagnosticsDataResponse contains the response from method VirtualMachinesClient.RetrieveBootDiagnosticsData.
+type VirtualMachinesClientRetrieveBootDiagnosticsDataResponse struct {
+ RetrieveBootDiagnosticsDataResult
+}
+
+// VirtualMachinesClientRunCommandResponse contains the response from method VirtualMachinesClient.RunCommand.
+type VirtualMachinesClientRunCommandResponse struct {
+ RunCommandResult
+}
+
+// VirtualMachinesClientSimulateEvictionResponse contains the response from method VirtualMachinesClient.SimulateEviction.
+type VirtualMachinesClientSimulateEvictionResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientStartResponse contains the response from method VirtualMachinesClient.Start.
+type VirtualMachinesClientStartResponse struct {
+ // placeholder for future response values
+}
+
+// VirtualMachinesClientUpdateResponse contains the response from method VirtualMachinesClient.Update.
+type VirtualMachinesClientUpdateResponse struct {
+ VirtualMachine
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepointcollections_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepointcollections_client.go
new file mode 100644
index 0000000000..b706d70fb2
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepointcollections_client.go
@@ -0,0 +1,425 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// RestorePointCollectionsClient contains the methods for the RestorePointCollections group.
+// Don't use this type directly, use NewRestorePointCollectionsClient() instead.
+type RestorePointCollectionsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewRestorePointCollectionsClient creates a new instance of RestorePointCollectionsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewRestorePointCollectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorePointCollectionsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &RestorePointCollectionsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// CreateOrUpdate - The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints
+// for more details. When updating a restore point collection, only tags may be modified.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection.
+// parameters - Parameters supplied to the Create or Update restore point collection operation.
+// options - RestorePointCollectionsClientCreateOrUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.CreateOrUpdate
+// method.
+func (client *RestorePointCollectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollection, options *RestorePointCollectionsClientCreateOrUpdateOptions) (RestorePointCollectionsClientCreateOrUpdateResponse, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, restorePointCollectionName, parameters, options)
+ if err != nil {
+ return RestorePointCollectionsClientCreateOrUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return RestorePointCollectionsClientCreateOrUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return RestorePointCollectionsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.createOrUpdateHandleResponse(resp)
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *RestorePointCollectionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollection, options *RestorePointCollectionsClientCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// createOrUpdateHandleResponse handles the CreateOrUpdate response.
+func (client *RestorePointCollectionsClient) createOrUpdateHandleResponse(resp *http.Response) (RestorePointCollectionsClientCreateOrUpdateResponse, error) {
+ result := RestorePointCollectionsClientCreateOrUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RestorePointCollection); err != nil {
+ return RestorePointCollectionsClientCreateOrUpdateResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginDelete - The operation to delete the restore point collection. This operation will also delete all the contained restore
+// points.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the Restore Point Collection.
+// options - RestorePointCollectionsClientBeginDeleteOptions contains the optional parameters for the RestorePointCollectionsClient.BeginDelete
+// method.
+func (client *RestorePointCollectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientBeginDeleteOptions) (*runtime.Poller[RestorePointCollectionsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, restorePointCollectionName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[RestorePointCollectionsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[RestorePointCollectionsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete the restore point collection. This operation will also delete all the contained restore
+// points.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *RestorePointCollectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, restorePointCollectionName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *RestorePointCollectionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - The operation to get the restore point collection.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection.
+// options - RestorePointCollectionsClientGetOptions contains the optional parameters for the RestorePointCollectionsClient.Get
+// method.
+func (client *RestorePointCollectionsClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientGetOptions) (RestorePointCollectionsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, restorePointCollectionName, options)
+ if err != nil {
+ return RestorePointCollectionsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return RestorePointCollectionsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return RestorePointCollectionsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *RestorePointCollectionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *RestorePointCollectionsClient) getHandleResponse(resp *http.Response) (RestorePointCollectionsClientGetResponse, error) {
+ result := RestorePointCollectionsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RestorePointCollection); err != nil {
+ return RestorePointCollectionsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Gets the list of restore point collections in a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - RestorePointCollectionsClientListOptions contains the optional parameters for the RestorePointCollectionsClient.List
+// method.
+func (client *RestorePointCollectionsClient) NewListPager(resourceGroupName string, options *RestorePointCollectionsClientListOptions) *runtime.Pager[RestorePointCollectionsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[RestorePointCollectionsClientListResponse]{
+ More: func(page RestorePointCollectionsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *RestorePointCollectionsClientListResponse) (RestorePointCollectionsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return RestorePointCollectionsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return RestorePointCollectionsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return RestorePointCollectionsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *RestorePointCollectionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, options *RestorePointCollectionsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *RestorePointCollectionsClient) listHandleResponse(resp *http.Response) (RestorePointCollectionsClientListResponse, error) {
+ result := RestorePointCollectionsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RestorePointCollectionListResult); err != nil {
+ return RestorePointCollectionsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListAllPager - Gets the list of restore point collections in the subscription. Use nextLink property in the response
+// to get the next page of restore point collections. Do this till nextLink is not null to fetch all
+// the restore point collections.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - RestorePointCollectionsClientListAllOptions contains the optional parameters for the RestorePointCollectionsClient.ListAll
+// method.
+func (client *RestorePointCollectionsClient) NewListAllPager(options *RestorePointCollectionsClientListAllOptions) *runtime.Pager[RestorePointCollectionsClientListAllResponse] {
+ return runtime.NewPager(runtime.PagingHandler[RestorePointCollectionsClientListAllResponse]{
+ More: func(page RestorePointCollectionsClientListAllResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *RestorePointCollectionsClientListAllResponse) (RestorePointCollectionsClientListAllResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listAllCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return RestorePointCollectionsClientListAllResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return RestorePointCollectionsClientListAllResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return RestorePointCollectionsClientListAllResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listAllHandleResponse(resp)
+ },
+ })
+}
+
+// listAllCreateRequest creates the ListAll request.
+func (client *RestorePointCollectionsClient) listAllCreateRequest(ctx context.Context, options *RestorePointCollectionsClientListAllOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listAllHandleResponse handles the ListAll response.
+func (client *RestorePointCollectionsClient) listAllHandleResponse(resp *http.Response) (RestorePointCollectionsClientListAllResponse, error) {
+ result := RestorePointCollectionsClientListAllResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RestorePointCollectionListResult); err != nil {
+ return RestorePointCollectionsClientListAllResponse{}, err
+ }
+ return result, nil
+}
+
+// Update - The operation to update the restore point collection.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection.
+// parameters - Parameters supplied to the Update restore point collection operation.
+// options - RestorePointCollectionsClientUpdateOptions contains the optional parameters for the RestorePointCollectionsClient.Update
+// method.
+func (client *RestorePointCollectionsClient) Update(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollectionUpdate, options *RestorePointCollectionsClientUpdateOptions) (RestorePointCollectionsClientUpdateResponse, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, restorePointCollectionName, parameters, options)
+ if err != nil {
+ return RestorePointCollectionsClientUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return RestorePointCollectionsClientUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return RestorePointCollectionsClientUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.updateHandleResponse(resp)
+}
+
+// updateCreateRequest creates the Update request.
+func (client *RestorePointCollectionsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, parameters RestorePointCollectionUpdate, options *RestorePointCollectionsClientUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// updateHandleResponse handles the Update response.
+func (client *RestorePointCollectionsClient) updateHandleResponse(resp *http.Response) (RestorePointCollectionsClientUpdateResponse, error) {
+ result := RestorePointCollectionsClientUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RestorePointCollection); err != nil {
+ return RestorePointCollectionsClientUpdateResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepoints_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepoints_client.go
new file mode 100644
index 0000000000..11ec43cf7e
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_restorepoints_client.go
@@ -0,0 +1,257 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// RestorePointsClient contains the methods for the RestorePoints group.
+// Don't use this type directly, use NewRestorePointsClient() instead.
+type RestorePointsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewRestorePointsClient creates a new instance of RestorePointsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewRestorePointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorePointsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &RestorePointsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreate - The operation to create the restore point. Updating properties of an existing restore point is not allowed
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection.
+// restorePointName - The name of the restore point.
+// parameters - Parameters supplied to the Create restore point operation.
+// options - RestorePointsClientBeginCreateOptions contains the optional parameters for the RestorePointsClient.BeginCreate
+// method.
+func (client *RestorePointsClient) BeginCreate(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint, options *RestorePointsClientBeginCreateOptions) (*runtime.Poller[RestorePointsClientCreateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.create(ctx, resourceGroupName, restorePointCollectionName, restorePointName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[RestorePointsClientCreateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[RestorePointsClientCreateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Create - The operation to create the restore point. Updating properties of an existing restore point is not allowed
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *RestorePointsClient) create(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint, options *RestorePointsClientBeginCreateOptions) (*http.Response, error) {
+ req, err := client.createCreateRequest(ctx, resourceGroupName, restorePointCollectionName, restorePointName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createCreateRequest creates the Create request.
+func (client *RestorePointsClient) createCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint, options *RestorePointsClientBeginCreateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ if restorePointName == "" {
+ return nil, errors.New("parameter restorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointName}", url.PathEscape(restorePointName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginDelete - The operation to delete the restore point.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the Restore Point Collection.
+// restorePointName - The name of the restore point.
+// options - RestorePointsClientBeginDeleteOptions contains the optional parameters for the RestorePointsClient.BeginDelete
+// method.
+func (client *RestorePointsClient) BeginDelete(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientBeginDeleteOptions) (*runtime.Poller[RestorePointsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, restorePointCollectionName, restorePointName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[RestorePointsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[RestorePointsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete the restore point.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *RestorePointsClient) deleteOperation(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, restorePointCollectionName, restorePointName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *RestorePointsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ if restorePointName == "" {
+ return nil, errors.New("parameter restorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointName}", url.PathEscape(restorePointName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - The operation to get the restore point.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// restorePointCollectionName - The name of the restore point collection.
+// restorePointName - The name of the restore point.
+// options - RestorePointsClientGetOptions contains the optional parameters for the RestorePointsClient.Get method.
+func (client *RestorePointsClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientGetOptions) (RestorePointsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, restorePointCollectionName, restorePointName, options)
+ if err != nil {
+ return RestorePointsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return RestorePointsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return RestorePointsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *RestorePointsClient) getCreateRequest(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if restorePointCollectionName == "" {
+ return nil, errors.New("parameter restorePointCollectionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointCollectionName}", url.PathEscape(restorePointCollectionName))
+ if restorePointName == "" {
+ return nil, errors.New("parameter restorePointName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{restorePointName}", url.PathEscape(restorePointName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *RestorePointsClient) getHandleResponse(resp *http.Response) (RestorePointsClientGetResponse, error) {
+ result := RestorePointsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RestorePoint); err != nil {
+ return RestorePointsClientGetResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleries_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleries_client.go
new file mode 100644
index 0000000000..9f73e7295f
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleries_client.go
@@ -0,0 +1,179 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// SharedGalleriesClient contains the methods for the SharedGalleries group.
+// Don't use this type directly, use NewSharedGalleriesClient() instead.
+type SharedGalleriesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewSharedGalleriesClient creates a new instance of SharedGalleriesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewSharedGalleriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SharedGalleriesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &SharedGalleriesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Get a shared gallery by subscription id or tenant id.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// galleryUniqueName - The unique name of the Shared Gallery.
+// options - SharedGalleriesClientGetOptions contains the optional parameters for the SharedGalleriesClient.Get method.
+func (client *SharedGalleriesClient) Get(ctx context.Context, location string, galleryUniqueName string, options *SharedGalleriesClientGetOptions) (SharedGalleriesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, galleryUniqueName, options)
+ if err != nil {
+ return SharedGalleriesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SharedGalleriesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SharedGalleriesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *SharedGalleriesClient) getCreateRequest(ctx context.Context, location string, galleryUniqueName string, options *SharedGalleriesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if galleryUniqueName == "" {
+ return nil, errors.New("parameter galleryUniqueName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryUniqueName}", url.PathEscape(galleryUniqueName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *SharedGalleriesClient) getHandleResponse(resp *http.Response) (SharedGalleriesClientGetResponse, error) {
+ result := SharedGalleriesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SharedGallery); err != nil {
+ return SharedGalleriesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - List shared galleries by subscription id or tenant id.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// options - SharedGalleriesClientListOptions contains the optional parameters for the SharedGalleriesClient.List method.
+func (client *SharedGalleriesClient) NewListPager(location string, options *SharedGalleriesClientListOptions) *runtime.Pager[SharedGalleriesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[SharedGalleriesClientListResponse]{
+ More: func(page SharedGalleriesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *SharedGalleriesClientListResponse) (SharedGalleriesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, location, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return SharedGalleriesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SharedGalleriesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SharedGalleriesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *SharedGalleriesClient) listCreateRequest(ctx context.Context, location string, options *SharedGalleriesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ if options != nil && options.SharedTo != nil {
+ reqQP.Set("sharedTo", string(*options.SharedTo))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *SharedGalleriesClient) listHandleResponse(resp *http.Response) (SharedGalleriesClientListResponse, error) {
+ result := SharedGalleriesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SharedGalleryList); err != nil {
+ return SharedGalleriesClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimages_client.go
new file mode 100644
index 0000000000..fca3e47af5
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimages_client.go
@@ -0,0 +1,190 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// SharedGalleryImagesClient contains the methods for the SharedGalleryImages group.
+// Don't use this type directly, use NewSharedGalleryImagesClient() instead.
+type SharedGalleryImagesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewSharedGalleryImagesClient creates a new instance of SharedGalleryImagesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewSharedGalleryImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SharedGalleryImagesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &SharedGalleryImagesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Get a shared gallery image by subscription id or tenant id.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// galleryUniqueName - The unique name of the Shared Gallery.
+// galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed.
+// options - SharedGalleryImagesClientGetOptions contains the optional parameters for the SharedGalleryImagesClient.Get method.
+func (client *SharedGalleryImagesClient) Get(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, options *SharedGalleryImagesClientGetOptions) (SharedGalleryImagesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, galleryUniqueName, galleryImageName, options)
+ if err != nil {
+ return SharedGalleryImagesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SharedGalleryImagesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SharedGalleryImagesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *SharedGalleryImagesClient) getCreateRequest(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, options *SharedGalleryImagesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if galleryUniqueName == "" {
+ return nil, errors.New("parameter galleryUniqueName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryUniqueName}", url.PathEscape(galleryUniqueName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *SharedGalleryImagesClient) getHandleResponse(resp *http.Response) (SharedGalleryImagesClientGetResponse, error) {
+ result := SharedGalleryImagesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SharedGalleryImage); err != nil {
+ return SharedGalleryImagesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - List shared gallery images by subscription id or tenant id.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// galleryUniqueName - The unique name of the Shared Gallery.
+// options - SharedGalleryImagesClientListOptions contains the optional parameters for the SharedGalleryImagesClient.List
+// method.
+func (client *SharedGalleryImagesClient) NewListPager(location string, galleryUniqueName string, options *SharedGalleryImagesClientListOptions) *runtime.Pager[SharedGalleryImagesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[SharedGalleryImagesClientListResponse]{
+ More: func(page SharedGalleryImagesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *SharedGalleryImagesClientListResponse) (SharedGalleryImagesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, location, galleryUniqueName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return SharedGalleryImagesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SharedGalleryImagesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SharedGalleryImagesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *SharedGalleryImagesClient) listCreateRequest(ctx context.Context, location string, galleryUniqueName string, options *SharedGalleryImagesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if galleryUniqueName == "" {
+ return nil, errors.New("parameter galleryUniqueName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryUniqueName}", url.PathEscape(galleryUniqueName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ if options != nil && options.SharedTo != nil {
+ reqQP.Set("sharedTo", string(*options.SharedTo))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *SharedGalleryImagesClient) listHandleResponse(resp *http.Response) (SharedGalleryImagesClientListResponse, error) {
+ result := SharedGalleryImagesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SharedGalleryImageList); err != nil {
+ return SharedGalleryImagesClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimageversions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimageversions_client.go
new file mode 100644
index 0000000000..d2257bf327
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sharedgalleryimageversions_client.go
@@ -0,0 +1,203 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// SharedGalleryImageVersionsClient contains the methods for the SharedGalleryImageVersions group.
+// Don't use this type directly, use NewSharedGalleryImageVersionsClient() instead.
+type SharedGalleryImageVersionsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewSharedGalleryImageVersionsClient creates a new instance of SharedGalleryImageVersionsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewSharedGalleryImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SharedGalleryImageVersionsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &SharedGalleryImageVersionsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Get a shared gallery image version by subscription id or tenant id.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// galleryUniqueName - The unique name of the Shared Gallery.
+// galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed.
+// galleryImageVersionName - The name of the gallery image version to be created. Needs to follow semantic version name pattern:
+// The allowed characters are digit and period. Digits must be within the range of a 32-bit integer.
+// Format: ..
+// options - SharedGalleryImageVersionsClientGetOptions contains the optional parameters for the SharedGalleryImageVersionsClient.Get
+// method.
+func (client *SharedGalleryImageVersionsClient) Get(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, galleryImageVersionName string, options *SharedGalleryImageVersionsClientGetOptions) (SharedGalleryImageVersionsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, galleryUniqueName, galleryImageName, galleryImageVersionName, options)
+ if err != nil {
+ return SharedGalleryImageVersionsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SharedGalleryImageVersionsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SharedGalleryImageVersionsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *SharedGalleryImageVersionsClient) getCreateRequest(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, galleryImageVersionName string, options *SharedGalleryImageVersionsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if galleryUniqueName == "" {
+ return nil, errors.New("parameter galleryUniqueName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryUniqueName}", url.PathEscape(galleryUniqueName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ if galleryImageVersionName == "" {
+ return nil, errors.New("parameter galleryImageVersionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageVersionName}", url.PathEscape(galleryImageVersionName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *SharedGalleryImageVersionsClient) getHandleResponse(resp *http.Response) (SharedGalleryImageVersionsClientGetResponse, error) {
+ result := SharedGalleryImageVersionsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SharedGalleryImageVersion); err != nil {
+ return SharedGalleryImageVersionsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - List shared gallery image versions by subscription id or tenant id.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-07-01
+// location - Resource location.
+// galleryUniqueName - The unique name of the Shared Gallery.
+// galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed.
+// options - SharedGalleryImageVersionsClientListOptions contains the optional parameters for the SharedGalleryImageVersionsClient.List
+// method.
+func (client *SharedGalleryImageVersionsClient) NewListPager(location string, galleryUniqueName string, galleryImageName string, options *SharedGalleryImageVersionsClientListOptions) *runtime.Pager[SharedGalleryImageVersionsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[SharedGalleryImageVersionsClientListResponse]{
+ More: func(page SharedGalleryImageVersionsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *SharedGalleryImageVersionsClientListResponse) (SharedGalleryImageVersionsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, location, galleryUniqueName, galleryImageName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return SharedGalleryImageVersionsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SharedGalleryImageVersionsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SharedGalleryImageVersionsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *SharedGalleryImageVersionsClient) listCreateRequest(ctx context.Context, location string, galleryUniqueName string, galleryImageName string, options *SharedGalleryImageVersionsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if galleryUniqueName == "" {
+ return nil, errors.New("parameter galleryUniqueName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryUniqueName}", url.PathEscape(galleryUniqueName))
+ if galleryImageName == "" {
+ return nil, errors.New("parameter galleryImageName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{galleryImageName}", url.PathEscape(galleryImageName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-07-01")
+ if options != nil && options.SharedTo != nil {
+ reqQP.Set("sharedTo", string(*options.SharedTo))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *SharedGalleryImageVersionsClient) listHandleResponse(resp *http.Response) (SharedGalleryImageVersionsClientListResponse, error) {
+ result := SharedGalleryImageVersionsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SharedGalleryImageVersionList); err != nil {
+ return SharedGalleryImageVersionsClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_snapshots_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_snapshots_client.go
new file mode 100644
index 0000000000..31ee660769
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_snapshots_client.go
@@ -0,0 +1,566 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// SnapshotsClient contains the methods for the Snapshots group.
+// Don't use this type directly, use NewSnapshotsClient() instead.
+type SnapshotsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewSnapshotsClient creates a new instance of SnapshotsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewSnapshotsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SnapshotsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &SnapshotsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - Creates or updates a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created.
+// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80
+// characters.
+// snapshot - Snapshot object supplied in the body of the Put disk operation.
+// options - SnapshotsClientBeginCreateOrUpdateOptions contains the optional parameters for the SnapshotsClient.BeginCreateOrUpdate
+// method.
+func (client *SnapshotsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, snapshotName string, snapshot Snapshot, options *SnapshotsClientBeginCreateOrUpdateOptions) (*runtime.Poller[SnapshotsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, snapshotName, snapshot, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[SnapshotsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[SnapshotsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Creates or updates a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *SnapshotsClient) createOrUpdate(ctx context.Context, resourceGroupName string, snapshotName string, snapshot Snapshot, options *SnapshotsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, snapshotName, snapshot, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *SnapshotsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, snapshotName string, snapshot Snapshot, options *SnapshotsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if snapshotName == "" {
+ return nil, errors.New("parameter snapshotName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, snapshot)
+}
+
+// BeginDelete - Deletes a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created.
+// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80
+// characters.
+// options - SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method.
+func (client *SnapshotsClient) BeginDelete(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginDeleteOptions) (*runtime.Poller[SnapshotsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, snapshotName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[SnapshotsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[SnapshotsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *SnapshotsClient) deleteOperation(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, snapshotName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *SnapshotsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if snapshotName == "" {
+ return nil, errors.New("parameter snapshotName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ return req, nil
+}
+
+// Get - Gets information about a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created.
+// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80
+// characters.
+// options - SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method.
+func (client *SnapshotsClient) Get(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientGetOptions) (SnapshotsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, snapshotName, options)
+ if err != nil {
+ return SnapshotsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SnapshotsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SnapshotsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *SnapshotsClient) getCreateRequest(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if snapshotName == "" {
+ return nil, errors.New("parameter snapshotName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *SnapshotsClient) getHandleResponse(resp *http.Response) (SnapshotsClientGetResponse, error) {
+ result := SnapshotsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.Snapshot); err != nil {
+ return SnapshotsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginGrantAccess - Grants access to a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created.
+// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80
+// characters.
+// grantAccessData - Access data object supplied in the body of the get snapshot access operation.
+// options - SnapshotsClientBeginGrantAccessOptions contains the optional parameters for the SnapshotsClient.BeginGrantAccess
+// method.
+func (client *SnapshotsClient) BeginGrantAccess(ctx context.Context, resourceGroupName string, snapshotName string, grantAccessData GrantAccessData, options *SnapshotsClientBeginGrantAccessOptions) (*runtime.Poller[SnapshotsClientGrantAccessResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.grantAccess(ctx, resourceGroupName, snapshotName, grantAccessData, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SnapshotsClientGrantAccessResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[SnapshotsClientGrantAccessResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// GrantAccess - Grants access to a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *SnapshotsClient) grantAccess(ctx context.Context, resourceGroupName string, snapshotName string, grantAccessData GrantAccessData, options *SnapshotsClientBeginGrantAccessOptions) (*http.Response, error) {
+ req, err := client.grantAccessCreateRequest(ctx, resourceGroupName, snapshotName, grantAccessData, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// grantAccessCreateRequest creates the GrantAccess request.
+func (client *SnapshotsClient) grantAccessCreateRequest(ctx context.Context, resourceGroupName string, snapshotName string, grantAccessData GrantAccessData, options *SnapshotsClientBeginGrantAccessOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if snapshotName == "" {
+ return nil, errors.New("parameter snapshotName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, grantAccessData)
+}
+
+// NewListPager - Lists snapshots under a subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// options - SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.List method.
+func (client *SnapshotsClient) NewListPager(options *SnapshotsClientListOptions) *runtime.Pager[SnapshotsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[SnapshotsClientListResponse]{
+ More: func(page SnapshotsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *SnapshotsClientListResponse) (SnapshotsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return SnapshotsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SnapshotsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SnapshotsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *SnapshotsClient) listCreateRequest(ctx context.Context, options *SnapshotsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *SnapshotsClient) listHandleResponse(resp *http.Response) (SnapshotsClientListResponse, error) {
+ result := SnapshotsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SnapshotList); err != nil {
+ return SnapshotsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Lists snapshots under a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// options - SnapshotsClientListByResourceGroupOptions contains the optional parameters for the SnapshotsClient.ListByResourceGroup
+// method.
+func (client *SnapshotsClient) NewListByResourceGroupPager(resourceGroupName string, options *SnapshotsClientListByResourceGroupOptions) *runtime.Pager[SnapshotsClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[SnapshotsClientListByResourceGroupResponse]{
+ More: func(page SnapshotsClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *SnapshotsClientListByResourceGroupResponse) (SnapshotsClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return SnapshotsClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SnapshotsClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SnapshotsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *SnapshotsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *SnapshotsClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *SnapshotsClient) listByResourceGroupHandleResponse(resp *http.Response) (SnapshotsClientListByResourceGroupResponse, error) {
+ result := SnapshotsClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SnapshotList); err != nil {
+ return SnapshotsClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginRevokeAccess - Revokes access to a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created.
+// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80
+// characters.
+// options - SnapshotsClientBeginRevokeAccessOptions contains the optional parameters for the SnapshotsClient.BeginRevokeAccess
+// method.
+func (client *SnapshotsClient) BeginRevokeAccess(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginRevokeAccessOptions) (*runtime.Poller[SnapshotsClientRevokeAccessResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.revokeAccess(ctx, resourceGroupName, snapshotName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SnapshotsClientRevokeAccessResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[SnapshotsClientRevokeAccessResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// RevokeAccess - Revokes access to a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *SnapshotsClient) revokeAccess(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginRevokeAccessOptions) (*http.Response, error) {
+ req, err := client.revokeAccessCreateRequest(ctx, resourceGroupName, snapshotName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// revokeAccessCreateRequest creates the RevokeAccess request.
+func (client *SnapshotsClient) revokeAccessCreateRequest(ctx context.Context, resourceGroupName string, snapshotName string, options *SnapshotsClientBeginRevokeAccessOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if snapshotName == "" {
+ return nil, errors.New("parameter snapshotName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ return req, nil
+}
+
+// BeginUpdate - Updates (patches) a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+// resourceGroupName - The name of the resource group.
+// snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created.
+// Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80
+// characters.
+// snapshot - Snapshot object supplied in the body of the Patch snapshot operation.
+// options - SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method.
+func (client *SnapshotsClient) BeginUpdate(ctx context.Context, resourceGroupName string, snapshotName string, snapshot SnapshotUpdate, options *SnapshotsClientBeginUpdateOptions) (*runtime.Poller[SnapshotsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, snapshotName, snapshot, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[SnapshotsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[SnapshotsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Updates (patches) a snapshot.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2021-12-01
+func (client *SnapshotsClient) update(ctx context.Context, resourceGroupName string, snapshotName string, snapshot SnapshotUpdate, options *SnapshotsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, snapshotName, snapshot, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *SnapshotsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, snapshotName string, snapshot SnapshotUpdate, options *SnapshotsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if snapshotName == "" {
+ return nil, errors.New("parameter snapshotName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{snapshotName}", url.PathEscape(snapshotName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2021-12-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, snapshot)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sshpublickeys_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sshpublickeys_client.go
new file mode 100644
index 0000000000..c9e7298578
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_sshpublickeys_client.go
@@ -0,0 +1,459 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// SSHPublicKeysClient contains the methods for the SSHPublicKeys group.
+// Don't use this type directly, use NewSSHPublicKeysClient() instead.
+type SSHPublicKeysClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewSSHPublicKeysClient creates a new instance of SSHPublicKeysClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewSSHPublicKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SSHPublicKeysClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &SSHPublicKeysClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Create - Creates a new SSH public key resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// sshPublicKeyName - The name of the SSH public key.
+// parameters - Parameters supplied to create the SSH public key.
+// options - SSHPublicKeysClientCreateOptions contains the optional parameters for the SSHPublicKeysClient.Create method.
+func (client *SSHPublicKeysClient) Create(ctx context.Context, resourceGroupName string, sshPublicKeyName string, parameters SSHPublicKeyResource, options *SSHPublicKeysClientCreateOptions) (SSHPublicKeysClientCreateResponse, error) {
+ req, err := client.createCreateRequest(ctx, resourceGroupName, sshPublicKeyName, parameters, options)
+ if err != nil {
+ return SSHPublicKeysClientCreateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SSHPublicKeysClientCreateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return SSHPublicKeysClientCreateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.createHandleResponse(resp)
+}
+
+// createCreateRequest creates the Create request.
+func (client *SSHPublicKeysClient) createCreateRequest(ctx context.Context, resourceGroupName string, sshPublicKeyName string, parameters SSHPublicKeyResource, options *SSHPublicKeysClientCreateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if sshPublicKeyName == "" {
+ return nil, errors.New("parameter sshPublicKeyName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{sshPublicKeyName}", url.PathEscape(sshPublicKeyName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// createHandleResponse handles the Create response.
+func (client *SSHPublicKeysClient) createHandleResponse(resp *http.Response) (SSHPublicKeysClientCreateResponse, error) {
+ result := SSHPublicKeysClientCreateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SSHPublicKeyResource); err != nil {
+ return SSHPublicKeysClientCreateResponse{}, err
+ }
+ return result, nil
+}
+
+// Delete - Delete an SSH public key.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// sshPublicKeyName - The name of the SSH public key.
+// options - SSHPublicKeysClientDeleteOptions contains the optional parameters for the SSHPublicKeysClient.Delete method.
+func (client *SSHPublicKeysClient) Delete(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientDeleteOptions) (SSHPublicKeysClientDeleteResponse, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, sshPublicKeyName, options)
+ if err != nil {
+ return SSHPublicKeysClientDeleteResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SSHPublicKeysClientDeleteResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) {
+ return SSHPublicKeysClientDeleteResponse{}, runtime.NewResponseError(resp)
+ }
+ return SSHPublicKeysClientDeleteResponse{}, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *SSHPublicKeysClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if sshPublicKeyName == "" {
+ return nil, errors.New("parameter sshPublicKeyName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{sshPublicKeyName}", url.PathEscape(sshPublicKeyName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// GenerateKeyPair - Generates and returns a public/private key pair and populates the SSH public key resource with the public
+// key. The length of the key will be 3072 bits. This operation can only be performed once per
+// SSH public key resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// sshPublicKeyName - The name of the SSH public key.
+// options - SSHPublicKeysClientGenerateKeyPairOptions contains the optional parameters for the SSHPublicKeysClient.GenerateKeyPair
+// method.
+func (client *SSHPublicKeysClient) GenerateKeyPair(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientGenerateKeyPairOptions) (SSHPublicKeysClientGenerateKeyPairResponse, error) {
+ req, err := client.generateKeyPairCreateRequest(ctx, resourceGroupName, sshPublicKeyName, options)
+ if err != nil {
+ return SSHPublicKeysClientGenerateKeyPairResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SSHPublicKeysClientGenerateKeyPairResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SSHPublicKeysClientGenerateKeyPairResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.generateKeyPairHandleResponse(resp)
+}
+
+// generateKeyPairCreateRequest creates the GenerateKeyPair request.
+func (client *SSHPublicKeysClient) generateKeyPairCreateRequest(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientGenerateKeyPairOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if sshPublicKeyName == "" {
+ return nil, errors.New("parameter sshPublicKeyName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{sshPublicKeyName}", url.PathEscape(sshPublicKeyName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// generateKeyPairHandleResponse handles the GenerateKeyPair response.
+func (client *SSHPublicKeysClient) generateKeyPairHandleResponse(resp *http.Response) (SSHPublicKeysClientGenerateKeyPairResponse, error) {
+ result := SSHPublicKeysClientGenerateKeyPairResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SSHPublicKeyGenerateKeyPairResult); err != nil {
+ return SSHPublicKeysClientGenerateKeyPairResponse{}, err
+ }
+ return result, nil
+}
+
+// Get - Retrieves information about an SSH public key.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// sshPublicKeyName - The name of the SSH public key.
+// options - SSHPublicKeysClientGetOptions contains the optional parameters for the SSHPublicKeysClient.Get method.
+func (client *SSHPublicKeysClient) Get(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientGetOptions) (SSHPublicKeysClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, sshPublicKeyName, options)
+ if err != nil {
+ return SSHPublicKeysClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SSHPublicKeysClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SSHPublicKeysClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *SSHPublicKeysClient) getCreateRequest(ctx context.Context, resourceGroupName string, sshPublicKeyName string, options *SSHPublicKeysClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if sshPublicKeyName == "" {
+ return nil, errors.New("parameter sshPublicKeyName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{sshPublicKeyName}", url.PathEscape(sshPublicKeyName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *SSHPublicKeysClient) getHandleResponse(resp *http.Response) (SSHPublicKeysClientGetResponse, error) {
+ result := SSHPublicKeysClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SSHPublicKeyResource); err != nil {
+ return SSHPublicKeysClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByResourceGroupPager - Lists all of the SSH public keys in the specified resource group. Use the nextLink property
+// in the response to get the next page of SSH public keys.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - SSHPublicKeysClientListByResourceGroupOptions contains the optional parameters for the SSHPublicKeysClient.ListByResourceGroup
+// method.
+func (client *SSHPublicKeysClient) NewListByResourceGroupPager(resourceGroupName string, options *SSHPublicKeysClientListByResourceGroupOptions) *runtime.Pager[SSHPublicKeysClientListByResourceGroupResponse] {
+ return runtime.NewPager(runtime.PagingHandler[SSHPublicKeysClientListByResourceGroupResponse]{
+ More: func(page SSHPublicKeysClientListByResourceGroupResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *SSHPublicKeysClientListByResourceGroupResponse) (SSHPublicKeysClientListByResourceGroupResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return SSHPublicKeysClientListByResourceGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SSHPublicKeysClientListByResourceGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SSHPublicKeysClientListByResourceGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByResourceGroupHandleResponse(resp)
+ },
+ })
+}
+
+// listByResourceGroupCreateRequest creates the ListByResourceGroup request.
+func (client *SSHPublicKeysClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *SSHPublicKeysClientListByResourceGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByResourceGroupHandleResponse handles the ListByResourceGroup response.
+func (client *SSHPublicKeysClient) listByResourceGroupHandleResponse(resp *http.Response) (SSHPublicKeysClientListByResourceGroupResponse, error) {
+ result := SSHPublicKeysClientListByResourceGroupResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SSHPublicKeysGroupListResult); err != nil {
+ return SSHPublicKeysClientListByResourceGroupResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListBySubscriptionPager - Lists all of the SSH public keys in the subscription. Use the nextLink property in the response
+// to get the next page of SSH public keys.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - SSHPublicKeysClientListBySubscriptionOptions contains the optional parameters for the SSHPublicKeysClient.ListBySubscription
+// method.
+func (client *SSHPublicKeysClient) NewListBySubscriptionPager(options *SSHPublicKeysClientListBySubscriptionOptions) *runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse] {
+ return runtime.NewPager(runtime.PagingHandler[SSHPublicKeysClientListBySubscriptionResponse]{
+ More: func(page SSHPublicKeysClientListBySubscriptionResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *SSHPublicKeysClientListBySubscriptionResponse) (SSHPublicKeysClientListBySubscriptionResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listBySubscriptionCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return SSHPublicKeysClientListBySubscriptionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SSHPublicKeysClientListBySubscriptionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SSHPublicKeysClientListBySubscriptionResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listBySubscriptionHandleResponse(resp)
+ },
+ })
+}
+
+// listBySubscriptionCreateRequest creates the ListBySubscription request.
+func (client *SSHPublicKeysClient) listBySubscriptionCreateRequest(ctx context.Context, options *SSHPublicKeysClientListBySubscriptionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listBySubscriptionHandleResponse handles the ListBySubscription response.
+func (client *SSHPublicKeysClient) listBySubscriptionHandleResponse(resp *http.Response) (SSHPublicKeysClientListBySubscriptionResponse, error) {
+ result := SSHPublicKeysClientListBySubscriptionResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SSHPublicKeysGroupListResult); err != nil {
+ return SSHPublicKeysClientListBySubscriptionResponse{}, err
+ }
+ return result, nil
+}
+
+// Update - Updates a new SSH public key resource.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// sshPublicKeyName - The name of the SSH public key.
+// parameters - Parameters supplied to update the SSH public key.
+// options - SSHPublicKeysClientUpdateOptions contains the optional parameters for the SSHPublicKeysClient.Update method.
+func (client *SSHPublicKeysClient) Update(ctx context.Context, resourceGroupName string, sshPublicKeyName string, parameters SSHPublicKeyUpdateResource, options *SSHPublicKeysClientUpdateOptions) (SSHPublicKeysClientUpdateResponse, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, sshPublicKeyName, parameters, options)
+ if err != nil {
+ return SSHPublicKeysClientUpdateResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return SSHPublicKeysClientUpdateResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SSHPublicKeysClientUpdateResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.updateHandleResponse(resp)
+}
+
+// updateCreateRequest creates the Update request.
+func (client *SSHPublicKeysClient) updateCreateRequest(ctx context.Context, resourceGroupName string, sshPublicKeyName string, parameters SSHPublicKeyUpdateResource, options *SSHPublicKeysClientUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if sshPublicKeyName == "" {
+ return nil, errors.New("parameter sshPublicKeyName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{sshPublicKeyName}", url.PathEscape(sshPublicKeyName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// updateHandleResponse handles the Update response.
+func (client *SSHPublicKeysClient) updateHandleResponse(resp *http.Response) (SSHPublicKeysClientUpdateResponse, error) {
+ result := SSHPublicKeysClientUpdateResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SSHPublicKeyResource); err != nil {
+ return SSHPublicKeysClientUpdateResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_time_rfc3339.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_time_rfc3339.go
new file mode 100644
index 0000000000..068195875e
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_time_rfc3339.go
@@ -0,0 +1,86 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "encoding/json"
+ "fmt"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "reflect"
+ "regexp"
+ "strings"
+ "time"
+)
+
+const (
+ utcLayoutJSON = `"2006-01-02T15:04:05.999999999"`
+ utcLayout = "2006-01-02T15:04:05.999999999"
+ rfc3339JSON = `"` + time.RFC3339Nano + `"`
+)
+
+// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases.
+var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`)
+
+type timeRFC3339 time.Time
+
+func (t timeRFC3339) MarshalJSON() (json []byte, err error) {
+ tt := time.Time(t)
+ return tt.MarshalJSON()
+}
+
+func (t timeRFC3339) MarshalText() (text []byte, err error) {
+ tt := time.Time(t)
+ return tt.MarshalText()
+}
+
+func (t *timeRFC3339) UnmarshalJSON(data []byte) error {
+ layout := utcLayoutJSON
+ if tzOffsetRegex.Match(data) {
+ layout = rfc3339JSON
+ }
+ return t.Parse(layout, string(data))
+}
+
+func (t *timeRFC3339) UnmarshalText(data []byte) (err error) {
+ layout := utcLayout
+ if tzOffsetRegex.Match(data) {
+ layout = time.RFC3339Nano
+ }
+ return t.Parse(layout, string(data))
+}
+
+func (t *timeRFC3339) Parse(layout, value string) error {
+ p, err := time.Parse(layout, strings.ToUpper(value))
+ *t = timeRFC3339(p)
+ return err
+}
+
+func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) {
+ if t == nil {
+ return
+ } else if azcore.IsNullValue(t) {
+ m[k] = nil
+ return
+ } else if reflect.ValueOf(t).IsNil() {
+ return
+ }
+ m[k] = (*timeRFC3339)(t)
+}
+
+func unpopulateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error {
+ if data == nil || strings.EqualFold(string(data), "null") {
+ return nil
+ }
+ var aux timeRFC3339
+ if err := json.Unmarshal(data, &aux); err != nil {
+ return fmt.Errorf("struct field %s: %v", fn, err)
+ }
+ *t = (*time.Time)(&aux)
+ return nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_usage_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_usage_client.go
new file mode 100644
index 0000000000..039ae89973
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_usage_client.go
@@ -0,0 +1,121 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// UsageClient contains the methods for the Usage group.
+// Don't use this type directly, use NewUsageClient() instead.
+type UsageClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewUsageClient creates a new instance of UsageClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewUsageClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsageClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &UsageClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// NewListPager - Gets, for the specified location, the current compute resource usage information as well as the limits for
+// compute resources under the subscription.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The location for which resource usage is queried.
+// options - UsageClientListOptions contains the optional parameters for the UsageClient.List method.
+func (client *UsageClient) NewListPager(location string, options *UsageClientListOptions) *runtime.Pager[UsageClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[UsageClientListResponse]{
+ More: func(page UsageClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *UsageClientListResponse) (UsageClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, location, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return UsageClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return UsageClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return UsageClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *UsageClient) listCreateRequest(ctx context.Context, location string, options *UsageClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *UsageClient) listHandleResponse(resp *http.Response) (UsageClientListResponse, error) {
+ result := UsageClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.ListUsagesResult); err != nil {
+ return UsageClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensionimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensionimages_client.go
new file mode 100644
index 0000000000..6b17f3e68d
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensionimages_client.go
@@ -0,0 +1,246 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// VirtualMachineExtensionImagesClient contains the methods for the VirtualMachineExtensionImages group.
+// Don't use this type directly, use NewVirtualMachineExtensionImagesClient() instead.
+type VirtualMachineExtensionImagesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineExtensionImagesClient creates a new instance of VirtualMachineExtensionImagesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineExtensionImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineExtensionImagesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineExtensionImagesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Gets a virtual machine extension image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// options - VirtualMachineExtensionImagesClientGetOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.Get
+// method.
+func (client *VirtualMachineExtensionImagesClient) Get(ctx context.Context, location string, publisherName string, typeParam string, version string, options *VirtualMachineExtensionImagesClientGetOptions) (VirtualMachineExtensionImagesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, publisherName, typeParam, version, options)
+ if err != nil {
+ return VirtualMachineExtensionImagesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineExtensionImagesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineExtensionImagesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineExtensionImagesClient) getCreateRequest(ctx context.Context, location string, publisherName string, typeParam string, version string, options *VirtualMachineExtensionImagesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if typeParam == "" {
+ return nil, errors.New("parameter typeParam cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{type}", url.PathEscape(typeParam))
+ if version == "" {
+ return nil, errors.New("parameter version cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{version}", url.PathEscape(version))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineExtensionImagesClient) getHandleResponse(resp *http.Response) (VirtualMachineExtensionImagesClientGetResponse, error) {
+ result := VirtualMachineExtensionImagesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineExtensionImage); err != nil {
+ return VirtualMachineExtensionImagesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// ListTypes - Gets a list of virtual machine extension image types.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// options - VirtualMachineExtensionImagesClientListTypesOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListTypes
+// method.
+func (client *VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, location string, publisherName string, options *VirtualMachineExtensionImagesClientListTypesOptions) (VirtualMachineExtensionImagesClientListTypesResponse, error) {
+ req, err := client.listTypesCreateRequest(ctx, location, publisherName, options)
+ if err != nil {
+ return VirtualMachineExtensionImagesClientListTypesResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineExtensionImagesClientListTypesResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineExtensionImagesClientListTypesResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listTypesHandleResponse(resp)
+}
+
+// listTypesCreateRequest creates the ListTypes request.
+func (client *VirtualMachineExtensionImagesClient) listTypesCreateRequest(ctx context.Context, location string, publisherName string, options *VirtualMachineExtensionImagesClientListTypesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listTypesHandleResponse handles the ListTypes response.
+func (client *VirtualMachineExtensionImagesClient) listTypesHandleResponse(resp *http.Response) (VirtualMachineExtensionImagesClientListTypesResponse, error) {
+ result := VirtualMachineExtensionImagesClientListTypesResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineExtensionImageArray); err != nil {
+ return VirtualMachineExtensionImagesClientListTypesResponse{}, err
+ }
+ return result, nil
+}
+
+// ListVersions - Gets a list of virtual machine extension image versions.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// options - VirtualMachineExtensionImagesClientListVersionsOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListVersions
+// method.
+func (client *VirtualMachineExtensionImagesClient) ListVersions(ctx context.Context, location string, publisherName string, typeParam string, options *VirtualMachineExtensionImagesClientListVersionsOptions) (VirtualMachineExtensionImagesClientListVersionsResponse, error) {
+ req, err := client.listVersionsCreateRequest(ctx, location, publisherName, typeParam, options)
+ if err != nil {
+ return VirtualMachineExtensionImagesClientListVersionsResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineExtensionImagesClientListVersionsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineExtensionImagesClientListVersionsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listVersionsHandleResponse(resp)
+}
+
+// listVersionsCreateRequest creates the ListVersions request.
+func (client *VirtualMachineExtensionImagesClient) listVersionsCreateRequest(ctx context.Context, location string, publisherName string, typeParam string, options *VirtualMachineExtensionImagesClientListVersionsOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if typeParam == "" {
+ return nil, errors.New("parameter typeParam cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{type}", url.PathEscape(typeParam))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Filter != nil {
+ reqQP.Set("$filter", *options.Filter)
+ }
+ if options != nil && options.Top != nil {
+ reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
+ }
+ if options != nil && options.Orderby != nil {
+ reqQP.Set("$orderby", *options.Orderby)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listVersionsHandleResponse handles the ListVersions response.
+func (client *VirtualMachineExtensionImagesClient) listVersionsHandleResponse(resp *http.Response) (VirtualMachineExtensionImagesClientListVersionsResponse, error) {
+ result := VirtualMachineExtensionImagesClientListVersionsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineExtensionImageArray); err != nil {
+ return VirtualMachineExtensionImagesClientListVersionsResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensions_client.go
new file mode 100644
index 0000000000..63b1c5b33a
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineextensions_client.go
@@ -0,0 +1,387 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// VirtualMachineExtensionsClient contains the methods for the VirtualMachineExtensions group.
+// Don't use this type directly, use NewVirtualMachineExtensionsClient() instead.
+type VirtualMachineExtensionsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineExtensionsClient creates a new instance of VirtualMachineExtensionsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineExtensionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineExtensionsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineExtensionsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - The operation to create or update the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine where the extension should be created or updated.
+// vmExtensionName - The name of the virtual machine extension.
+// extensionParameters - Parameters supplied to the Create Virtual Machine Extension operation.
+// options - VirtualMachineExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginCreateOrUpdate
+// method.
+func (client *VirtualMachineExtensionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, options *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineExtensionsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, vmName, vmExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineExtensionsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineExtensionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - The operation to create or update the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, options *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmName, vmExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *VirtualMachineExtensionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, options *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if vmExtensionName == "" {
+ return nil, errors.New("parameter vmExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmExtensionName}", url.PathEscape(vmExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, extensionParameters)
+}
+
+// BeginDelete - The operation to delete the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine where the extension should be deleted.
+// vmExtensionName - The name of the virtual machine extension.
+// options - VirtualMachineExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginDelete
+// method.
+func (client *VirtualMachineExtensionsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineExtensionsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, vmName, vmExtensionName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineExtensionsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineExtensionsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmName, vmExtensionName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *VirtualMachineExtensionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if vmExtensionName == "" {
+ return nil, errors.New("parameter vmExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmExtensionName}", url.PathEscape(vmExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - The operation to get the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine containing the extension.
+// vmExtensionName - The name of the virtual machine extension.
+// options - VirtualMachineExtensionsClientGetOptions contains the optional parameters for the VirtualMachineExtensionsClient.Get
+// method.
+func (client *VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientGetOptions) (VirtualMachineExtensionsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, vmName, vmExtensionName, options)
+ if err != nil {
+ return VirtualMachineExtensionsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineExtensionsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineExtensionsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineExtensionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if vmExtensionName == "" {
+ return nil, errors.New("parameter vmExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmExtensionName}", url.PathEscape(vmExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineExtensionsClient) getHandleResponse(resp *http.Response) (VirtualMachineExtensionsClientGetResponse, error) {
+ result := VirtualMachineExtensionsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineExtension); err != nil {
+ return VirtualMachineExtensionsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// List - The operation to get all extensions of a Virtual Machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine containing the extension.
+// options - VirtualMachineExtensionsClientListOptions contains the optional parameters for the VirtualMachineExtensionsClient.List
+// method.
+func (client *VirtualMachineExtensionsClient) List(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachineExtensionsClientListOptions) (VirtualMachineExtensionsClientListResponse, error) {
+ req, err := client.listCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return VirtualMachineExtensionsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineExtensionsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineExtensionsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineExtensionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachineExtensionsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineExtensionsClient) listHandleResponse(resp *http.Response) (VirtualMachineExtensionsClientListResponse, error) {
+ result := VirtualMachineExtensionsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineExtensionsListResult); err != nil {
+ return VirtualMachineExtensionsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - The operation to update the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine where the extension should be updated.
+// vmExtensionName - The name of the virtual machine extension.
+// extensionParameters - Parameters supplied to the Update Virtual Machine Extension operation.
+// options - VirtualMachineExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineExtensionsClient.BeginUpdate
+// method.
+func (client *VirtualMachineExtensionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtensionUpdate, options *VirtualMachineExtensionsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineExtensionsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, vmName, vmExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineExtensionsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineExtensionsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - The operation to update the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineExtensionsClient) update(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtensionUpdate, options *VirtualMachineExtensionsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, vmName, vmExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *VirtualMachineExtensionsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtensionUpdate, options *VirtualMachineExtensionsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if vmExtensionName == "" {
+ return nil, errors.New("parameter vmExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmExtensionName}", url.PathEscape(vmExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, extensionParameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimages_client.go
new file mode 100644
index 0000000000..1a6000e711
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimages_client.go
@@ -0,0 +1,376 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// VirtualMachineImagesClient contains the methods for the VirtualMachineImages group.
+// Don't use this type directly, use NewVirtualMachineImagesClient() instead.
+type VirtualMachineImagesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineImagesClient creates a new instance of VirtualMachineImagesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineImagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineImagesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineImagesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Gets a virtual machine image.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// publisherName - A valid image publisher.
+// offer - A valid image publisher offer.
+// skus - A valid image SKU.
+// version - A valid image SKU version.
+// options - VirtualMachineImagesClientGetOptions contains the optional parameters for the VirtualMachineImagesClient.Get
+// method.
+func (client *VirtualMachineImagesClient) Get(ctx context.Context, location string, publisherName string, offer string, skus string, version string, options *VirtualMachineImagesClientGetOptions) (VirtualMachineImagesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, publisherName, offer, skus, version, options)
+ if err != nil {
+ return VirtualMachineImagesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineImagesClient) getCreateRequest(ctx context.Context, location string, publisherName string, offer string, skus string, version string, options *VirtualMachineImagesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if offer == "" {
+ return nil, errors.New("parameter offer cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{offer}", url.PathEscape(offer))
+ if skus == "" {
+ return nil, errors.New("parameter skus cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{skus}", url.PathEscape(skus))
+ if version == "" {
+ return nil, errors.New("parameter version cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{version}", url.PathEscape(version))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineImagesClient) getHandleResponse(resp *http.Response) (VirtualMachineImagesClientGetResponse, error) {
+ result := VirtualMachineImagesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImage); err != nil {
+ return VirtualMachineImagesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// List - Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// publisherName - A valid image publisher.
+// offer - A valid image publisher offer.
+// skus - A valid image SKU.
+// options - VirtualMachineImagesClientListOptions contains the optional parameters for the VirtualMachineImagesClient.List
+// method.
+func (client *VirtualMachineImagesClient) List(ctx context.Context, location string, publisherName string, offer string, skus string, options *VirtualMachineImagesClientListOptions) (VirtualMachineImagesClientListResponse, error) {
+ req, err := client.listCreateRequest(ctx, location, publisherName, offer, skus, options)
+ if err != nil {
+ return VirtualMachineImagesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineImagesClient) listCreateRequest(ctx context.Context, location string, publisherName string, offer string, skus string, options *VirtualMachineImagesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if offer == "" {
+ return nil, errors.New("parameter offer cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{offer}", url.PathEscape(offer))
+ if skus == "" {
+ return nil, errors.New("parameter skus cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{skus}", url.PathEscape(skus))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ if options != nil && options.Top != nil {
+ reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
+ }
+ if options != nil && options.Orderby != nil {
+ reqQP.Set("$orderby", *options.Orderby)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineImagesClient) listHandleResponse(resp *http.Response) (VirtualMachineImagesClientListResponse, error) {
+ result := VirtualMachineImagesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImageResourceArray); err != nil {
+ return VirtualMachineImagesClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// ListOffers - Gets a list of virtual machine image offers for the specified location and publisher.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// publisherName - A valid image publisher.
+// options - VirtualMachineImagesClientListOffersOptions contains the optional parameters for the VirtualMachineImagesClient.ListOffers
+// method.
+func (client *VirtualMachineImagesClient) ListOffers(ctx context.Context, location string, publisherName string, options *VirtualMachineImagesClientListOffersOptions) (VirtualMachineImagesClientListOffersResponse, error) {
+ req, err := client.listOffersCreateRequest(ctx, location, publisherName, options)
+ if err != nil {
+ return VirtualMachineImagesClientListOffersResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesClientListOffersResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesClientListOffersResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listOffersHandleResponse(resp)
+}
+
+// listOffersCreateRequest creates the ListOffers request.
+func (client *VirtualMachineImagesClient) listOffersCreateRequest(ctx context.Context, location string, publisherName string, options *VirtualMachineImagesClientListOffersOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listOffersHandleResponse handles the ListOffers response.
+func (client *VirtualMachineImagesClient) listOffersHandleResponse(resp *http.Response) (VirtualMachineImagesClientListOffersResponse, error) {
+ result := VirtualMachineImagesClientListOffersResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImageResourceArray); err != nil {
+ return VirtualMachineImagesClientListOffersResponse{}, err
+ }
+ return result, nil
+}
+
+// ListPublishers - Gets a list of virtual machine image publishers for the specified Azure location.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// options - VirtualMachineImagesClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesClient.ListPublishers
+// method.
+func (client *VirtualMachineImagesClient) ListPublishers(ctx context.Context, location string, options *VirtualMachineImagesClientListPublishersOptions) (VirtualMachineImagesClientListPublishersResponse, error) {
+ req, err := client.listPublishersCreateRequest(ctx, location, options)
+ if err != nil {
+ return VirtualMachineImagesClientListPublishersResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesClientListPublishersResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesClientListPublishersResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listPublishersHandleResponse(resp)
+}
+
+// listPublishersCreateRequest creates the ListPublishers request.
+func (client *VirtualMachineImagesClient) listPublishersCreateRequest(ctx context.Context, location string, options *VirtualMachineImagesClientListPublishersOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listPublishersHandleResponse handles the ListPublishers response.
+func (client *VirtualMachineImagesClient) listPublishersHandleResponse(resp *http.Response) (VirtualMachineImagesClientListPublishersResponse, error) {
+ result := VirtualMachineImagesClientListPublishersResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImageResourceArray); err != nil {
+ return VirtualMachineImagesClientListPublishersResponse{}, err
+ }
+ return result, nil
+}
+
+// ListSKUs - Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// publisherName - A valid image publisher.
+// offer - A valid image publisher offer.
+// options - VirtualMachineImagesClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesClient.ListSKUs
+// method.
+func (client *VirtualMachineImagesClient) ListSKUs(ctx context.Context, location string, publisherName string, offer string, options *VirtualMachineImagesClientListSKUsOptions) (VirtualMachineImagesClientListSKUsResponse, error) {
+ req, err := client.listSKUsCreateRequest(ctx, location, publisherName, offer, options)
+ if err != nil {
+ return VirtualMachineImagesClientListSKUsResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesClientListSKUsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesClientListSKUsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listSKUsHandleResponse(resp)
+}
+
+// listSKUsCreateRequest creates the ListSKUs request.
+func (client *VirtualMachineImagesClient) listSKUsCreateRequest(ctx context.Context, location string, publisherName string, offer string, options *VirtualMachineImagesClientListSKUsOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if offer == "" {
+ return nil, errors.New("parameter offer cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{offer}", url.PathEscape(offer))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listSKUsHandleResponse handles the ListSKUs response.
+func (client *VirtualMachineImagesClient) listSKUsHandleResponse(resp *http.Response) (VirtualMachineImagesClientListSKUsResponse, error) {
+ result := VirtualMachineImagesClientListSKUsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImageResourceArray); err != nil {
+ return VirtualMachineImagesClientListSKUsResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimagesedgezone_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimagesedgezone_client.go
new file mode 100644
index 0000000000..303bb09e76
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineimagesedgezone_client.go
@@ -0,0 +1,401 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// VirtualMachineImagesEdgeZoneClient contains the methods for the VirtualMachineImagesEdgeZone group.
+// Don't use this type directly, use NewVirtualMachineImagesEdgeZoneClient() instead.
+type VirtualMachineImagesEdgeZoneClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineImagesEdgeZoneClient creates a new instance of VirtualMachineImagesEdgeZoneClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineImagesEdgeZoneClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineImagesEdgeZoneClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineImagesEdgeZoneClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// Get - Gets a virtual machine image in an edge zone.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// edgeZone - The name of the edge zone.
+// publisherName - A valid image publisher.
+// offer - A valid image publisher offer.
+// skus - A valid image SKU.
+// version - A valid image SKU version.
+// options - VirtualMachineImagesEdgeZoneClientGetOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.Get
+// method.
+func (client *VirtualMachineImagesEdgeZoneClient) Get(ctx context.Context, location string, edgeZone string, publisherName string, offer string, skus string, version string, options *VirtualMachineImagesEdgeZoneClientGetOptions) (VirtualMachineImagesEdgeZoneClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, edgeZone, publisherName, offer, skus, version, options)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesEdgeZoneClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineImagesEdgeZoneClient) getCreateRequest(ctx context.Context, location string, edgeZone string, publisherName string, offer string, skus string, version string, options *VirtualMachineImagesEdgeZoneClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if edgeZone == "" {
+ return nil, errors.New("parameter edgeZone cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{edgeZone}", url.PathEscape(edgeZone))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if offer == "" {
+ return nil, errors.New("parameter offer cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{offer}", url.PathEscape(offer))
+ if skus == "" {
+ return nil, errors.New("parameter skus cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{skus}", url.PathEscape(skus))
+ if version == "" {
+ return nil, errors.New("parameter version cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{version}", url.PathEscape(version))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineImagesEdgeZoneClient) getHandleResponse(resp *http.Response) (VirtualMachineImagesEdgeZoneClientGetResponse, error) {
+ result := VirtualMachineImagesEdgeZoneClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImage); err != nil {
+ return VirtualMachineImagesEdgeZoneClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// List - Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// edgeZone - The name of the edge zone.
+// publisherName - A valid image publisher.
+// offer - A valid image publisher offer.
+// skus - A valid image SKU.
+// options - VirtualMachineImagesEdgeZoneClientListOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.List
+// method.
+func (client *VirtualMachineImagesEdgeZoneClient) List(ctx context.Context, location string, edgeZone string, publisherName string, offer string, skus string, options *VirtualMachineImagesEdgeZoneClientListOptions) (VirtualMachineImagesEdgeZoneClientListResponse, error) {
+ req, err := client.listCreateRequest(ctx, location, edgeZone, publisherName, offer, skus, options)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesEdgeZoneClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineImagesEdgeZoneClient) listCreateRequest(ctx context.Context, location string, edgeZone string, publisherName string, offer string, skus string, options *VirtualMachineImagesEdgeZoneClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if edgeZone == "" {
+ return nil, errors.New("parameter edgeZone cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{edgeZone}", url.PathEscape(edgeZone))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if offer == "" {
+ return nil, errors.New("parameter offer cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{offer}", url.PathEscape(offer))
+ if skus == "" {
+ return nil, errors.New("parameter skus cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{skus}", url.PathEscape(skus))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ if options != nil && options.Top != nil {
+ reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
+ }
+ if options != nil && options.Orderby != nil {
+ reqQP.Set("$orderby", *options.Orderby)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineImagesEdgeZoneClient) listHandleResponse(resp *http.Response) (VirtualMachineImagesEdgeZoneClientListResponse, error) {
+ result := VirtualMachineImagesEdgeZoneClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImageResourceArray); err != nil {
+ return VirtualMachineImagesEdgeZoneClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// ListOffers - Gets a list of virtual machine image offers for the specified location, edge zone and publisher.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// edgeZone - The name of the edge zone.
+// publisherName - A valid image publisher.
+// options - VirtualMachineImagesEdgeZoneClientListOffersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListOffers
+// method.
+func (client *VirtualMachineImagesEdgeZoneClient) ListOffers(ctx context.Context, location string, edgeZone string, publisherName string, options *VirtualMachineImagesEdgeZoneClientListOffersOptions) (VirtualMachineImagesEdgeZoneClientListOffersResponse, error) {
+ req, err := client.listOffersCreateRequest(ctx, location, edgeZone, publisherName, options)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientListOffersResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientListOffersResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesEdgeZoneClientListOffersResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listOffersHandleResponse(resp)
+}
+
+// listOffersCreateRequest creates the ListOffers request.
+func (client *VirtualMachineImagesEdgeZoneClient) listOffersCreateRequest(ctx context.Context, location string, edgeZone string, publisherName string, options *VirtualMachineImagesEdgeZoneClientListOffersOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if edgeZone == "" {
+ return nil, errors.New("parameter edgeZone cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{edgeZone}", url.PathEscape(edgeZone))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listOffersHandleResponse handles the ListOffers response.
+func (client *VirtualMachineImagesEdgeZoneClient) listOffersHandleResponse(resp *http.Response) (VirtualMachineImagesEdgeZoneClientListOffersResponse, error) {
+ result := VirtualMachineImagesEdgeZoneClientListOffersResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImageResourceArray); err != nil {
+ return VirtualMachineImagesEdgeZoneClientListOffersResponse{}, err
+ }
+ return result, nil
+}
+
+// ListPublishers - Gets a list of virtual machine image publishers for the specified Azure location and edge zone.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// edgeZone - The name of the edge zone.
+// options - VirtualMachineImagesEdgeZoneClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListPublishers
+// method.
+func (client *VirtualMachineImagesEdgeZoneClient) ListPublishers(ctx context.Context, location string, edgeZone string, options *VirtualMachineImagesEdgeZoneClientListPublishersOptions) (VirtualMachineImagesEdgeZoneClientListPublishersResponse, error) {
+ req, err := client.listPublishersCreateRequest(ctx, location, edgeZone, options)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientListPublishersResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientListPublishersResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesEdgeZoneClientListPublishersResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listPublishersHandleResponse(resp)
+}
+
+// listPublishersCreateRequest creates the ListPublishers request.
+func (client *VirtualMachineImagesEdgeZoneClient) listPublishersCreateRequest(ctx context.Context, location string, edgeZone string, options *VirtualMachineImagesEdgeZoneClientListPublishersOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if edgeZone == "" {
+ return nil, errors.New("parameter edgeZone cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{edgeZone}", url.PathEscape(edgeZone))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listPublishersHandleResponse handles the ListPublishers response.
+func (client *VirtualMachineImagesEdgeZoneClient) listPublishersHandleResponse(resp *http.Response) (VirtualMachineImagesEdgeZoneClientListPublishersResponse, error) {
+ result := VirtualMachineImagesEdgeZoneClientListPublishersResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImageResourceArray); err != nil {
+ return VirtualMachineImagesEdgeZoneClientListPublishersResponse{}, err
+ }
+ return result, nil
+}
+
+// ListSKUs - Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The name of a supported Azure region.
+// edgeZone - The name of the edge zone.
+// publisherName - A valid image publisher.
+// offer - A valid image publisher offer.
+// options - VirtualMachineImagesEdgeZoneClientListSKUsOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListSKUs
+// method.
+func (client *VirtualMachineImagesEdgeZoneClient) ListSKUs(ctx context.Context, location string, edgeZone string, publisherName string, offer string, options *VirtualMachineImagesEdgeZoneClientListSKUsOptions) (VirtualMachineImagesEdgeZoneClientListSKUsResponse, error) {
+ req, err := client.listSKUsCreateRequest(ctx, location, edgeZone, publisherName, offer, options)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientListSKUsResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineImagesEdgeZoneClientListSKUsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineImagesEdgeZoneClientListSKUsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listSKUsHandleResponse(resp)
+}
+
+// listSKUsCreateRequest creates the ListSKUs request.
+func (client *VirtualMachineImagesEdgeZoneClient) listSKUsCreateRequest(ctx context.Context, location string, edgeZone string, publisherName string, offer string, options *VirtualMachineImagesEdgeZoneClientListSKUsOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if edgeZone == "" {
+ return nil, errors.New("parameter edgeZone cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{edgeZone}", url.PathEscape(edgeZone))
+ if publisherName == "" {
+ return nil, errors.New("parameter publisherName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{publisherName}", url.PathEscape(publisherName))
+ if offer == "" {
+ return nil, errors.New("parameter offer cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{offer}", url.PathEscape(offer))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listSKUsHandleResponse handles the ListSKUs response.
+func (client *VirtualMachineImagesEdgeZoneClient) listSKUsHandleResponse(resp *http.Response) (VirtualMachineImagesEdgeZoneClientListSKUsResponse, error) {
+ result := VirtualMachineImagesEdgeZoneClientListSKUsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineImageResourceArray); err != nil {
+ return VirtualMachineImagesEdgeZoneClientListSKUsResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineruncommands_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineruncommands_client.go
new file mode 100644
index 0000000000..eb3408ad25
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachineruncommands_client.go
@@ -0,0 +1,522 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// VirtualMachineRunCommandsClient contains the methods for the VirtualMachineRunCommands group.
+// Don't use this type directly, use NewVirtualMachineRunCommandsClient() instead.
+type VirtualMachineRunCommandsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineRunCommandsClient creates a new instance of VirtualMachineRunCommandsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineRunCommandsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineRunCommandsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineRunCommandsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - The operation to create or update the run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine where the run command should be created or updated.
+// runCommandName - The name of the virtual machine run command.
+// runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
+// options - VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginCreateOrUpdate
+// method.
+func (client *VirtualMachineRunCommandsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineRunCommandsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, vmName, runCommandName, runCommand, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineRunCommandsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineRunCommandsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - The operation to create or update the run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmName, runCommandName, runCommand, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *VirtualMachineRunCommandsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if runCommandName == "" {
+ return nil, errors.New("parameter runCommandName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, runtime.MarshalAsJSON(req, runCommand)
+}
+
+// BeginDelete - The operation to delete the run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine where the run command should be deleted.
+// runCommandName - The name of the virtual machine run command.
+// options - VirtualMachineRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginDelete
+// method.
+func (client *VirtualMachineRunCommandsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineRunCommandsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, vmName, runCommandName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineRunCommandsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineRunCommandsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete the run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmName, runCommandName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *VirtualMachineRunCommandsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if runCommandName == "" {
+ return nil, errors.New("parameter runCommandName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, nil
+}
+
+// Get - Gets specific run command for a subscription in a location.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The location upon which run commands is queried.
+// commandID - The command id.
+// options - VirtualMachineRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineRunCommandsClient.Get
+// method.
+func (client *VirtualMachineRunCommandsClient) Get(ctx context.Context, location string, commandID string, options *VirtualMachineRunCommandsClientGetOptions) (VirtualMachineRunCommandsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, location, commandID, options)
+ if err != nil {
+ return VirtualMachineRunCommandsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineRunCommandsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineRunCommandsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineRunCommandsClient) getCreateRequest(ctx context.Context, location string, commandID string, options *VirtualMachineRunCommandsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if commandID == "" {
+ return nil, errors.New("parameter commandID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{commandId}", url.PathEscape(commandID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineRunCommandsClient) getHandleResponse(resp *http.Response) (VirtualMachineRunCommandsClientGetResponse, error) {
+ result := VirtualMachineRunCommandsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RunCommandDocument); err != nil {
+ return VirtualMachineRunCommandsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// GetByVirtualMachine - The operation to get the run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine containing the run command.
+// runCommandName - The name of the virtual machine run command.
+// options - VirtualMachineRunCommandsClientGetByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.GetByVirtualMachine
+// method.
+func (client *VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientGetByVirtualMachineOptions) (VirtualMachineRunCommandsClientGetByVirtualMachineResponse, error) {
+ req, err := client.getByVirtualMachineCreateRequest(ctx, resourceGroupName, vmName, runCommandName, options)
+ if err != nil {
+ return VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getByVirtualMachineHandleResponse(resp)
+}
+
+// getByVirtualMachineCreateRequest creates the GetByVirtualMachine request.
+func (client *VirtualMachineRunCommandsClient) getByVirtualMachineCreateRequest(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientGetByVirtualMachineOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if runCommandName == "" {
+ return nil, errors.New("parameter runCommandName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, nil
+}
+
+// getByVirtualMachineHandleResponse handles the GetByVirtualMachine response.
+func (client *VirtualMachineRunCommandsClient) getByVirtualMachineHandleResponse(resp *http.Response) (VirtualMachineRunCommandsClientGetByVirtualMachineResponse, error) {
+ result := VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineRunCommand); err != nil {
+ return VirtualMachineRunCommandsClientGetByVirtualMachineResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Lists all available run commands for a subscription in a location.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The location upon which run commands is queried.
+// options - VirtualMachineRunCommandsClientListOptions contains the optional parameters for the VirtualMachineRunCommandsClient.List
+// method.
+func (client *VirtualMachineRunCommandsClient) NewListPager(location string, options *VirtualMachineRunCommandsClientListOptions) *runtime.Pager[VirtualMachineRunCommandsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineRunCommandsClientListResponse]{
+ More: func(page VirtualMachineRunCommandsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineRunCommandsClientListResponse) (VirtualMachineRunCommandsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, location, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineRunCommandsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineRunCommandsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineRunCommandsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineRunCommandsClient) listCreateRequest(ctx context.Context, location string, options *VirtualMachineRunCommandsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineRunCommandsClient) listHandleResponse(resp *http.Response) (VirtualMachineRunCommandsClientListResponse, error) {
+ result := VirtualMachineRunCommandsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RunCommandListResult); err != nil {
+ return VirtualMachineRunCommandsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByVirtualMachinePager - The operation to get all run commands of a Virtual Machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine containing the run command.
+// options - VirtualMachineRunCommandsClientListByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.ListByVirtualMachine
+// method.
+func (client *VirtualMachineRunCommandsClient) NewListByVirtualMachinePager(resourceGroupName string, vmName string, options *VirtualMachineRunCommandsClientListByVirtualMachineOptions) *runtime.Pager[VirtualMachineRunCommandsClientListByVirtualMachineResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineRunCommandsClientListByVirtualMachineResponse]{
+ More: func(page VirtualMachineRunCommandsClientListByVirtualMachineResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineRunCommandsClientListByVirtualMachineResponse) (VirtualMachineRunCommandsClientListByVirtualMachineResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByVirtualMachineCreateRequest(ctx, resourceGroupName, vmName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineRunCommandsClientListByVirtualMachineResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineRunCommandsClientListByVirtualMachineResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineRunCommandsClientListByVirtualMachineResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByVirtualMachineHandleResponse(resp)
+ },
+ })
+}
+
+// listByVirtualMachineCreateRequest creates the ListByVirtualMachine request.
+func (client *VirtualMachineRunCommandsClient) listByVirtualMachineCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachineRunCommandsClientListByVirtualMachineOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, nil
+}
+
+// listByVirtualMachineHandleResponse handles the ListByVirtualMachine response.
+func (client *VirtualMachineRunCommandsClient) listByVirtualMachineHandleResponse(resp *http.Response) (VirtualMachineRunCommandsClientListByVirtualMachineResponse, error) {
+ result := VirtualMachineRunCommandsClientListByVirtualMachineResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineRunCommandsListResult); err != nil {
+ return VirtualMachineRunCommandsClientListByVirtualMachineResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - The operation to update the run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine where the run command should be updated.
+// runCommandName - The name of the virtual machine run command.
+// runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
+// options - VirtualMachineRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineRunCommandsClient.BeginUpdate
+// method.
+func (client *VirtualMachineRunCommandsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineRunCommandsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineRunCommandsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, vmName, runCommandName, runCommand, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineRunCommandsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineRunCommandsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - The operation to update the run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineRunCommandsClient) update(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineRunCommandsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, vmName, runCommandName, runCommand, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *VirtualMachineRunCommandsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineRunCommandsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if runCommandName == "" {
+ return nil, errors.New("parameter runCommandName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, runtime.MarshalAsJSON(req, runCommand)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachines_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachines_client.go
new file mode 100644
index 0000000000..504deb60b5
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachines_client.go
@@ -0,0 +1,1639 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// VirtualMachinesClient contains the methods for the VirtualMachines group.
+// Don't use this type directly, use NewVirtualMachinesClient() instead.
+type VirtualMachinesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachinesClient creates a new instance of VirtualMachinesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachinesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachinesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginAssessPatches - Assess patches on the VM.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginAssessPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginAssessPatches
+// method.
+func (client *VirtualMachinesClient) BeginAssessPatches(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginAssessPatchesOptions) (*runtime.Poller[VirtualMachinesClientAssessPatchesResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.assessPatches(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachinesClientAssessPatchesResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientAssessPatchesResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// AssessPatches - Assess patches on the VM.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) assessPatches(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginAssessPatchesOptions) (*http.Response, error) {
+ req, err := client.assessPatchesCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// assessPatchesCreateRequest creates the AssessPatches request.
+func (client *VirtualMachinesClient) assessPatchesCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginAssessPatchesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginCapture - Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create
+// similar VMs.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// parameters - Parameters supplied to the Capture Virtual Machine operation.
+// options - VirtualMachinesClientBeginCaptureOptions contains the optional parameters for the VirtualMachinesClient.BeginCapture
+// method.
+func (client *VirtualMachinesClient) BeginCapture(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, options *VirtualMachinesClientBeginCaptureOptions) (*runtime.Poller[VirtualMachinesClientCaptureResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.capture(ctx, resourceGroupName, vmName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachinesClientCaptureResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientCaptureResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Capture - Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar
+// VMs.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) capture(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, options *VirtualMachinesClientBeginCaptureOptions) (*http.Response, error) {
+ req, err := client.captureCreateRequest(ctx, resourceGroupName, vmName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// captureCreateRequest creates the Capture request.
+func (client *VirtualMachinesClient) captureCreateRequest(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, options *VirtualMachinesClientBeginCaptureOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginConvertToManagedDisks - Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated
+// before invoking this operation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginConvertToManagedDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginConvertToManagedDisks
+// method.
+func (client *VirtualMachinesClient) BeginConvertToManagedDisks(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginConvertToManagedDisksOptions) (*runtime.Poller[VirtualMachinesClientConvertToManagedDisksResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.convertToManagedDisks(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientConvertToManagedDisksResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientConvertToManagedDisksResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// ConvertToManagedDisks - Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated
+// before invoking this operation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) convertToManagedDisks(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginConvertToManagedDisksOptions) (*http.Response, error) {
+ req, err := client.convertToManagedDisksCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// convertToManagedDisksCreateRequest creates the ConvertToManagedDisks request.
+func (client *VirtualMachinesClient) convertToManagedDisksCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginConvertToManagedDisksOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginCreateOrUpdate - The operation to create or update a virtual machine. Please note some properties can be set only
+// during virtual machine creation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// parameters - Parameters supplied to the Create Virtual Machine operation.
+// options - VirtualMachinesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginCreateOrUpdate
+// method.
+func (client *VirtualMachinesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachinesClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, vmName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - The operation to create or update a virtual machine. Please note some properties can be set only during
+// virtual machine creation.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginDeallocate - Shuts down the virtual machine and releases the compute resources. You are not billed for the compute
+// resources that this virtual machine uses.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginDeallocateOptions contains the optional parameters for the VirtualMachinesClient.BeginDeallocate
+// method.
+func (client *VirtualMachinesClient) BeginDeallocate(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeallocateOptions) (*runtime.Poller[VirtualMachinesClientDeallocateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deallocate(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientDeallocateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientDeallocateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Deallocate - Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
+// that this virtual machine uses.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) deallocate(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeallocateOptions) (*http.Response, error) {
+ req, err := client.deallocateCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deallocateCreateRequest creates the Deallocate request.
+func (client *VirtualMachinesClient) deallocateCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeallocateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Hibernate != nil {
+ reqQP.Set("hibernate", strconv.FormatBool(*options.Hibernate))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginDelete - The operation to delete a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete
+// method.
+func (client *VirtualMachinesClient) BeginDelete(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeleteOptions) (*runtime.Poller[VirtualMachinesClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.ForceDeletion != nil {
+ reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Generalize - Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine
+// before performing this operation. For Windows, please refer to Create a managed image of a
+// generalized VM in Azure [https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource]. For Linux,
+// please refer to How to create an image of a virtual machine or VHD
+// [https://docs.microsoft.com/azure/virtual-machines/linux/capture-image].
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientGeneralizeOptions contains the optional parameters for the VirtualMachinesClient.Generalize
+// method.
+func (client *VirtualMachinesClient) Generalize(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientGeneralizeOptions) (VirtualMachinesClientGeneralizeResponse, error) {
+ req, err := client.generalizeCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return VirtualMachinesClientGeneralizeResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientGeneralizeResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachinesClientGeneralizeResponse{}, runtime.NewResponseError(resp)
+ }
+ return VirtualMachinesClientGeneralizeResponse{}, nil
+}
+
+// generalizeCreateRequest creates the Generalize request.
+func (client *VirtualMachinesClient) generalizeCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientGeneralizeOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Retrieves information about the model view or the instance view of a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method.
+func (client *VirtualMachinesClient) Get(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientGetOptions) (VirtualMachinesClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return VirtualMachinesClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachinesClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachinesClient) getCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachinesClient) getHandleResponse(resp *http.Response) (VirtualMachinesClientGetResponse, error) {
+ result := VirtualMachinesClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachine); err != nil {
+ return VirtualMachinesClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginInstallPatches - Installs patches on the VM.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// installPatchesInput - Input for InstallPatches as directly received by the API
+// options - VirtualMachinesClientBeginInstallPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginInstallPatches
+// method.
+func (client *VirtualMachinesClient) BeginInstallPatches(ctx context.Context, resourceGroupName string, vmName string, installPatchesInput VirtualMachineInstallPatchesParameters, options *VirtualMachinesClientBeginInstallPatchesOptions) (*runtime.Poller[VirtualMachinesClientInstallPatchesResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.installPatches(ctx, resourceGroupName, vmName, installPatchesInput, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachinesClientInstallPatchesResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientInstallPatchesResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// InstallPatches - Installs patches on the VM.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) installPatches(ctx context.Context, resourceGroupName string, vmName string, installPatchesInput VirtualMachineInstallPatchesParameters, options *VirtualMachinesClientBeginInstallPatchesOptions) (*http.Response, error) {
+ req, err := client.installPatchesCreateRequest(ctx, resourceGroupName, vmName, installPatchesInput, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// installPatchesCreateRequest creates the InstallPatches request.
+func (client *VirtualMachinesClient) installPatchesCreateRequest(ctx context.Context, resourceGroupName string, vmName string, installPatchesInput VirtualMachineInstallPatchesParameters, options *VirtualMachinesClientBeginInstallPatchesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, installPatchesInput)
+}
+
+// InstanceView - Retrieves information about the run-time state of a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientInstanceViewOptions contains the optional parameters for the VirtualMachinesClient.InstanceView
+// method.
+func (client *VirtualMachinesClient) InstanceView(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientInstanceViewOptions) (VirtualMachinesClientInstanceViewResponse, error) {
+ req, err := client.instanceViewCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return VirtualMachinesClientInstanceViewResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientInstanceViewResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachinesClientInstanceViewResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.instanceViewHandleResponse(resp)
+}
+
+// instanceViewCreateRequest creates the InstanceView request.
+func (client *VirtualMachinesClient) instanceViewCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientInstanceViewOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// instanceViewHandleResponse handles the InstanceView response.
+func (client *VirtualMachinesClient) instanceViewHandleResponse(resp *http.Response) (VirtualMachinesClientInstanceViewResponse, error) {
+ result := VirtualMachinesClientInstanceViewResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineInstanceView); err != nil {
+ return VirtualMachinesClientInstanceViewResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response
+// to get the next page of virtual machines.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - VirtualMachinesClientListOptions contains the optional parameters for the VirtualMachinesClient.List method.
+func (client *VirtualMachinesClient) NewListPager(resourceGroupName string, options *VirtualMachinesClientListOptions) *runtime.Pager[VirtualMachinesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachinesClientListResponse]{
+ More: func(page VirtualMachinesClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachinesClientListResponse) (VirtualMachinesClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachinesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachinesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachinesClient) listCreateRequest(ctx context.Context, resourceGroupName string, options *VirtualMachinesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Filter != nil {
+ reqQP.Set("$filter", *options.Filter)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachinesClient) listHandleResponse(resp *http.Response) (VirtualMachinesClientListResponse, error) {
+ result := VirtualMachinesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineListResult); err != nil {
+ return VirtualMachinesClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListAllPager - Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response
+// to get the next page of virtual machines.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - VirtualMachinesClientListAllOptions contains the optional parameters for the VirtualMachinesClient.ListAll method.
+func (client *VirtualMachinesClient) NewListAllPager(options *VirtualMachinesClientListAllOptions) *runtime.Pager[VirtualMachinesClientListAllResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachinesClientListAllResponse]{
+ More: func(page VirtualMachinesClientListAllResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachinesClientListAllResponse) (VirtualMachinesClientListAllResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listAllCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachinesClientListAllResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientListAllResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachinesClientListAllResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listAllHandleResponse(resp)
+ },
+ })
+}
+
+// listAllCreateRequest creates the ListAll request.
+func (client *VirtualMachinesClient) listAllCreateRequest(ctx context.Context, options *VirtualMachinesClientListAllOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ if options != nil && options.StatusOnly != nil {
+ reqQP.Set("statusOnly", *options.StatusOnly)
+ }
+ if options != nil && options.Filter != nil {
+ reqQP.Set("$filter", *options.Filter)
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listAllHandleResponse handles the ListAll response.
+func (client *VirtualMachinesClient) listAllHandleResponse(resp *http.Response) (VirtualMachinesClientListAllResponse, error) {
+ result := VirtualMachinesClientListAllResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineListResult); err != nil {
+ return VirtualMachinesClientListAllResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListAvailableSizesPager - Lists all available virtual machine sizes to which the specified virtual machine can be resized.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientListAvailableSizesOptions contains the optional parameters for the VirtualMachinesClient.ListAvailableSizes
+// method.
+func (client *VirtualMachinesClient) NewListAvailableSizesPager(resourceGroupName string, vmName string, options *VirtualMachinesClientListAvailableSizesOptions) *runtime.Pager[VirtualMachinesClientListAvailableSizesResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachinesClientListAvailableSizesResponse]{
+ More: func(page VirtualMachinesClientListAvailableSizesResponse) bool {
+ return false
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachinesClientListAvailableSizesResponse) (VirtualMachinesClientListAvailableSizesResponse, error) {
+ req, err := client.listAvailableSizesCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return VirtualMachinesClientListAvailableSizesResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientListAvailableSizesResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachinesClientListAvailableSizesResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listAvailableSizesHandleResponse(resp)
+ },
+ })
+}
+
+// listAvailableSizesCreateRequest creates the ListAvailableSizes request.
+func (client *VirtualMachinesClient) listAvailableSizesCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientListAvailableSizesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listAvailableSizesHandleResponse handles the ListAvailableSizes response.
+func (client *VirtualMachinesClient) listAvailableSizesHandleResponse(resp *http.Response) (VirtualMachinesClientListAvailableSizesResponse, error) {
+ result := VirtualMachinesClientListAvailableSizesResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineSizeListResult); err != nil {
+ return VirtualMachinesClientListAvailableSizesResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByLocationPager - Gets all the virtual machines under the specified subscription for the specified location.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The location for which virtual machines under the subscription are queried.
+// options - VirtualMachinesClientListByLocationOptions contains the optional parameters for the VirtualMachinesClient.ListByLocation
+// method.
+func (client *VirtualMachinesClient) NewListByLocationPager(location string, options *VirtualMachinesClientListByLocationOptions) *runtime.Pager[VirtualMachinesClientListByLocationResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachinesClientListByLocationResponse]{
+ More: func(page VirtualMachinesClientListByLocationResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachinesClientListByLocationResponse) (VirtualMachinesClientListByLocationResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByLocationCreateRequest(ctx, location, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachinesClientListByLocationResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientListByLocationResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachinesClientListByLocationResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByLocationHandleResponse(resp)
+ },
+ })
+}
+
+// listByLocationCreateRequest creates the ListByLocation request.
+func (client *VirtualMachinesClient) listByLocationCreateRequest(ctx context.Context, location string, options *VirtualMachinesClientListByLocationOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByLocationHandleResponse handles the ListByLocation response.
+func (client *VirtualMachinesClient) listByLocationHandleResponse(resp *http.Response) (VirtualMachinesClientListByLocationResponse, error) {
+ result := VirtualMachinesClientListByLocationResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineListResult); err != nil {
+ return VirtualMachinesClientListByLocationResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginPerformMaintenance - The operation to perform maintenance on a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachinesClient.BeginPerformMaintenance
+// method.
+func (client *VirtualMachinesClient) BeginPerformMaintenance(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPerformMaintenanceOptions) (*runtime.Poller[VirtualMachinesClientPerformMaintenanceResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.performMaintenance(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientPerformMaintenanceResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientPerformMaintenanceResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// PerformMaintenance - The operation to perform maintenance on a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) performMaintenance(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPerformMaintenanceOptions) (*http.Response, error) {
+ req, err := client.performMaintenanceCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// performMaintenanceCreateRequest creates the PerformMaintenance request.
+func (client *VirtualMachinesClient) performMaintenanceCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPerformMaintenanceOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginPowerOff - The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same
+// provisioned resources. You are still charged for this virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff
+// method.
+func (client *VirtualMachinesClient) BeginPowerOff(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPowerOffOptions) (*runtime.Poller[VirtualMachinesClientPowerOffResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.powerOff(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientPowerOffResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientPowerOffResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// PowerOff - The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned
+// resources. You are still charged for this virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) powerOff(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPowerOffOptions) (*http.Response, error) {
+ req, err := client.powerOffCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// powerOffCreateRequest creates the PowerOff request.
+func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPowerOffOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.SkipShutdown != nil {
+ reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginReapply - The operation to reapply a virtual machine's state.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginReapplyOptions contains the optional parameters for the VirtualMachinesClient.BeginReapply
+// method.
+func (client *VirtualMachinesClient) BeginReapply(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReapplyOptions) (*runtime.Poller[VirtualMachinesClientReapplyResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reapply(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientReapplyResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientReapplyResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Reapply - The operation to reapply a virtual machine's state.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) reapply(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReapplyOptions) (*http.Response, error) {
+ req, err := client.reapplyCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// reapplyCreateRequest creates the Reapply request.
+func (client *VirtualMachinesClient) reapplyCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReapplyOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginRedeploy - Shuts down the virtual machine, moves it to a new node, and powers it back on.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginRedeployOptions contains the optional parameters for the VirtualMachinesClient.BeginRedeploy
+// method.
+func (client *VirtualMachinesClient) BeginRedeploy(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRedeployOptions) (*runtime.Poller[VirtualMachinesClientRedeployResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.redeploy(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientRedeployResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientRedeployResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Redeploy - Shuts down the virtual machine, moves it to a new node, and powers it back on.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) redeploy(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRedeployOptions) (*http.Response, error) {
+ req, err := client.redeployCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// redeployCreateRequest creates the Redeploy request.
+func (client *VirtualMachinesClient) redeployCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRedeployOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginReimage - Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage
+// method.
+func (client *VirtualMachinesClient) BeginReimage(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReimageOptions) (*runtime.Poller[VirtualMachinesClientReimageResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reimage(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientReimageResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientReimageResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Reimage - Reimages the virtual machine which has an ephemeral OS disk back to its initial state.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) reimage(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReimageOptions) (*http.Response, error) {
+ req, err := client.reimageCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// reimageCreateRequest creates the Reimage request.
+func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReimageOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.Parameters != nil {
+ return req, runtime.MarshalAsJSON(req, *options.Parameters)
+ }
+ return req, nil
+}
+
+// BeginRestart - The operation to restart a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart
+// method.
+func (client *VirtualMachinesClient) BeginRestart(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRestartOptions) (*runtime.Poller[VirtualMachinesClientRestartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.restart(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientRestartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientRestartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Restart - The operation to restart a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) restart(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRestartOptions) (*http.Response, error) {
+ req, err := client.restartCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// restartCreateRequest creates the Restart request.
+func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRestartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// RetrieveBootDiagnosticsData - The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachinesClient.RetrieveBootDiagnosticsData
+// method.
+func (client *VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientRetrieveBootDiagnosticsDataOptions) (VirtualMachinesClientRetrieveBootDiagnosticsDataResponse, error) {
+ req, err := client.retrieveBootDiagnosticsDataCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.retrieveBootDiagnosticsDataHandleResponse(resp)
+}
+
+// retrieveBootDiagnosticsDataCreateRequest creates the RetrieveBootDiagnosticsData request.
+func (client *VirtualMachinesClient) retrieveBootDiagnosticsDataCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientRetrieveBootDiagnosticsDataOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.SasURIExpirationTimeInMinutes != nil {
+ reqQP.Set("sasUriExpirationTimeInMinutes", strconv.FormatInt(int64(*options.SasURIExpirationTimeInMinutes), 10))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// retrieveBootDiagnosticsDataHandleResponse handles the RetrieveBootDiagnosticsData response.
+func (client *VirtualMachinesClient) retrieveBootDiagnosticsDataHandleResponse(resp *http.Response) (VirtualMachinesClientRetrieveBootDiagnosticsDataResponse, error) {
+ result := VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RetrieveBootDiagnosticsDataResult); err != nil {
+ return VirtualMachinesClientRetrieveBootDiagnosticsDataResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginRunCommand - Run command on the VM.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// parameters - Parameters supplied to the Run command operation.
+// options - VirtualMachinesClientBeginRunCommandOptions contains the optional parameters for the VirtualMachinesClient.BeginRunCommand
+// method.
+func (client *VirtualMachinesClient) BeginRunCommand(ctx context.Context, resourceGroupName string, vmName string, parameters RunCommandInput, options *VirtualMachinesClientBeginRunCommandOptions) (*runtime.Poller[VirtualMachinesClientRunCommandResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.runCommand(ctx, resourceGroupName, vmName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachinesClientRunCommandResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientRunCommandResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// RunCommand - Run command on the VM.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) runCommand(ctx context.Context, resourceGroupName string, vmName string, parameters RunCommandInput, options *VirtualMachinesClientBeginRunCommandOptions) (*http.Response, error) {
+ req, err := client.runCommandCreateRequest(ctx, resourceGroupName, vmName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// runCommandCreateRequest creates the RunCommand request.
+func (client *VirtualMachinesClient) runCommandCreateRequest(ctx context.Context, resourceGroupName string, vmName string, parameters RunCommandInput, options *VirtualMachinesClientBeginRunCommandOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// SimulateEviction - The operation to simulate the eviction of spot virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientSimulateEvictionOptions contains the optional parameters for the VirtualMachinesClient.SimulateEviction
+// method.
+func (client *VirtualMachinesClient) SimulateEviction(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientSimulateEvictionOptions) (VirtualMachinesClientSimulateEvictionResponse, error) {
+ req, err := client.simulateEvictionCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return VirtualMachinesClientSimulateEvictionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachinesClientSimulateEvictionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusNoContent) {
+ return VirtualMachinesClientSimulateEvictionResponse{}, runtime.NewResponseError(resp)
+ }
+ return VirtualMachinesClientSimulateEvictionResponse{}, nil
+}
+
+// simulateEvictionCreateRequest creates the SimulateEviction request.
+func (client *VirtualMachinesClient) simulateEvictionCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientSimulateEvictionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginStart - The operation to start a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// options - VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart
+// method.
+func (client *VirtualMachinesClient) BeginStart(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginStartOptions) (*runtime.Poller[VirtualMachinesClientStartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.start(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientStartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientStartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Start - The operation to start a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) start(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginStartOptions) (*http.Response, error) {
+ req, err := client.startCreateRequest(ctx, resourceGroupName, vmName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// startCreateRequest creates the Start request.
+func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginStartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginUpdate - The operation to update a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmName - The name of the virtual machine.
+// parameters - Parameters supplied to the Update Virtual Machine operation.
+// options - VirtualMachinesClientBeginUpdateOptions contains the optional parameters for the VirtualMachinesClient.BeginUpdate
+// method.
+func (client *VirtualMachinesClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineUpdate, options *VirtualMachinesClientBeginUpdateOptions) (*runtime.Poller[VirtualMachinesClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, vmName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachinesClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachinesClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - The operation to update a virtual machine.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachinesClient) update(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineUpdate, options *VirtualMachinesClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, vmName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *VirtualMachinesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineUpdate, options *VirtualMachinesClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmName == "" {
+ return nil, errors.New("parameter vmName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmName}", url.PathEscape(vmName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetextensions_client.go
new file mode 100644
index 0000000000..06b808c2d2
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetextensions_client.go
@@ -0,0 +1,397 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// VirtualMachineScaleSetExtensionsClient contains the methods for the VirtualMachineScaleSetExtensions group.
+// Don't use this type directly, use NewVirtualMachineScaleSetExtensionsClient() instead.
+type VirtualMachineScaleSetExtensionsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineScaleSetExtensionsClient creates a new instance of VirtualMachineScaleSetExtensionsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineScaleSetExtensionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetExtensionsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineScaleSetExtensionsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - The operation to create or update an extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set where the extension should be create or updated.
+// vmssExtensionName - The name of the VM scale set extension.
+// extensionParameters - Parameters supplied to the Create VM scale set Extension operation.
+// options - VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate
+// method.
+func (client *VirtualMachineScaleSetExtensionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtension, options *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetExtensionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - The operation to create or update an extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtension, options *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtension, options *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if vmssExtensionName == "" {
+ return nil, errors.New("parameter vmssExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmssExtensionName}", url.PathEscape(vmssExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, extensionParameters)
+}
+
+// BeginDelete - The operation to delete the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set where the extension should be deleted.
+// vmssExtensionName - The name of the VM scale set extension.
+// options - VirtualMachineScaleSetExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginDelete
+// method.
+func (client *VirtualMachineScaleSetExtensionsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetExtensionsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetExtensionsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetExtensionsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *VirtualMachineScaleSetExtensionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if vmssExtensionName == "" {
+ return nil, errors.New("parameter vmssExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmssExtensionName}", url.PathEscape(vmssExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - The operation to get the extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set containing the extension.
+// vmssExtensionName - The name of the VM scale set extension.
+// options - VirtualMachineScaleSetExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.Get
+// method.
+func (client *VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientGetOptions) (VirtualMachineScaleSetExtensionsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, options)
+ if err != nil {
+ return VirtualMachineScaleSetExtensionsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetExtensionsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetExtensionsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineScaleSetExtensionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if vmssExtensionName == "" {
+ return nil, errors.New("parameter vmssExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmssExtensionName}", url.PathEscape(vmssExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineScaleSetExtensionsClient) getHandleResponse(resp *http.Response) (VirtualMachineScaleSetExtensionsClientGetResponse, error) {
+ result := VirtualMachineScaleSetExtensionsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetExtension); err != nil {
+ return VirtualMachineScaleSetExtensionsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Gets a list of all extensions in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set containing the extension.
+// options - VirtualMachineScaleSetExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.List
+// method.
+func (client *VirtualMachineScaleSetExtensionsClient) NewListPager(resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetExtensionsClientListOptions) *runtime.Pager[VirtualMachineScaleSetExtensionsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetExtensionsClientListResponse]{
+ More: func(page VirtualMachineScaleSetExtensionsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetExtensionsClientListResponse) (VirtualMachineScaleSetExtensionsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineScaleSetExtensionsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetExtensionsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetExtensionsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineScaleSetExtensionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetExtensionsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineScaleSetExtensionsClient) listHandleResponse(resp *http.Response) (VirtualMachineScaleSetExtensionsClientListResponse, error) {
+ result := VirtualMachineScaleSetExtensionsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetExtensionListResult); err != nil {
+ return VirtualMachineScaleSetExtensionsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - The operation to update an extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set where the extension should be updated.
+// vmssExtensionName - The name of the VM scale set extension.
+// extensionParameters - Parameters supplied to the Update VM scale set Extension operation.
+// options - VirtualMachineScaleSetExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.BeginUpdate
+// method.
+func (client *VirtualMachineScaleSetExtensionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtensionUpdate, options *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetExtensionsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetExtensionsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetExtensionsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - The operation to update an extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetExtensionsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtensionUpdate, options *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *VirtualMachineScaleSetExtensionsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtensionUpdate, options *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if vmssExtensionName == "" {
+ return nil, errors.New("parameter vmssExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmssExtensionName}", url.PathEscape(vmssExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, extensionParameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetrollingupgrades_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetrollingupgrades_client.go
new file mode 100644
index 0000000000..d86eeec8ac
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetrollingupgrades_client.go
@@ -0,0 +1,310 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// VirtualMachineScaleSetRollingUpgradesClient contains the methods for the VirtualMachineScaleSetRollingUpgrades group.
+// Don't use this type directly, use NewVirtualMachineScaleSetRollingUpgradesClient() instead.
+type VirtualMachineScaleSetRollingUpgradesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineScaleSetRollingUpgradesClient creates a new instance of VirtualMachineScaleSetRollingUpgradesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineScaleSetRollingUpgradesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetRollingUpgradesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineScaleSetRollingUpgradesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCancel - Cancels the current virtual machine scale set rolling upgrade.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginCancel
+// method.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginCancel(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions) (*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.cancel(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetRollingUpgradesClientCancelResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetRollingUpgradesClientCancelResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Cancel - Cancels the current virtual machine scale set rolling upgrade.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetRollingUpgradesClient) cancel(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions) (*http.Response, error) {
+ req, err := client.cancelCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// cancelCreateRequest creates the Cancel request.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) cancelCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// GetLatest - Gets the status of the latest virtual machine scale set rolling upgrade.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.GetLatest
+// method.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions) (VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse, error) {
+ req, err := client.getLatestCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getLatestHandleResponse(resp)
+}
+
+// getLatestCreateRequest creates the GetLatest request.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) getLatestCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getLatestHandleResponse handles the GetLatest response.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) getLatestHandleResponse(resp *http.Response) (VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse, error) {
+ result := VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RollingUpgradeStatusInfo); err != nil {
+ return VirtualMachineScaleSetRollingUpgradesClientGetLatestResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginStartExtensionUpgrade - Starts a rolling upgrade to move all extensions for all virtual machine scale set instances
+// to the latest available extension version. Instances which are already running the latest extension versions
+// are not affected.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions contains the optional parameters
+// for the VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade method.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartExtensionUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions) (*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.startExtensionUpgrade(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetRollingUpgradesClientStartExtensionUpgradeResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// StartExtensionUpgrade - Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to
+// the latest available extension version. Instances which are already running the latest extension versions
+// are not affected.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions) (*http.Response, error) {
+ req, err := client.startExtensionUpgradeCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// startExtensionUpgradeCreateRequest creates the StartExtensionUpgrade request.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgradeCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginStartOSUpgrade - Starts a rolling upgrade to move all virtual machine scale set instances to the latest available
+// Platform Image OS version. Instances which are already running the latest available OS version are not
+// affected.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions contains the optional parameters for the
+// VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade method.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartOSUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions) (*runtime.Poller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.startOSUpgrade(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetRollingUpgradesClientStartOSUpgradeResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// StartOSUpgrade - Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform
+// Image OS version. Instances which are already running the latest available OS version are not
+// affected.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetRollingUpgradesClient) startOSUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions) (*http.Response, error) {
+ req, err := client.startOSUpgradeCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// startOSUpgradeCreateRequest creates the StartOSUpgrade request.
+func (client *VirtualMachineScaleSetRollingUpgradesClient) startOSUpgradeCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesets_client.go
new file mode 100644
index 0000000000..5a5d8a7e0e
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesets_client.go
@@ -0,0 +1,1562 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// VirtualMachineScaleSetsClient contains the methods for the VirtualMachineScaleSets group.
+// Don't use this type directly, use NewVirtualMachineScaleSetsClient() instead.
+type VirtualMachineScaleSetsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineScaleSetsClient creates a new instance of VirtualMachineScaleSetsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineScaleSetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineScaleSetsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// ConvertToSinglePlacementGroup - Converts SinglePlacementGroup property to false for a existing virtual machine scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the virtual machine scale set to create or update.
+// parameters - The input object for ConvertToSinglePlacementGroup API.
+// options - VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ConvertToSinglePlacementGroup
+// method.
+func (client *VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroup(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VMScaleSetConvertToSinglePlacementGroupInput, options *VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions) (VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse, error) {
+ req, err := client.convertToSinglePlacementGroupCreateRequest(ctx, resourceGroupName, vmScaleSetName, parameters, options)
+ if err != nil {
+ return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, runtime.NewResponseError(resp)
+ }
+ return VirtualMachineScaleSetsClientConvertToSinglePlacementGroupResponse{}, nil
+}
+
+// convertToSinglePlacementGroupCreateRequest creates the ConvertToSinglePlacementGroup request.
+func (client *VirtualMachineScaleSetsClient) convertToSinglePlacementGroupCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VMScaleSetConvertToSinglePlacementGroupInput, options *VirtualMachineScaleSetsClientConvertToSinglePlacementGroupOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginCreateOrUpdate - Create or update a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set to create or update.
+// parameters - The scale set object.
+// options - VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginCreateOrUpdate
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSet, options *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, vmScaleSetName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - Create or update a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSet, options *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmScaleSetName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *VirtualMachineScaleSetsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSet, options *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginDeallocate - Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases
+// the compute resources. You are not billed for the compute resources that this virtual machine
+// scale set deallocates.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeallocate
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginDeallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeallocateOptions) (*runtime.Poller[VirtualMachineScaleSetsClientDeallocateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deallocate(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientDeallocateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientDeallocateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Deallocate - Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the
+// compute resources. You are not billed for the compute resources that this virtual machine
+// scale set deallocates.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) deallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeallocateOptions) (*http.Response, error) {
+ req, err := client.deallocateCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deallocateCreateRequest creates the Deallocate request.
+func (client *VirtualMachineScaleSetsClient) deallocateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeallocateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMInstanceIDs != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs)
+ }
+ return req, nil
+}
+
+// BeginDelete - Deletes a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDelete
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *VirtualMachineScaleSetsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.ForceDeletion != nil {
+ reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginDeleteInstances - Deletes virtual machines in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginDeleteInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeleteInstances
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginDeleteInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions) (*runtime.Poller[VirtualMachineScaleSetsClientDeleteInstancesResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteInstances(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientDeleteInstancesResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientDeleteInstancesResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// DeleteInstances - Deletes virtual machines in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) deleteInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions) (*http.Response, error) {
+ req, err := client.deleteInstancesCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteInstancesCreateRequest creates the DeleteInstances request.
+func (client *VirtualMachineScaleSetsClient) deleteInstancesCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.ForceDeletion != nil {
+ reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, vmInstanceIDs)
+}
+
+// ForceRecoveryServiceFabricPlatformUpdateDomainWalk - Manual platform update domain walk to update virtual machines in a
+// service fabric virtual machine scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// platformUpdateDomain - The platform update domain for which a manual recovery walk is requested
+// options - VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions contains the optional
+// parameters for the VirtualMachineScaleSetsClient.ForceRecoveryServiceFabricPlatformUpdateDomainWalk method.
+func (client *VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUpdateDomainWalk(ctx context.Context, resourceGroupName string, vmScaleSetName string, platformUpdateDomain int32, options *VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions) (VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, error) {
+ req, err := client.forceRecoveryServiceFabricPlatformUpdateDomainWalkCreateRequest(ctx, resourceGroupName, vmScaleSetName, platformUpdateDomain, options)
+ if err != nil {
+ return VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.forceRecoveryServiceFabricPlatformUpdateDomainWalkHandleResponse(resp)
+}
+
+// forceRecoveryServiceFabricPlatformUpdateDomainWalkCreateRequest creates the ForceRecoveryServiceFabricPlatformUpdateDomainWalk request.
+func (client *VirtualMachineScaleSetsClient) forceRecoveryServiceFabricPlatformUpdateDomainWalkCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, platformUpdateDomain int32, options *VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ reqQP.Set("platformUpdateDomain", strconv.FormatInt(int64(platformUpdateDomain), 10))
+ if options != nil && options.Zone != nil {
+ reqQP.Set("zone", *options.Zone)
+ }
+ if options != nil && options.PlacementGroupID != nil {
+ reqQP.Set("placementGroupId", *options.PlacementGroupID)
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// forceRecoveryServiceFabricPlatformUpdateDomainWalkHandleResponse handles the ForceRecoveryServiceFabricPlatformUpdateDomainWalk response.
+func (client *VirtualMachineScaleSetsClient) forceRecoveryServiceFabricPlatformUpdateDomainWalkHandleResponse(resp *http.Response) (VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, error) {
+ result := VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RecoveryWalkResponse); err != nil {
+ return VirtualMachineScaleSetsClientForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse{}, err
+ }
+ return result, nil
+}
+
+// Get - Display information about a virtual machine scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetsClient.Get
+// method.
+func (client *VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetOptions) (VirtualMachineScaleSetsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return VirtualMachineScaleSetsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineScaleSetsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineScaleSetsClient) getHandleResponse(resp *http.Response) (VirtualMachineScaleSetsClientGetResponse, error) {
+ result := VirtualMachineScaleSetsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSet); err != nil {
+ return VirtualMachineScaleSetsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// GetInstanceView - Gets the status of a VM scale set instance.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetInstanceView
+// method.
+func (client *VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetInstanceViewOptions) (VirtualMachineScaleSetsClientGetInstanceViewResponse, error) {
+ req, err := client.getInstanceViewCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return VirtualMachineScaleSetsClientGetInstanceViewResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientGetInstanceViewResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientGetInstanceViewResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getInstanceViewHandleResponse(resp)
+}
+
+// getInstanceViewCreateRequest creates the GetInstanceView request.
+func (client *VirtualMachineScaleSetsClient) getInstanceViewCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetInstanceViewOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getInstanceViewHandleResponse handles the GetInstanceView response.
+func (client *VirtualMachineScaleSetsClient) getInstanceViewHandleResponse(resp *http.Response) (VirtualMachineScaleSetsClientGetInstanceViewResponse, error) {
+ result := VirtualMachineScaleSetsClientGetInstanceViewResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetInstanceView); err != nil {
+ return VirtualMachineScaleSetsClientGetInstanceViewResponse{}, err
+ }
+ return result, nil
+}
+
+// NewGetOSUpgradeHistoryPager - Gets list of OS upgrades on a VM scale set instance.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetOSUpgradeHistory
+// method.
+func (client *VirtualMachineScaleSetsClient) NewGetOSUpgradeHistoryPager(resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions) *runtime.Pager[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse]{
+ More: func(page VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse) (VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.getOSUpgradeHistoryCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getOSUpgradeHistoryHandleResponse(resp)
+ },
+ })
+}
+
+// getOSUpgradeHistoryCreateRequest creates the GetOSUpgradeHistory request.
+func (client *VirtualMachineScaleSetsClient) getOSUpgradeHistoryCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getOSUpgradeHistoryHandleResponse handles the GetOSUpgradeHistory response.
+func (client *VirtualMachineScaleSetsClient) getOSUpgradeHistoryHandleResponse(resp *http.Response) (VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse, error) {
+ result := VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetListOSUpgradeHistory); err != nil {
+ return VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Gets a list of all VM scale sets under a resource group.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// options - VirtualMachineScaleSetsClientListOptions contains the optional parameters for the VirtualMachineScaleSetsClient.List
+// method.
+func (client *VirtualMachineScaleSetsClient) NewListPager(resourceGroupName string, options *VirtualMachineScaleSetsClientListOptions) *runtime.Pager[VirtualMachineScaleSetsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientListResponse]{
+ More: func(page VirtualMachineScaleSetsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientListResponse) (VirtualMachineScaleSetsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineScaleSetsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineScaleSetsClient) listCreateRequest(ctx context.Context, resourceGroupName string, options *VirtualMachineScaleSetsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineScaleSetsClient) listHandleResponse(resp *http.Response) (VirtualMachineScaleSetsClientListResponse, error) {
+ result := VirtualMachineScaleSetsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetListResult); err != nil {
+ return VirtualMachineScaleSetsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListAllPager - Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use
+// nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is
+// null to fetch all the VM Scale Sets.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// options - VirtualMachineScaleSetsClientListAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListAll
+// method.
+func (client *VirtualMachineScaleSetsClient) NewListAllPager(options *VirtualMachineScaleSetsClientListAllOptions) *runtime.Pager[VirtualMachineScaleSetsClientListAllResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientListAllResponse]{
+ More: func(page VirtualMachineScaleSetsClientListAllResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientListAllResponse) (VirtualMachineScaleSetsClientListAllResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listAllCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineScaleSetsClientListAllResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientListAllResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientListAllResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listAllHandleResponse(resp)
+ },
+ })
+}
+
+// listAllCreateRequest creates the ListAll request.
+func (client *VirtualMachineScaleSetsClient) listAllCreateRequest(ctx context.Context, options *VirtualMachineScaleSetsClientListAllOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listAllHandleResponse handles the ListAll response.
+func (client *VirtualMachineScaleSetsClient) listAllHandleResponse(resp *http.Response) (VirtualMachineScaleSetsClientListAllResponse, error) {
+ result := VirtualMachineScaleSetsClientListAllResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetListWithLinkResult); err != nil {
+ return VirtualMachineScaleSetsClientListAllResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListByLocationPager - Gets all the VM scale sets under the specified subscription for the specified location.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The location for which VM scale sets under the subscription are queried.
+// options - VirtualMachineScaleSetsClientListByLocationOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListByLocation
+// method.
+func (client *VirtualMachineScaleSetsClient) NewListByLocationPager(location string, options *VirtualMachineScaleSetsClientListByLocationOptions) *runtime.Pager[VirtualMachineScaleSetsClientListByLocationResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientListByLocationResponse]{
+ More: func(page VirtualMachineScaleSetsClientListByLocationResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientListByLocationResponse) (VirtualMachineScaleSetsClientListByLocationResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listByLocationCreateRequest(ctx, location, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineScaleSetsClientListByLocationResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientListByLocationResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientListByLocationResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listByLocationHandleResponse(resp)
+ },
+ })
+}
+
+// listByLocationCreateRequest creates the ListByLocation request.
+func (client *VirtualMachineScaleSetsClient) listByLocationCreateRequest(ctx context.Context, location string, options *VirtualMachineScaleSetsClientListByLocationOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listByLocationHandleResponse handles the ListByLocation response.
+func (client *VirtualMachineScaleSetsClient) listByLocationHandleResponse(resp *http.Response) (VirtualMachineScaleSetsClientListByLocationResponse, error) {
+ result := VirtualMachineScaleSetsClientListByLocationResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetListResult); err != nil {
+ return VirtualMachineScaleSetsClientListByLocationResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListSKUsPager - Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances
+// allowed for each SKU.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientListSKUsOptions contains the optional parameters for the VirtualMachineScaleSetsClient.ListSKUs
+// method.
+func (client *VirtualMachineScaleSetsClient) NewListSKUsPager(resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientListSKUsOptions) *runtime.Pager[VirtualMachineScaleSetsClientListSKUsResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetsClientListSKUsResponse]{
+ More: func(page VirtualMachineScaleSetsClientListSKUsResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetsClientListSKUsResponse) (VirtualMachineScaleSetsClientListSKUsResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listSKUsCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineScaleSetsClientListSKUsResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetsClientListSKUsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetsClientListSKUsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listSKUsHandleResponse(resp)
+ },
+ })
+}
+
+// listSKUsCreateRequest creates the ListSKUs request.
+func (client *VirtualMachineScaleSetsClient) listSKUsCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientListSKUsOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listSKUsHandleResponse handles the ListSKUs response.
+func (client *VirtualMachineScaleSetsClient) listSKUsHandleResponse(resp *http.Response) (VirtualMachineScaleSetsClientListSKUsResponse, error) {
+ result := VirtualMachineScaleSetsClientListSKUsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetListSKUsResult); err != nil {
+ return VirtualMachineScaleSetsClientListSKUsResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginPerformMaintenance - Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances
+// which are not eligible for perform maintenance will be failed. Please refer to best practices for more
+// details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPerformMaintenance
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginPerformMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions) (*runtime.Poller[VirtualMachineScaleSetsClientPerformMaintenanceResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.performMaintenance(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientPerformMaintenanceResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientPerformMaintenanceResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// PerformMaintenance - Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which
+// are not eligible for perform maintenance will be failed. Please refer to best practices for more
+// details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) performMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions) (*http.Response, error) {
+ req, err := client.performMaintenanceCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// performMaintenanceCreateRequest creates the PerformMaintenance request.
+func (client *VirtualMachineScaleSetsClient) performMaintenanceCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMInstanceIDs != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs)
+ }
+ return req, nil
+}
+
+// BeginPowerOff - Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached
+// and you are getting charged for the resources. Instead, use deallocate to release resources and
+// avoid charges.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPowerOff
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginPowerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPowerOffOptions) (*runtime.Poller[VirtualMachineScaleSetsClientPowerOffResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.powerOff(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientPowerOffResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientPowerOffResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// PowerOff - Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and
+// you are getting charged for the resources. Instead, use deallocate to release resources and
+// avoid charges.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) powerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPowerOffOptions) (*http.Response, error) {
+ req, err := client.powerOffCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// powerOffCreateRequest creates the PowerOff request.
+func (client *VirtualMachineScaleSetsClient) powerOffCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPowerOffOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.SkipShutdown != nil {
+ reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMInstanceIDs != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs)
+ }
+ return req, nil
+}
+
+// BeginRedeploy - Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers
+// them back on.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRedeploy
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginRedeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRedeployOptions) (*runtime.Poller[VirtualMachineScaleSetsClientRedeployResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.redeploy(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientRedeployResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientRedeployResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Redeploy - Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them
+// back on.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) redeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRedeployOptions) (*http.Response, error) {
+ req, err := client.redeployCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// redeployCreateRequest creates the Redeploy request.
+func (client *VirtualMachineScaleSetsClient) redeployCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRedeployOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMInstanceIDs != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs)
+ }
+ return req, nil
+}
+
+// BeginReimage - Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have
+// a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is
+// reset to initial state.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimage
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginReimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageOptions) (*runtime.Poller[VirtualMachineScaleSetsClientReimageResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reimage(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientReimageResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientReimageResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Reimage - Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral
+// OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is
+// reset to initial state.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) reimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageOptions) (*http.Response, error) {
+ req, err := client.reimageCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// reimageCreateRequest creates the Reimage request.
+func (client *VirtualMachineScaleSetsClient) reimageCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMScaleSetReimageInput != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMScaleSetReimageInput)
+ }
+ return req, nil
+}
+
+// BeginReimageAll - Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation
+// is only supported for managed disks.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimageAll
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginReimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageAllOptions) (*runtime.Poller[VirtualMachineScaleSetsClientReimageAllResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reimageAll(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientReimageAllResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientReimageAllResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// ReimageAll - Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation
+// is only supported for managed disks.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) reimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageAllOptions) (*http.Response, error) {
+ req, err := client.reimageAllCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// reimageAllCreateRequest creates the ReimageAll request.
+func (client *VirtualMachineScaleSetsClient) reimageAllCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageAllOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMInstanceIDs != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs)
+ }
+ return req, nil
+}
+
+// BeginRestart - Restarts one or more virtual machines in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRestart
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginRestart(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRestartOptions) (*runtime.Poller[VirtualMachineScaleSetsClientRestartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.restart(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientRestartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientRestartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Restart - Restarts one or more virtual machines in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) restart(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRestartOptions) (*http.Response, error) {
+ req, err := client.restartCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// restartCreateRequest creates the Restart request.
+func (client *VirtualMachineScaleSetsClient) restartCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRestartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMInstanceIDs != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs)
+ }
+ return req, nil
+}
+
+// BeginSetOrchestrationServiceState - Changes ServiceState property for a given service
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the virtual machine scale set to create or update.
+// parameters - The input object for SetOrchestrationServiceState API.
+// options - VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions contains the optional parameters for the
+// VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState method.
+func (client *VirtualMachineScaleSetsClient) BeginSetOrchestrationServiceState(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters OrchestrationServiceStateInput, options *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions) (*runtime.Poller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.setOrchestrationServiceState(ctx, resourceGroupName, vmScaleSetName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientSetOrchestrationServiceStateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// SetOrchestrationServiceState - Changes ServiceState property for a given service
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceState(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters OrchestrationServiceStateInput, options *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions) (*http.Response, error) {
+ req, err := client.setOrchestrationServiceStateCreateRequest(ctx, resourceGroupName, vmScaleSetName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// setOrchestrationServiceStateCreateRequest creates the SetOrchestrationServiceState request.
+func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceStateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters OrchestrationServiceStateInput, options *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginStart - Starts one or more virtual machines in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginStart
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginStart(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginStartOptions) (*runtime.Poller[VirtualMachineScaleSetsClientStartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.start(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientStartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientStartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Start - Starts one or more virtual machines in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) start(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginStartOptions) (*http.Response, error) {
+ req, err := client.startCreateRequest(ctx, resourceGroupName, vmScaleSetName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// startCreateRequest creates the Start request.
+func (client *VirtualMachineScaleSetsClient) startCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginStartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMInstanceIDs != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMInstanceIDs)
+ }
+ return req, nil
+}
+
+// BeginUpdate - Update a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set to create or update.
+// parameters - The scale set object.
+// options - VirtualMachineScaleSetsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdate
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSetUpdate, options *VirtualMachineScaleSetsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Update a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSetUpdate, options *VirtualMachineScaleSetsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *VirtualMachineScaleSetsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSetUpdate, options *VirtualMachineScaleSetsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// BeginUpdateInstances - Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
+// options - VirtualMachineScaleSetsClientBeginUpdateInstancesOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginUpdateInstances
+// method.
+func (client *VirtualMachineScaleSetsClient) BeginUpdateInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions) (*runtime.Poller[VirtualMachineScaleSetsClientUpdateInstancesResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.updateInstances(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetsClientUpdateInstancesResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetsClientUpdateInstancesResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// UpdateInstances - Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetsClient) updateInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions) (*http.Response, error) {
+ req, err := client.updateInstancesCreateRequest(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateInstancesCreateRequest creates the UpdateInstances request.
+func (client *VirtualMachineScaleSetsClient) updateInstancesCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, vmInstanceIDs)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmextensions_client.go
new file mode 100644
index 0000000000..eb3d4c839c
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmextensions_client.go
@@ -0,0 +1,412 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// VirtualMachineScaleSetVMExtensionsClient contains the methods for the VirtualMachineScaleSetVMExtensions group.
+// Don't use this type directly, use NewVirtualMachineScaleSetVMExtensionsClient() instead.
+type VirtualMachineScaleSetVMExtensionsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineScaleSetVMExtensionsClient creates a new instance of VirtualMachineScaleSetVMExtensionsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetVMExtensionsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineScaleSetVMExtensionsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - The operation to create or update the VMSS VM extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// vmExtensionName - The name of the virtual machine extension.
+// extensionParameters - Parameters supplied to the Create Virtual Machine Extension operation.
+// options - VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate
+// method.
+func (client *VirtualMachineScaleSetVMExtensionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtension, options *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMExtensionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - The operation to create or update the VMSS VM extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtension, options *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtension, options *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if vmExtensionName == "" {
+ return nil, errors.New("parameter vmExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmExtensionName}", url.PathEscape(vmExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, extensionParameters)
+}
+
+// BeginDelete - The operation to delete the VMSS VM extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// vmExtensionName - The name of the virtual machine extension.
+// options - VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginDelete
+// method.
+func (client *VirtualMachineScaleSetVMExtensionsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMExtensionsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMExtensionsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete the VMSS VM extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *VirtualMachineScaleSetVMExtensionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if vmExtensionName == "" {
+ return nil, errors.New("parameter vmExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmExtensionName}", url.PathEscape(vmExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - The operation to get the VMSS VM extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// vmExtensionName - The name of the virtual machine extension.
+// options - VirtualMachineScaleSetVMExtensionsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.Get
+// method.
+func (client *VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientGetOptions) (VirtualMachineScaleSetVMExtensionsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, options)
+ if err != nil {
+ return VirtualMachineScaleSetVMExtensionsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMExtensionsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetVMExtensionsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineScaleSetVMExtensionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if vmExtensionName == "" {
+ return nil, errors.New("parameter vmExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmExtensionName}", url.PathEscape(vmExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineScaleSetVMExtensionsClient) getHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMExtensionsClientGetResponse, error) {
+ result := VirtualMachineScaleSetVMExtensionsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetVMExtension); err != nil {
+ return VirtualMachineScaleSetVMExtensionsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// List - The operation to get all extensions of an instance in Virtual Machine Scaleset.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.List
+// method.
+func (client *VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMExtensionsClientListOptions) (VirtualMachineScaleSetVMExtensionsClientListResponse, error) {
+ req, err := client.listCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return VirtualMachineScaleSetVMExtensionsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMExtensionsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetVMExtensionsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineScaleSetVMExtensionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMExtensionsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineScaleSetVMExtensionsClient) listHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMExtensionsClientListResponse, error) {
+ result := VirtualMachineScaleSetVMExtensionsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetVMExtensionsListResult); err != nil {
+ return VirtualMachineScaleSetVMExtensionsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - The operation to update the VMSS VM extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// vmExtensionName - The name of the virtual machine extension.
+// extensionParameters - Parameters supplied to the Update Virtual Machine Extension operation.
+// options - VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMExtensionsClient.BeginUpdate
+// method.
+func (client *VirtualMachineScaleSetVMExtensionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtensionUpdate, options *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMExtensionsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMExtensionsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - The operation to update the VMSS VM extension.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMExtensionsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtensionUpdate, options *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, vmExtensionName, extensionParameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *VirtualMachineScaleSetVMExtensionsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtensionUpdate, options *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if vmExtensionName == "" {
+ return nil, errors.New("parameter vmExtensionName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmExtensionName}", url.PathEscape(vmExtensionName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, extensionParameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmruncommands_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmruncommands_client.go
new file mode 100644
index 0000000000..0476b3573a
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvmruncommands_client.go
@@ -0,0 +1,425 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// VirtualMachineScaleSetVMRunCommandsClient contains the methods for the VirtualMachineScaleSetVMRunCommands group.
+// Don't use this type directly, use NewVirtualMachineScaleSetVMRunCommandsClient() instead.
+type VirtualMachineScaleSetVMRunCommandsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineScaleSetVMRunCommandsClient creates a new instance of VirtualMachineScaleSetVMRunCommandsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineScaleSetVMRunCommandsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetVMRunCommandsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineScaleSetVMRunCommandsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginCreateOrUpdate - The operation to create or update the VMSS VM run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// runCommandName - The name of the virtual machine run command.
+// runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
+// options - VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the
+// VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate method.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.createOrUpdate(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, runCommand, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMRunCommandsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// CreateOrUpdate - The operation to create or update the VMSS VM run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
+ req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, runCommand, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// createOrUpdateCreateRequest creates the CreateOrUpdate request.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if runCommandName == "" {
+ return nil, errors.New("parameter runCommandName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, runtime.MarshalAsJSON(req, runCommand)
+}
+
+// BeginDelete - The operation to delete the VMSS VM run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// runCommandName - The name of the virtual machine run command.
+// options - VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginDelete
+// method.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMRunCommandsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - The operation to delete the VMSS VM run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if runCommandName == "" {
+ return nil, errors.New("parameter runCommandName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, nil
+}
+
+// Get - The operation to get the VMSS VM run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// runCommandName - The name of the virtual machine run command.
+// options - VirtualMachineScaleSetVMRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.Get
+// method.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientGetOptions) (VirtualMachineScaleSetVMRunCommandsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, options)
+ if err != nil {
+ return VirtualMachineScaleSetVMRunCommandsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMRunCommandsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetVMRunCommandsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if runCommandName == "" {
+ return nil, errors.New("parameter runCommandName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) getHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMRunCommandsClientGetResponse, error) {
+ result := VirtualMachineScaleSetVMRunCommandsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineRunCommand); err != nil {
+ return VirtualMachineScaleSetVMRunCommandsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - The operation to get all run commands of an instance in Virtual Machine Scaleset.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMRunCommandsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.List
+// method.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) NewListPager(resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMRunCommandsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMRunCommandsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetVMRunCommandsClientListResponse]{
+ More: func(page VirtualMachineScaleSetVMRunCommandsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetVMRunCommandsClientListResponse) (VirtualMachineScaleSetVMRunCommandsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineScaleSetVMRunCommandsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMRunCommandsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetVMRunCommandsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) listCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMRunCommandsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) listHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMRunCommandsClientListResponse, error) {
+ result := VirtualMachineScaleSetVMRunCommandsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineRunCommandsListResult); err != nil {
+ return VirtualMachineScaleSetVMRunCommandsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - The operation to update the VMSS VM run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// runCommandName - The name of the virtual machine run command.
+// runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
+// options - VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate
+// method.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, runCommand, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMRunCommandsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - The operation to update the VMSS VM run command.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMRunCommandsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, runCommandName, runCommand, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *VirtualMachineScaleSetVMRunCommandsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if runCommandName == "" {
+ return nil, errors.New("parameter runCommandName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, runtime.MarshalAsJSON(req, runCommand)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvms_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvms_client.go
new file mode 100644
index 0000000000..32b2b3a230
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinescalesetvms_client.go
@@ -0,0 +1,1155 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// VirtualMachineScaleSetVMsClient contains the methods for the VirtualMachineScaleSetVMs group.
+// Don't use this type directly, use NewVirtualMachineScaleSetVMsClient() instead.
+type VirtualMachineScaleSetVMsClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineScaleSetVMsClient creates a new instance of VirtualMachineScaleSetVMsClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineScaleSetVMsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineScaleSetVMsClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineScaleSetVMsClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// BeginDeallocate - Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases
+// the compute resources it uses. You are not billed for the compute resources of this virtual
+// machine once it is deallocated.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDeallocate
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginDeallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeallocateOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientDeallocateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deallocate(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientDeallocateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientDeallocateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Deallocate - Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the
+// compute resources it uses. You are not billed for the compute resources of this virtual
+// machine once it is deallocated.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) deallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeallocateOptions) (*http.Response, error) {
+ req, err := client.deallocateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deallocateCreateRequest creates the Deallocate request.
+func (client *VirtualMachineScaleSetVMsClient) deallocateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeallocateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginDelete - Deletes a virtual machine from a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginDelete
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginDelete(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeleteOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientDeleteResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientDeleteResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Delete - Deletes a virtual machine from a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeleteOptions) (*http.Response, error) {
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *VirtualMachineScaleSetVMsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.ForceDeletion != nil {
+ reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Gets a virtual machine from a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.Get
+// method.
+func (client *VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientGetOptions) (VirtualMachineScaleSetVMsClientGetResponse, error) {
+ req, err := client.getCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientGetResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetVMsClientGetResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getHandleResponse(resp)
+}
+
+// getCreateRequest creates the Get request.
+func (client *VirtualMachineScaleSetVMsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", string(*options.Expand))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *VirtualMachineScaleSetVMsClient) getHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMsClientGetResponse, error) {
+ result := VirtualMachineScaleSetVMsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetVM); err != nil {
+ return VirtualMachineScaleSetVMsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// GetInstanceView - Gets the status of a virtual machine from a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.GetInstanceView
+// method.
+func (client *VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientGetInstanceViewOptions) (VirtualMachineScaleSetVMsClientGetInstanceViewResponse, error) {
+ req, err := client.getInstanceViewCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getInstanceViewHandleResponse(resp)
+}
+
+// getInstanceViewCreateRequest creates the GetInstanceView request.
+func (client *VirtualMachineScaleSetVMsClient) getInstanceViewCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientGetInstanceViewOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getInstanceViewHandleResponse handles the GetInstanceView response.
+func (client *VirtualMachineScaleSetVMsClient) getInstanceViewHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMsClientGetInstanceViewResponse, error) {
+ result := VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetVMInstanceView); err != nil {
+ return VirtualMachineScaleSetVMsClientGetInstanceViewResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Gets a list of all virtual machines in a VM scale sets.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// virtualMachineScaleSetName - The name of the VM scale set.
+// options - VirtualMachineScaleSetVMsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.List
+// method.
+func (client *VirtualMachineScaleSetVMsClient) NewListPager(resourceGroupName string, virtualMachineScaleSetName string, options *VirtualMachineScaleSetVMsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineScaleSetVMsClientListResponse]{
+ More: func(page VirtualMachineScaleSetVMsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineScaleSetVMsClientListResponse) (VirtualMachineScaleSetVMsClientListResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listCreateRequest(ctx, resourceGroupName, virtualMachineScaleSetName, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetVMsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineScaleSetVMsClient) listCreateRequest(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, options *VirtualMachineScaleSetVMsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if virtualMachineScaleSetName == "" {
+ return nil, errors.New("parameter virtualMachineScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{virtualMachineScaleSetName}", url.PathEscape(virtualMachineScaleSetName))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Filter != nil {
+ reqQP.Set("$filter", *options.Filter)
+ }
+ if options != nil && options.Select != nil {
+ reqQP.Set("$select", *options.Select)
+ }
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineScaleSetVMsClient) listHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMsClientListResponse, error) {
+ result := VirtualMachineScaleSetVMsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineScaleSetVMListResult); err != nil {
+ return VirtualMachineScaleSetVMsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginPerformMaintenance - Performs maintenance on a virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPerformMaintenance
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginPerformMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.performMaintenance(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientPerformMaintenanceResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// PerformMaintenance - Performs maintenance on a virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) performMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions) (*http.Response, error) {
+ req, err := client.performMaintenanceCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// performMaintenanceCreateRequest creates the PerformMaintenance request.
+func (client *VirtualMachineScaleSetVMsClient) performMaintenanceCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginPowerOff - Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are
+// getting charged for the resources. Instead, use deallocate to release resources and avoid
+// charges.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginPowerOff
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginPowerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPowerOffOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientPowerOffResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.powerOff(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientPowerOffResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientPowerOffResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// PowerOff - Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
+// charged for the resources. Instead, use deallocate to release resources and avoid
+// charges.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) powerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPowerOffOptions) (*http.Response, error) {
+ req, err := client.powerOffCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// powerOffCreateRequest creates the PowerOff request.
+func (client *VirtualMachineScaleSetVMsClient) powerOffCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPowerOffOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.SkipShutdown != nil {
+ reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginRedeploy - Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it
+// back on.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRedeploy
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginRedeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRedeployOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientRedeployResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.redeploy(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientRedeployResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientRedeployResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Redeploy - Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back
+// on.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) redeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRedeployOptions) (*http.Response, error) {
+ req, err := client.redeployCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// redeployCreateRequest creates the Redeploy request.
+func (client *VirtualMachineScaleSetVMsClient) redeployCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRedeployOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginReimage - Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimage
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginReimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientReimageResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reimage(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientReimageResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientReimageResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Reimage - Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) reimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageOptions) (*http.Response, error) {
+ req, err := client.reimageCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// reimageCreateRequest creates the Reimage request.
+func (client *VirtualMachineScaleSetVMsClient) reimageCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if options != nil && options.VMScaleSetVMReimageInput != nil {
+ return req, runtime.MarshalAsJSON(req, *options.VMScaleSetVMReimageInput)
+ }
+ return req, nil
+}
+
+// BeginReimageAll - Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation
+// is only supported for managed disks.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginReimageAll
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginReimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageAllOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientReimageAllResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reimageAll(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientReimageAllResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientReimageAllResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// ReimageAll - Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation
+// is only supported for managed disks.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) reimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageAllOptions) (*http.Response, error) {
+ req, err := client.reimageAllCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// reimageAllCreateRequest creates the ReimageAll request.
+func (client *VirtualMachineScaleSetVMsClient) reimageAllCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageAllOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginRestart - Restarts a virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRestart
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginRestart(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRestartOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientRestartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.restart(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientRestartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientRestartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Restart - Restarts a virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) restart(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRestartOptions) (*http.Response, error) {
+ req, err := client.restartCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// restartCreateRequest creates the Restart request.
+func (client *VirtualMachineScaleSetVMsClient) restartCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRestartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// RetrieveBootDiagnosticsData - The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM
+// scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.RetrieveBootDiagnosticsData
+// method.
+func (client *VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions) (VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse, error) {
+ req, err := client.retrieveBootDiagnosticsDataCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.retrieveBootDiagnosticsDataHandleResponse(resp)
+}
+
+// retrieveBootDiagnosticsDataCreateRequest creates the RetrieveBootDiagnosticsData request.
+func (client *VirtualMachineScaleSetVMsClient) retrieveBootDiagnosticsDataCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.SasURIExpirationTimeInMinutes != nil {
+ reqQP.Set("sasUriExpirationTimeInMinutes", strconv.FormatInt(int64(*options.SasURIExpirationTimeInMinutes), 10))
+ }
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// retrieveBootDiagnosticsDataHandleResponse handles the RetrieveBootDiagnosticsData response.
+func (client *VirtualMachineScaleSetVMsClient) retrieveBootDiagnosticsDataHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse, error) {
+ result := VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.RetrieveBootDiagnosticsDataResult); err != nil {
+ return VirtualMachineScaleSetVMsClientRetrieveBootDiagnosticsDataResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginRunCommand - Run command on a virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// parameters - Parameters supplied to the Run command operation.
+// options - VirtualMachineScaleSetVMsClientBeginRunCommandOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginRunCommand
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginRunCommand(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters RunCommandInput, options *VirtualMachineScaleSetVMsClientBeginRunCommandOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientRunCommandResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.runCommand(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[VirtualMachineScaleSetVMsClientRunCommandResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ })
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientRunCommandResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// RunCommand - Run command on a virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) runCommand(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters RunCommandInput, options *VirtualMachineScaleSetVMsClientBeginRunCommandOptions) (*http.Response, error) {
+ req, err := client.runCommandCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// runCommandCreateRequest creates the RunCommand request.
+func (client *VirtualMachineScaleSetVMsClient) runCommandCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters RunCommandInput, options *VirtualMachineScaleSetVMsClientBeginRunCommandOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json, text/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// SimulateEviction - The operation to simulate the eviction of spot virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientSimulateEvictionOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.SimulateEviction
+// method.
+func (client *VirtualMachineScaleSetVMsClient) SimulateEviction(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientSimulateEvictionOptions) (VirtualMachineScaleSetVMsClientSimulateEvictionResponse, error) {
+ req, err := client.simulateEvictionCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusNoContent) {
+ return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, runtime.NewResponseError(resp)
+ }
+ return VirtualMachineScaleSetVMsClientSimulateEvictionResponse{}, nil
+}
+
+// simulateEvictionCreateRequest creates the SimulateEviction request.
+func (client *VirtualMachineScaleSetVMsClient) simulateEvictionCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientSimulateEvictionOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginStart - Starts a virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set.
+// instanceID - The instance ID of the virtual machine.
+// options - VirtualMachineScaleSetVMsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginStart
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginStart(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginStartOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientStartResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.start(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientStartResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientStartResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Start - Starts a virtual machine in a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) start(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginStartOptions) (*http.Response, error) {
+ req, err := client.startCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// startCreateRequest creates the Start request.
+func (client *VirtualMachineScaleSetVMsClient) startCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginStartOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// BeginUpdate - Updates a virtual machine of a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// resourceGroupName - The name of the resource group.
+// vmScaleSetName - The name of the VM scale set where the extension should be create or updated.
+// instanceID - The instance ID of the virtual machine.
+// parameters - Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
+// options - VirtualMachineScaleSetVMsClientBeginUpdateOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.BeginUpdate
+// method.
+func (client *VirtualMachineScaleSetVMsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters VirtualMachineScaleSetVM, options *VirtualMachineScaleSetVMsClientBeginUpdateOptions) (*runtime.Poller[VirtualMachineScaleSetVMsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ return runtime.NewPoller[VirtualMachineScaleSetVMsClientUpdateResponse](resp, client.pl, nil)
+ } else {
+ return runtime.NewPollerFromResumeToken[VirtualMachineScaleSetVMsClientUpdateResponse](options.ResumeToken, client.pl, nil)
+ }
+}
+
+// Update - Updates a virtual machine of a VM scale set.
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+func (client *VirtualMachineScaleSetVMsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters VirtualMachineScaleSetVM, options *VirtualMachineScaleSetVMsClientBeginUpdateOptions) (*http.Response, error) {
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, vmScaleSetName, instanceID, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) {
+ return nil, runtime.NewResponseError(resp)
+ }
+ return resp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *VirtualMachineScaleSetVMsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters VirtualMachineScaleSetVM, options *VirtualMachineScaleSetVMsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}"
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if vmScaleSetName == "" {
+ return nil, errors.New("parameter vmScaleSetName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{vmScaleSetName}", url.PathEscape(vmScaleSetName))
+ if instanceID == "" {
+ return nil, errors.New("parameter instanceID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{instanceId}", url.PathEscape(instanceID))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinesizes_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinesizes_client.go
new file mode 100644
index 0000000000..8add0cc32f
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/zz_generated_virtualmachinesizes_client.go
@@ -0,0 +1,115 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armcompute
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// VirtualMachineSizesClient contains the methods for the VirtualMachineSizes group.
+// Don't use this type directly, use NewVirtualMachineSizesClient() instead.
+type VirtualMachineSizesClient struct {
+ host string
+ subscriptionID string
+ pl runtime.Pipeline
+}
+
+// NewVirtualMachineSizesClient creates a new instance of VirtualMachineSizesClient with the specified values.
+// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+// part of the URI for every service call.
+// credential - used to authorize requests. Usually a credential from azidentity.
+// options - pass nil to accept the default values.
+func NewVirtualMachineSizesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineSizesClient, error) {
+ if options == nil {
+ options = &arm.ClientOptions{}
+ }
+ ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint
+ if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok {
+ ep = c.Endpoint
+ }
+ pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &VirtualMachineSizesClient{
+ subscriptionID: subscriptionID,
+ host: ep,
+ pl: pl,
+ }
+ return client, nil
+}
+
+// NewListPager - This API is deprecated. Use Resources Skus [https://docs.microsoft.com/rest/api/compute/resourceskus/list]
+// If the operation fails it returns an *azcore.ResponseError type.
+// Generated from API version 2022-03-01
+// location - The location upon which virtual-machine-sizes is queried.
+// options - VirtualMachineSizesClientListOptions contains the optional parameters for the VirtualMachineSizesClient.List
+// method.
+func (client *VirtualMachineSizesClient) NewListPager(location string, options *VirtualMachineSizesClientListOptions) *runtime.Pager[VirtualMachineSizesClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[VirtualMachineSizesClientListResponse]{
+ More: func(page VirtualMachineSizesClientListResponse) bool {
+ return false
+ },
+ Fetcher: func(ctx context.Context, page *VirtualMachineSizesClientListResponse) (VirtualMachineSizesClientListResponse, error) {
+ req, err := client.listCreateRequest(ctx, location, options)
+ if err != nil {
+ return VirtualMachineSizesClientListResponse{}, err
+ }
+ resp, err := client.pl.Do(req)
+ if err != nil {
+ return VirtualMachineSizesClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return VirtualMachineSizesClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *VirtualMachineSizesClient) listCreateRequest(ctx context.Context, location string, options *VirtualMachineSizesClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes"
+ if location == "" {
+ return nil, errors.New("parameter location cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location))
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2022-03-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *VirtualMachineSizesClient) listHandleResponse(resp *http.Response) (VirtualMachineSizesClientListResponse, error) {
+ result := VirtualMachineSizesClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineSizeListResult); err != nil {
+ return VirtualMachineSizesClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential/confidential.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential/confidential.go
index 22c17d2012..549d68ab99 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential/confidential.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential/confidential.go
@@ -65,6 +65,13 @@ type AuthenticationScheme = authority.AuthenticationScheme
type Account = shared.Account
+type TokenSource = base.TokenSource
+
+const (
+ TokenSourceIdentityProvider = base.TokenSourceIdentityProvider
+ TokenSourceCache = base.TokenSourceCache
+)
+
// CertFromPEM converts a PEM file (.pem or .key) for use with [NewCredFromCert]. The file
// must contain the public certificate and the private key. If a PEM block is encrypted and
// password is not an empty string, it attempts to decrypt the PEM blocks using the password.
@@ -639,7 +646,7 @@ func (cca Client) AcquireTokenByUsernamePassword(ctx context.Context, scopes []s
if err != nil {
return AuthResult{}, err
}
- return cca.base.AuthResultFromToken(ctx, authParams, token, true)
+ return cca.base.AuthResultFromToken(ctx, authParams, token)
}
// acquireTokenByAuthCodeOptions contains the optional parameters used to acquire an access token using the authorization code flow.
@@ -733,7 +740,7 @@ func (cca Client) AcquireTokenByCredential(ctx context.Context, scopes []string,
if err != nil {
return AuthResult{}, err
}
- return cca.base.AuthResultFromToken(ctx, authParams, token, true)
+ return cca.base.AuthResultFromToken(ctx, authParams, token)
}
// acquireTokenOnBehalfOfOptions contains optional configuration for AcquireTokenOnBehalfOf
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors/errors.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors/errors.go
index c9b8dbed08..b5cbb57217 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors/errors.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors/errors.go
@@ -64,11 +64,20 @@ type CallErr struct {
Err error
}
+type InvalidJsonErr struct {
+ Err error
+}
+
// Errors implements error.Error().
func (e CallErr) Error() string {
return e.Err.Error()
}
+// Errors implements error.Error().
+func (e InvalidJsonErr) Error() string {
+ return e.Err.Error()
+}
+
// Verbose prints a versbose error message with the request or response.
func (e CallErr) Verbose() string {
e.Resp.Request = nil // This brings in a bunch of TLS crap we don't need
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/base.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/base.go
index e473d1267d..61c1c4cec1 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/base.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/base.go
@@ -5,16 +5,17 @@ package base
import (
"context"
- "errors"
"fmt"
"net/url"
"reflect"
"strings"
"sync"
+ "sync/atomic"
"time"
"github.com/AzureAD/microsoft-authentication-library-for-go/apps/cache"
- "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage"
"github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth"
"github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens"
"github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority"
@@ -94,6 +95,7 @@ type AuthResult struct {
// AuthResultMetadata which contains meta data for the AuthResult
type AuthResultMetadata struct {
+ RefreshOn time.Time
TokenSource TokenSource
}
@@ -101,9 +103,8 @@ type TokenSource int
// These are all the types of token flows.
const (
- SourceUnknown TokenSource = 0
- IdentityProvider TokenSource = 1
- Cache TokenSource = 2
+ TokenSourceIdentityProvider TokenSource = 0
+ TokenSourceCache TokenSource = 1
)
// AuthResultFromStorage creates an AuthResult from a storage token response (which is generated from the cache).
@@ -111,7 +112,6 @@ func AuthResultFromStorage(storageTokenResponse storage.TokenResponse) (AuthResu
if err := storageTokenResponse.AccessToken.Validate(); err != nil {
return AuthResult{}, fmt.Errorf("problem with access token in StorageTokenResponse: %w", err)
}
-
account := storageTokenResponse.Account
accessToken := storageTokenResponse.AccessToken.Secret
grantedScopes := strings.Split(storageTokenResponse.AccessToken.Scopes, scopeSeparator)
@@ -132,7 +132,8 @@ func AuthResultFromStorage(storageTokenResponse storage.TokenResponse) (AuthResu
GrantedScopes: grantedScopes,
DeclinedScopes: nil,
Metadata: AuthResultMetadata{
- TokenSource: Cache,
+ TokenSource: TokenSourceCache,
+ RefreshOn: storageTokenResponse.AccessToken.RefreshOn.T,
},
}, nil
}
@@ -146,10 +147,11 @@ func NewAuthResult(tokenResponse accesstokens.TokenResponse, account shared.Acco
Account: account,
IDToken: tokenResponse.IDToken,
AccessToken: tokenResponse.AccessToken,
- ExpiresOn: tokenResponse.ExpiresOn.T,
+ ExpiresOn: tokenResponse.ExpiresOn,
GrantedScopes: tokenResponse.GrantedScopes.Slice,
Metadata: AuthResultMetadata{
- TokenSource: IdentityProvider,
+ TokenSource: TokenSourceIdentityProvider,
+ RefreshOn: tokenResponse.RefreshOn.T,
},
}, nil
}
@@ -165,6 +167,8 @@ type Client struct {
AuthParams authority.AuthParams // DO NOT EVER MAKE THIS A POINTER! See "Note" in New().
cacheAccessor cache.ExportReplace
cacheAccessorMu *sync.RWMutex
+ canRefresh map[string]*atomic.Value
+ canRefreshMu *sync.Mutex
}
// Option is an optional argument to the New constructor.
@@ -241,6 +245,8 @@ func New(clientID string, authorityURI string, token *oauth.Client, options ...O
cacheAccessorMu: &sync.RWMutex{},
manager: storage.New(token),
pmanager: storage.NewPartitionedManager(token),
+ canRefresh: make(map[string]*atomic.Value),
+ canRefreshMu: &sync.Mutex{},
}
for _, o := range options {
if err = o(&client); err != nil {
@@ -345,6 +351,28 @@ func (b Client) AcquireTokenSilent(ctx context.Context, silent AcquireTokenSilen
if silent.Claims == "" {
ar, err = AuthResultFromStorage(storageTokenResponse)
if err == nil {
+ if rt := storageTokenResponse.AccessToken.RefreshOn.T; !rt.IsZero() && Now().After(rt) {
+ b.canRefreshMu.Lock()
+ refreshValue, ok := b.canRefresh[tenant]
+ if !ok {
+ refreshValue = &atomic.Value{}
+ refreshValue.Store(false)
+ b.canRefresh[tenant] = refreshValue
+ }
+ b.canRefreshMu.Unlock()
+ if refreshValue.CompareAndSwap(false, true) {
+ defer refreshValue.Store(false)
+ // Added a check to see if the token is still same because there is a chance
+ // that the token is already refreshed by another thread.
+ // If the token is not same, we don't need to refresh it.
+ // Which means it refreshed.
+ if str, err := m.Read(ctx, authParams); err == nil && str.AccessToken.Secret == ar.AccessToken {
+ if tr, er := b.Token.Credential(ctx, authParams, silent.Credential); er == nil {
+ return b.AuthResultFromToken(ctx, authParams, tr)
+ }
+ }
+ }
+ }
ar.AccessToken, err = authParams.AuthnScheme.FormatAccessToken(ar.AccessToken)
return ar, err
}
@@ -362,7 +390,7 @@ func (b Client) AcquireTokenSilent(ctx context.Context, silent AcquireTokenSilen
if err != nil {
return ar, err
}
- return b.AuthResultFromToken(ctx, authParams, token, true)
+ return b.AuthResultFromToken(ctx, authParams, token)
}
func (b Client) AcquireTokenByAuthCode(ctx context.Context, authCodeParams AcquireTokenAuthCodeParameters) (AuthResult, error) {
@@ -391,7 +419,7 @@ func (b Client) AcquireTokenByAuthCode(ctx context.Context, authCodeParams Acqui
return AuthResult{}, err
}
- return b.AuthResultFromToken(ctx, authParams, token, true)
+ return b.AuthResultFromToken(ctx, authParams, token)
}
// AcquireTokenOnBehalfOf acquires a security token for an app using middle tier apps access token.
@@ -420,15 +448,12 @@ func (b Client) AcquireTokenOnBehalfOf(ctx context.Context, onBehalfOfParams Acq
authParams.UserAssertion = onBehalfOfParams.UserAssertion
token, err := b.Token.OnBehalfOf(ctx, authParams, onBehalfOfParams.Credential)
if err == nil {
- ar, err = b.AuthResultFromToken(ctx, authParams, token, true)
+ ar, err = b.AuthResultFromToken(ctx, authParams, token)
}
return ar, err
}
-func (b Client) AuthResultFromToken(ctx context.Context, authParams authority.AuthParams, token accesstokens.TokenResponse, cacheWrite bool) (AuthResult, error) {
- if !cacheWrite {
- return NewAuthResult(token, shared.Account{})
- }
+func (b Client) AuthResultFromToken(ctx context.Context, authParams authority.AuthParams, token accesstokens.TokenResponse) (AuthResult, error) {
var m manager = b.manager
if authParams.AuthorizationType == authority.ATOnBehalfOf {
m = b.pmanager
@@ -458,6 +483,10 @@ func (b Client) AuthResultFromToken(ctx context.Context, authParams authority.Au
return ar, err
}
+// This function wraps time.Now() and is used for refreshing the application
+// was created to test the function against refreshin
+var Now = time.Now
+
func (b Client) AllAccounts(ctx context.Context) ([]shared.Account, error) {
if b.cacheAccessor != nil {
b.cacheAccessorMu.RLock()
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/items.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/items.go
similarity index 95%
rename from vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/items.go
rename to vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/items.go
index f9be90276d..7379e2233c 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/items.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/items.go
@@ -72,6 +72,7 @@ type AccessToken struct {
ClientID string `json:"client_id,omitempty"`
Secret string `json:"secret,omitempty"`
Scopes string `json:"target,omitempty"`
+ RefreshOn internalTime.Unix `json:"refresh_on,omitempty"`
ExpiresOn internalTime.Unix `json:"expires_on,omitempty"`
ExtendedExpiresOn internalTime.Unix `json:"extended_expires_on,omitempty"`
CachedAt internalTime.Unix `json:"cached_at,omitempty"`
@@ -83,7 +84,7 @@ type AccessToken struct {
}
// NewAccessToken is the constructor for AccessToken.
-func NewAccessToken(homeID, env, realm, clientID string, cachedAt, expiresOn, extendedExpiresOn time.Time, scopes, token, tokenType, authnSchemeKeyID string) AccessToken {
+func NewAccessToken(homeID, env, realm, clientID string, cachedAt, refreshOn, expiresOn, extendedExpiresOn time.Time, scopes, token, tokenType, authnSchemeKeyID string) AccessToken {
return AccessToken{
HomeAccountID: homeID,
Environment: env,
@@ -93,6 +94,7 @@ func NewAccessToken(homeID, env, realm, clientID string, cachedAt, expiresOn, ex
Secret: token,
Scopes: scopes,
CachedAt: internalTime.Unix{T: cachedAt.UTC()},
+ RefreshOn: internalTime.Unix{T: refreshOn.UTC()},
ExpiresOn: internalTime.Unix{T: expiresOn.UTC()},
ExtendedExpiresOn: internalTime.Unix{T: extendedExpiresOn.UTC()},
TokenType: tokenType,
@@ -102,8 +104,9 @@ func NewAccessToken(homeID, env, realm, clientID string, cachedAt, expiresOn, ex
// Key outputs the key that can be used to uniquely look up this entry in a map.
func (a AccessToken) Key() string {
+ ks := []string{a.HomeAccountID, a.Environment, a.CredentialType, a.ClientID, a.Realm, a.Scopes}
key := strings.Join(
- []string{a.HomeAccountID, a.Environment, a.CredentialType, a.ClientID, a.Realm, a.Scopes},
+ ks,
shared.CacheKeySeparator,
)
// add token type to key for new access tokens types. skip for bearer token type to
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/partitioned_storage.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/partitioned_storage.go
similarity index 99%
rename from vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/partitioned_storage.go
rename to vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/partitioned_storage.go
index c093183306..ff07d4b5a4 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/partitioned_storage.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/partitioned_storage.go
@@ -114,7 +114,8 @@ func (m *PartitionedManager) Write(authParameters authority.AuthParams, tokenRes
realm,
clientID,
cachedAt,
- tokenResponse.ExpiresOn.T,
+ tokenResponse.RefreshOn.T,
+ tokenResponse.ExpiresOn,
tokenResponse.ExtExpiresOn.T,
target,
tokenResponse.AccessToken,
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/storage.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/storage.go
similarity index 98%
rename from vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/storage.go
rename to vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/storage.go
index 2221e60c43..84a234967f 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage/storage.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/storage.go
@@ -173,6 +173,7 @@ func (m *Manager) Write(authParameters authority.AuthParams, tokenResponse acces
environment := authParameters.AuthorityInfo.Host
realm := authParameters.AuthorityInfo.Tenant
clientID := authParameters.ClientID
+
target := strings.Join(tokenResponse.GrantedScopes.Slice, scopeSeparator)
cachedAt := time.Now()
authnSchemeKeyID := authParameters.AuthnScheme.KeyID()
@@ -193,7 +194,8 @@ func (m *Manager) Write(authParameters authority.AuthParams, tokenResponse acces
realm,
clientID,
cachedAt,
- tokenResponse.ExpiresOn.T,
+ tokenResponse.RefreshOn.T,
+ tokenResponse.ExpiresOn,
tokenResponse.ExtExpiresOn.T,
target,
tokenResponse.AccessToken,
@@ -265,6 +267,9 @@ func (m *Manager) aadMetadataFromCache(ctx context.Context, authorityInfo author
}
func (m *Manager) aadMetadata(ctx context.Context, authorityInfo authority.Info) (authority.InstanceDiscoveryMetadata, error) {
+ if m.requests == nil {
+ return authority.InstanceDiscoveryMetadata{}, fmt.Errorf("httpclient in oauth instance for fetching metadata is nil")
+ }
m.aadCacheMu.Lock()
defer m.aadCacheMu.Unlock()
discoveryResponse, err := m.requests.AADInstanceDiscovery(ctx, authorityInfo)
@@ -459,6 +464,7 @@ func (m *Manager) readAccount(homeAccountID string, envAliases []string, realm s
func (m *Manager) writeAccount(account shared.Account) error {
key := account.Key()
+
m.contractMu.Lock()
defer m.contractMu.Unlock()
m.contract.Accounts[key] = account
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/exported/exported.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/exported/exported.go
index 7b673e3fe1..de1bf381f4 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/exported/exported.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/exported/exported.go
@@ -31,4 +31,6 @@ type TokenProviderResult struct {
AccessToken string
// ExpiresInSeconds is the lifetime of the token in seconds
ExpiresInSeconds int
+ // RefreshInSeconds indicates the suggested time to refresh the token, if any
+ RefreshInSeconds int
}
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/local/server.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/local/server.go
index fda5d7dd33..cda678e334 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/local/server.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/local/server.go
@@ -146,7 +146,8 @@ func (s *Server) handler(w http.ResponseWriter, r *http.Request) {
// Note: It is a little weird we handle some errors by not going to the failPage. If they all should,
// change this to s.error() and make s.error() write the failPage instead of an error code.
_, _ = w.Write([]byte(fmt.Sprintf(failPage, headerErr, desc)))
- s.putResult(Result{Err: fmt.Errorf(desc)})
+ s.putResult(Result{Err: fmt.Errorf("%s", desc)})
+
return
}
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/oauth.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/oauth.go
index e065313444..738a29eb9d 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/oauth.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/oauth.go
@@ -111,7 +111,7 @@ func (t *Client) Credential(ctx context.Context, authParams authority.AuthParams
Scopes: scopes,
TenantID: authParams.AuthorityInfo.Tenant,
}
- tr, err := cred.TokenProvider(ctx, params)
+ pr, err := cred.TokenProvider(ctx, params)
if err != nil {
if len(scopes) == 0 {
err = fmt.Errorf("token request had an empty authority.AuthParams.Scopes, which may cause the following error: %w", err)
@@ -119,14 +119,18 @@ func (t *Client) Credential(ctx context.Context, authParams authority.AuthParams
}
return accesstokens.TokenResponse{}, err
}
- return accesstokens.TokenResponse{
- TokenType: authParams.AuthnScheme.AccessTokenType(),
- AccessToken: tr.AccessToken,
- ExpiresOn: internalTime.DurationTime{
- T: now.Add(time.Duration(tr.ExpiresInSeconds) * time.Second),
- },
+ tr := accesstokens.TokenResponse{
+ TokenType: authParams.AuthnScheme.AccessTokenType(),
+ AccessToken: pr.AccessToken,
+ ExpiresOn: now.Add(time.Duration(pr.ExpiresInSeconds) * time.Second),
GrantedScopes: accesstokens.Scopes{Slice: authParams.Scopes},
- }, nil
+ }
+ if pr.RefreshInSeconds > 0 {
+ tr.RefreshOn = internalTime.DurationTime{
+ T: now.Add(time.Duration(pr.RefreshInSeconds) * time.Second),
+ }
+ }
+ return tr, nil
}
if err := t.resolveEndpoint(ctx, &authParams, ""); err != nil {
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/accesstokens.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/accesstokens.go
index a7b7b0742d..d738c7591e 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/accesstokens.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/accesstokens.go
@@ -17,6 +17,7 @@ import (
/* #nosec */
"crypto/sha1"
+ "crypto/sha256"
"crypto/x509"
"encoding/base64"
"encoding/json"
@@ -68,7 +69,7 @@ type DeviceCodeResponse struct {
UserCode string `json:"user_code"`
DeviceCode string `json:"device_code"`
- VerificationURL string `json:"verification_url"`
+ VerificationURL string `json:"verification_uri"`
ExpiresIn int `json:"expires_in"`
Interval int `json:"interval"`
Message string `json:"message"`
@@ -112,19 +113,31 @@ func (c *Credential) JWT(ctx context.Context, authParams authority.AuthParams) (
}
return c.AssertionCallback(ctx, options)
}
-
- token := jwt.NewWithClaims(jwt.SigningMethodRS256, jwt.MapClaims{
+ claims := jwt.MapClaims{
"aud": authParams.Endpoints.TokenEndpoint,
"exp": json.Number(strconv.FormatInt(time.Now().Add(10*time.Minute).Unix(), 10)),
"iss": authParams.ClientID,
"jti": uuid.New().String(),
"nbf": json.Number(strconv.FormatInt(time.Now().Unix(), 10)),
"sub": authParams.ClientID,
- })
+ }
+
+ isADFSorDSTS := authParams.AuthorityInfo.AuthorityType == authority.ADFS ||
+ authParams.AuthorityInfo.AuthorityType == authority.DSTS
+
+ var signingMethod jwt.SigningMethod = jwt.SigningMethodPS256
+ thumbprintKey := "x5t#S256"
+
+ if isADFSorDSTS {
+ signingMethod = jwt.SigningMethodRS256
+ thumbprintKey = "x5t"
+ }
+
+ token := jwt.NewWithClaims(signingMethod, claims)
token.Header = map[string]interface{}{
- "alg": "RS256",
- "typ": "JWT",
- "x5t": base64.StdEncoding.EncodeToString(thumbprint(c.Cert)),
+ "alg": signingMethod.Alg(),
+ "typ": "JWT",
+ thumbprintKey: base64.StdEncoding.EncodeToString(thumbprint(c.Cert, signingMethod.Alg())),
}
if authParams.SendX5C {
@@ -133,17 +146,23 @@ func (c *Credential) JWT(ctx context.Context, authParams authority.AuthParams) (
assertion, err := token.SignedString(c.Key)
if err != nil {
- return "", fmt.Errorf("unable to sign a JWT token using private key: %w", err)
+ return "", fmt.Errorf("unable to sign JWT token: %w", err)
}
+
return assertion, nil
}
// thumbprint runs the asn1.Der bytes through sha1 for use in the x5t parameter of JWT.
// https://tools.ietf.org/html/rfc7517#section-4.8
-func thumbprint(cert *x509.Certificate) []byte {
- /* #nosec */
- a := sha1.Sum(cert.Raw)
- return a[:]
+func thumbprint(cert *x509.Certificate, alg string) []byte {
+ switch alg {
+ case jwt.SigningMethodRS256.Name: // identity providers like ADFS don't support SHA256 assertions, so need to support this
+ hash := sha1.Sum(cert.Raw) /* #nosec */
+ return hash[:]
+ default:
+ hash := sha256.Sum256(cert.Raw)
+ return hash[:]
+ }
}
// Client represents the REST calls to get tokens from token generator backends.
@@ -262,11 +281,7 @@ func (c Client) FromClientSecret(ctx context.Context, authParameters authority.A
qv.Set(clientID, authParameters.ClientID)
addScopeQueryParam(qv, authParameters)
- token, err := c.doTokenResp(ctx, authParameters, qv)
- if err != nil {
- return token, fmt.Errorf("FromClientSecret(): %w", err)
- }
- return token, nil
+ return c.doTokenResp(ctx, authParameters, qv)
}
func (c Client) FromAssertion(ctx context.Context, authParameters authority.AuthParams, assertion string) (TokenResponse, error) {
@@ -281,11 +296,7 @@ func (c Client) FromAssertion(ctx context.Context, authParameters authority.Auth
qv.Set(clientInfo, clientInfoVal)
addScopeQueryParam(qv, authParameters)
- token, err := c.doTokenResp(ctx, authParameters, qv)
- if err != nil {
- return token, fmt.Errorf("FromAssertion(): %w", err)
- }
- return token, nil
+ return c.doTokenResp(ctx, authParameters, qv)
}
func (c Client) FromUserAssertionClientSecret(ctx context.Context, authParameters authority.AuthParams, userAssertion string, clientSecret string) (TokenResponse, error) {
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/tokens.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/tokens.go
index 3107b45c11..32dde7b76b 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/tokens.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/tokens.go
@@ -10,6 +10,7 @@ import (
"errors"
"fmt"
"reflect"
+ "strconv"
"strings"
"time"
@@ -173,14 +174,75 @@ type TokenResponse struct {
FamilyID string `json:"foci"`
IDToken IDToken `json:"id_token"`
ClientInfo ClientInfo `json:"client_info"`
- ExpiresOn internalTime.DurationTime `json:"expires_in"`
+ RefreshOn internalTime.DurationTime `json:"refresh_in,omitempty"`
+ ExpiresOn time.Time `json:"-"`
ExtExpiresOn internalTime.DurationTime `json:"ext_expires_in"`
GrantedScopes Scopes `json:"scope"`
DeclinedScopes []string // This is derived
AdditionalFields map[string]interface{}
+ scopesComputed bool
+}
- scopesComputed bool
+func (tr *TokenResponse) UnmarshalJSON(data []byte) error {
+ type Alias TokenResponse
+ aux := &struct {
+ ExpiresIn internalTime.DurationTime `json:"expires_in,omitempty"`
+ ExpiresOn any `json:"expires_on,omitempty"`
+ *Alias
+ }{
+ Alias: (*Alias)(tr),
+ }
+
+ // Unmarshal the JSON data into the aux struct
+ if err := json.Unmarshal(data, &aux); err != nil {
+ return err
+ }
+
+ // Function to parse different date formats
+ // This is a workaround for the issue described here:
+ // https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/4963
+ parseExpiresOn := func(expiresOn string) (time.Time, error) {
+ var formats = []string{
+ "01/02/2006 15:04:05", // MM/dd/yyyy HH:mm:ss
+ "2006-01-02 15:04:05", // yyyy-MM-dd HH:mm:ss
+ time.RFC3339Nano, // ISO 8601 (with nanosecond precision)
+ }
+
+ for _, format := range formats {
+ if t, err := time.Parse(format, expiresOn); err == nil {
+ return t, nil
+ }
+ }
+ return time.Time{}, fmt.Errorf("invalid ExpiresOn format: %s", expiresOn)
+ }
+
+ if expiresOnStr, ok := aux.ExpiresOn.(string); ok {
+ if ts, err := strconv.ParseInt(expiresOnStr, 10, 64); err == nil {
+ tr.ExpiresOn = time.Unix(ts, 0)
+ return nil
+ }
+ if expiresOnStr != "" {
+ if t, err := parseExpiresOn(expiresOnStr); err != nil {
+ return err
+ } else {
+ tr.ExpiresOn = t
+ return nil
+ }
+ }
+ }
+
+ // Check if ExpiresOn is a number (Unix timestamp or ISO 8601)
+ if expiresOnNum, ok := aux.ExpiresOn.(float64); ok {
+ tr.ExpiresOn = time.Unix(int64(expiresOnNum), 0)
+ return nil
+ }
+
+ if !aux.ExpiresIn.T.IsZero() {
+ tr.ExpiresOn = aux.ExpiresIn.T
+ return nil
+ }
+ return errors.New("expires_in and expires_on are both missing or invalid")
}
// ComputeScope computes the final scopes based on what was granted by the server and
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/internal/comm/comm.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/internal/comm/comm.go
index d62aac74eb..7906803669 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/internal/comm/comm.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/internal/comm/comm.go
@@ -98,7 +98,7 @@ func (c *Client) JSONCall(ctx context.Context, endpoint string, headers http.Hea
if resp != nil {
if err := unmarshal(data, resp); err != nil {
- return fmt.Errorf("json decode error: %w\njson message bytes were: %s", err, string(data))
+ return errors.InvalidJsonErr{Err: fmt.Errorf("json decode error: %w\njson message bytes were: %s", err, string(data))}
}
}
return nil
@@ -221,7 +221,7 @@ func (c *Client) URLFormCall(ctx context.Context, endpoint string, qv url.Values
}
if resp != nil {
if err := unmarshal(data, resp); err != nil {
- return fmt.Errorf("json decode error: %w\nraw message was: %s", err, string(data))
+ return errors.InvalidJsonErr{Err: fmt.Errorf("json decode error: %w\nraw message was: %s", err, string(data))}
}
}
return nil
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/version/version.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/version/version.go
index eb16b405c4..5e551abc83 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/version/version.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/version/version.go
@@ -5,4 +5,4 @@
package version
// Version is the version of this client package that is communicated to the server.
-const Version = "1.2.0"
+const Version = "1.4.2"
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/azure_ml.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/azure_ml.go
new file mode 100644
index 0000000000..d7cffc295e
--- /dev/null
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/azure_ml.go
@@ -0,0 +1,28 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT license.
+
+package managedidentity
+
+import (
+ "context"
+ "net/http"
+ "os"
+)
+
+func createAzureMLAuthRequest(ctx context.Context, id ID, resource string) (*http.Request, error) {
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, os.Getenv(msiEndpointEnvVar), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("secret", os.Getenv(msiSecretEnvVar))
+ q := req.URL.Query()
+ q.Set(apiVersionQueryParameterName, azureMLAPIVersion)
+ q.Set(resourceQueryParameterName, resource)
+ q.Set("clientid", os.Getenv("DEFAULT_IDENTITY_CLIENT_ID"))
+ if cid, ok := id.(UserAssignedClientID); ok {
+ q.Set("clientid", string(cid))
+ }
+ req.URL.RawQuery = q.Encode()
+ return req, nil
+}
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/cloud_shell.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/cloud_shell.go
new file mode 100644
index 0000000000..be9a0bca38
--- /dev/null
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/cloud_shell.go
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT license.
+
+package managedidentity
+
+import (
+ "context"
+ "fmt"
+ "io"
+ "net/http"
+ "net/url"
+ "os"
+ "strings"
+)
+
+func createCloudShellAuthRequest(ctx context.Context, resource string) (*http.Request, error) {
+ msiEndpoint := os.Getenv(msiEndpointEnvVar)
+ msiEndpointParsed, err := url.Parse(msiEndpoint)
+ if err != nil {
+ return nil, fmt.Errorf("couldn't parse %q: %s", msiEndpoint, err)
+ }
+
+ data := url.Values{}
+ data.Set(resourceQueryParameterName, resource)
+ msiDataEncoded := data.Encode()
+ body := io.NopCloser(strings.NewReader(msiDataEncoded))
+
+ req, err := http.NewRequestWithContext(ctx, http.MethodPost, msiEndpointParsed.String(), body)
+ if err != nil {
+ return nil, fmt.Errorf("error creating http request %s", err)
+ }
+
+ req.Header.Set(metaHTTPHeaderName, "true")
+ req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
+
+ return req, nil
+}
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/managedidentity.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/managedidentity.go
new file mode 100644
index 0000000000..ca3de4325f
--- /dev/null
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/managedidentity.go
@@ -0,0 +1,717 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT license.
+
+/*
+Package managedidentity provides a client for retrieval of Managed Identity applications.
+The Managed Identity Client is used to acquire a token for managed identity assigned to
+an azure resource such as Azure function, app service, virtual machine, etc. to acquire a token
+without using credentials.
+*/
+package managedidentity
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "io"
+ "net/http"
+ "net/url"
+ "os"
+ "path/filepath"
+ "runtime"
+ "strings"
+ "sync/atomic"
+ "time"
+
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority"
+ "github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/shared"
+)
+
+// AuthResult contains the results of one token acquisition operation.
+// For details see https://aka.ms/msal-net-authenticationresult
+type AuthResult = base.AuthResult
+
+type TokenSource = base.TokenSource
+
+const (
+ TokenSourceIdentityProvider = base.TokenSourceIdentityProvider
+ TokenSourceCache = base.TokenSourceCache
+)
+
+const (
+ // DefaultToIMDS indicates that the source is defaulted to IMDS when no environment variables are set.
+ DefaultToIMDS Source = "DefaultToIMDS"
+ AzureArc Source = "AzureArc"
+ ServiceFabric Source = "ServiceFabric"
+ CloudShell Source = "CloudShell"
+ AzureML Source = "AzureML"
+ AppService Source = "AppService"
+
+ // General request query parameter names
+ metaHTTPHeaderName = "Metadata"
+ apiVersionQueryParameterName = "api-version"
+ resourceQueryParameterName = "resource"
+ wwwAuthenticateHeaderName = "www-authenticate"
+
+ // UAMI query parameter name
+ miQueryParameterClientId = "client_id"
+ miQueryParameterObjectId = "object_id"
+ miQueryParameterPrincipalId = "principal_id"
+ miQueryParameterResourceIdIMDS = "msi_res_id"
+ miQueryParameterResourceId = "mi_res_id"
+
+ // IMDS
+ imdsDefaultEndpoint = "http://169.254.169.254/metadata/identity/oauth2/token"
+ imdsAPIVersion = "2018-02-01"
+ systemAssignedManagedIdentity = "system_assigned_managed_identity"
+
+ // Azure Arc
+ azureArcEndpoint = "http://127.0.0.1:40342/metadata/identity/oauth2/token"
+ azureArcAPIVersion = "2020-06-01"
+ azureArcFileExtension = ".key"
+ azureArcMaxFileSizeBytes int64 = 4096
+ linuxTokenPath = "/var/opt/azcmagent/tokens" // #nosec G101
+ linuxHimdsPath = "/opt/azcmagent/bin/himds"
+ azureConnectedMachine = "AzureConnectedMachineAgent"
+ himdsExecutableName = "himds.exe"
+ tokenName = "Tokens"
+
+ // App Service
+ appServiceAPIVersion = "2019-08-01"
+
+ // AzureML
+ azureMLAPIVersion = "2017-09-01"
+ // Service Fabric
+ serviceFabricAPIVersion = "2019-07-01-preview"
+
+ // Environment Variables
+ identityEndpointEnvVar = "IDENTITY_ENDPOINT"
+ identityHeaderEnvVar = "IDENTITY_HEADER"
+ azurePodIdentityAuthorityHostEnvVar = "AZURE_POD_IDENTITY_AUTHORITY_HOST"
+ imdsEndVar = "IMDS_ENDPOINT"
+ msiEndpointEnvVar = "MSI_ENDPOINT"
+ msiSecretEnvVar = "MSI_SECRET"
+ identityServerThumbprintEnvVar = "IDENTITY_SERVER_THUMBPRINT"
+
+ defaultRetryCount = 3
+)
+
+var retryCodesForIMDS = []int{
+ http.StatusNotFound, // 404
+ http.StatusGone, // 410
+ http.StatusTooManyRequests, // 429
+ http.StatusInternalServerError, // 500
+ http.StatusNotImplemented, // 501
+ http.StatusBadGateway, // 502
+ http.StatusServiceUnavailable, // 503
+ http.StatusGatewayTimeout, // 504
+ http.StatusHTTPVersionNotSupported, // 505
+ http.StatusVariantAlsoNegotiates, // 506
+ http.StatusInsufficientStorage, // 507
+ http.StatusLoopDetected, // 508
+ http.StatusNotExtended, // 510
+ http.StatusNetworkAuthenticationRequired, // 511
+}
+
+var retryStatusCodes = []int{
+ http.StatusRequestTimeout, // 408
+ http.StatusTooManyRequests, // 429
+ http.StatusInternalServerError, // 500
+ http.StatusBadGateway, // 502
+ http.StatusServiceUnavailable, // 503
+ http.StatusGatewayTimeout, // 504
+}
+
+var getAzureArcPlatformPath = func(platform string) string {
+ switch platform {
+ case "windows":
+ return filepath.Join(os.Getenv("ProgramData"), azureConnectedMachine, tokenName)
+ case "linux":
+ return linuxTokenPath
+ default:
+ return ""
+ }
+}
+
+var getAzureArcHimdsFilePath = func(platform string) string {
+ switch platform {
+ case "windows":
+ return filepath.Join(os.Getenv("ProgramData"), azureConnectedMachine, himdsExecutableName)
+ case "linux":
+ return linuxHimdsPath
+ default:
+ return ""
+ }
+}
+
+type Source string
+
+type ID interface {
+ value() string
+}
+
+type systemAssignedValue string // its private for a reason to make the input consistent.
+type UserAssignedClientID string
+type UserAssignedObjectID string
+type UserAssignedResourceID string
+
+func (s systemAssignedValue) value() string { return string(s) }
+func (c UserAssignedClientID) value() string { return string(c) }
+func (o UserAssignedObjectID) value() string { return string(o) }
+func (r UserAssignedResourceID) value() string { return string(r) }
+func SystemAssigned() ID {
+ return systemAssignedValue(systemAssignedManagedIdentity)
+}
+
+// cache never uses the client because instance discovery is always disabled.
+var cacheManager *storage.Manager = storage.New(nil)
+
+type Client struct {
+ httpClient ops.HTTPClient
+ miType ID
+ source Source
+ authParams authority.AuthParams
+ retryPolicyEnabled bool
+ canRefresh *atomic.Value
+}
+
+type AcquireTokenOptions struct {
+ claims string
+}
+
+type ClientOption func(*Client)
+
+type AcquireTokenOption func(o *AcquireTokenOptions)
+
+// WithClaims sets additional claims to request for the token, such as those required by token revocation or conditional access policies.
+// Use this option when Azure AD returned a claims challenge for a prior request. The argument must be decoded.
+func WithClaims(claims string) AcquireTokenOption {
+ return func(o *AcquireTokenOptions) {
+ o.claims = claims
+ }
+}
+
+// WithHTTPClient allows for a custom HTTP client to be set.
+func WithHTTPClient(httpClient ops.HTTPClient) ClientOption {
+ return func(c *Client) {
+ c.httpClient = httpClient
+ }
+}
+
+func WithRetryPolicyDisabled() ClientOption {
+ return func(c *Client) {
+ c.retryPolicyEnabled = false
+ }
+}
+
+// Client to be used to acquire tokens for managed identity.
+// ID: [SystemAssigned], [UserAssignedClientID], [UserAssignedResourceID], [UserAssignedObjectID]
+//
+// Options: [WithHTTPClient]
+func New(id ID, options ...ClientOption) (Client, error) {
+ source, err := GetSource()
+ if err != nil {
+ return Client{}, err
+ }
+
+ // Check for user-assigned restrictions based on the source
+ switch source {
+ case AzureArc:
+ switch id.(type) {
+ case UserAssignedClientID, UserAssignedResourceID, UserAssignedObjectID:
+ return Client{}, errors.New("Azure Arc doesn't support user-assigned managed identities")
+ }
+ case AzureML:
+ switch id.(type) {
+ case UserAssignedObjectID, UserAssignedResourceID:
+ return Client{}, errors.New("Azure ML supports specifying a user-assigned managed identity by client ID only")
+ }
+ case CloudShell:
+ switch id.(type) {
+ case UserAssignedClientID, UserAssignedResourceID, UserAssignedObjectID:
+ return Client{}, errors.New("Cloud Shell doesn't support user-assigned managed identities")
+ }
+ case ServiceFabric:
+ switch id.(type) {
+ case UserAssignedClientID, UserAssignedResourceID, UserAssignedObjectID:
+ return Client{}, errors.New("Service Fabric API doesn't support specifying a user-assigned identity. The identity is determined by cluster resource configuration. See https://aka.ms/servicefabricmi")
+ }
+ }
+
+ switch t := id.(type) {
+ case UserAssignedClientID:
+ if len(string(t)) == 0 {
+ return Client{}, fmt.Errorf("empty %T", t)
+ }
+ case UserAssignedResourceID:
+ if len(string(t)) == 0 {
+ return Client{}, fmt.Errorf("empty %T", t)
+ }
+ case UserAssignedObjectID:
+ if len(string(t)) == 0 {
+ return Client{}, fmt.Errorf("empty %T", t)
+ }
+ case systemAssignedValue:
+ default:
+ return Client{}, fmt.Errorf("unsupported type %T", id)
+ }
+ zero := atomic.Value{}
+ zero.Store(false)
+ client := Client{
+ miType: id,
+ httpClient: shared.DefaultClient,
+ retryPolicyEnabled: true,
+ source: source,
+ canRefresh: &zero,
+ }
+ for _, option := range options {
+ option(&client)
+ }
+ fakeAuthInfo, err := authority.NewInfoFromAuthorityURI("https://login.microsoftonline.com/managed_identity", false, true)
+ if err != nil {
+ return Client{}, err
+ }
+ client.authParams = authority.NewAuthParams(client.miType.value(), fakeAuthInfo)
+ return client, nil
+}
+
+// GetSource detects and returns the managed identity source available on the environment.
+func GetSource() (Source, error) {
+ identityEndpoint := os.Getenv(identityEndpointEnvVar)
+ identityHeader := os.Getenv(identityHeaderEnvVar)
+ identityServerThumbprint := os.Getenv(identityServerThumbprintEnvVar)
+ msiEndpoint := os.Getenv(msiEndpointEnvVar)
+ msiSecret := os.Getenv(msiSecretEnvVar)
+ imdsEndpoint := os.Getenv(imdsEndVar)
+
+ if identityEndpoint != "" && identityHeader != "" {
+ if identityServerThumbprint != "" {
+ return ServiceFabric, nil
+ }
+ return AppService, nil
+ } else if msiEndpoint != "" {
+ if msiSecret != "" {
+ return AzureML, nil
+ } else {
+ return CloudShell, nil
+ }
+ } else if isAzureArcEnvironment(identityEndpoint, imdsEndpoint) {
+ return AzureArc, nil
+ }
+
+ return DefaultToIMDS, nil
+}
+
+// This function wraps time.Now() and is used for refreshing the application
+// was created to test the function against refreshin
+var now = time.Now
+
+// Acquires tokens from the configured managed identity on an azure resource.
+//
+// Resource: scopes application is requesting access to
+// Options: [WithClaims]
+func (c Client) AcquireToken(ctx context.Context, resource string, options ...AcquireTokenOption) (AuthResult, error) {
+ resource = strings.TrimSuffix(resource, "/.default")
+ o := AcquireTokenOptions{}
+ for _, option := range options {
+ option(&o)
+ }
+ c.authParams.Scopes = []string{resource}
+
+ // ignore cached access tokens when given claims
+ if o.claims == "" {
+ stResp, err := cacheManager.Read(ctx, c.authParams)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ ar, err := base.AuthResultFromStorage(stResp)
+ if err == nil {
+ if !stResp.AccessToken.RefreshOn.T.IsZero() && !stResp.AccessToken.RefreshOn.T.After(now()) && c.canRefresh.CompareAndSwap(false, true) {
+ defer c.canRefresh.Store(false)
+ if tr, er := c.getToken(ctx, resource); er == nil {
+ return tr, nil
+ }
+ }
+ ar.AccessToken, err = c.authParams.AuthnScheme.FormatAccessToken(ar.AccessToken)
+ return ar, err
+ }
+ }
+ return c.getToken(ctx, resource)
+}
+
+func (c Client) getToken(ctx context.Context, resource string) (AuthResult, error) {
+ switch c.source {
+ case AzureArc:
+ return c.acquireTokenForAzureArc(ctx, resource)
+ case AzureML:
+ return c.acquireTokenForAzureML(ctx, resource)
+ case CloudShell:
+ return c.acquireTokenForCloudShell(ctx, resource)
+ case DefaultToIMDS:
+ return c.acquireTokenForIMDS(ctx, resource)
+ case AppService:
+ return c.acquireTokenForAppService(ctx, resource)
+ case ServiceFabric:
+ return c.acquireTokenForServiceFabric(ctx, resource)
+ default:
+ return AuthResult{}, fmt.Errorf("unsupported source %q", c.source)
+ }
+}
+
+func (c Client) acquireTokenForAppService(ctx context.Context, resource string) (AuthResult, error) {
+ req, err := createAppServiceAuthRequest(ctx, c.miType, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ tokenResponse, err := c.getTokenForRequest(req, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ return authResultFromToken(c.authParams, tokenResponse)
+}
+
+func (c Client) acquireTokenForIMDS(ctx context.Context, resource string) (AuthResult, error) {
+ req, err := createIMDSAuthRequest(ctx, c.miType, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ tokenResponse, err := c.getTokenForRequest(req, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ return authResultFromToken(c.authParams, tokenResponse)
+}
+
+func (c Client) acquireTokenForCloudShell(ctx context.Context, resource string) (AuthResult, error) {
+ req, err := createCloudShellAuthRequest(ctx, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ tokenResponse, err := c.getTokenForRequest(req, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ return authResultFromToken(c.authParams, tokenResponse)
+}
+
+func (c Client) acquireTokenForAzureML(ctx context.Context, resource string) (AuthResult, error) {
+ req, err := createAzureMLAuthRequest(ctx, c.miType, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ tokenResponse, err := c.getTokenForRequest(req, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ return authResultFromToken(c.authParams, tokenResponse)
+}
+
+func (c Client) acquireTokenForServiceFabric(ctx context.Context, resource string) (AuthResult, error) {
+ req, err := createServiceFabricAuthRequest(ctx, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ tokenResponse, err := c.getTokenForRequest(req, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ return authResultFromToken(c.authParams, tokenResponse)
+}
+
+func (c Client) acquireTokenForAzureArc(ctx context.Context, resource string) (AuthResult, error) {
+ req, err := createAzureArcAuthRequest(ctx, resource, "")
+ if err != nil {
+ return AuthResult{}, err
+ }
+
+ response, err := c.httpClient.Do(req)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ defer response.Body.Close()
+
+ if response.StatusCode != http.StatusUnauthorized {
+ return AuthResult{}, fmt.Errorf("expected a 401 response, received %d", response.StatusCode)
+ }
+
+ secret, err := c.getAzureArcSecretKey(response, runtime.GOOS)
+ if err != nil {
+ return AuthResult{}, err
+ }
+
+ secondRequest, err := createAzureArcAuthRequest(ctx, resource, string(secret))
+ if err != nil {
+ return AuthResult{}, err
+ }
+
+ tokenResponse, err := c.getTokenForRequest(secondRequest, resource)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ return authResultFromToken(c.authParams, tokenResponse)
+}
+
+func authResultFromToken(authParams authority.AuthParams, token accesstokens.TokenResponse) (AuthResult, error) {
+ if cacheManager == nil {
+ return AuthResult{}, errors.New("cache instance is nil")
+ }
+ account, err := cacheManager.Write(authParams, token)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ // if refreshOn is not set, set it to half of the time until expiry if expiry is more than 2 hours away
+ if token.RefreshOn.T.IsZero() {
+ if lifetime := time.Until(token.ExpiresOn); lifetime > 2*time.Hour {
+ token.RefreshOn.T = time.Now().Add(lifetime / 2)
+ }
+ }
+ ar, err := base.NewAuthResult(token, account)
+ if err != nil {
+ return AuthResult{}, err
+ }
+ ar.AccessToken, err = authParams.AuthnScheme.FormatAccessToken(ar.AccessToken)
+ return ar, err
+}
+
+// contains checks if the element is present in the list.
+func contains[T comparable](list []T, element T) bool {
+ for _, v := range list {
+ if v == element {
+ return true
+ }
+ }
+ return false
+}
+
+// retry performs an HTTP request with retries based on the provided options.
+func (c Client) retry(maxRetries int, req *http.Request) (*http.Response, error) {
+ var resp *http.Response
+ var err error
+ for attempt := 0; attempt < maxRetries; attempt++ {
+ tryCtx, tryCancel := context.WithTimeout(req.Context(), time.Minute)
+ defer tryCancel()
+ if resp != nil && resp.Body != nil {
+ _, _ = io.Copy(io.Discard, resp.Body)
+ resp.Body.Close()
+ }
+ cloneReq := req.Clone(tryCtx)
+ resp, err = c.httpClient.Do(cloneReq)
+ retrylist := retryStatusCodes
+ if c.source == DefaultToIMDS {
+ retrylist = retryCodesForIMDS
+ }
+ if err == nil && !contains(retrylist, resp.StatusCode) {
+ return resp, nil
+ }
+ select {
+ case <-time.After(time.Second):
+ case <-req.Context().Done():
+ err = req.Context().Err()
+ return resp, err
+ }
+ }
+ return resp, err
+}
+
+func (c Client) getTokenForRequest(req *http.Request, resource string) (accesstokens.TokenResponse, error) {
+ r := accesstokens.TokenResponse{}
+ var resp *http.Response
+ var err error
+
+ if c.retryPolicyEnabled {
+ resp, err = c.retry(defaultRetryCount, req)
+ } else {
+ resp, err = c.httpClient.Do(req)
+ }
+ if err != nil {
+ return r, err
+ }
+ responseBytes, err := io.ReadAll(resp.Body)
+ defer resp.Body.Close()
+ if err != nil {
+ return r, err
+ }
+ switch resp.StatusCode {
+ case http.StatusOK, http.StatusAccepted:
+ default:
+ sd := strings.TrimSpace(string(responseBytes))
+ if sd != "" {
+ return r, errors.CallErr{
+ Req: req,
+ Resp: resp,
+ Err: fmt.Errorf("http call(%s)(%s) error: reply status code was %d:\n%s",
+ req.URL.String(),
+ req.Method,
+ resp.StatusCode,
+ sd),
+ }
+ }
+ return r, errors.CallErr{
+ Req: req,
+ Resp: resp,
+ Err: fmt.Errorf("http call(%s)(%s) error: reply status code was %d", req.URL.String(), req.Method, resp.StatusCode),
+ }
+ }
+
+ err = json.Unmarshal(responseBytes, &r)
+ if err != nil {
+ return r, errors.InvalidJsonErr{
+ Err: fmt.Errorf("error parsing the json error: %s", err),
+ }
+ }
+ r.GrantedScopes.Slice = append(r.GrantedScopes.Slice, resource)
+
+ return r, err
+}
+
+func createAppServiceAuthRequest(ctx context.Context, id ID, resource string) (*http.Request, error) {
+ identityEndpoint := os.Getenv(identityEndpointEnvVar)
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, identityEndpoint, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header.Set("X-IDENTITY-HEADER", os.Getenv(identityHeaderEnvVar))
+ q := req.URL.Query()
+ q.Set("api-version", appServiceAPIVersion)
+ q.Set("resource", resource)
+ switch t := id.(type) {
+ case UserAssignedClientID:
+ q.Set(miQueryParameterClientId, string(t))
+ case UserAssignedResourceID:
+ q.Set(miQueryParameterResourceId, string(t))
+ case UserAssignedObjectID:
+ q.Set(miQueryParameterObjectId, string(t))
+ case systemAssignedValue:
+ default:
+ return nil, fmt.Errorf("unsupported type %T", id)
+ }
+ req.URL.RawQuery = q.Encode()
+ return req, nil
+}
+
+func createIMDSAuthRequest(ctx context.Context, id ID, resource string) (*http.Request, error) {
+ msiEndpoint, err := url.Parse(imdsDefaultEndpoint)
+ if err != nil {
+ return nil, fmt.Errorf("couldn't parse %q: %s", imdsDefaultEndpoint, err)
+ }
+ msiParameters := msiEndpoint.Query()
+ msiParameters.Set(apiVersionQueryParameterName, imdsAPIVersion)
+ msiParameters.Set(resourceQueryParameterName, resource)
+
+ switch t := id.(type) {
+ case UserAssignedClientID:
+ msiParameters.Set(miQueryParameterClientId, string(t))
+ case UserAssignedResourceID:
+ msiParameters.Set(miQueryParameterResourceIdIMDS, string(t))
+ case UserAssignedObjectID:
+ msiParameters.Set(miQueryParameterObjectId, string(t))
+ case systemAssignedValue: // not adding anything
+ default:
+ return nil, fmt.Errorf("unsupported type %T", id)
+ }
+
+ msiEndpoint.RawQuery = msiParameters.Encode()
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, msiEndpoint.String(), nil)
+ if err != nil {
+ return nil, fmt.Errorf("error creating http request %s", err)
+ }
+ req.Header.Set(metaHTTPHeaderName, "true")
+ return req, nil
+}
+
+func createAzureArcAuthRequest(ctx context.Context, resource string, key string) (*http.Request, error) {
+ identityEndpoint := os.Getenv(identityEndpointEnvVar)
+ if identityEndpoint == "" {
+ identityEndpoint = azureArcEndpoint
+ }
+ msiEndpoint, parseErr := url.Parse(identityEndpoint)
+
+ if parseErr != nil {
+ return nil, fmt.Errorf("couldn't parse %q: %s", identityEndpoint, parseErr)
+ }
+
+ msiParameters := msiEndpoint.Query()
+ msiParameters.Set(apiVersionQueryParameterName, azureArcAPIVersion)
+ msiParameters.Set(resourceQueryParameterName, resource)
+
+ msiEndpoint.RawQuery = msiParameters.Encode()
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, msiEndpoint.String(), nil)
+ if err != nil {
+ return nil, fmt.Errorf("error creating http request %s", err)
+ }
+ req.Header.Set(metaHTTPHeaderName, "true")
+
+ if key != "" {
+ req.Header.Set("Authorization", fmt.Sprintf("Basic %s", key))
+ }
+
+ return req, nil
+}
+
+func isAzureArcEnvironment(identityEndpoint, imdsEndpoint string) bool {
+ if identityEndpoint != "" && imdsEndpoint != "" {
+ return true
+ }
+ himdsFilePath := getAzureArcHimdsFilePath(runtime.GOOS)
+ if himdsFilePath != "" {
+ if _, err := os.Stat(himdsFilePath); err == nil {
+ return true
+ }
+ }
+ return false
+}
+
+func (c *Client) getAzureArcSecretKey(response *http.Response, platform string) (string, error) {
+ wwwAuthenticateHeader := response.Header.Get(wwwAuthenticateHeaderName)
+
+ if len(wwwAuthenticateHeader) == 0 {
+ return "", errors.New("response has no www-authenticate header")
+ }
+
+ // check if the platform is supported
+ expectedSecretFilePath := getAzureArcPlatformPath(platform)
+ if expectedSecretFilePath == "" {
+ return "", errors.New("platform not supported, expected linux or windows")
+ }
+
+ parts := strings.Split(wwwAuthenticateHeader, "Basic realm=")
+ if len(parts) < 2 {
+ return "", fmt.Errorf("basic realm= not found in the string, instead found: %s", wwwAuthenticateHeader)
+ }
+
+ secretFilePath := parts
+
+ // check that the file in the file path is a .key file
+ fileName := filepath.Base(secretFilePath[1])
+ if !strings.HasSuffix(fileName, azureArcFileExtension) {
+ return "", fmt.Errorf("invalid file extension, expected %s, got %s", azureArcFileExtension, filepath.Ext(fileName))
+ }
+
+ // check that file path from header matches the expected file path for the platform
+ if expectedSecretFilePath != filepath.Dir(secretFilePath[1]) {
+ return "", fmt.Errorf("invalid file path, expected %s, got %s", expectedSecretFilePath, filepath.Dir(secretFilePath[1]))
+ }
+
+ fileInfo, err := os.Stat(secretFilePath[1])
+ if err != nil {
+ return "", fmt.Errorf("failed to get metadata for %s due to error: %s", secretFilePath[1], err)
+ }
+
+ // Throw an error if the secret file's size is greater than 4096 bytes
+ if s := fileInfo.Size(); s > azureArcMaxFileSizeBytes {
+ return "", fmt.Errorf("invalid secret file size, expected %d, file size was %d", azureArcMaxFileSizeBytes, s)
+ }
+
+ // Attempt to read the contents of the secret file
+ secret, err := os.ReadFile(secretFilePath[1])
+ if err != nil {
+ return "", fmt.Errorf("failed to read %q due to error: %s", secretFilePath[1], err)
+ }
+
+ return string(secret), nil
+}
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/servicefabric.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/servicefabric.go
new file mode 100644
index 0000000000..535065e9d9
--- /dev/null
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity/servicefabric.go
@@ -0,0 +1,25 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT license.
+
+package managedidentity
+
+import (
+ "context"
+ "net/http"
+ "os"
+)
+
+func createServiceFabricAuthRequest(ctx context.Context, resource string) (*http.Request, error) {
+ identityEndpoint := os.Getenv(identityEndpointEnvVar)
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, identityEndpoint, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header.Set("Accept", "application/json")
+ req.Header.Set("Secret", os.Getenv(identityHeaderEnvVar))
+ q := req.URL.Query()
+ q.Set("api-version", serviceFabricAPIVersion)
+ q.Set("resource", resource)
+ req.URL.RawQuery = q.Encode()
+ return req, nil
+}
diff --git a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/public/public.go b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/public/public.go
index 392e5e43f7..7beed26174 100644
--- a/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/public/public.go
+++ b/vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/public/public.go
@@ -51,6 +51,13 @@ type AuthenticationScheme = authority.AuthenticationScheme
type Account = shared.Account
+type TokenSource = base.TokenSource
+
+const (
+ TokenSourceIdentityProvider = base.TokenSourceIdentityProvider
+ TokenSourceCache = base.TokenSourceCache
+)
+
var errNoAccount = errors.New("no account was specified with public.WithSilentAccount(), or the specified account is invalid")
// clientOptions configures the Client's behavior.
@@ -387,7 +394,7 @@ func (pca Client) AcquireTokenByUsernamePassword(ctx context.Context, scopes []s
if err != nil {
return AuthResult{}, err
}
- return pca.base.AuthResultFromToken(ctx, authParams, token, true)
+ return pca.base.AuthResultFromToken(ctx, authParams, token)
}
type DeviceCodeResult = accesstokens.DeviceCodeResult
@@ -412,7 +419,7 @@ func (d DeviceCode) AuthenticationResult(ctx context.Context) (AuthResult, error
if err != nil {
return AuthResult{}, err
}
- return d.client.base.AuthResultFromToken(ctx, d.authParams, token, true)
+ return d.client.base.AuthResultFromToken(ctx, d.authParams, token)
}
// acquireTokenByDeviceCodeOptions contains optional configuration for AcquireTokenByDeviceCode
@@ -687,7 +694,7 @@ func (pca Client) AcquireTokenInteractive(ctx context.Context, scopes []string,
return AuthResult{}, err
}
- return pca.base.AuthResultFromToken(ctx, authParams, token, true)
+ return pca.base.AuthResultFromToken(ctx, authParams, token)
}
type interactiveAuthResult struct {
diff --git a/vendor/github.com/coreos/stream-metadata-go/stream/artifact_utils.go b/vendor/github.com/coreos/stream-metadata-go/stream/artifact_utils.go
index e23886f03e..312a94b7b9 100644
--- a/vendor/github.com/coreos/stream-metadata-go/stream/artifact_utils.go
+++ b/vendor/github.com/coreos/stream-metadata-go/stream/artifact_utils.go
@@ -2,9 +2,9 @@ package stream
import (
"crypto/sha256"
+ "errors"
"fmt"
"io"
- "io/ioutil"
"net/http"
"net/url"
"os"
@@ -20,7 +20,9 @@ func (a *Artifact) Fetch(w io.Writer) error {
if err != nil {
return err
}
- defer resp.Body.Close()
+ defer func() {
+ err = errors.Join(resp.Body.Close())
+ }()
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("%s returned status: %s", a.Location, resp.Status)
@@ -42,8 +44,8 @@ func (a *Artifact) Fetch(w io.Writer) error {
return nil
}
-/// Name returns the "basename" of the artifact, i.e. the contents
-/// after the last `/`. This can be useful when downloading to a file.
+// Name returns the "basename" of the artifact, i.e. the contents
+// after the last `/`. This can be useful when downloading to a file.
func (a *Artifact) Name() (string, error) {
loc, err := url.Parse(a.Location)
if err != nil {
@@ -53,17 +55,17 @@ func (a *Artifact) Name() (string, error) {
return path.Base(loc.Path), nil
}
-/// Download fetches the specified artifact and saves it to the target
-/// directory. The full file path will be returned as a string.
-/// If the target file path exists, it will be overwritten.
-/// If the download fails, the temporary file will be deleted.
+// Download fetches the specified artifact and saves it to the target
+// directory. The full file path will be returned as a string.
+// If the target file path exists, it will be overwritten.
+// If the download fails, the temporary file will be deleted.
func (a *Artifact) Download(destdir string) (string, error) {
name, err := a.Name()
if err != nil {
return "", err
}
destfile := filepath.Join(destdir, name)
- w, err := ioutil.TempFile(destdir, ".coreos-artifact-")
+ w, err := os.CreateTemp(destdir, ".coreos-artifact-")
if err != nil {
return "", err
}
diff --git a/vendor/github.com/coreos/stream-metadata-go/stream/rhcos/rhcos.go b/vendor/github.com/coreos/stream-metadata-go/stream/rhcos/rhcos.go
index 320d84b41d..62616b3b27 100644
--- a/vendor/github.com/coreos/stream-metadata-go/stream/rhcos/rhcos.go
+++ b/vendor/github.com/coreos/stream-metadata-go/stream/rhcos/rhcos.go
@@ -1,8 +1,12 @@
package rhcos
+import "fmt"
+
// Extensions is data specific to Red Hat Enterprise Linux CoreOS
type Extensions struct {
- AzureDisk *AzureDisk `json:"azure-disk,omitempty"`
+ AwsWinLi *AwsWinLi `json:"aws-winli,omitempty"`
+ AzureDisk *AzureDisk `json:"azure-disk,omitempty"`
+ Marketplace *Marketplace `json:"marketplace,omitempty"`
}
// AzureDisk represents an Azure disk image that can be imported
@@ -16,3 +20,73 @@ type AzureDisk struct {
// from this URL as that may lead to performance limitations.
URL string `json:"url,omitempty"`
}
+
+// AwsWinLi represents prebuilt AWS Windows License Included Images.
+type AwsWinLi = ReplicatedImage
+
+// ReplicatedImage represents an image in all regions of an AWS-like cloud
+// This struct was copied from the release package to avoid an import cycle,
+// and is used to describe all AWS WinLI Images in all regions.
+type ReplicatedImage struct {
+ Regions map[string]SingleImage `json:"regions,omitempty"`
+}
+
+// SingleImage represents a globally-accessible image or an image in a
+// single region of an AWS-like cloud
+// This struct was copied from the release package to avoid an import cycle,
+// and is used to describe individual AWS WinLI Images.
+type SingleImage struct {
+ Release string `json:"release"`
+ Image string `json:"image"`
+}
+
+// Marketplace contains marketplace images for all clouds.
+type Marketplace struct {
+ Azure *AzureMarketplace `json:"azure,omitempty"`
+}
+
+// AzureMarketplaceImages contains both the HyperV- Gen1 & Gen2
+// images for a purchase plan.
+type AzureMarketplaceImages struct {
+ Gen1 *AzureMarketplaceImage `json:"hyperVGen1,omitempty"`
+ Gen2 *AzureMarketplaceImage `json:"hyperVGen2,omitempty"`
+}
+
+// AzureMarketplace lists images, both paid and
+// unpaid, available in the Azure marketplace.
+type AzureMarketplace struct {
+ // NoPurchasePlan is the standard, unpaid RHCOS image.
+ NoPurchasePlan *AzureMarketplaceImages `json:"no-purchase-plan,omitempty"`
+
+ // OCP is the paid marketplace image for OpenShift Container Platform.
+ OCP *AzureMarketplaceImages `json:"ocp,omitempty"`
+
+ // OPP is the paid marketplace image for OpenShift Platform Plus.
+ OPP *AzureMarketplaceImages `json:"opp,omitempty"`
+
+ // OKE is the paid marketplace image for OpenShift Kubernetes Engine.
+ OKE *AzureMarketplaceImages `json:"oke,omitempty"`
+
+ // OCPEMEA is the paid marketplace image for OpenShift Container Platform in EMEA regions.
+ OCPEMEA *AzureMarketplaceImages `json:"ocp-emea,omitempty"`
+
+ // OPPEMEA is the paid marketplace image for OpenShift Platform Plus in EMEA regions.
+ OPPEMEA *AzureMarketplaceImages `json:"opp-emea,omitempty"`
+
+ // OKEEMEA is the paid marketplace image for OpenShift Kubernetes Engine in EMEA regions.
+ OKEEMEA *AzureMarketplaceImages `json:"oke-emea,omitempty"`
+}
+
+// AzureMarketplaceImage defines the attributes for an Azure
+// marketplace image.
+type AzureMarketplaceImage struct {
+ Publisher string `json:"publisher"`
+ Offer string `json:"offer"`
+ SKU string `json:"sku"`
+ Version string `json:"version"`
+}
+
+// URN returns the image URN for the marketplace image.
+func (i *AzureMarketplaceImage) URN() string {
+ return fmt.Sprintf("%s:%s:%s:%s", i.Publisher, i.Offer, i.SKU, i.Version)
+}
diff --git a/vendor/github.com/coreos/stream-metadata-go/stream/stream.go b/vendor/github.com/coreos/stream-metadata-go/stream/stream.go
index 3f9b11c501..1ed9b1fd70 100644
--- a/vendor/github.com/coreos/stream-metadata-go/stream/stream.go
+++ b/vendor/github.com/coreos/stream-metadata-go/stream/stream.go
@@ -50,36 +50,44 @@ type Artifact struct {
UncompressedSha256 string `json:"uncompressed-sha256,omitempty"`
}
-type KubeVirtContainerDisk struct {
- Image string `json:"image"`
-}
-
// Images contains images available in cloud providers
type Images struct {
- Aliyun *ReplicatedImage `json:"aliyun,omitempty"`
- Aws *AwsImage `json:"aws,omitempty"`
- Gcp *GcpImage `json:"gcp,omitempty"`
- Ibmcloud *ReplicatedObject `json:"ibmcloud,omitempty"`
- KubeVirt *KubeVirtContainerDisk `json:"kubevirt,omitempty"`
- PowerVS *ReplicatedObject `json:"powervs,omitempty"`
+ Aliyun *ReplicatedImage `json:"aliyun,omitempty"`
+ Aws *AwsImage `json:"aws,omitempty"`
+ Gcp *GcpImage `json:"gcp,omitempty"`
+ Ibmcloud *ReplicatedObject `json:"ibmcloud,omitempty"`
+ KubeVirt *ContainerImage `json:"kubevirt,omitempty"`
+ PowerVS *ReplicatedObject `json:"powervs,omitempty"`
}
// ReplicatedImage represents an image in all regions of an AWS-like cloud
type ReplicatedImage struct {
- Regions map[string]RegionImage `json:"regions,omitempty"`
+ Regions map[string]SingleImage `json:"regions,omitempty"`
}
-// RegionImage represents an image in a single region of an AWS-like cloud
-type RegionImage struct {
+// SingleImage represents a globally-accessible image or an image in a
+// single region of an AWS-like cloud
+type SingleImage struct {
Release string `json:"release"`
Image string `json:"image"`
}
+// ContainerImage represents a tagged container image
+type ContainerImage struct {
+ Release string `json:"release"`
+ // Preferred way to reference the image, which might be by tag or digest
+ Image string `json:"image"`
+ DigestRef string `json:"digest-ref"`
+}
+
// AwsImage is a typedef for backwards compatibility.
type AwsImage = ReplicatedImage
// AwsRegionImage is a typedef for backwards compatibility.
-type AwsRegionImage = RegionImage
+type AwsRegionImage = SingleImage
+
+// RegionImage is a typedef for backwards compatibility.
+type RegionImage = SingleImage
// GcpImage represents a GCP cloud image
type GcpImage struct {
@@ -89,15 +97,20 @@ type GcpImage struct {
Name string `json:"name"`
}
-// ReplicatedObject represents an object in all regions of an IBMCloud-like cloud
+// ReplicatedObject represents an object in all regions of an IBMCloud-like
+// cloud
type ReplicatedObject struct {
- Regions map[string]RegionObject `json:"regions,omitempty"`
+ Regions map[string]SingleObject `json:"regions,omitempty"`
}
-// RegionObject represents an IBMCloud/PowerVS cloud image
-type RegionObject struct {
+// SingleObject represents a globally-accessible cloud storage object, or
+// an object in a single region of an IBMCloud-like cloud
+type SingleObject struct {
Release string `json:"release"`
Object string `json:"object"`
Bucket string `json:"bucket"`
Url string `json:"url"`
}
+
+// RegionObject is a typedef for backwards compatibility.
+type RegionObject = SingleObject
diff --git a/vendor/github.com/coreos/stream-metadata-go/stream/stream_utils.go b/vendor/github.com/coreos/stream-metadata-go/stream/stream_utils.go
index 081572c7da..b1ca955641 100644
--- a/vendor/github.com/coreos/stream-metadata-go/stream/stream_utils.go
+++ b/vendor/github.com/coreos/stream-metadata-go/stream/stream_utils.go
@@ -19,7 +19,7 @@ func (st *Stream) GetArchitecture(archname string) (*Arch, error) {
// GetAliyunRegionImage returns the release data (Image ID and release ID) for a particular
// architecture and region.
-func (st *Stream) GetAliyunRegionImage(archname, region string) (*RegionImage, error) {
+func (st *Stream) GetAliyunRegionImage(archname, region string) (*SingleImage, error) {
starch, err := st.GetArchitecture(archname)
if err != nil {
return nil, err
@@ -28,7 +28,7 @@ func (st *Stream) GetAliyunRegionImage(archname, region string) (*RegionImage, e
if aliyunimages == nil {
return nil, fmt.Errorf("%s: No Aliyun images", st.FormatPrefix(archname))
}
- var regionVal RegionImage
+ var regionVal SingleImage
var ok bool
if regionVal, ok = aliyunimages.Regions[region]; !ok {
return nil, fmt.Errorf("%s: No Aliyun images in region %s", st.FormatPrefix(archname), region)
@@ -48,7 +48,7 @@ func (st *Stream) GetAliyunImage(archname, region string) (string, error) {
// GetAwsRegionImage returns the release data (AMI and release ID) for a particular
// architecture and region.
-func (st *Stream) GetAwsRegionImage(archname, region string) (*AwsRegionImage, error) {
+func (st *Stream) GetAwsRegionImage(archname, region string) (*SingleImage, error) {
starch, err := st.GetArchitecture(archname)
if err != nil {
return nil, err
@@ -57,7 +57,7 @@ func (st *Stream) GetAwsRegionImage(archname, region string) (*AwsRegionImage, e
if awsimages == nil {
return nil, fmt.Errorf("%s: No AWS images", st.FormatPrefix(archname))
}
- var regionVal AwsRegionImage
+ var regionVal SingleImage
var ok bool
if regionVal, ok = awsimages.Regions[region]; !ok {
return nil, fmt.Errorf("%s: No AWS images in region %s", st.FormatPrefix(archname), region)
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/client.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/client.go
index 6aae83bfd2..b25641c55d 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/client.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/client.go
@@ -18,7 +18,7 @@ var DefaultClient = &http.Client{Transport: NewTransport(http.DefaultTransport)}
// Get is a convenient replacement for http.Get that adds a span around the request.
func Get(ctx context.Context, targetURL string) (resp *http.Response, err error) {
- req, err := http.NewRequestWithContext(ctx, "GET", targetURL, nil)
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, targetURL, nil)
if err != nil {
return nil, err
}
@@ -27,7 +27,7 @@ func Get(ctx context.Context, targetURL string) (resp *http.Response, err error)
// Head is a convenient replacement for http.Head that adds a span around the request.
func Head(ctx context.Context, targetURL string) (resp *http.Response, err error) {
- req, err := http.NewRequestWithContext(ctx, "HEAD", targetURL, nil)
+ req, err := http.NewRequestWithContext(ctx, http.MethodHead, targetURL, nil)
if err != nil {
return nil, err
}
@@ -36,7 +36,7 @@ func Head(ctx context.Context, targetURL string) (resp *http.Response, err error
// Post is a convenient replacement for http.Post that adds a span around the request.
func Post(ctx context.Context, targetURL, contentType string, body io.Reader) (resp *http.Response, err error) {
- req, err := http.NewRequestWithContext(ctx, "POST", targetURL, body)
+ req, err := http.NewRequestWithContext(ctx, http.MethodPost, targetURL, body)
if err != nil {
return nil, err
}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/common.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/common.go
index 5d6e6156b7..a83a026274 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/common.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/common.go
@@ -18,13 +18,6 @@ const (
WriteErrorKey = attribute.Key("http.write_error") // if an error occurred while writing a reply, the string of the error (io.EOF is not recorded)
)
-// Client HTTP metrics.
-const (
- clientRequestSize = "http.client.request.size" // Outgoing request bytes total
- clientResponseSize = "http.client.response.size" // Outgoing response bytes total
- clientDuration = "http.client.duration" // Outgoing end to end duration, milliseconds
-)
-
// Filter is a predicate used to determine whether a given http.request should
// be traced. A Filter must return true if the request should be traced.
type Filter func(*http.Request) bool
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/config.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/config.go
index a01bfafbe0..6bd50d4c9b 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/config.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/config.go
@@ -176,6 +176,10 @@ func WithMessageEvents(events ...event) Option {
// WithSpanNameFormatter takes a function that will be called on every
// request and the returned string will become the Span Name.
+//
+// When using [http.ServeMux] (or any middleware that sets the Pattern of [http.Request]),
+// the span name formatter will run twice. Once when the span is created, and
+// second time after the middleware, so the pattern can be used.
func WithSpanNameFormatter(f func(operation string, r *http.Request) string) Option {
return optionFunc(func(c *config) {
c.SpanNameFormatter = f
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/handler.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/handler.go
index 33580a35b7..937f9b4e73 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/handler.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/handler.go
@@ -12,6 +12,7 @@ import (
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv"
"go.opentelemetry.io/otel"
+ "go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
)
@@ -21,15 +22,16 @@ type middleware struct {
operation string
server string
- tracer trace.Tracer
- propagators propagation.TextMapPropagator
- spanStartOptions []trace.SpanStartOption
- readEvent bool
- writeEvent bool
- filters []Filter
- spanNameFormatter func(string, *http.Request) string
- publicEndpoint bool
- publicEndpointFn func(*http.Request) bool
+ tracer trace.Tracer
+ propagators propagation.TextMapPropagator
+ spanStartOptions []trace.SpanStartOption
+ readEvent bool
+ writeEvent bool
+ filters []Filter
+ spanNameFormatter func(string, *http.Request) string
+ publicEndpoint bool
+ publicEndpointFn func(*http.Request) bool
+ metricAttributesFn func(*http.Request) []attribute.KeyValue
semconv semconv.HTTPServer
}
@@ -79,12 +81,7 @@ func (h *middleware) configure(c *config) {
h.publicEndpointFn = c.PublicEndpointFn
h.server = c.ServerName
h.semconv = semconv.NewHTTPServer(c.Meter)
-}
-
-func handleErr(err error) {
- if err != nil {
- otel.Handle(err)
- }
+ h.metricAttributesFn = c.MetricAttributesFn
}
// serveHTTP sets up tracing and calls the given next http.Handler with the span
@@ -101,7 +98,7 @@ func (h *middleware) serveHTTP(w http.ResponseWriter, r *http.Request, next http
ctx := h.propagators.Extract(r.Context(), propagation.HeaderCarrier(r.Header))
opts := []trace.SpanStartOption{
- trace.WithAttributes(h.semconv.RequestTraceAttrs(h.server, r)...),
+ trace.WithAttributes(h.semconv.RequestTraceAttrs(h.server, r, semconv.RequestTraceAttrsOpts{})...),
}
opts = append(opts, h.spanStartOptions...)
@@ -123,6 +120,11 @@ func (h *middleware) serveHTTP(w http.ResponseWriter, r *http.Request, next http
}
}
+ if startTime := StartTimeFromContext(ctx); !startTime.IsZero() {
+ opts = append(opts, trace.WithTimestamp(startTime))
+ requestStartTime = startTime
+ }
+
ctx, span := tracer.Start(ctx, h.spanNameFormatter(h.operation, r), opts...)
defer span.End()
@@ -174,7 +176,12 @@ func (h *middleware) serveHTTP(w http.ResponseWriter, r *http.Request, next http
ctx = ContextWithLabeler(ctx, labeler)
}
- next.ServeHTTP(w, r.WithContext(ctx))
+ r = r.WithContext(ctx)
+ next.ServeHTTP(w, r)
+
+ if r.Pattern != "" {
+ span.SetName(h.spanNameFormatter(h.operation, r))
+ }
statusCode := rww.StatusCode()
bytesWritten := rww.BytesWritten()
@@ -190,17 +197,31 @@ func (h *middleware) serveHTTP(w http.ResponseWriter, r *http.Request, next http
// Use floating point division here for higher precision (instead of Millisecond method).
elapsedTime := float64(time.Since(requestStartTime)) / float64(time.Millisecond)
- h.semconv.RecordMetrics(ctx, semconv.MetricData{
- ServerName: h.server,
+ metricAttributes := semconv.MetricAttributes{
Req: r,
StatusCode: statusCode,
- AdditionalAttributes: labeler.Get(),
- RequestSize: bw.BytesRead(),
- ResponseSize: bytesWritten,
- ElapsedTime: elapsedTime,
+ AdditionalAttributes: append(labeler.Get(), h.metricAttributesFromRequest(r)...),
+ }
+
+ h.semconv.RecordMetrics(ctx, semconv.ServerMetricData{
+ ServerName: h.server,
+ ResponseSize: bytesWritten,
+ MetricAttributes: metricAttributes,
+ MetricData: semconv.MetricData{
+ RequestSize: bw.BytesRead(),
+ ElapsedTime: elapsedTime,
+ },
})
}
+func (h *middleware) metricAttributesFromRequest(r *http.Request) []attribute.KeyValue {
+ var attributeForRequest []attribute.KeyValue
+ if h.metricAttributesFn != nil {
+ attributeForRequest = h.metricAttributesFn(r)
+ }
+ return attributeForRequest
+}
+
// WithRouteTag annotates spans and metrics with the provided route name
// with HTTP route attribute.
func WithRouteTag(route string, h http.Handler) http.Handler {
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/body_wrapper.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/body_wrapper.go
index a945f55661..d032aa841b 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/body_wrapper.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/body_wrapper.go
@@ -1,6 +1,11 @@
+// Code generated by gotmpl. DO NOT MODIFY.
+// source: internal/shared/request/body_wrapper.go.tmpl
+
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
+// Package request provides types and functionality to handle HTTP request
+// handling.
package request // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request"
import (
@@ -53,7 +58,7 @@ func (w *BodyWrapper) updateReadData(n int64, err error) {
}
}
-// Closes closes the io.ReadCloser.
+// Close closes the io.ReadCloser.
func (w *BodyWrapper) Close() error {
return w.ReadCloser.Close()
}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/gen.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/gen.go
new file mode 100644
index 0000000000..9e00dd2fce
--- /dev/null
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/gen.go
@@ -0,0 +1,10 @@
+// Copyright The OpenTelemetry Authors
+// SPDX-License-Identifier: Apache-2.0
+
+package request // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request"
+
+// Generate request package:
+//go:generate gotmpl --body=../../../../../../internal/shared/request/body_wrapper.go.tmpl "--data={}" --out=body_wrapper.go
+//go:generate gotmpl --body=../../../../../../internal/shared/request/body_wrapper_test.go.tmpl "--data={}" --out=body_wrapper_test.go
+//go:generate gotmpl --body=../../../../../../internal/shared/request/resp_writer_wrapper.go.tmpl "--data={}" --out=resp_writer_wrapper.go
+//go:generate gotmpl --body=../../../../../../internal/shared/request/resp_writer_wrapper_test.go.tmpl "--data={}" --out=resp_writer_wrapper_test.go
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/resp_writer_wrapper.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/resp_writer_wrapper.go
index aea171fb26..ca2e4c14c7 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/resp_writer_wrapper.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/resp_writer_wrapper.go
@@ -1,3 +1,6 @@
+// Code generated by gotmpl. DO NOT MODIFY.
+// source: internal/shared/request/resp_writer_wrapper.go.tmpl
+
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
@@ -44,7 +47,9 @@ func (w *RespWriterWrapper) Write(p []byte) (int, error) {
w.mu.Lock()
defer w.mu.Unlock()
- w.writeHeader(http.StatusOK)
+ if !w.wroteHeader {
+ w.writeHeader(http.StatusOK)
+ }
n, err := w.ResponseWriter.Write(p)
n1 := int64(n)
@@ -80,7 +85,12 @@ func (w *RespWriterWrapper) writeHeader(statusCode int) {
// Flush implements [http.Flusher].
func (w *RespWriterWrapper) Flush() {
- w.WriteHeader(http.StatusOK)
+ w.mu.Lock()
+ defer w.mu.Unlock()
+
+ if !w.wroteHeader {
+ w.writeHeader(http.StatusOK)
+ }
if f, ok := w.ResponseWriter.(http.Flusher); ok {
f.Flush()
@@ -95,7 +105,7 @@ func (w *RespWriterWrapper) BytesWritten() int64 {
return w.written
}
-// BytesWritten returns the HTTP status code that was sent.
+// StatusCode returns the HTTP status code that was sent.
func (w *RespWriterWrapper) StatusCode() int {
w.mu.RLock()
defer w.mu.RUnlock()
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/env.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/env.go
index 9cae4cab86..7cb9693d98 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/env.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/env.go
@@ -1,3 +1,6 @@
+// Code generated by gotmpl. DO NOT MODIFY.
+// source: internal/shared/semconv/env.go.tmpl
+
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
@@ -9,12 +12,17 @@ import (
"net/http"
"os"
"strings"
+ "sync"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/codes"
"go.opentelemetry.io/otel/metric"
)
+// OTelSemConvStabilityOptIn is an environment variable.
+// That can be set to "http/dup" to keep getting the old HTTP semantic conventions.
+const OTelSemConvStabilityOptIn = "OTEL_SEMCONV_STABILITY_OPT_IN"
+
type ResponseTelemetry struct {
StatusCode int
ReadBytes int64
@@ -30,6 +38,11 @@ type HTTPServer struct {
requestBytesCounter metric.Int64Counter
responseBytesCounter metric.Int64Counter
serverLatencyMeasure metric.Float64Histogram
+
+ // New metrics
+ requestBodySizeHistogram metric.Int64Histogram
+ responseBodySizeHistogram metric.Int64Histogram
+ requestDurationHistogram metric.Float64Histogram
}
// RequestTraceAttrs returns trace attributes for an HTTP request received by a
@@ -48,26 +61,40 @@ type HTTPServer struct {
//
// If the primary server name is not known, server should be an empty string.
// The req Host will be used to determine the server instead.
-func (s HTTPServer) RequestTraceAttrs(server string, req *http.Request) []attribute.KeyValue {
+func (s HTTPServer) RequestTraceAttrs(server string, req *http.Request, opts RequestTraceAttrsOpts) []attribute.KeyValue {
+ attrs := CurrentHTTPServer{}.RequestTraceAttrs(server, req, opts)
if s.duplicate {
- return append(oldHTTPServer{}.RequestTraceAttrs(server, req), newHTTPServer{}.RequestTraceAttrs(server, req)...)
+ return OldHTTPServer{}.RequestTraceAttrs(server, req, attrs)
+ }
+ return attrs
+}
+
+func (s HTTPServer) NetworkTransportAttr(network string) []attribute.KeyValue {
+ if s.duplicate {
+ return []attribute.KeyValue{
+ OldHTTPServer{}.NetworkTransportAttr(network),
+ CurrentHTTPServer{}.NetworkTransportAttr(network),
+ }
+ }
+ return []attribute.KeyValue{
+ CurrentHTTPServer{}.NetworkTransportAttr(network),
}
- return oldHTTPServer{}.RequestTraceAttrs(server, req)
}
// ResponseTraceAttrs returns trace attributes for telemetry from an HTTP response.
//
// If any of the fields in the ResponseTelemetry are not set the attribute will be omitted.
func (s HTTPServer) ResponseTraceAttrs(resp ResponseTelemetry) []attribute.KeyValue {
+ attrs := CurrentHTTPServer{}.ResponseTraceAttrs(resp)
if s.duplicate {
- return append(oldHTTPServer{}.ResponseTraceAttrs(resp), newHTTPServer{}.ResponseTraceAttrs(resp)...)
+ return OldHTTPServer{}.ResponseTraceAttrs(resp, attrs)
}
- return oldHTTPServer{}.ResponseTraceAttrs(resp)
+ return attrs
}
// Route returns the attribute for the route.
func (s HTTPServer) Route(route string) attribute.KeyValue {
- return oldHTTPServer{}.Route(route)
+ return CurrentHTTPServer{}.Route(route)
}
// Status returns a span status code and message for an HTTP status code
@@ -83,67 +110,134 @@ func (s HTTPServer) Status(code int) (codes.Code, string) {
return codes.Unset, ""
}
-type MetricData struct {
- ServerName string
+type ServerMetricData struct {
+ ServerName string
+ ResponseSize int64
+
+ MetricData
+ MetricAttributes
+}
+
+type MetricAttributes struct {
Req *http.Request
StatusCode int
AdditionalAttributes []attribute.KeyValue
-
- RequestSize int64
- ResponseSize int64
- ElapsedTime float64
}
-func (s HTTPServer) RecordMetrics(ctx context.Context, md MetricData) {
- if s.requestBytesCounter == nil || s.responseBytesCounter == nil || s.serverLatencyMeasure == nil {
- // This will happen if an HTTPServer{} is used insted of NewHTTPServer.
- return
+type MetricData struct {
+ RequestSize int64
+
+ // The request duration, in milliseconds
+ ElapsedTime float64
+}
+
+var (
+ metricAddOptionPool = &sync.Pool{
+ New: func() interface{} {
+ return &[]metric.AddOption{}
+ },
}
- attributes := oldHTTPServer{}.MetricAttributes(md.ServerName, md.Req, md.StatusCode, md.AdditionalAttributes)
- o := metric.WithAttributeSet(attribute.NewSet(attributes...))
- addOpts := []metric.AddOption{o} // Allocate vararg slice once.
- s.requestBytesCounter.Add(ctx, md.RequestSize, addOpts...)
- s.responseBytesCounter.Add(ctx, md.ResponseSize, addOpts...)
- s.serverLatencyMeasure.Record(ctx, md.ElapsedTime, o)
+ metricRecordOptionPool = &sync.Pool{
+ New: func() interface{} {
+ return &[]metric.RecordOption{}
+ },
+ }
+)
- // TODO: Duplicate Metrics
+func (s HTTPServer) RecordMetrics(ctx context.Context, md ServerMetricData) {
+ if s.requestDurationHistogram != nil && s.requestBodySizeHistogram != nil && s.responseBodySizeHistogram != nil {
+ attributes := CurrentHTTPServer{}.MetricAttributes(md.ServerName, md.Req, md.StatusCode, md.AdditionalAttributes)
+ o := metric.WithAttributeSet(attribute.NewSet(attributes...))
+ recordOpts := metricRecordOptionPool.Get().(*[]metric.RecordOption)
+ *recordOpts = append(*recordOpts, o)
+ s.requestBodySizeHistogram.Record(ctx, md.RequestSize, *recordOpts...)
+ s.responseBodySizeHistogram.Record(ctx, md.ResponseSize, *recordOpts...)
+ s.requestDurationHistogram.Record(ctx, md.ElapsedTime/1000.0, o)
+ *recordOpts = (*recordOpts)[:0]
+ metricRecordOptionPool.Put(recordOpts)
+ }
+
+ if s.duplicate && s.requestBytesCounter != nil && s.responseBytesCounter != nil && s.serverLatencyMeasure != nil {
+ attributes := OldHTTPServer{}.MetricAttributes(md.ServerName, md.Req, md.StatusCode, md.AdditionalAttributes)
+ o := metric.WithAttributeSet(attribute.NewSet(attributes...))
+ addOpts := metricAddOptionPool.Get().(*[]metric.AddOption)
+ *addOpts = append(*addOpts, o)
+ s.requestBytesCounter.Add(ctx, md.RequestSize, *addOpts...)
+ s.responseBytesCounter.Add(ctx, md.ResponseSize, *addOpts...)
+ s.serverLatencyMeasure.Record(ctx, md.ElapsedTime, o)
+ *addOpts = (*addOpts)[:0]
+ metricAddOptionPool.Put(addOpts)
+ }
+}
+
+// hasOptIn returns true if the comma-separated version string contains the
+// exact optIn value.
+func hasOptIn(version, optIn string) bool {
+ for _, v := range strings.Split(version, ",") {
+ if strings.TrimSpace(v) == optIn {
+ return true
+ }
+ }
+ return false
}
func NewHTTPServer(meter metric.Meter) HTTPServer {
- env := strings.ToLower(os.Getenv("OTEL_SEMCONV_STABILITY_OPT_IN"))
- duplicate := env == "http/dup"
+ env := strings.ToLower(os.Getenv(OTelSemConvStabilityOptIn))
+ duplicate := hasOptIn(env, "http/dup")
server := HTTPServer{
duplicate: duplicate,
}
- server.requestBytesCounter, server.responseBytesCounter, server.serverLatencyMeasure = oldHTTPServer{}.createMeasures(meter)
+ server.requestBodySizeHistogram, server.responseBodySizeHistogram, server.requestDurationHistogram = CurrentHTTPServer{}.createMeasures(meter)
+ if duplicate {
+ server.requestBytesCounter, server.responseBytesCounter, server.serverLatencyMeasure = OldHTTPServer{}.createMeasures(meter)
+ }
return server
}
type HTTPClient struct {
duplicate bool
+
+ // old metrics
+ requestBytesCounter metric.Int64Counter
+ responseBytesCounter metric.Int64Counter
+ latencyMeasure metric.Float64Histogram
+
+ // new metrics
+ requestBodySize metric.Int64Histogram
+ requestDuration metric.Float64Histogram
}
-func NewHTTPClient() HTTPClient {
- env := strings.ToLower(os.Getenv("OTEL_SEMCONV_STABILITY_OPT_IN"))
- return HTTPClient{duplicate: env == "http/dup"}
+func NewHTTPClient(meter metric.Meter) HTTPClient {
+ env := strings.ToLower(os.Getenv(OTelSemConvStabilityOptIn))
+ duplicate := hasOptIn(env, "http/dup")
+ client := HTTPClient{
+ duplicate: duplicate,
+ }
+ client.requestBodySize, client.requestDuration = CurrentHTTPClient{}.createMeasures(meter)
+ if duplicate {
+ client.requestBytesCounter, client.responseBytesCounter, client.latencyMeasure = OldHTTPClient{}.createMeasures(meter)
+ }
+
+ return client
}
// RequestTraceAttrs returns attributes for an HTTP request made by a client.
func (c HTTPClient) RequestTraceAttrs(req *http.Request) []attribute.KeyValue {
+ attrs := CurrentHTTPClient{}.RequestTraceAttrs(req)
if c.duplicate {
- return append(oldHTTPClient{}.RequestTraceAttrs(req), newHTTPClient{}.RequestTraceAttrs(req)...)
+ return OldHTTPClient{}.RequestTraceAttrs(req, attrs)
}
- return oldHTTPClient{}.RequestTraceAttrs(req)
+ return attrs
}
// ResponseTraceAttrs returns metric attributes for an HTTP request made by a client.
func (c HTTPClient) ResponseTraceAttrs(resp *http.Response) []attribute.KeyValue {
+ attrs := CurrentHTTPClient{}.ResponseTraceAttrs(resp)
if c.duplicate {
- return append(oldHTTPClient{}.ResponseTraceAttrs(resp), newHTTPClient{}.ResponseTraceAttrs(resp)...)
+ return OldHTTPClient{}.ResponseTraceAttrs(resp, attrs)
}
-
- return oldHTTPClient{}.ResponseTraceAttrs(resp)
+ return attrs
}
func (c HTTPClient) Status(code int) (codes.Code, string) {
@@ -157,9 +251,73 @@ func (c HTTPClient) Status(code int) (codes.Code, string) {
}
func (c HTTPClient) ErrorType(err error) attribute.KeyValue {
- if c.duplicate {
- return newHTTPClient{}.ErrorType(err)
+ return CurrentHTTPClient{}.ErrorType(err)
+}
+
+type MetricOpts struct {
+ measurement metric.MeasurementOption
+ addOptions metric.AddOption
+}
+
+func (o MetricOpts) MeasurementOption() metric.MeasurementOption {
+ return o.measurement
+}
+
+func (o MetricOpts) AddOptions() metric.AddOption {
+ return o.addOptions
+}
+
+func (c HTTPClient) MetricOptions(ma MetricAttributes) map[string]MetricOpts {
+ opts := map[string]MetricOpts{}
+
+ attributes := CurrentHTTPClient{}.MetricAttributes(ma.Req, ma.StatusCode, ma.AdditionalAttributes)
+ set := metric.WithAttributeSet(attribute.NewSet(attributes...))
+ opts["new"] = MetricOpts{
+ measurement: set,
+ addOptions: set,
}
- return attribute.KeyValue{}
+ if c.duplicate {
+ attributes := OldHTTPClient{}.MetricAttributes(ma.Req, ma.StatusCode, ma.AdditionalAttributes)
+ set := metric.WithAttributeSet(attribute.NewSet(attributes...))
+ opts["old"] = MetricOpts{
+ measurement: set,
+ addOptions: set,
+ }
+ }
+
+ return opts
+}
+
+func (s HTTPClient) RecordMetrics(ctx context.Context, md MetricData, opts map[string]MetricOpts) {
+ if s.requestBodySize == nil || s.requestDuration == nil {
+ // This will happen if an HTTPClient{} is used instead of NewHTTPClient().
+ return
+ }
+
+ s.requestBodySize.Record(ctx, md.RequestSize, opts["new"].MeasurementOption())
+ s.requestDuration.Record(ctx, md.ElapsedTime/1000, opts["new"].MeasurementOption())
+
+ if s.duplicate {
+ s.requestBytesCounter.Add(ctx, md.RequestSize, opts["old"].AddOptions())
+ s.latencyMeasure.Record(ctx, md.ElapsedTime, opts["old"].MeasurementOption())
+ }
+}
+
+func (s HTTPClient) RecordResponseSize(ctx context.Context, responseData int64, opts map[string]MetricOpts) {
+ if s.responseBytesCounter == nil {
+ // This will happen if an HTTPClient{} is used instead of NewHTTPClient().
+ return
+ }
+
+ s.responseBytesCounter.Add(ctx, responseData, opts["old"].AddOptions())
+}
+
+func (s HTTPClient) TraceAttributes(host string) []attribute.KeyValue {
+ attrs := CurrentHTTPClient{}.TraceAttributes(host)
+ if s.duplicate {
+ return OldHTTPClient{}.TraceAttributes(host, attrs)
+ }
+
+ return attrs
}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/gen.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/gen.go
new file mode 100644
index 0000000000..f2cf8a152d
--- /dev/null
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/gen.go
@@ -0,0 +1,14 @@
+// Copyright The OpenTelemetry Authors
+// SPDX-License-Identifier: Apache-2.0
+
+package semconv // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv"
+
+// Generate semconv package:
+//go:generate gotmpl --body=../../../../../../internal/shared/semconv/bench_test.go.tmpl "--data={ \"pkg\": \"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp\" }" --out=bench_test.go
+//go:generate gotmpl --body=../../../../../../internal/shared/semconv/env.go.tmpl "--data={ \"pkg\": \"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp\" }" --out=env.go
+//go:generate gotmpl --body=../../../../../../internal/shared/semconv/env_test.go.tmpl "--data={ \"pkg\": \"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp\" }" --out=env_test.go
+//go:generate gotmpl --body=../../../../../../internal/shared/semconv/httpconv.go.tmpl "--data={ \"pkg\": \"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp\" }" --out=httpconv.go
+//go:generate gotmpl --body=../../../../../../internal/shared/semconv/httpconv_test.go.tmpl "--data={ \"pkg\": \"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp\" }" --out=httpconv_test.go
+//go:generate gotmpl --body=../../../../../../internal/shared/semconv/util.go.tmpl "--data={ \"pkg\": \"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp\" }" --out=util.go
+//go:generate gotmpl --body=../../../../../../internal/shared/semconv/util_test.go.tmpl "--data={ \"pkg\": \"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp\" }" --out=util_test.go
+//go:generate gotmpl --body=../../../../../../internal/shared/semconv/v1.20.0.go.tmpl "--data={ \"pkg\": \"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp\" }" --out=v1.20.0.go
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/httpconv.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/httpconv.go
index 745b8c67bc..53976b0d5a 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/httpconv.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/httpconv.go
@@ -1,22 +1,35 @@
+// Code generated by gotmpl. DO NOT MODIFY.
+// source: internal/shared/semconv/httpconv.go.tmpl
+
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
+// Package semconv provides OpenTelemetry semantic convention types and
+// functionality.
package semconv // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv"
import (
"fmt"
"net/http"
"reflect"
+ "slices"
"strconv"
"strings"
"go.opentelemetry.io/otel/attribute"
+ "go.opentelemetry.io/otel/metric"
+ "go.opentelemetry.io/otel/metric/noop"
semconvNew "go.opentelemetry.io/otel/semconv/v1.26.0"
)
-type newHTTPServer struct{}
+type RequestTraceAttrsOpts struct {
+ // If set, this is used as value for the "http.client_ip" attribute.
+ HTTPClientIP string
+}
-// TraceRequest returns trace attributes for an HTTP request received by a
+type CurrentHTTPServer struct{}
+
+// RequestTraceAttrs returns trace attributes for an HTTP request received by a
// server.
//
// The server must be the primary server name if it is known. For example this
@@ -32,18 +45,18 @@ type newHTTPServer struct{}
//
// If the primary server name is not known, server should be an empty string.
// The req Host will be used to determine the server instead.
-func (n newHTTPServer) RequestTraceAttrs(server string, req *http.Request) []attribute.KeyValue {
+func (n CurrentHTTPServer) RequestTraceAttrs(server string, req *http.Request, opts RequestTraceAttrsOpts) []attribute.KeyValue {
count := 3 // ServerAddress, Method, Scheme
var host string
var p int
if server == "" {
- host, p = splitHostPort(req.Host)
+ host, p = SplitHostPort(req.Host)
} else {
// Prioritize the primary server name.
- host, p = splitHostPort(server)
+ host, p = SplitHostPort(server)
if p < 0 {
- _, p = splitHostPort(req.Host)
+ _, p = SplitHostPort(req.Host)
}
}
@@ -59,7 +72,8 @@ func (n newHTTPServer) RequestTraceAttrs(server string, req *http.Request) []att
scheme := n.scheme(req.TLS != nil)
- if peer, peerPort := splitHostPort(req.RemoteAddr); peer != "" {
+ peer, peerPort := SplitHostPort(req.RemoteAddr)
+ if peer != "" {
// The Go HTTP server sets RemoteAddr to "IP:port", this will not be a
// file-path that would be interpreted with a sock family.
count++
@@ -73,7 +87,17 @@ func (n newHTTPServer) RequestTraceAttrs(server string, req *http.Request) []att
count++
}
- clientIP := serverClientIP(req.Header.Get("X-Forwarded-For"))
+ // For client IP, use, in order:
+ // 1. The value passed in the options
+ // 2. The value in the X-Forwarded-For header
+ // 3. The peer address
+ clientIP := opts.HTTPClientIP
+ if clientIP == "" {
+ clientIP = serverClientIP(req.Header.Get("X-Forwarded-For"))
+ if clientIP == "" {
+ clientIP = peer
+ }
+ }
if clientIP != "" {
count++
}
@@ -90,6 +114,11 @@ func (n newHTTPServer) RequestTraceAttrs(server string, req *http.Request) []att
count++
}
+ route := httpRoute(req.Pattern)
+ if route != "" {
+ count++
+ }
+
attrs := make([]attribute.KeyValue, 0, count)
attrs = append(attrs,
semconvNew.ServerAddress(host),
@@ -104,7 +133,7 @@ func (n newHTTPServer) RequestTraceAttrs(server string, req *http.Request) []att
attrs = append(attrs, methodOriginal)
}
- if peer, peerPort := splitHostPort(req.RemoteAddr); peer != "" {
+ if peer, peerPort := SplitHostPort(req.RemoteAddr); peer != "" {
// The Go HTTP server sets RemoteAddr to "IP:port", this will not be a
// file-path that would be interpreted with a sock family.
attrs = append(attrs, semconvNew.NetworkPeerAddress(peer))
@@ -113,7 +142,7 @@ func (n newHTTPServer) RequestTraceAttrs(server string, req *http.Request) []att
}
}
- if useragent := req.UserAgent(); useragent != "" {
+ if useragent != "" {
attrs = append(attrs, semconvNew.UserAgentOriginal(useragent))
}
@@ -132,10 +161,27 @@ func (n newHTTPServer) RequestTraceAttrs(server string, req *http.Request) []att
attrs = append(attrs, semconvNew.NetworkProtocolVersion(protoVersion))
}
+ if route != "" {
+ attrs = append(attrs, n.Route(route))
+ }
+
return attrs
}
-func (n newHTTPServer) method(method string) (attribute.KeyValue, attribute.KeyValue) {
+func (n CurrentHTTPServer) NetworkTransportAttr(network string) attribute.KeyValue {
+ switch network {
+ case "tcp", "tcp4", "tcp6":
+ return semconvNew.NetworkTransportTCP
+ case "udp", "udp4", "udp6":
+ return semconvNew.NetworkTransportUDP
+ case "unix", "unixgram", "unixpacket":
+ return semconvNew.NetworkTransportUnix
+ default:
+ return semconvNew.NetworkTransportPipe
+ }
+}
+
+func (n CurrentHTTPServer) method(method string) (attribute.KeyValue, attribute.KeyValue) {
if method == "" {
return semconvNew.HTTPRequestMethodGet, attribute.KeyValue{}
}
@@ -150,17 +196,19 @@ func (n newHTTPServer) method(method string) (attribute.KeyValue, attribute.KeyV
return semconvNew.HTTPRequestMethodGet, orig
}
-func (n newHTTPServer) scheme(https bool) attribute.KeyValue { // nolint:revive
+func (n CurrentHTTPServer) scheme(https bool) attribute.KeyValue { // nolint:revive
if https {
return semconvNew.URLScheme("https")
}
return semconvNew.URLScheme("http")
}
-// TraceResponse returns trace attributes for telemetry from an HTTP response.
+// ResponseTraceAttrs returns trace attributes for telemetry from an HTTP
+// response.
//
-// If any of the fields in the ResponseTelemetry are not set the attribute will be omitted.
-func (n newHTTPServer) ResponseTraceAttrs(resp ResponseTelemetry) []attribute.KeyValue {
+// If any of the fields in the ResponseTelemetry are not set the attribute will
+// be omitted.
+func (n CurrentHTTPServer) ResponseTraceAttrs(resp ResponseTelemetry) []attribute.KeyValue {
var count int
if resp.ReadBytes > 0 {
@@ -195,14 +243,95 @@ func (n newHTTPServer) ResponseTraceAttrs(resp ResponseTelemetry) []attribute.Ke
}
// Route returns the attribute for the route.
-func (n newHTTPServer) Route(route string) attribute.KeyValue {
+func (n CurrentHTTPServer) Route(route string) attribute.KeyValue {
return semconvNew.HTTPRoute(route)
}
-type newHTTPClient struct{}
+func (n CurrentHTTPServer) createMeasures(meter metric.Meter) (metric.Int64Histogram, metric.Int64Histogram, metric.Float64Histogram) {
+ if meter == nil {
+ return noop.Int64Histogram{}, noop.Int64Histogram{}, noop.Float64Histogram{}
+ }
+
+ var err error
+ requestBodySizeHistogram, err := meter.Int64Histogram(
+ semconvNew.HTTPServerRequestBodySizeName,
+ metric.WithUnit(semconvNew.HTTPServerRequestBodySizeUnit),
+ metric.WithDescription(semconvNew.HTTPServerRequestBodySizeDescription),
+ )
+ handleErr(err)
+
+ responseBodySizeHistogram, err := meter.Int64Histogram(
+ semconvNew.HTTPServerResponseBodySizeName,
+ metric.WithUnit(semconvNew.HTTPServerResponseBodySizeUnit),
+ metric.WithDescription(semconvNew.HTTPServerResponseBodySizeDescription),
+ )
+ handleErr(err)
+ requestDurationHistogram, err := meter.Float64Histogram(
+ semconvNew.HTTPServerRequestDurationName,
+ metric.WithUnit(semconvNew.HTTPServerRequestDurationUnit),
+ metric.WithDescription(semconvNew.HTTPServerRequestDurationDescription),
+ metric.WithExplicitBucketBoundaries(0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10),
+ )
+ handleErr(err)
+
+ return requestBodySizeHistogram, responseBodySizeHistogram, requestDurationHistogram
+}
+
+func (n CurrentHTTPServer) MetricAttributes(server string, req *http.Request, statusCode int, additionalAttributes []attribute.KeyValue) []attribute.KeyValue {
+ num := len(additionalAttributes) + 3
+ var host string
+ var p int
+ if server == "" {
+ host, p = SplitHostPort(req.Host)
+ } else {
+ // Prioritize the primary server name.
+ host, p = SplitHostPort(server)
+ if p < 0 {
+ _, p = SplitHostPort(req.Host)
+ }
+ }
+ hostPort := requiredHTTPPort(req.TLS != nil, p)
+ if hostPort > 0 {
+ num++
+ }
+ protoName, protoVersion := netProtocol(req.Proto)
+ if protoName != "" {
+ num++
+ }
+ if protoVersion != "" {
+ num++
+ }
+
+ if statusCode > 0 {
+ num++
+ }
+
+ attributes := slices.Grow(additionalAttributes, num)
+ attributes = append(attributes,
+ semconvNew.HTTPRequestMethodKey.String(standardizeHTTPMethod(req.Method)),
+ n.scheme(req.TLS != nil),
+ semconvNew.ServerAddress(host))
+
+ if hostPort > 0 {
+ attributes = append(attributes, semconvNew.ServerPort(hostPort))
+ }
+ if protoName != "" {
+ attributes = append(attributes, semconvNew.NetworkProtocolName(protoName))
+ }
+ if protoVersion != "" {
+ attributes = append(attributes, semconvNew.NetworkProtocolVersion(protoVersion))
+ }
+
+ if statusCode > 0 {
+ attributes = append(attributes, semconvNew.HTTPResponseStatusCode(statusCode))
+ }
+ return attributes
+}
+
+type CurrentHTTPClient struct{}
// RequestTraceAttrs returns trace attributes for an HTTP request made by a client.
-func (n newHTTPClient) RequestTraceAttrs(req *http.Request) []attribute.KeyValue {
+func (n CurrentHTTPClient) RequestTraceAttrs(req *http.Request) []attribute.KeyValue {
/*
below attributes are returned:
- http.request.method
@@ -222,7 +351,7 @@ func (n newHTTPClient) RequestTraceAttrs(req *http.Request) []attribute.KeyValue
var requestHost string
var requestPort int
for _, hostport := range []string{urlHost, req.Header.Get("Host")} {
- requestHost, requestPort = splitHostPort(hostport)
+ requestHost, requestPort = SplitHostPort(hostport)
if requestHost != "" || requestPort > 0 {
break
}
@@ -284,7 +413,7 @@ func (n newHTTPClient) RequestTraceAttrs(req *http.Request) []attribute.KeyValue
}
// ResponseTraceAttrs returns trace attributes for an HTTP response made by a client.
-func (n newHTTPClient) ResponseTraceAttrs(resp *http.Response) []attribute.KeyValue {
+func (n CurrentHTTPClient) ResponseTraceAttrs(resp *http.Response) []attribute.KeyValue {
/*
below attributes are returned:
- http.response.status_code
@@ -311,7 +440,7 @@ func (n newHTTPClient) ResponseTraceAttrs(resp *http.Response) []attribute.KeyVa
return attrs
}
-func (n newHTTPClient) ErrorType(err error) attribute.KeyValue {
+func (n CurrentHTTPClient) ErrorType(err error) attribute.KeyValue {
t := reflect.TypeOf(err)
var value string
if t.PkgPath() == "" && t.Name() == "" {
@@ -328,7 +457,7 @@ func (n newHTTPClient) ErrorType(err error) attribute.KeyValue {
return semconvNew.ErrorTypeKey.String(value)
}
-func (n newHTTPClient) method(method string) (attribute.KeyValue, attribute.KeyValue) {
+func (n CurrentHTTPClient) method(method string) (attribute.KeyValue, attribute.KeyValue) {
if method == "" {
return semconvNew.HTTPRequestMethodGet, attribute.KeyValue{}
}
@@ -343,6 +472,102 @@ func (n newHTTPClient) method(method string) (attribute.KeyValue, attribute.KeyV
return semconvNew.HTTPRequestMethodGet, orig
}
+func (n CurrentHTTPClient) createMeasures(meter metric.Meter) (metric.Int64Histogram, metric.Float64Histogram) {
+ if meter == nil {
+ return noop.Int64Histogram{}, noop.Float64Histogram{}
+ }
+
+ var err error
+ requestBodySize, err := meter.Int64Histogram(
+ semconvNew.HTTPClientRequestBodySizeName,
+ metric.WithUnit(semconvNew.HTTPClientRequestBodySizeUnit),
+ metric.WithDescription(semconvNew.HTTPClientRequestBodySizeDescription),
+ )
+ handleErr(err)
+
+ requestDuration, err := meter.Float64Histogram(
+ semconvNew.HTTPClientRequestDurationName,
+ metric.WithUnit(semconvNew.HTTPClientRequestDurationUnit),
+ metric.WithDescription(semconvNew.HTTPClientRequestDurationDescription),
+ metric.WithExplicitBucketBoundaries(0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10),
+ )
+ handleErr(err)
+
+ return requestBodySize, requestDuration
+}
+
+func (n CurrentHTTPClient) MetricAttributes(req *http.Request, statusCode int, additionalAttributes []attribute.KeyValue) []attribute.KeyValue {
+ num := len(additionalAttributes) + 2
+ var h string
+ if req.URL != nil {
+ h = req.URL.Host
+ }
+ var requestHost string
+ var requestPort int
+ for _, hostport := range []string{h, req.Header.Get("Host")} {
+ requestHost, requestPort = SplitHostPort(hostport)
+ if requestHost != "" || requestPort > 0 {
+ break
+ }
+ }
+
+ port := requiredHTTPPort(req.URL != nil && req.URL.Scheme == "https", requestPort)
+ if port > 0 {
+ num++
+ }
+
+ protoName, protoVersion := netProtocol(req.Proto)
+ if protoName != "" {
+ num++
+ }
+ if protoVersion != "" {
+ num++
+ }
+
+ if statusCode > 0 {
+ num++
+ }
+
+ attributes := slices.Grow(additionalAttributes, num)
+ attributes = append(attributes,
+ semconvNew.HTTPRequestMethodKey.String(standardizeHTTPMethod(req.Method)),
+ semconvNew.ServerAddress(requestHost),
+ n.scheme(req),
+ )
+
+ if port > 0 {
+ attributes = append(attributes, semconvNew.ServerPort(port))
+ }
+ if protoName != "" {
+ attributes = append(attributes, semconvNew.NetworkProtocolName(protoName))
+ }
+ if protoVersion != "" {
+ attributes = append(attributes, semconvNew.NetworkProtocolVersion(protoVersion))
+ }
+
+ if statusCode > 0 {
+ attributes = append(attributes, semconvNew.HTTPResponseStatusCode(statusCode))
+ }
+ return attributes
+}
+
+// TraceAttributes returns attributes for httptrace.
+func (n CurrentHTTPClient) TraceAttributes(host string) []attribute.KeyValue {
+ return []attribute.KeyValue{
+ semconvNew.ServerAddress(host),
+ }
+}
+
+func (n CurrentHTTPClient) scheme(req *http.Request) attribute.KeyValue {
+ if req.URL != nil && req.URL.Scheme != "" {
+ return semconvNew.URLScheme(req.URL.Scheme)
+ }
+ if req.TLS != nil {
+ return semconvNew.URLScheme("https")
+ }
+ return semconvNew.URLScheme("http")
+}
+
func isErrorStatusCode(code int) bool {
return code >= 400 || code < 100
}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/util.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/util.go
index e6e14924f5..bc1f7751db 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/util.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/util.go
@@ -1,3 +1,6 @@
+// Code generated by gotmpl. DO NOT MODIFY.
+// source: internal/shared/semconv/util.go.tmpl
+
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
@@ -14,28 +17,28 @@ import (
semconvNew "go.opentelemetry.io/otel/semconv/v1.26.0"
)
-// splitHostPort splits a network address hostport of the form "host",
+// SplitHostPort splits a network address hostport of the form "host",
// "host%zone", "[host]", "[host%zone], "host:port", "host%zone:port",
// "[host]:port", "[host%zone]:port", or ":port" into host or host%zone and
// port.
//
// An empty host is returned if it is not provided or unparsable. A negative
// port is returned if it is not provided or unparsable.
-func splitHostPort(hostport string) (host string, port int) {
+func SplitHostPort(hostport string) (host string, port int) {
port = -1
if strings.HasPrefix(hostport, "[") {
- addrEnd := strings.LastIndex(hostport, "]")
+ addrEnd := strings.LastIndexByte(hostport, ']')
if addrEnd < 0 {
// Invalid hostport.
return
}
- if i := strings.LastIndex(hostport[addrEnd:], ":"); i < 0 {
+ if i := strings.LastIndexByte(hostport[addrEnd:], ':'); i < 0 {
host = hostport[1:addrEnd]
return
}
} else {
- if i := strings.LastIndex(hostport, ":"); i < 0 {
+ if i := strings.LastIndexByte(hostport, ':'); i < 0 {
host = hostport
return
}
@@ -67,15 +70,31 @@ func requiredHTTPPort(https bool, port int) int { // nolint:revive
}
func serverClientIP(xForwardedFor string) string {
- if idx := strings.Index(xForwardedFor, ","); idx >= 0 {
+ if idx := strings.IndexByte(xForwardedFor, ','); idx >= 0 {
xForwardedFor = xForwardedFor[:idx]
}
return xForwardedFor
}
+func httpRoute(pattern string) string {
+ if idx := strings.IndexByte(pattern, '/'); idx >= 0 {
+ return pattern[idx:]
+ }
+ return ""
+}
+
func netProtocol(proto string) (name string, version string) {
name, version, _ = strings.Cut(proto, "/")
- name = strings.ToLower(name)
+ switch name {
+ case "HTTP":
+ name = "http"
+ case "QUIC":
+ name = "quic"
+ case "SPDY":
+ name = "spdy"
+ default:
+ name = strings.ToLower(name)
+ }
return name, version
}
@@ -96,3 +115,13 @@ func handleErr(err error) {
otel.Handle(err)
}
}
+
+func standardizeHTTPMethod(method string) string {
+ method = strings.ToUpper(method)
+ switch method {
+ case http.MethodConnect, http.MethodDelete, http.MethodGet, http.MethodHead, http.MethodOptions, http.MethodPatch, http.MethodPost, http.MethodPut, http.MethodTrace:
+ default:
+ method = "_OTHER"
+ }
+ return method
+}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/v1.20.0.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/v1.20.0.go
index c999b05e67..ba7fccf1ef 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/v1.20.0.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/v1.20.0.go
@@ -1,3 +1,6 @@
+// Code generated by gotmpl. DO NOT MODIFY.
+// source: internal/shared/semconv/v120.0.go.tmpl
+
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
@@ -8,7 +11,6 @@ import (
"io"
"net/http"
"slices"
- "strings"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil"
"go.opentelemetry.io/otel/attribute"
@@ -17,7 +19,7 @@ import (
semconv "go.opentelemetry.io/otel/semconv/v1.20.0"
)
-type oldHTTPServer struct{}
+type OldHTTPServer struct{}
// RequestTraceAttrs returns trace attributes for an HTTP request received by a
// server.
@@ -35,16 +37,18 @@ type oldHTTPServer struct{}
//
// If the primary server name is not known, server should be an empty string.
// The req Host will be used to determine the server instead.
-func (o oldHTTPServer) RequestTraceAttrs(server string, req *http.Request) []attribute.KeyValue {
- return semconvutil.HTTPServerRequest(server, req)
+func (o OldHTTPServer) RequestTraceAttrs(server string, req *http.Request, attrs []attribute.KeyValue) []attribute.KeyValue {
+ return semconvutil.HTTPServerRequest(server, req, semconvutil.HTTPServerRequestOptions{}, attrs)
+}
+
+func (o OldHTTPServer) NetworkTransportAttr(network string) attribute.KeyValue {
+ return semconvutil.NetTransport(network)
}
// ResponseTraceAttrs returns trace attributes for telemetry from an HTTP response.
//
// If any of the fields in the ResponseTelemetry are not set the attribute will be omitted.
-func (o oldHTTPServer) ResponseTraceAttrs(resp ResponseTelemetry) []attribute.KeyValue {
- attributes := []attribute.KeyValue{}
-
+func (o OldHTTPServer) ResponseTraceAttrs(resp ResponseTelemetry, attributes []attribute.KeyValue) []attribute.KeyValue {
if resp.ReadBytes > 0 {
attributes = append(attributes, semconv.HTTPRequestContentLength(int(resp.ReadBytes)))
}
@@ -67,7 +71,7 @@ func (o oldHTTPServer) ResponseTraceAttrs(resp ResponseTelemetry) []attribute.Ke
}
// Route returns the attribute for the route.
-func (o oldHTTPServer) Route(route string) attribute.KeyValue {
+func (o OldHTTPServer) Route(route string) attribute.KeyValue {
return semconv.HTTPRoute(route)
}
@@ -84,7 +88,7 @@ const (
serverDuration = "http.server.duration" // Incoming end to end duration, milliseconds
)
-func (h oldHTTPServer) createMeasures(meter metric.Meter) (metric.Int64Counter, metric.Int64Counter, metric.Float64Histogram) {
+func (h OldHTTPServer) createMeasures(meter metric.Meter) (metric.Int64Counter, metric.Int64Counter, metric.Float64Histogram) {
if meter == nil {
return noop.Int64Counter{}, noop.Int64Counter{}, noop.Float64Histogram{}
}
@@ -113,17 +117,17 @@ func (h oldHTTPServer) createMeasures(meter metric.Meter) (metric.Int64Counter,
return requestBytesCounter, responseBytesCounter, serverLatencyMeasure
}
-func (o oldHTTPServer) MetricAttributes(server string, req *http.Request, statusCode int, additionalAttributes []attribute.KeyValue) []attribute.KeyValue {
+func (o OldHTTPServer) MetricAttributes(server string, req *http.Request, statusCode int, additionalAttributes []attribute.KeyValue) []attribute.KeyValue {
n := len(additionalAttributes) + 3
var host string
var p int
if server == "" {
- host, p = splitHostPort(req.Host)
+ host, p = SplitHostPort(req.Host)
} else {
// Prioritize the primary server name.
- host, p = splitHostPort(server)
+ host, p = SplitHostPort(server)
if p < 0 {
- _, p = splitHostPort(req.Host)
+ _, p = SplitHostPort(req.Host)
}
}
hostPort := requiredHTTPPort(req.TLS != nil, p)
@@ -144,7 +148,7 @@ func (o oldHTTPServer) MetricAttributes(server string, req *http.Request, status
attributes := slices.Grow(additionalAttributes, n)
attributes = append(attributes,
- o.methodMetric(req.Method),
+ semconv.HTTPMethod(standardizeHTTPMethod(req.Method)),
o.scheme(req.TLS != nil),
semconv.NetHostName(host))
@@ -164,29 +168,106 @@ func (o oldHTTPServer) MetricAttributes(server string, req *http.Request, status
return attributes
}
-func (o oldHTTPServer) methodMetric(method string) attribute.KeyValue {
- method = strings.ToUpper(method)
- switch method {
- case http.MethodConnect, http.MethodDelete, http.MethodGet, http.MethodHead, http.MethodOptions, http.MethodPatch, http.MethodPost, http.MethodPut, http.MethodTrace:
- default:
- method = "_OTHER"
- }
- return semconv.HTTPMethod(method)
-}
-
-func (o oldHTTPServer) scheme(https bool) attribute.KeyValue { // nolint:revive
+func (o OldHTTPServer) scheme(https bool) attribute.KeyValue { // nolint:revive
if https {
return semconv.HTTPSchemeHTTPS
}
return semconv.HTTPSchemeHTTP
}
-type oldHTTPClient struct{}
+type OldHTTPClient struct{}
-func (o oldHTTPClient) RequestTraceAttrs(req *http.Request) []attribute.KeyValue {
- return semconvutil.HTTPClientRequest(req)
+func (o OldHTTPClient) RequestTraceAttrs(req *http.Request, attrs []attribute.KeyValue) []attribute.KeyValue {
+ return semconvutil.HTTPClientRequest(req, attrs)
}
-func (o oldHTTPClient) ResponseTraceAttrs(resp *http.Response) []attribute.KeyValue {
- return semconvutil.HTTPClientResponse(resp)
+func (o OldHTTPClient) ResponseTraceAttrs(resp *http.Response, attrs []attribute.KeyValue) []attribute.KeyValue {
+ return semconvutil.HTTPClientResponse(resp, attrs)
+}
+
+func (o OldHTTPClient) MetricAttributes(req *http.Request, statusCode int, additionalAttributes []attribute.KeyValue) []attribute.KeyValue {
+ /* The following semantic conventions are returned if present:
+ http.method string
+ http.status_code int
+ net.peer.name string
+ net.peer.port int
+ */
+
+ n := 2 // method, peer name.
+ var h string
+ if req.URL != nil {
+ h = req.URL.Host
+ }
+ var requestHost string
+ var requestPort int
+ for _, hostport := range []string{h, req.Header.Get("Host")} {
+ requestHost, requestPort = SplitHostPort(hostport)
+ if requestHost != "" || requestPort > 0 {
+ break
+ }
+ }
+
+ port := requiredHTTPPort(req.URL != nil && req.URL.Scheme == "https", requestPort)
+ if port > 0 {
+ n++
+ }
+
+ if statusCode > 0 {
+ n++
+ }
+
+ attributes := slices.Grow(additionalAttributes, n)
+ attributes = append(attributes,
+ semconv.HTTPMethod(standardizeHTTPMethod(req.Method)),
+ semconv.NetPeerName(requestHost),
+ )
+
+ if port > 0 {
+ attributes = append(attributes, semconv.NetPeerPort(port))
+ }
+
+ if statusCode > 0 {
+ attributes = append(attributes, semconv.HTTPStatusCode(statusCode))
+ }
+ return attributes
+}
+
+// Client HTTP metrics.
+const (
+ clientRequestSize = "http.client.request.size" // Incoming request bytes total
+ clientResponseSize = "http.client.response.size" // Incoming response bytes total
+ clientDuration = "http.client.duration" // Incoming end to end duration, milliseconds
+)
+
+func (o OldHTTPClient) createMeasures(meter metric.Meter) (metric.Int64Counter, metric.Int64Counter, metric.Float64Histogram) {
+ if meter == nil {
+ return noop.Int64Counter{}, noop.Int64Counter{}, noop.Float64Histogram{}
+ }
+ requestBytesCounter, err := meter.Int64Counter(
+ clientRequestSize,
+ metric.WithUnit("By"),
+ metric.WithDescription("Measures the size of HTTP request messages."),
+ )
+ handleErr(err)
+
+ responseBytesCounter, err := meter.Int64Counter(
+ clientResponseSize,
+ metric.WithUnit("By"),
+ metric.WithDescription("Measures the size of HTTP response messages."),
+ )
+ handleErr(err)
+
+ latencyMeasure, err := meter.Float64Histogram(
+ clientDuration,
+ metric.WithUnit("ms"),
+ metric.WithDescription("Measures the duration of outbound HTTP requests."),
+ )
+ handleErr(err)
+
+ return requestBytesCounter, responseBytesCounter, latencyMeasure
+}
+
+// TraceAttributes returns attributes for httptrace.
+func (c OldHTTPClient) TraceAttributes(host string, attrs []attribute.KeyValue) []attribute.KeyValue {
+ return append(attrs, semconv.NetHostName(host))
}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/httpconv.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/httpconv.go
index a73bb06e90..b997354793 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/httpconv.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/httpconv.go
@@ -1,14 +1,16 @@
-// Code created by gotmpl. DO NOT MODIFY.
+// Code generated by gotmpl. DO NOT MODIFY.
// source: internal/shared/semconvutil/httpconv.go.tmpl
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
+// Package semconvutil provides OpenTelemetry semantic convention utilities.
package semconvutil // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil"
import (
"fmt"
"net/http"
+ "slices"
"strings"
"go.opentelemetry.io/otel/attribute"
@@ -16,6 +18,11 @@ import (
semconv "go.opentelemetry.io/otel/semconv/v1.20.0"
)
+type HTTPServerRequestOptions struct {
+ // If set, this is used as value for the "http.client_ip" attribute.
+ HTTPClientIP string
+}
+
// HTTPClientResponse returns trace attributes for an HTTP response received by a
// client from a server. It will return the following attributes if the related
// values are defined in resp: "http.status.code",
@@ -26,9 +33,9 @@ import (
// attributes. If a complete set of attributes can be generated using the
// request contained in resp. For example:
//
-// append(HTTPClientResponse(resp), ClientRequest(resp.Request)...)
-func HTTPClientResponse(resp *http.Response) []attribute.KeyValue {
- return hc.ClientResponse(resp)
+// HTTPClientResponse(resp, ClientRequest(resp.Request)))
+func HTTPClientResponse(resp *http.Response, attrs []attribute.KeyValue) []attribute.KeyValue {
+ return hc.ClientResponse(resp, attrs)
}
// HTTPClientRequest returns trace attributes for an HTTP request made by a client.
@@ -36,8 +43,8 @@ func HTTPClientResponse(resp *http.Response) []attribute.KeyValue {
// "net.peer.name". The following attributes are returned if the related values
// are defined in req: "net.peer.port", "user_agent.original",
// "http.request_content_length".
-func HTTPClientRequest(req *http.Request) []attribute.KeyValue {
- return hc.ClientRequest(req)
+func HTTPClientRequest(req *http.Request, attrs []attribute.KeyValue) []attribute.KeyValue {
+ return hc.ClientRequest(req, attrs)
}
// HTTPClientRequestMetrics returns metric attributes for an HTTP request made by a client.
@@ -75,8 +82,8 @@ func HTTPClientStatus(code int) (codes.Code, string) {
// "http.target", "net.host.name". The following attributes are returned if
// they related values are defined in req: "net.host.port", "net.sock.peer.addr",
// "net.sock.peer.port", "user_agent.original", "http.client_ip".
-func HTTPServerRequest(server string, req *http.Request) []attribute.KeyValue {
- return hc.ServerRequest(server, req)
+func HTTPServerRequest(server string, req *http.Request, opts HTTPServerRequestOptions, attrs []attribute.KeyValue) []attribute.KeyValue {
+ return hc.ServerRequest(server, req, opts, attrs)
}
// HTTPServerRequestMetrics returns metric attributes for an HTTP request received by a
@@ -153,8 +160,8 @@ var hc = &httpConv{
// attributes. If a complete set of attributes can be generated using the
// request contained in resp. For example:
//
-// append(ClientResponse(resp), ClientRequest(resp.Request)...)
-func (c *httpConv) ClientResponse(resp *http.Response) []attribute.KeyValue {
+// ClientResponse(resp, ClientRequest(resp.Request))
+func (c *httpConv) ClientResponse(resp *http.Response, attrs []attribute.KeyValue) []attribute.KeyValue {
/* The following semantic conventions are returned if present:
http.status_code int
http.response_content_length int
@@ -166,8 +173,11 @@ func (c *httpConv) ClientResponse(resp *http.Response) []attribute.KeyValue {
if resp.ContentLength > 0 {
n++
}
+ if n == 0 {
+ return attrs
+ }
- attrs := make([]attribute.KeyValue, 0, n)
+ attrs = slices.Grow(attrs, n)
if resp.StatusCode > 0 {
attrs = append(attrs, c.HTTPStatusCodeKey.Int(resp.StatusCode))
}
@@ -182,7 +192,7 @@ func (c *httpConv) ClientResponse(resp *http.Response) []attribute.KeyValue {
// "net.peer.name". The following attributes are returned if the related values
// are defined in req: "net.peer.port", "user_agent.original",
// "http.request_content_length", "user_agent.original".
-func (c *httpConv) ClientRequest(req *http.Request) []attribute.KeyValue {
+func (c *httpConv) ClientRequest(req *http.Request, attrs []attribute.KeyValue) []attribute.KeyValue {
/* The following semantic conventions are returned if present:
http.method string
user_agent.original string
@@ -221,8 +231,7 @@ func (c *httpConv) ClientRequest(req *http.Request) []attribute.KeyValue {
n++
}
- attrs := make([]attribute.KeyValue, 0, n)
-
+ attrs = slices.Grow(attrs, n)
attrs = append(attrs, c.method(req.Method))
var u string
@@ -305,7 +314,7 @@ func (c *httpConv) ClientRequestMetrics(req *http.Request) []attribute.KeyValue
// related values are defined in req: "net.host.port", "net.sock.peer.addr",
// "net.sock.peer.port", "user_agent.original", "http.client_ip",
// "net.protocol.name", "net.protocol.version".
-func (c *httpConv) ServerRequest(server string, req *http.Request) []attribute.KeyValue {
+func (c *httpConv) ServerRequest(server string, req *http.Request, opts HTTPServerRequestOptions, attrs []attribute.KeyValue) []attribute.KeyValue {
/* The following semantic conventions are returned if present:
http.method string
http.scheme string
@@ -358,7 +367,17 @@ func (c *httpConv) ServerRequest(server string, req *http.Request) []attribute.K
n++
}
- clientIP := serverClientIP(req.Header.Get("X-Forwarded-For"))
+ // For client IP, use, in order:
+ // 1. The value passed in the options
+ // 2. The value in the X-Forwarded-For header
+ // 3. The peer address
+ clientIP := opts.HTTPClientIP
+ if clientIP == "" {
+ clientIP = serverClientIP(req.Header.Get("X-Forwarded-For"))
+ if clientIP == "" {
+ clientIP = peer
+ }
+ }
if clientIP != "" {
n++
}
@@ -378,7 +397,7 @@ func (c *httpConv) ServerRequest(server string, req *http.Request) []attribute.K
n++
}
- attrs := make([]attribute.KeyValue, 0, n)
+ attrs = slices.Grow(attrs, n)
attrs = append(attrs, c.method(req.Method))
attrs = append(attrs, c.scheme(req.TLS != nil))
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/netconv.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/netconv.go
index b80a1db61f..df97255e41 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/netconv.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/netconv.go
@@ -1,4 +1,4 @@
-// Code created by gotmpl. DO NOT MODIFY.
+// Code generated by gotmpl. DO NOT MODIFY.
// source: internal/shared/semconvutil/netconv.go.tmpl
// Copyright The OpenTelemetry Authors
@@ -200,6 +200,15 @@ func splitHostPort(hostport string) (host string, port int) {
func netProtocol(proto string) (name string, version string) {
name, version, _ = strings.Cut(proto, "/")
- name = strings.ToLower(name)
+ switch name {
+ case "HTTP":
+ name = "http"
+ case "QUIC":
+ name = "quic"
+ case "SPDY":
+ name = "spdy"
+ default:
+ name = strings.ToLower(name)
+ }
return name, version
}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/labeler.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/labeler.go
index ea504e396f..d62ce44b00 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/labeler.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/labeler.go
@@ -35,14 +35,14 @@ func (l *Labeler) Get() []attribute.KeyValue {
type labelerContextKeyType int
-const lablelerContextKey labelerContextKeyType = 0
+const labelerContextKey labelerContextKeyType = 0
// ContextWithLabeler returns a new context with the provided Labeler instance.
// Attributes added to the specified labeler will be injected into metrics
// emitted by the instrumentation. Only one labeller can be injected into the
// context. Injecting it multiple times will override the previous calls.
func ContextWithLabeler(parent context.Context, l *Labeler) context.Context {
- return context.WithValue(parent, lablelerContextKey, l)
+ return context.WithValue(parent, labelerContextKey, l)
}
// LabelerFromContext retrieves a Labeler instance from the provided context if
@@ -50,7 +50,7 @@ func ContextWithLabeler(parent context.Context, l *Labeler) context.Context {
// Labeler is returned and the second return value is false. In this case it is
// safe to use the Labeler but any attributes added to it will not be used.
func LabelerFromContext(ctx context.Context) (*Labeler, bool) {
- l, ok := ctx.Value(lablelerContextKey).(*Labeler)
+ l, ok := ctx.Value(labelerContextKey).(*Labeler)
if !ok {
l = &Labeler{}
}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/start_time_context.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/start_time_context.go
new file mode 100644
index 0000000000..9476ef01b0
--- /dev/null
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/start_time_context.go
@@ -0,0 +1,29 @@
+// Copyright The OpenTelemetry Authors
+// SPDX-License-Identifier: Apache-2.0
+
+package otelhttp // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
+
+import (
+ "context"
+ "time"
+)
+
+type startTimeContextKeyType int
+
+const startTimeContextKey startTimeContextKeyType = 0
+
+// ContextWithStartTime returns a new context with the provided start time. The
+// start time will be used for metrics and traces emitted by the
+// instrumentation. Only one labeller can be injected into the context.
+// Injecting it multiple times will override the previous calls.
+func ContextWithStartTime(parent context.Context, start time.Time) context.Context {
+ return context.WithValue(parent, startTimeContextKey, start)
+}
+
+// StartTimeFromContext retrieves a time.Time from the provided context if one
+// is available. If no start time was found in the provided context, a new,
+// zero start time is returned and the second return value is false.
+func StartTimeFromContext(ctx context.Context) time.Time {
+ t, _ := ctx.Value(startTimeContextKey).(time.Time)
+ return t
+}
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/transport.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/transport.go
index b4119d3438..44b86ad860 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/transport.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/transport.go
@@ -13,11 +13,9 @@ import (
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv"
- "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/codes"
- "go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
@@ -29,7 +27,6 @@ type Transport struct {
rt http.RoundTripper
tracer trace.Tracer
- meter metric.Meter
propagators propagation.TextMapPropagator
spanStartOptions []trace.SpanStartOption
filters []Filter
@@ -37,10 +34,7 @@ type Transport struct {
clientTrace func(context.Context) *httptrace.ClientTrace
metricAttributesFn func(*http.Request) []attribute.KeyValue
- semconv semconv.HTTPClient
- requestBytesCounter metric.Int64Counter
- responseBytesCounter metric.Int64Counter
- latencyMeasure metric.Float64Histogram
+ semconv semconv.HTTPClient
}
var _ http.RoundTripper = &Transport{}
@@ -57,8 +51,7 @@ func NewTransport(base http.RoundTripper, opts ...Option) *Transport {
}
t := Transport{
- rt: base,
- semconv: semconv.NewHTTPClient(),
+ rt: base,
}
defaultOpts := []Option{
@@ -68,46 +61,21 @@ func NewTransport(base http.RoundTripper, opts ...Option) *Transport {
c := newConfig(append(defaultOpts, opts...)...)
t.applyConfig(c)
- t.createMeasures()
return &t
}
func (t *Transport) applyConfig(c *config) {
t.tracer = c.Tracer
- t.meter = c.Meter
t.propagators = c.Propagators
t.spanStartOptions = c.SpanStartOptions
t.filters = c.Filters
t.spanNameFormatter = c.SpanNameFormatter
t.clientTrace = c.ClientTrace
+ t.semconv = semconv.NewHTTPClient(c.Meter)
t.metricAttributesFn = c.MetricAttributesFn
}
-func (t *Transport) createMeasures() {
- var err error
- t.requestBytesCounter, err = t.meter.Int64Counter(
- clientRequestSize,
- metric.WithUnit("By"),
- metric.WithDescription("Measures the size of HTTP request messages."),
- )
- handleErr(err)
-
- t.responseBytesCounter, err = t.meter.Int64Counter(
- clientResponseSize,
- metric.WithUnit("By"),
- metric.WithDescription("Measures the size of HTTP response messages."),
- )
- handleErr(err)
-
- t.latencyMeasure, err = t.meter.Float64Histogram(
- clientDuration,
- metric.WithUnit("ms"),
- metric.WithDescription("Measures the duration of outbound HTTP requests."),
- )
- handleErr(err)
-}
-
func defaultTransportFormatter(_ string, r *http.Request) string {
return "HTTP " + r.Method
}
@@ -177,16 +145,15 @@ func (t *Transport) RoundTrip(r *http.Request) (*http.Response, error) {
}
// metrics
- metricAttrs := append(append(labeler.Get(), semconvutil.HTTPClientRequestMetrics(r)...), t.metricAttributesFromRequest(r)...)
- if res.StatusCode > 0 {
- metricAttrs = append(metricAttrs, semconv.HTTPStatusCode(res.StatusCode))
- }
- o := metric.WithAttributeSet(attribute.NewSet(metricAttrs...))
+ metricOpts := t.semconv.MetricOptions(semconv.MetricAttributes{
+ Req: r,
+ StatusCode: res.StatusCode,
+ AdditionalAttributes: append(labeler.Get(), t.metricAttributesFromRequest(r)...),
+ })
- t.requestBytesCounter.Add(ctx, bw.BytesRead(), o)
// For handling response bytes we leverage a callback when the client reads the http response
readRecordFunc := func(n int64) {
- t.responseBytesCounter.Add(ctx, n, o)
+ t.semconv.RecordResponseSize(ctx, n, metricOpts)
}
// traces
@@ -198,9 +165,12 @@ func (t *Transport) RoundTrip(r *http.Request) (*http.Response, error) {
// Use floating point division here for higher precision (instead of Millisecond method).
elapsedTime := float64(time.Since(requestStartTime)) / float64(time.Millisecond)
- t.latencyMeasure.Record(ctx, elapsedTime, o)
+ t.semconv.RecordMetrics(ctx, semconv.MetricData{
+ RequestSize: bw.BytesRead(),
+ ElapsedTime: elapsedTime,
+ }, metricOpts)
- return res, err
+ return res, nil
}
func (t *Transport) metricAttributesFromRequest(r *http.Request) []attribute.KeyValue {
diff --git a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/version.go b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/version.go
index 502c1bdafc..6be4c1fde2 100644
--- a/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/version.go
+++ b/vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/version.go
@@ -5,13 +5,6 @@ package otelhttp // import "go.opentelemetry.io/contrib/instrumentation/net/http
// Version is the current release version of the otelhttp instrumentation.
func Version() string {
- return "0.54.0"
+ return "0.61.0"
// This string is updated by the pre_release.sh script during release
}
-
-// SemVersion is the semantic version to be supplied to tracer/meter creation.
-//
-// Deprecated: Use [Version] instead.
-func SemVersion() string {
- return Version()
-}
diff --git a/vendor/go.opentelemetry.io/otel/.golangci.yml b/vendor/go.opentelemetry.io/otel/.golangci.yml
index c58e48ab0c..888e5da802 100644
--- a/vendor/go.opentelemetry.io/otel/.golangci.yml
+++ b/vendor/go.opentelemetry.io/otel/.golangci.yml
@@ -1,13 +1,9 @@
-# See https://github.com/golangci/golangci-lint#config-file
+version: "2"
run:
- issues-exit-code: 1 #Default
- tests: true #Default
-
+ issues-exit-code: 1
+ tests: true
linters:
- # Disable everything by default so upgrades to not include new "default
- # enabled" linters.
- disable-all: true
- # Specifically enable linters we want to use.
+ default: none
enable:
- asasalint
- bodyclose
@@ -15,10 +11,7 @@ linters:
- errcheck
- errorlint
- godot
- - gofumpt
- - goimports
- gosec
- - gosimple
- govet
- ineffassign
- misspell
@@ -26,227 +19,230 @@ linters:
- revive
- staticcheck
- testifylint
- - typecheck
- unconvert
- - unused
- unparam
+ - unused
- usestdlibvars
- usetesting
-
+ settings:
+ depguard:
+ rules:
+ auto/sdk:
+ files:
+ - '!internal/global/trace.go'
+ - ~internal/global/trace_test.go
+ deny:
+ - pkg: go.opentelemetry.io/auto/sdk
+ desc: Do not use SDK from automatic instrumentation.
+ non-tests:
+ files:
+ - '!$test'
+ - '!**/*test/*.go'
+ - '!**/internal/matchers/*.go'
+ deny:
+ - pkg: testing
+ - pkg: github.com/stretchr/testify
+ - pkg: crypto/md5
+ - pkg: crypto/sha1
+ - pkg: crypto/**/pkix
+ otel-internal:
+ files:
+ - '**/sdk/*.go'
+ - '**/sdk/**/*.go'
+ - '**/exporters/*.go'
+ - '**/exporters/**/*.go'
+ - '**/schema/*.go'
+ - '**/schema/**/*.go'
+ - '**/metric/*.go'
+ - '**/metric/**/*.go'
+ - '**/bridge/*.go'
+ - '**/bridge/**/*.go'
+ - '**/trace/*.go'
+ - '**/trace/**/*.go'
+ - '**/log/*.go'
+ - '**/log/**/*.go'
+ deny:
+ - pkg: go.opentelemetry.io/otel/internal$
+ desc: Do not use cross-module internal packages.
+ - pkg: go.opentelemetry.io/otel/internal/internaltest
+ desc: Do not use cross-module internal packages.
+ - pkg: go.opentelemetry.io/otel/internal/matchers
+ desc: Do not use cross-module internal packages.
+ otlp-internal:
+ files:
+ - '!**/exporters/otlp/internal/**/*.go'
+ deny:
+ - pkg: go.opentelemetry.io/otel/exporters/otlp/internal
+ desc: Do not use cross-module internal packages.
+ otlpmetric-internal:
+ files:
+ - '!**/exporters/otlp/otlpmetric/internal/*.go'
+ - '!**/exporters/otlp/otlpmetric/internal/**/*.go'
+ deny:
+ - pkg: go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal
+ desc: Do not use cross-module internal packages.
+ otlptrace-internal:
+ files:
+ - '!**/exporters/otlp/otlptrace/*.go'
+ - '!**/exporters/otlp/otlptrace/internal/**.go'
+ deny:
+ - pkg: go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal
+ desc: Do not use cross-module internal packages.
+ godot:
+ exclude:
+ # Exclude links.
+ - '^ *\[[^]]+\]:'
+ # Exclude sentence fragments for lists.
+ - ^[ ]*[-•]
+ # Exclude sentences prefixing a list.
+ - :$
+ misspell:
+ locale: US
+ ignore-rules:
+ - cancelled
+ perfsprint:
+ int-conversion: true
+ err-error: true
+ errorf: true
+ sprintf1: true
+ strconcat: true
+ revive:
+ confidence: 0.01
+ rules:
+ - name: blank-imports
+ - name: bool-literal-in-expr
+ - name: constant-logical-expr
+ - name: context-as-argument
+ arguments:
+ - allowTypesBefore: '*testing.T'
+ disabled: true
+ - name: context-keys-type
+ - name: deep-exit
+ - name: defer
+ arguments:
+ - - call-chain
+ - loop
+ - name: dot-imports
+ - name: duplicated-imports
+ - name: early-return
+ arguments:
+ - preserveScope
+ - name: empty-block
+ - name: empty-lines
+ - name: error-naming
+ - name: error-return
+ - name: error-strings
+ - name: errorf
+ - name: exported
+ arguments:
+ - sayRepetitiveInsteadOfStutters
+ - name: flag-parameter
+ - name: identical-branches
+ - name: if-return
+ - name: import-shadowing
+ - name: increment-decrement
+ - name: indent-error-flow
+ arguments:
+ - preserveScope
+ - name: package-comments
+ - name: range
+ - name: range-val-in-closure
+ - name: range-val-address
+ - name: redefines-builtin-id
+ - name: string-format
+ arguments:
+ - - panic
+ - /^[^\n]*$/
+ - must not contain line breaks
+ - name: struct-tag
+ - name: superfluous-else
+ arguments:
+ - preserveScope
+ - name: time-equal
+ - name: unconditional-recursion
+ - name: unexported-return
+ - name: unhandled-error
+ arguments:
+ - fmt.Fprint
+ - fmt.Fprintf
+ - fmt.Fprintln
+ - fmt.Print
+ - fmt.Printf
+ - fmt.Println
+ - name: unnecessary-stmt
+ - name: useless-break
+ - name: var-declaration
+ - name: var-naming
+ arguments:
+ - ["ID"] # AllowList
+ - ["Otel", "Aws", "Gcp"] # DenyList
+ - name: waitgroup-by-value
+ testifylint:
+ enable-all: true
+ disable:
+ - float-compare
+ - go-require
+ - require-error
+ exclusions:
+ generated: lax
+ presets:
+ - common-false-positives
+ - legacy
+ - std-error-handling
+ rules:
+ # TODO: Having appropriate comments for exported objects helps development,
+ # even for objects in internal packages. Appropriate comments for all
+ # exported objects should be added and this exclusion removed.
+ - linters:
+ - revive
+ path: .*internal/.*
+ text: exported (method|function|type|const) (.+) should have comment or be unexported
+ # Yes, they are, but it's okay in a test.
+ - linters:
+ - revive
+ path: _test\.go
+ text: exported func.*returns unexported type.*which can be annoying to use
+ # Example test functions should be treated like main.
+ - linters:
+ - revive
+ path: example.*_test\.go
+ text: calls to (.+) only in main[(][)] or init[(][)] functions
+ # It's okay to not run gosec and perfsprint in a test.
+ - linters:
+ - gosec
+ - perfsprint
+ path: _test\.go
+ # Ignoring gosec G404: Use of weak random number generator (math/rand instead of crypto/rand)
+ # as we commonly use it in tests and examples.
+ - linters:
+ - gosec
+ text: 'G404:'
+ # Ignoring gosec G402: TLS MinVersion too low
+ # as the https://pkg.go.dev/crypto/tls#Config handles MinVersion default well.
+ - linters:
+ - gosec
+ text: 'G402: TLS MinVersion too low.'
+ paths:
+ - third_party$
+ - builtin$
+ - examples$
issues:
- # Maximum issues count per one linter.
- # Set to 0 to disable.
- # Default: 50
- # Setting to unlimited so the linter only is run once to debug all issues.
max-issues-per-linter: 0
- # Maximum count of issues with the same text.
- # Set to 0 to disable.
- # Default: 3
- # Setting to unlimited so the linter only is run once to debug all issues.
max-same-issues: 0
- # Excluding configuration per-path, per-linter, per-text and per-source.
- exclude-rules:
- # TODO: Having appropriate comments for exported objects helps development,
- # even for objects in internal packages. Appropriate comments for all
- # exported objects should be added and this exclusion removed.
- - path: '.*internal/.*'
- text: "exported (method|function|type|const) (.+) should have comment or be unexported"
- linters:
- - revive
- # Yes, they are, but it's okay in a test.
- - path: _test\.go
- text: "exported func.*returns unexported type.*which can be annoying to use"
- linters:
- - revive
- # Example test functions should be treated like main.
- - path: example.*_test\.go
- text: "calls to (.+) only in main[(][)] or init[(][)] functions"
- linters:
- - revive
- # It's okay to not run gosec and perfsprint in a test.
- - path: _test\.go
- linters:
- - gosec
- - perfsprint
- # Ignoring gosec G404: Use of weak random number generator (math/rand instead of crypto/rand)
- # as we commonly use it in tests and examples.
- - text: "G404:"
- linters:
- - gosec
- # Ignoring gosec G402: TLS MinVersion too low
- # as the https://pkg.go.dev/crypto/tls#Config handles MinVersion default well.
- - text: "G402: TLS MinVersion too low."
- linters:
- - gosec
- include:
- # revive exported should have comment or be unexported.
- - EXC0012
- # revive package comment should be of the form ...
- - EXC0013
-
-linters-settings:
- depguard:
- rules:
- non-tests:
- files:
- - "!$test"
- - "!**/*test/*.go"
- - "!**/internal/matchers/*.go"
- deny:
- - pkg: "testing"
- - pkg: "github.com/stretchr/testify"
- - pkg: "crypto/md5"
- - pkg: "crypto/sha1"
- - pkg: "crypto/**/pkix"
- auto/sdk:
- files:
- - "!internal/global/trace.go"
- - "~internal/global/trace_test.go"
- deny:
- - pkg: "go.opentelemetry.io/auto/sdk"
- desc: Do not use SDK from automatic instrumentation.
- otlp-internal:
- files:
- - "!**/exporters/otlp/internal/**/*.go"
- deny:
- - pkg: "go.opentelemetry.io/otel/exporters/otlp/internal"
- desc: Do not use cross-module internal packages.
- otlptrace-internal:
- files:
- - "!**/exporters/otlp/otlptrace/*.go"
- - "!**/exporters/otlp/otlptrace/internal/**.go"
- deny:
- - pkg: "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal"
- desc: Do not use cross-module internal packages.
- otlpmetric-internal:
- files:
- - "!**/exporters/otlp/otlpmetric/internal/*.go"
- - "!**/exporters/otlp/otlpmetric/internal/**/*.go"
- deny:
- - pkg: "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal"
- desc: Do not use cross-module internal packages.
- otel-internal:
- files:
- - "**/sdk/*.go"
- - "**/sdk/**/*.go"
- - "**/exporters/*.go"
- - "**/exporters/**/*.go"
- - "**/schema/*.go"
- - "**/schema/**/*.go"
- - "**/metric/*.go"
- - "**/metric/**/*.go"
- - "**/bridge/*.go"
- - "**/bridge/**/*.go"
- - "**/trace/*.go"
- - "**/trace/**/*.go"
- - "**/log/*.go"
- - "**/log/**/*.go"
- deny:
- - pkg: "go.opentelemetry.io/otel/internal$"
- desc: Do not use cross-module internal packages.
- - pkg: "go.opentelemetry.io/otel/internal/attribute"
- desc: Do not use cross-module internal packages.
- - pkg: "go.opentelemetry.io/otel/internal/internaltest"
- desc: Do not use cross-module internal packages.
- - pkg: "go.opentelemetry.io/otel/internal/matchers"
- desc: Do not use cross-module internal packages.
- godot:
- exclude:
- # Exclude links.
- - '^ *\[[^]]+\]:'
- # Exclude sentence fragments for lists.
- - '^[ ]*[-•]'
- # Exclude sentences prefixing a list.
- - ':$'
- goimports:
- local-prefixes: go.opentelemetry.io
- misspell:
- locale: US
- ignore-words:
- - cancelled
- perfsprint:
- err-error: true
- errorf: true
- int-conversion: true
- sprintf1: true
- strconcat: true
- revive:
- # Sets the default failure confidence.
- # This means that linting errors with less than 0.8 confidence will be ignored.
- # Default: 0.8
- confidence: 0.01
- # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md
- rules:
- - name: blank-imports
- - name: bool-literal-in-expr
- - name: constant-logical-expr
- - name: context-as-argument
- disabled: true
- arguments:
- - allowTypesBefore: "*testing.T"
- - name: context-keys-type
- - name: deep-exit
- - name: defer
- arguments:
- - ["call-chain", "loop"]
- - name: dot-imports
- - name: duplicated-imports
- - name: early-return
- arguments:
- - "preserveScope"
- - name: empty-block
- - name: empty-lines
- - name: error-naming
- - name: error-return
- - name: error-strings
- - name: errorf
- - name: exported
- arguments:
- - "sayRepetitiveInsteadOfStutters"
- - name: flag-parameter
- - name: identical-branches
- - name: if-return
- - name: import-shadowing
- - name: increment-decrement
- - name: indent-error-flow
- arguments:
- - "preserveScope"
- - name: package-comments
- - name: range
- - name: range-val-in-closure
- - name: range-val-address
- - name: redefines-builtin-id
- - name: string-format
- arguments:
- - - panic
- - '/^[^\n]*$/'
- - must not contain line breaks
- - name: struct-tag
- - name: superfluous-else
- arguments:
- - "preserveScope"
- - name: time-equal
- - name: unconditional-recursion
- - name: unexported-return
- - name: unhandled-error
- arguments:
- - "fmt.Fprint"
- - "fmt.Fprintf"
- - "fmt.Fprintln"
- - "fmt.Print"
- - "fmt.Printf"
- - "fmt.Println"
- - name: unnecessary-stmt
- - name: useless-break
- - name: var-declaration
- - name: var-naming
- arguments:
- - ["ID"] # AllowList
- - ["Otel", "Aws", "Gcp"] # DenyList
- - name: waitgroup-by-value
- testifylint:
- enable-all: true
- disable:
- - float-compare
- - go-require
- - require-error
+formatters:
+ enable:
+ - gofumpt
+ - goimports
+ - golines
+ settings:
+ goimports:
+ local-prefixes:
+ - go.opentelemetry.io
+ golines:
+ max-len: 120
+ exclusions:
+ generated: lax
+ paths:
+ - third_party$
+ - builtin$
+ - examples$
diff --git a/vendor/go.opentelemetry.io/otel/CHANGELOG.md b/vendor/go.opentelemetry.io/otel/CHANGELOG.md
index c076db2823..648e4abab8 100644
--- a/vendor/go.opentelemetry.io/otel/CHANGELOG.md
+++ b/vendor/go.opentelemetry.io/otel/CHANGELOG.md
@@ -11,6 +11,57 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
+## [1.36.0/0.58.0/0.12.0] 2025-05-20
+
+### Added
+
+- Add exponential histogram support in `go.opentelemetry.io/otel/exporters/prometheus`. (#6421)
+- The `go.opentelemetry.io/otel/semconv/v1.31.0` package.
+ The package contains semantic conventions from the `v1.31.0` version of the OpenTelemetry Semantic Conventions.
+ See the [migration documentation](./semconv/v1.31.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.30.0`. (#6479)
+- Add `Recording`, `Scope`, and `Record` types in `go.opentelemetry.io/otel/log/logtest`. (#6507)
+- Add `WithHTTPClient` option to configure the `http.Client` used by `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`. (#6751)
+- Add `WithHTTPClient` option to configure the `http.Client` used by `go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`. (#6752)
+- Add `WithHTTPClient` option to configure the `http.Client` used by `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#6688)
+- Add `ValuesGetter` in `go.opentelemetry.io/otel/propagation`, a `TextMapCarrier` that supports retrieving multiple values for a single key. (#5973)
+- Add `Values` method to `HeaderCarrier` to implement the new `ValuesGetter` interface in `go.opentelemetry.io/otel/propagation`. (#5973)
+- Update `Baggage` in `go.opentelemetry.io/otel/propagation` to retrieve multiple values for a key when the carrier implements `ValuesGetter`. (#5973)
+- Add `AssertEqual` function in `go.opentelemetry.io/otel/log/logtest`. (#6662)
+- The `go.opentelemetry.io/otel/semconv/v1.32.0` package.
+ The package contains semantic conventions from the `v1.32.0` version of the OpenTelemetry Semantic Conventions.
+ See the [migration documentation](./semconv/v1.32.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.31.0`(#6782)
+- Add `Transform` option in `go.opentelemetry.io/otel/log/logtest`. (#6794)
+- Add `Desc` option in `go.opentelemetry.io/otel/log/logtest`. (#6796)
+
+### Removed
+
+- Drop support for [Go 1.22]. (#6381, #6418)
+- Remove `Resource` field from `EnabledParameters` in `go.opentelemetry.io/otel/sdk/log`. (#6494)
+- Remove `RecordFactory` type from `go.opentelemetry.io/otel/log/logtest`. (#6492)
+- Remove `ScopeRecords`, `EmittedRecord`, and `RecordFactory` types from `go.opentelemetry.io/otel/log/logtest`. (#6507)
+- Remove `AssertRecordEqual` function in `go.opentelemetry.io/otel/log/logtest`, use `AssertEqual` instead. (#6662)
+
+### Changed
+
+- ⚠️ Update `github.com/prometheus/client_golang` to `v1.21.1`, which changes the `NameValidationScheme` to `UTF8Validation`.
+ This allows metrics names to keep original delimiters (e.g. `.`), rather than replacing with underscores.
+ This can be reverted by setting `github.com/prometheus/common/model.NameValidationScheme` to `LegacyValidation` in `github.com/prometheus/common/model`. (#6433)
+- Initialize map with `len(keys)` in `NewAllowKeysFilter` and `NewDenyKeysFilter` to avoid unnecessary allocations in `go.opentelemetry.io/otel/attribute`. (#6455)
+- `go.opentelemetry.io/otel/log/logtest` is now a separate Go module. (#6465)
+- `go.opentelemetry.io/otel/sdk/log/logtest` is now a separate Go module. (#6466)
+- `Recorder` in `go.opentelemetry.io/otel/log/logtest` no longer separately stores records emitted by loggers with the same instrumentation scope. (#6507)
+- Improve performance of `BatchProcessor` in `go.opentelemetry.io/otel/sdk/log` by not exporting when exporter cannot accept more. (#6569, #6641)
+
+### Deprecated
+
+- Deprecate support for `model.LegacyValidation` for `go.opentelemetry.io/otel/exporters/prometheus`. (#6449)
+
+### Fixes
+
+- Stop percent encoding header environment variables in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc` and `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#6392)
+- Ensure the `noopSpan.tracerProvider` method is not inlined in `go.opentelemetry.io/otel/trace` so the `go.opentelemetry.io/auto` instrumentation can instrument non-recording spans. (#6456)
+- Use a `sync.Pool` instead of allocating `metricdata.ResourceMetrics` in `go.opentelemetry.io/otel/exporters/prometheus`. (#6472)
+
## [1.35.0/0.57.0/0.11.0] 2025-03-05
This release is the last to support [Go 1.22].
@@ -3237,7 +3288,8 @@ It contains api and sdk for trace and meter.
- CircleCI build CI manifest files.
- CODEOWNERS file to track owners of this project.
-[Unreleased]: https://github.com/open-telemetry/opentelemetry-go/compare/v1.35.0...HEAD
+[Unreleased]: https://github.com/open-telemetry/opentelemetry-go/compare/v1.36.0...HEAD
+[1.36.0/0.58.0/0.12.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.36.0
[1.35.0/0.57.0/0.11.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.35.0
[1.34.0/0.56.0/0.10.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.34.0
[1.33.0/0.55.0/0.9.0/0.0.12]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.33.0
diff --git a/vendor/go.opentelemetry.io/otel/CONTRIBUTING.md b/vendor/go.opentelemetry.io/otel/CONTRIBUTING.md
index 7b8af585aa..1902dac057 100644
--- a/vendor/go.opentelemetry.io/otel/CONTRIBUTING.md
+++ b/vendor/go.opentelemetry.io/otel/CONTRIBUTING.md
@@ -643,6 +643,7 @@ should be canceled.
### Triagers
+- [Alex Kats](https://github.com/akats7), Capital One
- [Cheng-Zhen Yang](https://github.com/scorpionknifes), Independent
### Approvers
diff --git a/vendor/go.opentelemetry.io/otel/Makefile b/vendor/go.opentelemetry.io/otel/Makefile
index 226410d742..62a56f4d34 100644
--- a/vendor/go.opentelemetry.io/otel/Makefile
+++ b/vendor/go.opentelemetry.io/otel/Makefile
@@ -43,8 +43,11 @@ $(TOOLS)/crosslink: PACKAGE=go.opentelemetry.io/build-tools/crosslink
SEMCONVKIT = $(TOOLS)/semconvkit
$(TOOLS)/semconvkit: PACKAGE=go.opentelemetry.io/otel/$(TOOLS_MOD_DIR)/semconvkit
+VERIFYREADMES = $(TOOLS)/verifyreadmes
+$(TOOLS)/verifyreadmes: PACKAGE=go.opentelemetry.io/otel/$(TOOLS_MOD_DIR)/verifyreadmes
+
GOLANGCI_LINT = $(TOOLS)/golangci-lint
-$(TOOLS)/golangci-lint: PACKAGE=github.com/golangci/golangci-lint/cmd/golangci-lint
+$(TOOLS)/golangci-lint: PACKAGE=github.com/golangci/golangci-lint/v2/cmd/golangci-lint
MISSPELL = $(TOOLS)/misspell
$(TOOLS)/misspell: PACKAGE=github.com/client9/misspell/cmd/misspell
@@ -68,7 +71,7 @@ GOVULNCHECK = $(TOOLS)/govulncheck
$(TOOLS)/govulncheck: PACKAGE=golang.org/x/vuln/cmd/govulncheck
.PHONY: tools
-tools: $(CROSSLINK) $(GOLANGCI_LINT) $(MISSPELL) $(GOCOVMERGE) $(STRINGER) $(PORTO) $(SEMCONVGEN) $(MULTIMOD) $(SEMCONVKIT) $(GOTMPL) $(GORELEASE)
+tools: $(CROSSLINK) $(GOLANGCI_LINT) $(MISSPELL) $(GOCOVMERGE) $(STRINGER) $(PORTO) $(SEMCONVGEN) $(VERIFYREADMES) $(MULTIMOD) $(SEMCONVKIT) $(GOTMPL) $(GORELEASE)
# Virtualized python tools via docker
@@ -213,11 +216,8 @@ go-mod-tidy/%: crosslink
&& cd $(DIR) \
&& $(GO) mod tidy -compat=1.21
-.PHONY: lint-modules
-lint-modules: go-mod-tidy
-
.PHONY: lint
-lint: misspell lint-modules golangci-lint govulncheck
+lint: misspell go-mod-tidy golangci-lint govulncheck
.PHONY: vanity-import-check
vanity-import-check: $(PORTO)
@@ -319,10 +319,11 @@ add-tags: verify-mods
@[ "${MODSET}" ] || ( echo ">> env var MODSET is not set"; exit 1 )
$(MULTIMOD) tag -m ${MODSET} -c ${COMMIT}
+MARKDOWNIMAGE := $(shell awk '$$4=="markdown" {print $$2}' $(DEPENDENCIES_DOCKERFILE))
.PHONY: lint-markdown
lint-markdown:
- docker run -v "$(CURDIR):$(WORKDIR)" avtodev/markdown-lint:v1 -c $(WORKDIR)/.markdownlint.yaml $(WORKDIR)/**/*.md
+ docker run --rm -u $(DOCKER_USER) -v "$(CURDIR):$(WORKDIR)" $(MARKDOWNIMAGE) -c $(WORKDIR)/.markdownlint.yaml $(WORKDIR)/**/*.md
.PHONY: verify-readmes
-verify-readmes:
- ./verify_readmes.sh
+verify-readmes: $(VERIFYREADMES)
+ $(VERIFYREADMES)
diff --git a/vendor/go.opentelemetry.io/otel/README.md b/vendor/go.opentelemetry.io/otel/README.md
index 8421cd7e59..b600788121 100644
--- a/vendor/go.opentelemetry.io/otel/README.md
+++ b/vendor/go.opentelemetry.io/otel/README.md
@@ -6,6 +6,7 @@
[](https://goreportcard.com/report/go.opentelemetry.io/otel)
[](https://scorecard.dev/viewer/?uri=github.com/open-telemetry/opentelemetry-go)
[](https://www.bestpractices.dev/projects/9996)
+[](https://issues.oss-fuzz.com/issues?q=project:opentelemetry-go)
[](https://cloud-native.slack.com/archives/C01NPAXACKT)
OpenTelemetry-Go is the [Go](https://golang.org/) implementation of [OpenTelemetry](https://opentelemetry.io/).
@@ -53,25 +54,18 @@ Currently, this project supports the following environments.
|----------|------------|--------------|
| Ubuntu | 1.24 | amd64 |
| Ubuntu | 1.23 | amd64 |
-| Ubuntu | 1.22 | amd64 |
| Ubuntu | 1.24 | 386 |
| Ubuntu | 1.23 | 386 |
-| Ubuntu | 1.22 | 386 |
| Ubuntu | 1.24 | arm64 |
| Ubuntu | 1.23 | arm64 |
-| Ubuntu | 1.22 | arm64 |
| macOS 13 | 1.24 | amd64 |
| macOS 13 | 1.23 | amd64 |
-| macOS 13 | 1.22 | amd64 |
| macOS | 1.24 | arm64 |
| macOS | 1.23 | arm64 |
-| macOS | 1.22 | arm64 |
| Windows | 1.24 | amd64 |
| Windows | 1.23 | amd64 |
-| Windows | 1.22 | amd64 |
| Windows | 1.24 | 386 |
| Windows | 1.23 | 386 |
-| Windows | 1.22 | 386 |
While this project should work for other systems, no compatibility guarantees
are made for those systems currently.
diff --git a/vendor/go.opentelemetry.io/otel/RELEASING.md b/vendor/go.opentelemetry.io/otel/RELEASING.md
index 1e13ae54f7..7c1a9119dc 100644
--- a/vendor/go.opentelemetry.io/otel/RELEASING.md
+++ b/vendor/go.opentelemetry.io/otel/RELEASING.md
@@ -1,5 +1,9 @@
# Release Process
+## Create a `Version Release` issue
+
+Create a `Version Release` issue to track the release process.
+
## Semantic Convention Generation
New versions of the [OpenTelemetry Semantic Conventions] mean new versions of the `semconv` package need to be generated.
@@ -123,6 +127,16 @@ Importantly, bump any package versions referenced to be the latest one you just
[Go instrumentation documentation]: https://opentelemetry.io/docs/languages/go/
[content/en/docs/languages/go]: https://github.com/open-telemetry/opentelemetry.io/tree/main/content/en/docs/languages/go
+### Close the milestone
+
+Once a release is made, ensure all issues that were fixed and PRs that were merged as part of this release are added to the corresponding milestone.
+This helps track what changes were included in each release.
+
+- To find issues that haven't been included in a milestone, use this [GitHub search query](https://github.com/open-telemetry/opentelemetry-go/issues?q=is%3Aissue%20no%3Amilestone%20is%3Aclosed%20sort%3Aupdated-desc%20reason%3Acompleted%20-label%3AStale%20linked%3Apr)
+- To find merged PRs that haven't been included in a milestone, use this [GitHub search query](https://github.com/open-telemetry/opentelemetry-go/pulls?q=is%3Apr+no%3Amilestone+is%3Amerged).
+
+Once all related issues and PRs have been added to the milestone, close the milestone.
+
### Demo Repository
Bump the dependencies in the following Go services:
@@ -130,3 +144,7 @@ Bump the dependencies in the following Go services:
- [`accounting`](https://github.com/open-telemetry/opentelemetry-demo/tree/main/src/accounting)
- [`checkoutservice`](https://github.com/open-telemetry/opentelemetry-demo/tree/main/src/checkout)
- [`productcatalogservice`](https://github.com/open-telemetry/opentelemetry-demo/tree/main/src/product-catalog)
+
+### Close the `Version Release` issue
+
+Once the todo list in the `Version Release` issue is complete, close the issue.
diff --git a/vendor/go.opentelemetry.io/otel/attribute/filter.go b/vendor/go.opentelemetry.io/otel/attribute/filter.go
index be9cd922d8..3eeaa5d442 100644
--- a/vendor/go.opentelemetry.io/otel/attribute/filter.go
+++ b/vendor/go.opentelemetry.io/otel/attribute/filter.go
@@ -19,7 +19,7 @@ func NewAllowKeysFilter(keys ...Key) Filter {
return func(kv KeyValue) bool { return false }
}
- allowed := make(map[Key]struct{})
+ allowed := make(map[Key]struct{}, len(keys))
for _, k := range keys {
allowed[k] = struct{}{}
}
@@ -38,7 +38,7 @@ func NewDenyKeysFilter(keys ...Key) Filter {
return func(kv KeyValue) bool { return true }
}
- forbid := make(map[Key]struct{})
+ forbid := make(map[Key]struct{}, len(keys))
for _, k := range keys {
forbid[k] = struct{}{}
}
diff --git a/vendor/go.opentelemetry.io/otel/internal/attribute/attribute.go b/vendor/go.opentelemetry.io/otel/attribute/internal/attribute.go
similarity index 97%
rename from vendor/go.opentelemetry.io/otel/internal/attribute/attribute.go
rename to vendor/go.opentelemetry.io/otel/attribute/internal/attribute.go
index 691d96c755..b76d2bbfdb 100644
--- a/vendor/go.opentelemetry.io/otel/internal/attribute/attribute.go
+++ b/vendor/go.opentelemetry.io/otel/attribute/internal/attribute.go
@@ -5,7 +5,7 @@
Package attribute provide several helper functions for some commonly used
logic of processing attributes.
*/
-package attribute // import "go.opentelemetry.io/otel/internal/attribute"
+package attribute // import "go.opentelemetry.io/otel/attribute/internal"
import (
"reflect"
diff --git a/vendor/go.opentelemetry.io/otel/attribute/rawhelpers.go b/vendor/go.opentelemetry.io/otel/attribute/rawhelpers.go
new file mode 100644
index 0000000000..5791c6e7aa
--- /dev/null
+++ b/vendor/go.opentelemetry.io/otel/attribute/rawhelpers.go
@@ -0,0 +1,37 @@
+// Copyright The OpenTelemetry Authors
+// SPDX-License-Identifier: Apache-2.0
+
+package attribute // import "go.opentelemetry.io/otel/attribute"
+
+import (
+ "math"
+)
+
+func boolToRaw(b bool) uint64 { // nolint:revive // b is not a control flag.
+ if b {
+ return 1
+ }
+ return 0
+}
+
+func rawToBool(r uint64) bool {
+ return r != 0
+}
+
+func int64ToRaw(i int64) uint64 {
+ // Assumes original was a valid int64 (overflow not checked).
+ return uint64(i) // nolint: gosec
+}
+
+func rawToInt64(r uint64) int64 {
+ // Assumes original was a valid int64 (overflow not checked).
+ return int64(r) // nolint: gosec
+}
+
+func float64ToRaw(f float64) uint64 {
+ return math.Float64bits(f)
+}
+
+func rawToFloat64(r uint64) float64 {
+ return math.Float64frombits(r)
+}
diff --git a/vendor/go.opentelemetry.io/otel/attribute/value.go b/vendor/go.opentelemetry.io/otel/attribute/value.go
index 9ea0ecbbd2..817eecacf1 100644
--- a/vendor/go.opentelemetry.io/otel/attribute/value.go
+++ b/vendor/go.opentelemetry.io/otel/attribute/value.go
@@ -9,8 +9,7 @@ import (
"reflect"
"strconv"
- "go.opentelemetry.io/otel/internal"
- "go.opentelemetry.io/otel/internal/attribute"
+ attribute "go.opentelemetry.io/otel/attribute/internal"
)
//go:generate stringer -type=Type
@@ -51,7 +50,7 @@ const (
func BoolValue(v bool) Value {
return Value{
vtype: BOOL,
- numeric: internal.BoolToRaw(v),
+ numeric: boolToRaw(v),
}
}
@@ -82,7 +81,7 @@ func IntSliceValue(v []int) Value {
func Int64Value(v int64) Value {
return Value{
vtype: INT64,
- numeric: internal.Int64ToRaw(v),
+ numeric: int64ToRaw(v),
}
}
@@ -95,7 +94,7 @@ func Int64SliceValue(v []int64) Value {
func Float64Value(v float64) Value {
return Value{
vtype: FLOAT64,
- numeric: internal.Float64ToRaw(v),
+ numeric: float64ToRaw(v),
}
}
@@ -125,7 +124,7 @@ func (v Value) Type() Type {
// AsBool returns the bool value. Make sure that the Value's type is
// BOOL.
func (v Value) AsBool() bool {
- return internal.RawToBool(v.numeric)
+ return rawToBool(v.numeric)
}
// AsBoolSlice returns the []bool value. Make sure that the Value's type is
@@ -144,7 +143,7 @@ func (v Value) asBoolSlice() []bool {
// AsInt64 returns the int64 value. Make sure that the Value's type is
// INT64.
func (v Value) AsInt64() int64 {
- return internal.RawToInt64(v.numeric)
+ return rawToInt64(v.numeric)
}
// AsInt64Slice returns the []int64 value. Make sure that the Value's type is
@@ -163,7 +162,7 @@ func (v Value) asInt64Slice() []int64 {
// AsFloat64 returns the float64 value. Make sure that the Value's
// type is FLOAT64.
func (v Value) AsFloat64() float64 {
- return internal.RawToFloat64(v.numeric)
+ return rawToFloat64(v.numeric)
}
// AsFloat64Slice returns the []float64 value. Make sure that the Value's type is
diff --git a/vendor/go.opentelemetry.io/otel/dependencies.Dockerfile b/vendor/go.opentelemetry.io/otel/dependencies.Dockerfile
index e4c4a753c8..51fb76b30d 100644
--- a/vendor/go.opentelemetry.io/otel/dependencies.Dockerfile
+++ b/vendor/go.opentelemetry.io/otel/dependencies.Dockerfile
@@ -1,3 +1,4 @@
# This is a renovate-friendly source of Docker images.
-FROM python:3.13.2-slim-bullseye@sha256:31b581c8218e1f3c58672481b3b7dba8e898852866b408c6a984c22832523935 AS python
-FROM otel/weaver:v0.13.2@sha256:ae7346b992e477f629ea327e0979e8a416a97f7956ab1f7e95ac1f44edf1a893 AS weaver
+FROM python:3.13.3-slim-bullseye@sha256:9e3f9243e06fd68eb9519074b49878eda20ad39a855fac51aaffb741de20726e AS python
+FROM otel/weaver:v0.15.0@sha256:1cf1c72eaed57dad813c2e359133b8a15bd4facf305aae5b13bdca6d3eccff56 AS weaver
+FROM avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee AS markdown
diff --git a/vendor/go.opentelemetry.io/otel/get_main_pkgs.sh b/vendor/go.opentelemetry.io/otel/get_main_pkgs.sh
deleted file mode 100644
index 93e80ea306..0000000000
--- a/vendor/go.opentelemetry.io/otel/get_main_pkgs.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright The OpenTelemetry Authors
-# SPDX-License-Identifier: Apache-2.0
-
-set -euo pipefail
-
-top_dir='.'
-if [[ $# -gt 0 ]]; then
- top_dir="${1}"
-fi
-
-p=$(pwd)
-mod_dirs=()
-
-# Note `mapfile` does not exist in older bash versions:
-# https://stackoverflow.com/questions/41475261/need-alternative-to-readarray-mapfile-for-script-on-older-version-of-bash
-
-while IFS= read -r line; do
- mod_dirs+=("$line")
-done < <(find "${top_dir}" -type f -name 'go.mod' -exec dirname {} \; | sort)
-
-for mod_dir in "${mod_dirs[@]}"; do
- cd "${mod_dir}"
-
- while IFS= read -r line; do
- echo ".${line#${p}}"
- done < <(go list --find -f '{{.Name}}|{{.Dir}}' ./... | grep '^main|' | cut -f 2- -d '|')
- cd "${p}"
-done
diff --git a/vendor/go.opentelemetry.io/otel/internal/gen.go b/vendor/go.opentelemetry.io/otel/internal/gen.go
deleted file mode 100644
index 4259f0320d..0000000000
--- a/vendor/go.opentelemetry.io/otel/internal/gen.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright The OpenTelemetry Authors
-// SPDX-License-Identifier: Apache-2.0
-
-package internal // import "go.opentelemetry.io/otel/internal"
-
-//go:generate gotmpl --body=./shared/matchers/expectation.go.tmpl "--data={}" --out=matchers/expectation.go
-//go:generate gotmpl --body=./shared/matchers/expecter.go.tmpl "--data={}" --out=matchers/expecter.go
-//go:generate gotmpl --body=./shared/matchers/temporal_matcher.go.tmpl "--data={}" --out=matchers/temporal_matcher.go
-
-//go:generate gotmpl --body=./shared/internaltest/alignment.go.tmpl "--data={}" --out=internaltest/alignment.go
-//go:generate gotmpl --body=./shared/internaltest/env.go.tmpl "--data={}" --out=internaltest/env.go
-//go:generate gotmpl --body=./shared/internaltest/env_test.go.tmpl "--data={}" --out=internaltest/env_test.go
-//go:generate gotmpl --body=./shared/internaltest/errors.go.tmpl "--data={}" --out=internaltest/errors.go
-//go:generate gotmpl --body=./shared/internaltest/harness.go.tmpl "--data={\"matchersImportPath\": \"go.opentelemetry.io/otel/internal/matchers\"}" --out=internaltest/harness.go
-//go:generate gotmpl --body=./shared/internaltest/text_map_carrier.go.tmpl "--data={}" --out=internaltest/text_map_carrier.go
-//go:generate gotmpl --body=./shared/internaltest/text_map_carrier_test.go.tmpl "--data={}" --out=internaltest/text_map_carrier_test.go
-//go:generate gotmpl --body=./shared/internaltest/text_map_propagator.go.tmpl "--data={}" --out=internaltest/text_map_propagator.go
-//go:generate gotmpl --body=./shared/internaltest/text_map_propagator_test.go.tmpl "--data={}" --out=internaltest/text_map_propagator_test.go
diff --git a/vendor/go.opentelemetry.io/otel/internal/global/handler.go b/vendor/go.opentelemetry.io/otel/internal/global/handler.go
index c657ff8e75..2e47b2964c 100644
--- a/vendor/go.opentelemetry.io/otel/internal/global/handler.go
+++ b/vendor/go.opentelemetry.io/otel/internal/global/handler.go
@@ -1,6 +1,7 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
+// Package global provides the OpenTelemetry global API.
package global // import "go.opentelemetry.io/otel/internal/global"
import (
diff --git a/vendor/go.opentelemetry.io/otel/internal/global/meter.go b/vendor/go.opentelemetry.io/otel/internal/global/meter.go
index a6acd8dca6..adb37b5b0e 100644
--- a/vendor/go.opentelemetry.io/otel/internal/global/meter.go
+++ b/vendor/go.opentelemetry.io/otel/internal/global/meter.go
@@ -169,7 +169,10 @@ func (m *meter) Int64Counter(name string, options ...metric.Int64CounterOption)
return i, nil
}
-func (m *meter) Int64UpDownCounter(name string, options ...metric.Int64UpDownCounterOption) (metric.Int64UpDownCounter, error) {
+func (m *meter) Int64UpDownCounter(
+ name string,
+ options ...metric.Int64UpDownCounterOption,
+) (metric.Int64UpDownCounter, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
@@ -238,7 +241,10 @@ func (m *meter) Int64Gauge(name string, options ...metric.Int64GaugeOption) (met
return i, nil
}
-func (m *meter) Int64ObservableCounter(name string, options ...metric.Int64ObservableCounterOption) (metric.Int64ObservableCounter, error) {
+func (m *meter) Int64ObservableCounter(
+ name string,
+ options ...metric.Int64ObservableCounterOption,
+) (metric.Int64ObservableCounter, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
@@ -261,7 +267,10 @@ func (m *meter) Int64ObservableCounter(name string, options ...metric.Int64Obser
return i, nil
}
-func (m *meter) Int64ObservableUpDownCounter(name string, options ...metric.Int64ObservableUpDownCounterOption) (metric.Int64ObservableUpDownCounter, error) {
+func (m *meter) Int64ObservableUpDownCounter(
+ name string,
+ options ...metric.Int64ObservableUpDownCounterOption,
+) (metric.Int64ObservableUpDownCounter, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
@@ -284,7 +293,10 @@ func (m *meter) Int64ObservableUpDownCounter(name string, options ...metric.Int6
return i, nil
}
-func (m *meter) Int64ObservableGauge(name string, options ...metric.Int64ObservableGaugeOption) (metric.Int64ObservableGauge, error) {
+func (m *meter) Int64ObservableGauge(
+ name string,
+ options ...metric.Int64ObservableGaugeOption,
+) (metric.Int64ObservableGauge, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
@@ -330,7 +342,10 @@ func (m *meter) Float64Counter(name string, options ...metric.Float64CounterOpti
return i, nil
}
-func (m *meter) Float64UpDownCounter(name string, options ...metric.Float64UpDownCounterOption) (metric.Float64UpDownCounter, error) {
+func (m *meter) Float64UpDownCounter(
+ name string,
+ options ...metric.Float64UpDownCounterOption,
+) (metric.Float64UpDownCounter, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
@@ -353,7 +368,10 @@ func (m *meter) Float64UpDownCounter(name string, options ...metric.Float64UpDow
return i, nil
}
-func (m *meter) Float64Histogram(name string, options ...metric.Float64HistogramOption) (metric.Float64Histogram, error) {
+func (m *meter) Float64Histogram(
+ name string,
+ options ...metric.Float64HistogramOption,
+) (metric.Float64Histogram, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
@@ -399,7 +417,10 @@ func (m *meter) Float64Gauge(name string, options ...metric.Float64GaugeOption)
return i, nil
}
-func (m *meter) Float64ObservableCounter(name string, options ...metric.Float64ObservableCounterOption) (metric.Float64ObservableCounter, error) {
+func (m *meter) Float64ObservableCounter(
+ name string,
+ options ...metric.Float64ObservableCounterOption,
+) (metric.Float64ObservableCounter, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
@@ -422,7 +443,10 @@ func (m *meter) Float64ObservableCounter(name string, options ...metric.Float64O
return i, nil
}
-func (m *meter) Float64ObservableUpDownCounter(name string, options ...metric.Float64ObservableUpDownCounterOption) (metric.Float64ObservableUpDownCounter, error) {
+func (m *meter) Float64ObservableUpDownCounter(
+ name string,
+ options ...metric.Float64ObservableUpDownCounterOption,
+) (metric.Float64ObservableUpDownCounter, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
@@ -445,7 +469,10 @@ func (m *meter) Float64ObservableUpDownCounter(name string, options ...metric.Fl
return i, nil
}
-func (m *meter) Float64ObservableGauge(name string, options ...metric.Float64ObservableGaugeOption) (metric.Float64ObservableGauge, error) {
+func (m *meter) Float64ObservableGauge(
+ name string,
+ options ...metric.Float64ObservableGaugeOption,
+) (metric.Float64ObservableGauge, error) {
m.mtx.Lock()
defer m.mtx.Unlock()
diff --git a/vendor/go.opentelemetry.io/otel/internal/global/trace.go b/vendor/go.opentelemetry.io/otel/internal/global/trace.go
index 8982aa0dc5..49e4ac4faa 100644
--- a/vendor/go.opentelemetry.io/otel/internal/global/trace.go
+++ b/vendor/go.opentelemetry.io/otel/internal/global/trace.go
@@ -158,7 +158,18 @@ func (t *tracer) Start(ctx context.Context, name string, opts ...trace.SpanStart
// a nonRecordingSpan by default.
var autoInstEnabled = new(bool)
-func (t *tracer) newSpan(ctx context.Context, autoSpan *bool, name string, opts []trace.SpanStartOption) (context.Context, trace.Span) {
+// newSpan is called by tracer.Start so auto-instrumentation can attach an eBPF
+// uprobe to this code.
+//
+// "noinline" pragma prevents the method from ever being inlined.
+//
+//go:noinline
+func (t *tracer) newSpan(
+ ctx context.Context,
+ autoSpan *bool,
+ name string,
+ opts []trace.SpanStartOption,
+) (context.Context, trace.Span) {
// autoInstEnabled is passed to newSpan via the autoSpan parameter. This is
// so the auto-instrumentation can define a uprobe for (*t).newSpan and be
// provided with the address of the bool autoInstEnabled points to. It
diff --git a/vendor/go.opentelemetry.io/otel/internal/rawhelpers.go b/vendor/go.opentelemetry.io/otel/internal/rawhelpers.go
deleted file mode 100644
index b2fe3e41d3..0000000000
--- a/vendor/go.opentelemetry.io/otel/internal/rawhelpers.go
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright The OpenTelemetry Authors
-// SPDX-License-Identifier: Apache-2.0
-
-package internal // import "go.opentelemetry.io/otel/internal"
-
-import (
- "math"
- "unsafe"
-)
-
-func BoolToRaw(b bool) uint64 { // nolint:revive // b is not a control flag.
- if b {
- return 1
- }
- return 0
-}
-
-func RawToBool(r uint64) bool {
- return r != 0
-}
-
-func Int64ToRaw(i int64) uint64 {
- // Assumes original was a valid int64 (overflow not checked).
- return uint64(i) // nolint: gosec
-}
-
-func RawToInt64(r uint64) int64 {
- // Assumes original was a valid int64 (overflow not checked).
- return int64(r) // nolint: gosec
-}
-
-func Float64ToRaw(f float64) uint64 {
- return math.Float64bits(f)
-}
-
-func RawToFloat64(r uint64) float64 {
- return math.Float64frombits(r)
-}
-
-func RawPtrToFloat64Ptr(r *uint64) *float64 {
- // Assumes original was a valid *float64 (overflow not checked).
- return (*float64)(unsafe.Pointer(r)) // nolint: gosec
-}
-
-func RawPtrToInt64Ptr(r *uint64) *int64 {
- // Assumes original was a valid *int64 (overflow not checked).
- return (*int64)(unsafe.Pointer(r)) // nolint: gosec
-}
diff --git a/vendor/go.opentelemetry.io/otel/metric/asyncfloat64.go b/vendor/go.opentelemetry.io/otel/metric/asyncfloat64.go
index f8435d8f28..b7fc973a66 100644
--- a/vendor/go.opentelemetry.io/otel/metric/asyncfloat64.go
+++ b/vendor/go.opentelemetry.io/otel/metric/asyncfloat64.go
@@ -106,7 +106,9 @@ type Float64ObservableUpDownCounterConfig struct {
// NewFloat64ObservableUpDownCounterConfig returns a new
// [Float64ObservableUpDownCounterConfig] with all opts applied.
-func NewFloat64ObservableUpDownCounterConfig(opts ...Float64ObservableUpDownCounterOption) Float64ObservableUpDownCounterConfig {
+func NewFloat64ObservableUpDownCounterConfig(
+ opts ...Float64ObservableUpDownCounterOption,
+) Float64ObservableUpDownCounterConfig {
var config Float64ObservableUpDownCounterConfig
for _, o := range opts {
config = o.applyFloat64ObservableUpDownCounter(config)
@@ -239,12 +241,16 @@ type float64CallbackOpt struct {
cback Float64Callback
}
-func (o float64CallbackOpt) applyFloat64ObservableCounter(cfg Float64ObservableCounterConfig) Float64ObservableCounterConfig {
+func (o float64CallbackOpt) applyFloat64ObservableCounter(
+ cfg Float64ObservableCounterConfig,
+) Float64ObservableCounterConfig {
cfg.callbacks = append(cfg.callbacks, o.cback)
return cfg
}
-func (o float64CallbackOpt) applyFloat64ObservableUpDownCounter(cfg Float64ObservableUpDownCounterConfig) Float64ObservableUpDownCounterConfig {
+func (o float64CallbackOpt) applyFloat64ObservableUpDownCounter(
+ cfg Float64ObservableUpDownCounterConfig,
+) Float64ObservableUpDownCounterConfig {
cfg.callbacks = append(cfg.callbacks, o.cback)
return cfg
}
diff --git a/vendor/go.opentelemetry.io/otel/metric/asyncint64.go b/vendor/go.opentelemetry.io/otel/metric/asyncint64.go
index e079aaef16..4404b71a22 100644
--- a/vendor/go.opentelemetry.io/otel/metric/asyncint64.go
+++ b/vendor/go.opentelemetry.io/otel/metric/asyncint64.go
@@ -105,7 +105,9 @@ type Int64ObservableUpDownCounterConfig struct {
// NewInt64ObservableUpDownCounterConfig returns a new
// [Int64ObservableUpDownCounterConfig] with all opts applied.
-func NewInt64ObservableUpDownCounterConfig(opts ...Int64ObservableUpDownCounterOption) Int64ObservableUpDownCounterConfig {
+func NewInt64ObservableUpDownCounterConfig(
+ opts ...Int64ObservableUpDownCounterOption,
+) Int64ObservableUpDownCounterConfig {
var config Int64ObservableUpDownCounterConfig
for _, o := range opts {
config = o.applyInt64ObservableUpDownCounter(config)
@@ -242,7 +244,9 @@ func (o int64CallbackOpt) applyInt64ObservableCounter(cfg Int64ObservableCounter
return cfg
}
-func (o int64CallbackOpt) applyInt64ObservableUpDownCounter(cfg Int64ObservableUpDownCounterConfig) Int64ObservableUpDownCounterConfig {
+func (o int64CallbackOpt) applyInt64ObservableUpDownCounter(
+ cfg Int64ObservableUpDownCounterConfig,
+) Int64ObservableUpDownCounterConfig {
cfg.callbacks = append(cfg.callbacks, o.cback)
return cfg
}
diff --git a/vendor/go.opentelemetry.io/otel/metric/instrument.go b/vendor/go.opentelemetry.io/otel/metric/instrument.go
index a535782e1d..9f48d5f117 100644
--- a/vendor/go.opentelemetry.io/otel/metric/instrument.go
+++ b/vendor/go.opentelemetry.io/otel/metric/instrument.go
@@ -63,7 +63,9 @@ func (o descOpt) applyFloat64ObservableCounter(c Float64ObservableCounterConfig)
return c
}
-func (o descOpt) applyFloat64ObservableUpDownCounter(c Float64ObservableUpDownCounterConfig) Float64ObservableUpDownCounterConfig {
+func (o descOpt) applyFloat64ObservableUpDownCounter(
+ c Float64ObservableUpDownCounterConfig,
+) Float64ObservableUpDownCounterConfig {
c.description = string(o)
return c
}
@@ -98,7 +100,9 @@ func (o descOpt) applyInt64ObservableCounter(c Int64ObservableCounterConfig) Int
return c
}
-func (o descOpt) applyInt64ObservableUpDownCounter(c Int64ObservableUpDownCounterConfig) Int64ObservableUpDownCounterConfig {
+func (o descOpt) applyInt64ObservableUpDownCounter(
+ c Int64ObservableUpDownCounterConfig,
+) Int64ObservableUpDownCounterConfig {
c.description = string(o)
return c
}
@@ -138,7 +142,9 @@ func (o unitOpt) applyFloat64ObservableCounter(c Float64ObservableCounterConfig)
return c
}
-func (o unitOpt) applyFloat64ObservableUpDownCounter(c Float64ObservableUpDownCounterConfig) Float64ObservableUpDownCounterConfig {
+func (o unitOpt) applyFloat64ObservableUpDownCounter(
+ c Float64ObservableUpDownCounterConfig,
+) Float64ObservableUpDownCounterConfig {
c.unit = string(o)
return c
}
@@ -173,7 +179,9 @@ func (o unitOpt) applyInt64ObservableCounter(c Int64ObservableCounterConfig) Int
return c
}
-func (o unitOpt) applyInt64ObservableUpDownCounter(c Int64ObservableUpDownCounterConfig) Int64ObservableUpDownCounterConfig {
+func (o unitOpt) applyInt64ObservableUpDownCounter(
+ c Int64ObservableUpDownCounterConfig,
+) Int64ObservableUpDownCounterConfig {
c.unit = string(o)
return c
}
diff --git a/vendor/go.opentelemetry.io/otel/metric/meter.go b/vendor/go.opentelemetry.io/otel/metric/meter.go
index 14e08c24a4..fdd2a7011c 100644
--- a/vendor/go.opentelemetry.io/otel/metric/meter.go
+++ b/vendor/go.opentelemetry.io/otel/metric/meter.go
@@ -110,7 +110,10 @@ type Meter interface {
// The name needs to conform to the OpenTelemetry instrument name syntax.
// See the Instrument Name section of the package documentation for more
// information.
- Int64ObservableUpDownCounter(name string, options ...Int64ObservableUpDownCounterOption) (Int64ObservableUpDownCounter, error)
+ Int64ObservableUpDownCounter(
+ name string,
+ options ...Int64ObservableUpDownCounterOption,
+ ) (Int64ObservableUpDownCounter, error)
// Int64ObservableGauge returns a new Int64ObservableGauge instrument
// identified by name and configured with options. The instrument is used
@@ -194,7 +197,10 @@ type Meter interface {
// The name needs to conform to the OpenTelemetry instrument name syntax.
// See the Instrument Name section of the package documentation for more
// information.
- Float64ObservableUpDownCounter(name string, options ...Float64ObservableUpDownCounterOption) (Float64ObservableUpDownCounter, error)
+ Float64ObservableUpDownCounter(
+ name string,
+ options ...Float64ObservableUpDownCounterOption,
+ ) (Float64ObservableUpDownCounter, error)
// Float64ObservableGauge returns a new Float64ObservableGauge instrument
// identified by name and configured with options. The instrument is used
diff --git a/vendor/go.opentelemetry.io/otel/metric/noop/noop.go b/vendor/go.opentelemetry.io/otel/metric/noop/noop.go
index ca6fcbdc09..9afb69e583 100644
--- a/vendor/go.opentelemetry.io/otel/metric/noop/noop.go
+++ b/vendor/go.opentelemetry.io/otel/metric/noop/noop.go
@@ -86,13 +86,19 @@ func (Meter) Int64Gauge(string, ...metric.Int64GaugeOption) (metric.Int64Gauge,
// Int64ObservableCounter returns an ObservableCounter used to record int64
// measurements that produces no telemetry.
-func (Meter) Int64ObservableCounter(string, ...metric.Int64ObservableCounterOption) (metric.Int64ObservableCounter, error) {
+func (Meter) Int64ObservableCounter(
+ string,
+ ...metric.Int64ObservableCounterOption,
+) (metric.Int64ObservableCounter, error) {
return Int64ObservableCounter{}, nil
}
// Int64ObservableUpDownCounter returns an ObservableUpDownCounter used to
// record int64 measurements that produces no telemetry.
-func (Meter) Int64ObservableUpDownCounter(string, ...metric.Int64ObservableUpDownCounterOption) (metric.Int64ObservableUpDownCounter, error) {
+func (Meter) Int64ObservableUpDownCounter(
+ string,
+ ...metric.Int64ObservableUpDownCounterOption,
+) (metric.Int64ObservableUpDownCounter, error) {
return Int64ObservableUpDownCounter{}, nil
}
@@ -128,19 +134,28 @@ func (Meter) Float64Gauge(string, ...metric.Float64GaugeOption) (metric.Float64G
// Float64ObservableCounter returns an ObservableCounter used to record int64
// measurements that produces no telemetry.
-func (Meter) Float64ObservableCounter(string, ...metric.Float64ObservableCounterOption) (metric.Float64ObservableCounter, error) {
+func (Meter) Float64ObservableCounter(
+ string,
+ ...metric.Float64ObservableCounterOption,
+) (metric.Float64ObservableCounter, error) {
return Float64ObservableCounter{}, nil
}
// Float64ObservableUpDownCounter returns an ObservableUpDownCounter used to
// record int64 measurements that produces no telemetry.
-func (Meter) Float64ObservableUpDownCounter(string, ...metric.Float64ObservableUpDownCounterOption) (metric.Float64ObservableUpDownCounter, error) {
+func (Meter) Float64ObservableUpDownCounter(
+ string,
+ ...metric.Float64ObservableUpDownCounterOption,
+) (metric.Float64ObservableUpDownCounter, error) {
return Float64ObservableUpDownCounter{}, nil
}
// Float64ObservableGauge returns an ObservableGauge used to record int64
// measurements that produces no telemetry.
-func (Meter) Float64ObservableGauge(string, ...metric.Float64ObservableGaugeOption) (metric.Float64ObservableGauge, error) {
+func (Meter) Float64ObservableGauge(
+ string,
+ ...metric.Float64ObservableGaugeOption,
+) (metric.Float64ObservableGauge, error) {
return Float64ObservableGauge{}, nil
}
diff --git a/vendor/go.opentelemetry.io/otel/propagation/baggage.go b/vendor/go.opentelemetry.io/otel/propagation/baggage.go
index 552263ba73..ebda5026d6 100644
--- a/vendor/go.opentelemetry.io/otel/propagation/baggage.go
+++ b/vendor/go.opentelemetry.io/otel/propagation/baggage.go
@@ -28,7 +28,21 @@ func (b Baggage) Inject(ctx context.Context, carrier TextMapCarrier) {
}
// Extract returns a copy of parent with the baggage from the carrier added.
+// If carrier implements [ValuesGetter] (e.g. [HeaderCarrier]), Values is invoked
+// for multiple values extraction. Otherwise, Get is called.
func (b Baggage) Extract(parent context.Context, carrier TextMapCarrier) context.Context {
+ if multiCarrier, ok := carrier.(ValuesGetter); ok {
+ return extractMultiBaggage(parent, multiCarrier)
+ }
+ return extractSingleBaggage(parent, carrier)
+}
+
+// Fields returns the keys who's values are set with Inject.
+func (b Baggage) Fields() []string {
+ return []string{baggageHeader}
+}
+
+func extractSingleBaggage(parent context.Context, carrier TextMapCarrier) context.Context {
bStr := carrier.Get(baggageHeader)
if bStr == "" {
return parent
@@ -41,7 +55,23 @@ func (b Baggage) Extract(parent context.Context, carrier TextMapCarrier) context
return baggage.ContextWithBaggage(parent, bag)
}
-// Fields returns the keys who's values are set with Inject.
-func (b Baggage) Fields() []string {
- return []string{baggageHeader}
+func extractMultiBaggage(parent context.Context, carrier ValuesGetter) context.Context {
+ bVals := carrier.Values(baggageHeader)
+ if len(bVals) == 0 {
+ return parent
+ }
+ var members []baggage.Member
+ for _, bStr := range bVals {
+ currBag, err := baggage.Parse(bStr)
+ if err != nil {
+ continue
+ }
+ members = append(members, currBag.Members()...)
+ }
+
+ b, err := baggage.New(members...)
+ if err != nil || b.Len() == 0 {
+ return parent
+ }
+ return baggage.ContextWithBaggage(parent, b)
}
diff --git a/vendor/go.opentelemetry.io/otel/propagation/propagation.go b/vendor/go.opentelemetry.io/otel/propagation/propagation.go
index 8c8286aab4..5c8c26ea2e 100644
--- a/vendor/go.opentelemetry.io/otel/propagation/propagation.go
+++ b/vendor/go.opentelemetry.io/otel/propagation/propagation.go
@@ -9,6 +9,7 @@ import (
)
// TextMapCarrier is the storage medium used by a TextMapPropagator.
+// See ValuesGetter for how a TextMapCarrier can get multiple values for a key.
type TextMapCarrier interface {
// DO NOT CHANGE: any modification will not be backwards compatible and
// must never be done outside of a new major release.
@@ -29,6 +30,18 @@ type TextMapCarrier interface {
// must never be done outside of a new major release.
}
+// ValuesGetter can return multiple values for a single key,
+// with contrast to TextMapCarrier.Get which returns a single value.
+type ValuesGetter interface {
+ // DO NOT CHANGE: any modification will not be backwards compatible and
+ // must never be done outside of a new major release.
+
+ // Values returns all values associated with the passed key.
+ Values(key string) []string
+ // DO NOT CHANGE: any modification will not be backwards compatible and
+ // must never be done outside of a new major release.
+}
+
// MapCarrier is a TextMapCarrier that uses a map held in memory as a storage
// medium for propagated key-value pairs.
type MapCarrier map[string]string
@@ -55,14 +68,25 @@ func (c MapCarrier) Keys() []string {
return keys
}
-// HeaderCarrier adapts http.Header to satisfy the TextMapCarrier interface.
+// HeaderCarrier adapts http.Header to satisfy the TextMapCarrier and ValuesGetter interfaces.
type HeaderCarrier http.Header
-// Get returns the value associated with the passed key.
+// Compile time check that HeaderCarrier implements ValuesGetter.
+var _ TextMapCarrier = HeaderCarrier{}
+
+// Compile time check that HeaderCarrier implements TextMapCarrier.
+var _ ValuesGetter = HeaderCarrier{}
+
+// Get returns the first value associated with the passed key.
func (hc HeaderCarrier) Get(key string) string {
return http.Header(hc).Get(key)
}
+// Values returns all values associated with the passed key.
+func (hc HeaderCarrier) Values(key string) []string {
+ return http.Header(hc).Values(key)
+}
+
// Set stores the key-value pair.
func (hc HeaderCarrier) Set(key string, value string) {
http.Header(hc).Set(key, value)
@@ -89,6 +113,8 @@ type TextMapPropagator interface {
// must never be done outside of a new major release.
// Extract reads cross-cutting concerns from the carrier into a Context.
+ // Implementations may check if the carrier implements ValuesGetter,
+ // to support extraction of multiple values per key.
Extract(ctx context.Context, carrier TextMapCarrier) context.Context
// DO NOT CHANGE: any modification will not be backwards compatible and
// must never be done outside of a new major release.
diff --git a/vendor/go.opentelemetry.io/otel/renovate.json b/vendor/go.opentelemetry.io/otel/renovate.json
index a6fa353f95..fa5acf2d3b 100644
--- a/vendor/go.opentelemetry.io/otel/renovate.json
+++ b/vendor/go.opentelemetry.io/otel/renovate.json
@@ -1,7 +1,8 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
- "config:best-practices"
+ "config:best-practices",
+ "helpers:pinGitHubActionDigestsToSemver"
],
"ignorePaths": [],
"labels": ["Skip Changelog", "dependencies"],
@@ -25,6 +26,10 @@
{
"matchPackageNames": ["golang.org/x/**"],
"groupName": "golang.org/x"
+ },
+ {
+ "matchPackageNames": ["go.opentelemetry.io/otel/sdk/log/logtest"],
+ "enabled": false
}
]
}
diff --git a/vendor/go.opentelemetry.io/otel/semconv/internal/v2/http.go b/vendor/go.opentelemetry.io/otel/semconv/internal/v2/http.go
index 09e094de9a..3709ef0993 100644
--- a/vendor/go.opentelemetry.io/otel/semconv/internal/v2/http.go
+++ b/vendor/go.opentelemetry.io/otel/semconv/internal/v2/http.go
@@ -1,6 +1,7 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
+// Package internal provides common semconv functionality.
package internal // import "go.opentelemetry.io/otel/semconv/internal/v2"
import (
diff --git a/vendor/go.opentelemetry.io/otel/trace/auto.go b/vendor/go.opentelemetry.io/otel/trace/auto.go
index 7e2910025a..d90af8f673 100644
--- a/vendor/go.opentelemetry.io/otel/trace/auto.go
+++ b/vendor/go.opentelemetry.io/otel/trace/auto.go
@@ -57,14 +57,15 @@ type autoTracer struct {
var _ Tracer = autoTracer{}
func (t autoTracer) Start(ctx context.Context, name string, opts ...SpanStartOption) (context.Context, Span) {
- var psc SpanContext
+ var psc, sc SpanContext
sampled := true
span := new(autoSpan)
// Ask eBPF for sampling decision and span context info.
- t.start(ctx, span, &psc, &sampled, &span.spanContext)
+ t.start(ctx, span, &psc, &sampled, &sc)
span.sampled.Store(sampled)
+ span.spanContext = sc
ctx = ContextWithSpan(ctx, span)
diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/span.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/span.go
index 3c5e1cdb1b..e7ca62c660 100644
--- a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/span.go
+++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/span.go
@@ -251,13 +251,20 @@ func (s *Span) UnmarshalJSON(data []byte) error {
type SpanFlags int32
const (
+ // SpanFlagsTraceFlagsMask is a mask for trace-flags.
+ //
// Bits 0-7 are used for trace flags.
SpanFlagsTraceFlagsMask SpanFlags = 255
- // Bits 8 and 9 are used to indicate that the parent span or link span is remote.
- // Bit 8 (`HAS_IS_REMOTE`) indicates whether the value is known.
- // Bit 9 (`IS_REMOTE`) indicates whether the span or link is remote.
+ // SpanFlagsContextHasIsRemoteMask is a mask for HAS_IS_REMOTE status.
+ //
+ // Bits 8 and 9 are used to indicate that the parent span or link span is
+ // remote. Bit 8 (`HAS_IS_REMOTE`) indicates whether the value is known.
SpanFlagsContextHasIsRemoteMask SpanFlags = 256
- // SpanFlagsContextHasIsRemoteMask indicates the Span is remote.
+ // SpanFlagsContextIsRemoteMask is a mask for IS_REMOTE status.
+ //
+ // Bits 8 and 9 are used to indicate that the parent span or link span is
+ // remote. Bit 9 (`IS_REMOTE`) indicates whether the span or link is
+ // remote.
SpanFlagsContextIsRemoteMask SpanFlags = 512
)
@@ -266,27 +273,31 @@ const (
type SpanKind int32
const (
- // Indicates that the span represents an internal operation within an application,
- // as opposed to an operation happening at the boundaries. Default value.
+ // SpanKindInternal indicates that the span represents an internal
+ // operation within an application, as opposed to an operation happening at
+ // the boundaries.
SpanKindInternal SpanKind = 1
- // Indicates that the span covers server-side handling of an RPC or other
- // remote network request.
+ // SpanKindServer indicates that the span covers server-side handling of an
+ // RPC or other remote network request.
SpanKindServer SpanKind = 2
- // Indicates that the span describes a request to some remote service.
+ // SpanKindClient indicates that the span describes a request to some
+ // remote service.
SpanKindClient SpanKind = 3
- // Indicates that the span describes a producer sending a message to a broker.
- // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship
- // between producer and consumer spans. A PRODUCER span ends when the message was accepted
- // by the broker while the logical processing of the message might span a much longer time.
+ // SpanKindProducer indicates that the span describes a producer sending a
+ // message to a broker. Unlike SpanKindClient and SpanKindServer, there is
+ // often no direct critical path latency relationship between producer and
+ // consumer spans. A SpanKindProducer span ends when the message was
+ // accepted by the broker while the logical processing of the message might
+ // span a much longer time.
SpanKindProducer SpanKind = 4
- // Indicates that the span describes consumer receiving a message from a broker.
- // Like the PRODUCER kind, there is often no direct critical path latency relationship
- // between producer and consumer spans.
+ // SpanKindConsumer indicates that the span describes a consumer receiving
+ // a message from a broker. Like SpanKindProducer, there is often no direct
+ // critical path latency relationship between producer and consumer spans.
SpanKindConsumer SpanKind = 5
)
-// Event is a time-stamped annotation of the span, consisting of user-supplied
-// text description and key-value pairs.
+// SpanEvent is a time-stamped annotation of the span, consisting of
+// user-supplied text description and key-value pairs.
type SpanEvent struct {
// time_unix_nano is the time the event occurred.
Time time.Time `json:"timeUnixNano,omitempty"`
@@ -369,10 +380,11 @@ func (se *SpanEvent) UnmarshalJSON(data []byte) error {
return nil
}
-// A pointer from the current span to another span in the same trace or in a
-// different trace. For example, this can be used in batching operations,
-// where a single batch handler processes multiple requests from different
-// traces or when the handler receives a request from a different project.
+// SpanLink is a reference from the current span to another span in the same
+// trace or in a different trace. For example, this can be used in batching
+// operations, where a single batch handler processes multiple requests from
+// different traces or when the handler receives a request from a different
+// project.
type SpanLink struct {
// A unique identifier of a trace that this linked span is part of. The ID is a
// 16-byte array.
diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/status.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/status.go
index 1d013a8fa8..1039bf40cd 100644
--- a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/status.go
+++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/status.go
@@ -3,17 +3,19 @@
package telemetry // import "go.opentelemetry.io/otel/trace/internal/telemetry"
+// StatusCode is the status of a Span.
+//
// For the semantics of status codes see
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status
type StatusCode int32
const (
- // The default status.
+ // StatusCodeUnset is the default status.
StatusCodeUnset StatusCode = 0
- // The Span has been validated by an Application developer or Operator to
- // have completed successfully.
+ // StatusCodeOK is used when the Span has been validated by an Application
+ // developer or Operator to have completed successfully.
StatusCodeOK StatusCode = 1
- // The Span contains an error.
+ // StatusCodeError is used when the Span contains an error.
StatusCodeError StatusCode = 2
)
@@ -30,7 +32,7 @@ func (s StatusCode) String() string {
return ""
}
-// The Status type defines a logical error model that is suitable for different
+// Status defines a logical error model that is suitable for different
// programming environments, including REST APIs and RPC APIs.
type Status struct {
// A developer-facing human readable error message.
diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/traces.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/traces.go
index b039407081..e5f10767ca 100644
--- a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/traces.go
+++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/traces.go
@@ -71,7 +71,7 @@ func (td *Traces) UnmarshalJSON(data []byte) error {
return nil
}
-// A collection of ScopeSpans from a Resource.
+// ResourceSpans is a collection of ScopeSpans from a Resource.
type ResourceSpans struct {
// The resource for the spans in this message.
// If this field is not set then no resource info is known.
@@ -128,7 +128,7 @@ func (rs *ResourceSpans) UnmarshalJSON(data []byte) error {
return nil
}
-// A collection of Spans produced by an InstrumentationScope.
+// ScopeSpans is a collection of Spans produced by an InstrumentationScope.
type ScopeSpans struct {
// The instrumentation scope information for the spans in this message.
// Semantically when InstrumentationScope isn't set, it is equivalent with
diff --git a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/value.go b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/value.go
index 7251492da0..ae9ce102a9 100644
--- a/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/value.go
+++ b/vendor/go.opentelemetry.io/otel/trace/internal/telemetry/value.go
@@ -316,7 +316,7 @@ func (v Value) String() string {
case ValueKindBool:
return strconv.FormatBool(v.asBool())
case ValueKindBytes:
- return fmt.Sprint(v.asBytes())
+ return string(v.asBytes())
case ValueKindMap:
return fmt.Sprint(v.asMap())
case ValueKindSlice:
diff --git a/vendor/go.opentelemetry.io/otel/trace/noop.go b/vendor/go.opentelemetry.io/otel/trace/noop.go
index c8b1ae5d67..0f56e4dbb3 100644
--- a/vendor/go.opentelemetry.io/otel/trace/noop.go
+++ b/vendor/go.opentelemetry.io/otel/trace/noop.go
@@ -95,6 +95,8 @@ var autoInstEnabled = new(bool)
// tracerProvider return a noopTracerProvider if autoEnabled is false,
// otherwise it will return a TracerProvider from the sdk package used in
// auto-instrumentation.
+//
+//go:noinline
func (noopSpan) tracerProvider(autoEnabled *bool) TracerProvider {
if *autoEnabled {
return newAutoTracerProvider()
diff --git a/vendor/go.opentelemetry.io/otel/verify_readmes.sh b/vendor/go.opentelemetry.io/otel/verify_readmes.sh
deleted file mode 100644
index 1e87855eea..0000000000
--- a/vendor/go.opentelemetry.io/otel/verify_readmes.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-# Copyright The OpenTelemetry Authors
-# SPDX-License-Identifier: Apache-2.0
-
-set -euo pipefail
-
-dirs=$(find . -type d -not -path "*/internal*" -not -path "*/test*" -not -path "*/example*" -not -path "*/.*" | sort)
-
-missingReadme=false
-for dir in $dirs; do
- if [ ! -f "$dir/README.md" ]; then
- echo "couldn't find README.md for $dir"
- missingReadme=true
- fi
-done
-
-if [ "$missingReadme" = true ] ; then
- echo "Error: some READMEs couldn't be found."
- exit 1
-fi
diff --git a/vendor/go.opentelemetry.io/otel/version.go b/vendor/go.opentelemetry.io/otel/version.go
index d5fa71f674..ac3c0b15da 100644
--- a/vendor/go.opentelemetry.io/otel/version.go
+++ b/vendor/go.opentelemetry.io/otel/version.go
@@ -5,5 +5,5 @@ package otel // import "go.opentelemetry.io/otel"
// Version is the current release version of OpenTelemetry in use.
func Version() string {
- return "1.35.0"
+ return "1.36.0"
}
diff --git a/vendor/go.opentelemetry.io/otel/versions.yaml b/vendor/go.opentelemetry.io/otel/versions.yaml
index 2b4cb4b418..79f82f3d05 100644
--- a/vendor/go.opentelemetry.io/otel/versions.yaml
+++ b/vendor/go.opentelemetry.io/otel/versions.yaml
@@ -3,7 +3,7 @@
module-sets:
stable-v1:
- version: v1.35.0
+ version: v1.36.0
modules:
- go.opentelemetry.io/otel
- go.opentelemetry.io/otel/bridge/opencensus
@@ -23,11 +23,11 @@ module-sets:
- go.opentelemetry.io/otel/sdk/metric
- go.opentelemetry.io/otel/trace
experimental-metrics:
- version: v0.57.0
+ version: v0.58.0
modules:
- go.opentelemetry.io/otel/exporters/prometheus
experimental-logs:
- version: v0.11.0
+ version: v0.12.0
modules:
- go.opentelemetry.io/otel/log
- go.opentelemetry.io/otel/sdk/log
@@ -40,4 +40,6 @@ module-sets:
- go.opentelemetry.io/otel/schema
excluded-modules:
- go.opentelemetry.io/otel/internal/tools
+ - go.opentelemetry.io/otel/log/logtest
+ - go.opentelemetry.io/otel/sdk/log/logtest
- go.opentelemetry.io/otel/trace/internal/telemetry/test
diff --git a/vendor/golang.org/x/crypto/cryptobyte/asn1.go b/vendor/golang.org/x/crypto/cryptobyte/asn1.go
index 2492f796af..d25979d9f5 100644
--- a/vendor/golang.org/x/crypto/cryptobyte/asn1.go
+++ b/vendor/golang.org/x/crypto/cryptobyte/asn1.go
@@ -234,7 +234,7 @@ func (b *Builder) AddASN1(tag asn1.Tag, f BuilderContinuation) {
// Identifiers with the low five bits set indicate high-tag-number format
// (two or more octets), which we don't support.
if tag&0x1f == 0x1f {
- b.err = fmt.Errorf("cryptobyte: high-tag number identifier octects not supported: 0x%x", tag)
+ b.err = fmt.Errorf("cryptobyte: high-tag number identifier octets not supported: 0x%x", tag)
return
}
b.AddUint8(uint8(tag))
diff --git a/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go b/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go
index bd896bdc76..8d99551fee 100644
--- a/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go
+++ b/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build (!amd64 && !ppc64le && !ppc64 && !s390x) || !gc || purego
+//go:build (!amd64 && !loong64 && !ppc64le && !ppc64 && !s390x) || !gc || purego
package poly1305
diff --git a/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go b/vendor/golang.org/x/crypto/internal/poly1305/sum_asm.go
similarity index 94%
rename from vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go
rename to vendor/golang.org/x/crypto/internal/poly1305/sum_asm.go
index 164cd47d32..315b84ac39 100644
--- a/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go
+++ b/vendor/golang.org/x/crypto/internal/poly1305/sum_asm.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build gc && !purego
+//go:build gc && !purego && (amd64 || loong64 || ppc64 || ppc64le)
package poly1305
diff --git a/vendor/golang.org/x/crypto/internal/poly1305/sum_loong64.s b/vendor/golang.org/x/crypto/internal/poly1305/sum_loong64.s
new file mode 100644
index 0000000000..bc8361da40
--- /dev/null
+++ b/vendor/golang.org/x/crypto/internal/poly1305/sum_loong64.s
@@ -0,0 +1,123 @@
+// Copyright 2025 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build gc && !purego
+
+// func update(state *macState, msg []byte)
+TEXT ·update(SB), $0-32
+ MOVV state+0(FP), R4
+ MOVV msg_base+8(FP), R5
+ MOVV msg_len+16(FP), R6
+
+ MOVV $0x10, R7
+
+ MOVV (R4), R8 // h0
+ MOVV 8(R4), R9 // h1
+ MOVV 16(R4), R10 // h2
+ MOVV 24(R4), R11 // r0
+ MOVV 32(R4), R12 // r1
+
+ BLT R6, R7, bytes_between_0_and_15
+
+loop:
+ MOVV (R5), R14 // msg[0:8]
+ MOVV 8(R5), R16 // msg[8:16]
+ ADDV R14, R8, R8 // h0 (x1 + y1 = z1', if z1' < x1 then z1' overflow)
+ ADDV R16, R9, R27
+ SGTU R14, R8, R24 // h0.carry
+ SGTU R9, R27, R28
+ ADDV R27, R24, R9 // h1
+ SGTU R27, R9, R24
+ OR R24, R28, R24 // h1.carry
+ ADDV $0x01, R24, R24
+ ADDV R10, R24, R10 // h2
+
+ ADDV $16, R5, R5 // msg = msg[16:]
+
+multiply:
+ MULV R8, R11, R14 // h0r0.lo
+ MULHVU R8, R11, R15 // h0r0.hi
+ MULV R9, R11, R13 // h1r0.lo
+ MULHVU R9, R11, R16 // h1r0.hi
+ ADDV R13, R15, R15
+ SGTU R13, R15, R24
+ ADDV R24, R16, R16
+ MULV R10, R11, R25
+ ADDV R16, R25, R25
+ MULV R8, R12, R13 // h0r1.lo
+ MULHVU R8, R12, R16 // h0r1.hi
+ ADDV R13, R15, R15
+ SGTU R13, R15, R24
+ ADDV R24, R16, R16
+ MOVV R16, R8
+ MULV R10, R12, R26 // h2r1
+ MULV R9, R12, R13 // h1r1.lo
+ MULHVU R9, R12, R16 // h1r1.hi
+ ADDV R13, R25, R25
+ ADDV R16, R26, R27
+ SGTU R13, R25, R24
+ ADDV R27, R24, R26
+ ADDV R8, R25, R25
+ SGTU R8, R25, R24
+ ADDV R24, R26, R26
+ AND $3, R25, R10
+ AND $-4, R25, R17
+ ADDV R17, R14, R8
+ ADDV R26, R15, R27
+ SGTU R17, R8, R24
+ SGTU R26, R27, R28
+ ADDV R27, R24, R9
+ SGTU R27, R9, R24
+ OR R24, R28, R24
+ ADDV R24, R10, R10
+ SLLV $62, R26, R27
+ SRLV $2, R25, R28
+ SRLV $2, R26, R26
+ OR R27, R28, R25
+ ADDV R25, R8, R8
+ ADDV R26, R9, R27
+ SGTU R25, R8, R24
+ SGTU R26, R27, R28
+ ADDV R27, R24, R9
+ SGTU R27, R9, R24
+ OR R24, R28, R24
+ ADDV R24, R10, R10
+
+ SUBV $16, R6, R6
+ BGE R6, R7, loop
+
+bytes_between_0_and_15:
+ BEQ R6, R0, done
+ MOVV $1, R14
+ XOR R15, R15
+ ADDV R6, R5, R5
+
+flush_buffer:
+ MOVBU -1(R5), R25
+ SRLV $56, R14, R24
+ SLLV $8, R15, R28
+ SLLV $8, R14, R14
+ OR R24, R28, R15
+ XOR R25, R14, R14
+ SUBV $1, R6, R6
+ SUBV $1, R5, R5
+ BNE R6, R0, flush_buffer
+
+ ADDV R14, R8, R8
+ SGTU R14, R8, R24
+ ADDV R15, R9, R27
+ SGTU R15, R27, R28
+ ADDV R27, R24, R9
+ SGTU R27, R9, R24
+ OR R24, R28, R24
+ ADDV R10, R24, R10
+
+ MOVV $16, R6
+ JMP multiply
+
+done:
+ MOVV R8, (R4)
+ MOVV R9, 8(R4)
+ MOVV R10, 16(R4)
+ RET
diff --git a/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.go b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.go
deleted file mode 100644
index 1a1679aaad..0000000000
--- a/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.go
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2019 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build gc && !purego && (ppc64 || ppc64le)
-
-package poly1305
-
-//go:noescape
-func update(state *macState, msg []byte)
-
-// mac is a wrapper for macGeneric that redirects calls that would have gone to
-// updateGeneric to update.
-//
-// Its Write and Sum methods are otherwise identical to the macGeneric ones, but
-// using function pointers would carry a major performance cost.
-type mac struct{ macGeneric }
-
-func (h *mac) Write(p []byte) (int, error) {
- nn := len(p)
- if h.offset > 0 {
- n := copy(h.buffer[h.offset:], p)
- if h.offset+n < TagSize {
- h.offset += n
- return nn, nil
- }
- p = p[n:]
- h.offset = 0
- update(&h.macState, h.buffer[:])
- }
- if n := len(p) - (len(p) % TagSize); n > 0 {
- update(&h.macState, p[:n])
- p = p[n:]
- }
- if len(p) > 0 {
- h.offset += copy(h.buffer[h.offset:], p)
- }
- return nn, nil
-}
-
-func (h *mac) Sum(out *[16]byte) {
- state := h.macState
- if h.offset > 0 {
- update(&state, h.buffer[:h.offset])
- }
- finalize(out, &state.h, &state.s)
-}
diff --git a/vendor/golang.org/x/crypto/ssh/handshake.go b/vendor/golang.org/x/crypto/ssh/handshake.go
index c9202b05da..b6bf546b49 100644
--- a/vendor/golang.org/x/crypto/ssh/handshake.go
+++ b/vendor/golang.org/x/crypto/ssh/handshake.go
@@ -5,7 +5,6 @@
package ssh
import (
- "crypto/rand"
"errors"
"fmt"
"io"
@@ -501,7 +500,7 @@ func (t *handshakeTransport) sendKexInit() error {
CompressionClientServer: supportedCompressions,
CompressionServerClient: supportedCompressions,
}
- io.ReadFull(rand.Reader, msg.Cookie[:])
+ io.ReadFull(t.config.Rand, msg.Cookie[:])
// We mutate the KexAlgos slice, in order to add the kex-strict extension algorithm,
// and possibly to add the ext-info extension algorithm. Since the slice may be the
diff --git a/vendor/golang.org/x/crypto/ssh/knownhosts/knownhosts.go b/vendor/golang.org/x/crypto/ssh/knownhosts/knownhosts.go
index 7376a8dff2..c022e411f0 100644
--- a/vendor/golang.org/x/crypto/ssh/knownhosts/knownhosts.go
+++ b/vendor/golang.org/x/crypto/ssh/knownhosts/knownhosts.go
@@ -302,8 +302,8 @@ func (k *KnownKey) String() string {
// applications can offer an interactive prompt to the user.
type KeyError struct {
// Want holds the accepted host keys. For each key algorithm,
- // there can be one hostkey. If Want is empty, the host is
- // unknown. If Want is non-empty, there was a mismatch, which
+ // there can be multiple hostkeys. If Want is empty, the host
+ // is unknown. If Want is non-empty, there was a mismatch, which
// can signify a MITM attack.
Want []KnownKey
}
@@ -358,34 +358,20 @@ func (db *hostKeyDB) checkAddr(a addr, remoteKey ssh.PublicKey) error {
// is just a key for the IP address, but not for the
// hostname?
- // Algorithm => key.
- knownKeys := map[string]KnownKey{}
+ keyErr := &KeyError{}
+
for _, l := range db.lines {
- if l.match(a) {
- typ := l.knownKey.Key.Type()
- if _, ok := knownKeys[typ]; !ok {
- knownKeys[typ] = l.knownKey
- }
+ if !l.match(a) {
+ continue
+ }
+
+ keyErr.Want = append(keyErr.Want, l.knownKey)
+ if keyEq(l.knownKey.Key, remoteKey) {
+ return nil
}
}
- keyErr := &KeyError{}
- for _, v := range knownKeys {
- keyErr.Want = append(keyErr.Want, v)
- }
-
- // Unknown remote host.
- if len(knownKeys) == 0 {
- return keyErr
- }
-
- // If the remote host starts using a different, unknown key type, we
- // also interpret that as a mismatch.
- if known, ok := knownKeys[remoteKey.Type()]; !ok || !keyEq(known.Key, remoteKey) {
- return keyErr
- }
-
- return nil
+ return keyErr
}
// The Read function parses file contents.
diff --git a/vendor/golang.org/x/crypto/ssh/mlkem.go b/vendor/golang.org/x/crypto/ssh/mlkem.go
new file mode 100644
index 0000000000..40681dd696
--- /dev/null
+++ b/vendor/golang.org/x/crypto/ssh/mlkem.go
@@ -0,0 +1,187 @@
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build go1.24
+
+package ssh
+
+import (
+ "crypto"
+ "crypto/mlkem"
+ "crypto/sha256"
+ "errors"
+ "fmt"
+ "io"
+ "runtime"
+ "slices"
+
+ "golang.org/x/crypto/curve25519"
+)
+
+const (
+ kexAlgoMLKEM768xCurve25519SHA256 = "mlkem768x25519-sha256"
+)
+
+func init() {
+ // After Go 1.24rc1 mlkem swapped the order of return values of Encapsulate.
+ // See #70950.
+ if runtime.Version() == "go1.24rc1" {
+ return
+ }
+ supportedKexAlgos = slices.Insert(supportedKexAlgos, 0, kexAlgoMLKEM768xCurve25519SHA256)
+ preferredKexAlgos = slices.Insert(preferredKexAlgos, 0, kexAlgoMLKEM768xCurve25519SHA256)
+ kexAlgoMap[kexAlgoMLKEM768xCurve25519SHA256] = &mlkem768WithCurve25519sha256{}
+}
+
+// mlkem768WithCurve25519sha256 implements the hybrid ML-KEM768 with
+// curve25519-sha256 key exchange method, as described by
+// draft-kampanakis-curdle-ssh-pq-ke-05 section 2.3.3.
+type mlkem768WithCurve25519sha256 struct{}
+
+func (kex *mlkem768WithCurve25519sha256) Client(c packetConn, rand io.Reader, magics *handshakeMagics) (*kexResult, error) {
+ var c25519kp curve25519KeyPair
+ if err := c25519kp.generate(rand); err != nil {
+ return nil, err
+ }
+
+ seed := make([]byte, mlkem.SeedSize)
+ if _, err := io.ReadFull(rand, seed); err != nil {
+ return nil, err
+ }
+
+ mlkemDk, err := mlkem.NewDecapsulationKey768(seed)
+ if err != nil {
+ return nil, err
+ }
+
+ hybridKey := append(mlkemDk.EncapsulationKey().Bytes(), c25519kp.pub[:]...)
+ if err := c.writePacket(Marshal(&kexECDHInitMsg{hybridKey})); err != nil {
+ return nil, err
+ }
+
+ packet, err := c.readPacket()
+ if err != nil {
+ return nil, err
+ }
+
+ var reply kexECDHReplyMsg
+ if err = Unmarshal(packet, &reply); err != nil {
+ return nil, err
+ }
+
+ if len(reply.EphemeralPubKey) != mlkem.CiphertextSize768+32 {
+ return nil, errors.New("ssh: peer's mlkem768x25519 public value has wrong length")
+ }
+
+ // Perform KEM decapsulate operation to obtain shared key from ML-KEM.
+ mlkem768Secret, err := mlkemDk.Decapsulate(reply.EphemeralPubKey[:mlkem.CiphertextSize768])
+ if err != nil {
+ return nil, err
+ }
+
+ // Complete Curve25519 ECDH to obtain its shared key.
+ c25519Secret, err := curve25519.X25519(c25519kp.priv[:], reply.EphemeralPubKey[mlkem.CiphertextSize768:])
+ if err != nil {
+ return nil, fmt.Errorf("ssh: peer's mlkem768x25519 public value is not valid: %w", err)
+ }
+ // Compute actual shared key.
+ h := sha256.New()
+ h.Write(mlkem768Secret)
+ h.Write(c25519Secret)
+ secret := h.Sum(nil)
+
+ h.Reset()
+ magics.write(h)
+ writeString(h, reply.HostKey)
+ writeString(h, hybridKey)
+ writeString(h, reply.EphemeralPubKey)
+
+ K := make([]byte, stringLength(len(secret)))
+ marshalString(K, secret)
+ h.Write(K)
+
+ return &kexResult{
+ H: h.Sum(nil),
+ K: K,
+ HostKey: reply.HostKey,
+ Signature: reply.Signature,
+ Hash: crypto.SHA256,
+ }, nil
+}
+
+func (kex *mlkem768WithCurve25519sha256) Server(c packetConn, rand io.Reader, magics *handshakeMagics, priv AlgorithmSigner, algo string) (*kexResult, error) {
+ packet, err := c.readPacket()
+ if err != nil {
+ return nil, err
+ }
+
+ var kexInit kexECDHInitMsg
+ if err = Unmarshal(packet, &kexInit); err != nil {
+ return nil, err
+ }
+
+ if len(kexInit.ClientPubKey) != mlkem.EncapsulationKeySize768+32 {
+ return nil, errors.New("ssh: peer's ML-KEM768/curve25519 public value has wrong length")
+ }
+
+ encapsulationKey, err := mlkem.NewEncapsulationKey768(kexInit.ClientPubKey[:mlkem.EncapsulationKeySize768])
+ if err != nil {
+ return nil, fmt.Errorf("ssh: peer's ML-KEM768 encapsulation key is not valid: %w", err)
+ }
+ // Perform KEM encapsulate operation to obtain ciphertext and shared key.
+ mlkem768Secret, mlkem768Ciphertext := encapsulationKey.Encapsulate()
+
+ // Perform server side of Curve25519 ECDH to obtain server public value and
+ // shared key.
+ var c25519kp curve25519KeyPair
+ if err := c25519kp.generate(rand); err != nil {
+ return nil, err
+ }
+ c25519Secret, err := curve25519.X25519(c25519kp.priv[:], kexInit.ClientPubKey[mlkem.EncapsulationKeySize768:])
+ if err != nil {
+ return nil, fmt.Errorf("ssh: peer's ML-KEM768/curve25519 public value is not valid: %w", err)
+ }
+ hybridKey := append(mlkem768Ciphertext, c25519kp.pub[:]...)
+
+ // Compute actual shared key.
+ h := sha256.New()
+ h.Write(mlkem768Secret)
+ h.Write(c25519Secret)
+ secret := h.Sum(nil)
+
+ hostKeyBytes := priv.PublicKey().Marshal()
+
+ h.Reset()
+ magics.write(h)
+ writeString(h, hostKeyBytes)
+ writeString(h, kexInit.ClientPubKey)
+ writeString(h, hybridKey)
+
+ K := make([]byte, stringLength(len(secret)))
+ marshalString(K, secret)
+ h.Write(K)
+
+ H := h.Sum(nil)
+
+ sig, err := signAndMarshal(priv, rand, H, algo)
+ if err != nil {
+ return nil, err
+ }
+
+ reply := kexECDHReplyMsg{
+ EphemeralPubKey: hybridKey,
+ HostKey: hostKeyBytes,
+ Signature: sig,
+ }
+ if err := c.writePacket(Marshal(&reply)); err != nil {
+ return nil, err
+ }
+ return &kexResult{
+ H: H,
+ K: K,
+ HostKey: hostKeyBytes,
+ Signature: sig,
+ Hash: crypto.SHA256,
+ }, nil
+}
diff --git a/vendor/golang.org/x/sync/errgroup/errgroup.go b/vendor/golang.org/x/sync/errgroup/errgroup.go
index a4ea5d14f1..cfafed5b54 100644
--- a/vendor/golang.org/x/sync/errgroup/errgroup.go
+++ b/vendor/golang.org/x/sync/errgroup/errgroup.go
@@ -12,13 +12,15 @@ package errgroup
import (
"context"
"fmt"
+ "runtime"
+ "runtime/debug"
"sync"
)
type token struct{}
// A Group is a collection of goroutines working on subtasks that are part of
-// the same overall task.
+// the same overall task. A Group should not be reused for different tasks.
//
// A zero Group is valid, has no limit on the number of active goroutines,
// and does not cancel on error.
@@ -31,6 +33,10 @@ type Group struct {
errOnce sync.Once
err error
+
+ mu sync.Mutex
+ panicValue any // = PanicError | PanicValue; non-nil if some Group.Go goroutine panicked.
+ abnormal bool // some Group.Go goroutine terminated abnormally (panic or goexit).
}
func (g *Group) done() {
@@ -50,32 +56,80 @@ func WithContext(ctx context.Context) (*Group, context.Context) {
return &Group{cancel: cancel}, ctx
}
-// Wait blocks until all function calls from the Go method have returned, then
-// returns the first non-nil error (if any) from them.
+// Wait blocks until all function calls from the Go method have returned
+// normally, then returns the first non-nil error (if any) from them.
+//
+// If any of the calls panics, Wait panics with a [PanicValue];
+// and if any of them calls [runtime.Goexit], Wait calls runtime.Goexit.
func (g *Group) Wait() error {
g.wg.Wait()
if g.cancel != nil {
g.cancel(g.err)
}
+ if g.panicValue != nil {
+ panic(g.panicValue)
+ }
+ if g.abnormal {
+ runtime.Goexit()
+ }
return g.err
}
// Go calls the given function in a new goroutine.
+// The first call to Go must happen before a Wait.
// It blocks until the new goroutine can be added without the number of
// active goroutines in the group exceeding the configured limit.
//
-// The first call to return a non-nil error cancels the group's context, if the
-// group was created by calling WithContext. The error will be returned by Wait.
+// It blocks until the new goroutine can be added without the number of
+// goroutines in the group exceeding the configured limit.
+//
+// The first goroutine in the group that returns a non-nil error, panics, or
+// invokes [runtime.Goexit] will cancel the associated Context, if any.
func (g *Group) Go(f func() error) {
if g.sem != nil {
g.sem <- token{}
}
+ g.add(f)
+}
+
+func (g *Group) add(f func() error) {
g.wg.Add(1)
go func() {
defer g.done()
+ normalReturn := false
+ defer func() {
+ if normalReturn {
+ return
+ }
+ v := recover()
+ g.mu.Lock()
+ defer g.mu.Unlock()
+ if !g.abnormal {
+ if g.cancel != nil {
+ g.cancel(g.err)
+ }
+ g.abnormal = true
+ }
+ if v != nil && g.panicValue == nil {
+ switch v := v.(type) {
+ case error:
+ g.panicValue = PanicError{
+ Recovered: v,
+ Stack: debug.Stack(),
+ }
+ default:
+ g.panicValue = PanicValue{
+ Recovered: v,
+ Stack: debug.Stack(),
+ }
+ }
+ }
+ }()
- if err := f(); err != nil {
+ err := f()
+ normalReturn = true
+ if err != nil {
g.errOnce.Do(func() {
g.err = err
if g.cancel != nil {
@@ -100,19 +154,7 @@ func (g *Group) TryGo(f func() error) bool {
}
}
- g.wg.Add(1)
- go func() {
- defer g.done()
-
- if err := f(); err != nil {
- g.errOnce.Do(func() {
- g.err = err
- if g.cancel != nil {
- g.cancel(g.err)
- }
- })
- }
- }()
+ g.add(f)
return true
}
@@ -134,3 +176,33 @@ func (g *Group) SetLimit(n int) {
}
g.sem = make(chan token, n)
}
+
+// PanicError wraps an error recovered from an unhandled panic
+// when calling a function passed to Go or TryGo.
+type PanicError struct {
+ Recovered error
+ Stack []byte // result of call to [debug.Stack]
+}
+
+func (p PanicError) Error() string {
+ // A Go Error method conventionally does not include a stack dump, so omit it
+ // here. (Callers who care can extract it from the Stack field.)
+ return fmt.Sprintf("recovered from errgroup.Group: %v", p.Recovered)
+}
+
+func (p PanicError) Unwrap() error { return p.Recovered }
+
+// PanicValue wraps a value that does not implement the error interface,
+// recovered from an unhandled panic when calling a function passed to Go or
+// TryGo.
+type PanicValue struct {
+ Recovered any
+ Stack []byte // result of call to [debug.Stack]
+}
+
+func (p PanicValue) String() string {
+ if len(p.Stack) > 0 {
+ return fmt.Sprintf("recovered from errgroup.Group: %v\n%s", p.Recovered, p.Stack)
+ }
+ return fmt.Sprintf("recovered from errgroup.Group: %v", p.Recovered)
+}
diff --git a/vendor/golang.org/x/sys/cpu/cpu.go b/vendor/golang.org/x/sys/cpu/cpu.go
index 2e73ee1975..63541994ef 100644
--- a/vendor/golang.org/x/sys/cpu/cpu.go
+++ b/vendor/golang.org/x/sys/cpu/cpu.go
@@ -232,6 +232,17 @@ var RISCV64 struct {
HasZba bool // Address generation instructions extension
HasZbb bool // Basic bit-manipulation extension
HasZbs bool // Single-bit instructions extension
+ HasZvbb bool // Vector Basic Bit-manipulation
+ HasZvbc bool // Vector Carryless Multiplication
+ HasZvkb bool // Vector Cryptography Bit-manipulation
+ HasZvkt bool // Vector Data-Independent Execution Latency
+ HasZvkg bool // Vector GCM/GMAC
+ HasZvkn bool // NIST Algorithm Suite (AES/SHA256/SHA512)
+ HasZvknc bool // NIST Algorithm Suite with carryless multiply
+ HasZvkng bool // NIST Algorithm Suite with GCM
+ HasZvks bool // ShangMi Algorithm Suite
+ HasZvksc bool // ShangMi Algorithm Suite with carryless multiplication
+ HasZvksg bool // ShangMi Algorithm Suite with GCM
_ CacheLinePad
}
diff --git a/vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go b/vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go
index cb4a0c5728..ad741536f3 100644
--- a/vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go
@@ -58,6 +58,15 @@ const (
riscv_HWPROBE_EXT_ZBA = 0x8
riscv_HWPROBE_EXT_ZBB = 0x10
riscv_HWPROBE_EXT_ZBS = 0x20
+ riscv_HWPROBE_EXT_ZVBB = 0x20000
+ riscv_HWPROBE_EXT_ZVBC = 0x40000
+ riscv_HWPROBE_EXT_ZVKB = 0x80000
+ riscv_HWPROBE_EXT_ZVKG = 0x100000
+ riscv_HWPROBE_EXT_ZVKNED = 0x200000
+ riscv_HWPROBE_EXT_ZVKNHB = 0x800000
+ riscv_HWPROBE_EXT_ZVKSED = 0x1000000
+ riscv_HWPROBE_EXT_ZVKSH = 0x2000000
+ riscv_HWPROBE_EXT_ZVKT = 0x4000000
riscv_HWPROBE_KEY_CPUPERF_0 = 0x5
riscv_HWPROBE_MISALIGNED_FAST = 0x3
riscv_HWPROBE_MISALIGNED_MASK = 0x7
@@ -99,6 +108,20 @@ func doinit() {
RISCV64.HasZba = isSet(v, riscv_HWPROBE_EXT_ZBA)
RISCV64.HasZbb = isSet(v, riscv_HWPROBE_EXT_ZBB)
RISCV64.HasZbs = isSet(v, riscv_HWPROBE_EXT_ZBS)
+ RISCV64.HasZvbb = isSet(v, riscv_HWPROBE_EXT_ZVBB)
+ RISCV64.HasZvbc = isSet(v, riscv_HWPROBE_EXT_ZVBC)
+ RISCV64.HasZvkb = isSet(v, riscv_HWPROBE_EXT_ZVKB)
+ RISCV64.HasZvkg = isSet(v, riscv_HWPROBE_EXT_ZVKG)
+ RISCV64.HasZvkt = isSet(v, riscv_HWPROBE_EXT_ZVKT)
+ // Cryptography shorthand extensions
+ RISCV64.HasZvkn = isSet(v, riscv_HWPROBE_EXT_ZVKNED) &&
+ isSet(v, riscv_HWPROBE_EXT_ZVKNHB) && RISCV64.HasZvkb && RISCV64.HasZvkt
+ RISCV64.HasZvknc = RISCV64.HasZvkn && RISCV64.HasZvbc
+ RISCV64.HasZvkng = RISCV64.HasZvkn && RISCV64.HasZvkg
+ RISCV64.HasZvks = isSet(v, riscv_HWPROBE_EXT_ZVKSED) &&
+ isSet(v, riscv_HWPROBE_EXT_ZVKSH) && RISCV64.HasZvkb && RISCV64.HasZvkt
+ RISCV64.HasZvksc = RISCV64.HasZvks && RISCV64.HasZvbc
+ RISCV64.HasZvksg = RISCV64.HasZvks && RISCV64.HasZvkg
}
if pairs[1].key != -1 {
v := pairs[1].value & riscv_HWPROBE_MISALIGNED_MASK
diff --git a/vendor/golang.org/x/sys/cpu/cpu_riscv64.go b/vendor/golang.org/x/sys/cpu/cpu_riscv64.go
index aca3199c91..0f617aef54 100644
--- a/vendor/golang.org/x/sys/cpu/cpu_riscv64.go
+++ b/vendor/golang.org/x/sys/cpu/cpu_riscv64.go
@@ -16,5 +16,17 @@ func initOptions() {
{Name: "zba", Feature: &RISCV64.HasZba},
{Name: "zbb", Feature: &RISCV64.HasZbb},
{Name: "zbs", Feature: &RISCV64.HasZbs},
+ // RISC-V Cryptography Extensions
+ {Name: "zvbb", Feature: &RISCV64.HasZvbb},
+ {Name: "zvbc", Feature: &RISCV64.HasZvbc},
+ {Name: "zvkb", Feature: &RISCV64.HasZvkb},
+ {Name: "zvkg", Feature: &RISCV64.HasZvkg},
+ {Name: "zvkt", Feature: &RISCV64.HasZvkt},
+ {Name: "zvkn", Feature: &RISCV64.HasZvkn},
+ {Name: "zvknc", Feature: &RISCV64.HasZvknc},
+ {Name: "zvkng", Feature: &RISCV64.HasZvkng},
+ {Name: "zvks", Feature: &RISCV64.HasZvks},
+ {Name: "zvksc", Feature: &RISCV64.HasZvksc},
+ {Name: "zvksg", Feature: &RISCV64.HasZvksg},
}
}
diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go
index b6e1ab76f8..a8b0364c7c 100644
--- a/vendor/golang.org/x/sys/windows/security_windows.go
+++ b/vendor/golang.org/x/sys/windows/security_windows.go
@@ -1303,7 +1303,10 @@ func (selfRelativeSD *SECURITY_DESCRIPTOR) ToAbsolute() (absoluteSD *SECURITY_DE
return nil, err
}
if absoluteSDSize > 0 {
- absoluteSD = (*SECURITY_DESCRIPTOR)(unsafe.Pointer(&make([]byte, absoluteSDSize)[0]))
+ absoluteSD = new(SECURITY_DESCRIPTOR)
+ if unsafe.Sizeof(*absoluteSD) < uintptr(absoluteSDSize) {
+ panic("sizeof(SECURITY_DESCRIPTOR) too small")
+ }
}
var (
dacl *ACL
@@ -1312,19 +1315,55 @@ func (selfRelativeSD *SECURITY_DESCRIPTOR) ToAbsolute() (absoluteSD *SECURITY_DE
group *SID
)
if daclSize > 0 {
- dacl = (*ACL)(unsafe.Pointer(&make([]byte, daclSize)[0]))
+ dacl = (*ACL)(unsafe.Pointer(unsafe.SliceData(make([]byte, daclSize))))
}
if saclSize > 0 {
- sacl = (*ACL)(unsafe.Pointer(&make([]byte, saclSize)[0]))
+ sacl = (*ACL)(unsafe.Pointer(unsafe.SliceData(make([]byte, saclSize))))
}
if ownerSize > 0 {
- owner = (*SID)(unsafe.Pointer(&make([]byte, ownerSize)[0]))
+ owner = (*SID)(unsafe.Pointer(unsafe.SliceData(make([]byte, ownerSize))))
}
if groupSize > 0 {
- group = (*SID)(unsafe.Pointer(&make([]byte, groupSize)[0]))
+ group = (*SID)(unsafe.Pointer(unsafe.SliceData(make([]byte, groupSize))))
}
+ // We call into Windows via makeAbsoluteSD, which sets up
+ // pointers within absoluteSD that point to other chunks of memory
+ // we pass into makeAbsoluteSD, and that happens outside the view of the GC.
+ // We therefore take some care here to then verify the pointers are as we expect
+ // and set them explicitly in view of the GC. See https://go.dev/issue/73199.
+ // TODO: consider weak pointers once Go 1.24 is appropriate. See suggestion in https://go.dev/cl/663575.
err = makeAbsoluteSD(selfRelativeSD, absoluteSD, &absoluteSDSize,
dacl, &daclSize, sacl, &saclSize, owner, &ownerSize, group, &groupSize)
+ if err != nil {
+ // Don't return absoluteSD, which might be partially initialized.
+ return nil, err
+ }
+ // Before using any fields, verify absoluteSD is in the format we expect according to Windows.
+ // See https://learn.microsoft.com/en-us/windows/win32/secauthz/absolute-and-self-relative-security-descriptors
+ absControl, _, err := absoluteSD.Control()
+ if err != nil {
+ panic("absoluteSD: " + err.Error())
+ }
+ if absControl&SE_SELF_RELATIVE != 0 {
+ panic("absoluteSD not in absolute format")
+ }
+ if absoluteSD.dacl != dacl {
+ panic("dacl pointer mismatch")
+ }
+ if absoluteSD.sacl != sacl {
+ panic("sacl pointer mismatch")
+ }
+ if absoluteSD.owner != owner {
+ panic("owner pointer mismatch")
+ }
+ if absoluteSD.group != group {
+ panic("group pointer mismatch")
+ }
+ absoluteSD.dacl = dacl
+ absoluteSD.sacl = sacl
+ absoluteSD.owner = owner
+ absoluteSD.group = group
+
return
}
diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go
index 4a32543868..640f6b153f 100644
--- a/vendor/golang.org/x/sys/windows/syscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/syscall_windows.go
@@ -870,6 +870,7 @@ const socket_error = uintptr(^uint32(0))
//sys WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSARecvFrom
//sys WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSASendTo
//sys WSASocket(af int32, typ int32, protocol int32, protoInfo *WSAProtocolInfo, group uint32, flags uint32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.WSASocketW
+//sys WSADuplicateSocket(s Handle, processID uint32, info *WSAProtocolInfo) (err error) [failretval!=0] = ws2_32.WSADuplicateSocketW
//sys GetHostByName(name string) (h *Hostent, err error) [failretval==nil] = ws2_32.gethostbyname
//sys GetServByName(name string, proto string) (s *Servent, err error) [failretval==nil] = ws2_32.getservbyname
//sys Ntohs(netshort uint16) (u uint16) = ws2_32.ntohs
@@ -1698,8 +1699,9 @@ func NewNTUnicodeString(s string) (*NTUnicodeString, error) {
// Slice returns a uint16 slice that aliases the data in the NTUnicodeString.
func (s *NTUnicodeString) Slice() []uint16 {
- slice := unsafe.Slice(s.Buffer, s.MaximumLength)
- return slice[:s.Length]
+ // Note: this rounds the length down, if it happens
+ // to (incorrectly) be odd. Probably safer than rounding up.
+ return unsafe.Slice(s.Buffer, s.MaximumLength/2)[:s.Length/2]
}
func (s *NTUnicodeString) String() string {
diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go
index ad67df2fdb..958bcf47a3 100644
--- a/vendor/golang.org/x/sys/windows/types_windows.go
+++ b/vendor/golang.org/x/sys/windows/types_windows.go
@@ -2700,6 +2700,8 @@ type CommTimeouts struct {
// NTUnicodeString is a UTF-16 string for NT native APIs, corresponding to UNICODE_STRING.
type NTUnicodeString struct {
+ // Note: Length and MaximumLength are in *bytes*, not uint16s.
+ // They should always be even.
Length uint16
MaximumLength uint16
Buffer *uint16
@@ -3628,3 +3630,213 @@ const (
KLF_NOTELLSHELL = 0x00000080
KLF_SETFORPROCESS = 0x00000100
)
+
+// Virtual Key codes
+// https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
+const (
+ VK_LBUTTON = 0x01
+ VK_RBUTTON = 0x02
+ VK_CANCEL = 0x03
+ VK_MBUTTON = 0x04
+ VK_XBUTTON1 = 0x05
+ VK_XBUTTON2 = 0x06
+ VK_BACK = 0x08
+ VK_TAB = 0x09
+ VK_CLEAR = 0x0C
+ VK_RETURN = 0x0D
+ VK_SHIFT = 0x10
+ VK_CONTROL = 0x11
+ VK_MENU = 0x12
+ VK_PAUSE = 0x13
+ VK_CAPITAL = 0x14
+ VK_KANA = 0x15
+ VK_HANGEUL = 0x15
+ VK_HANGUL = 0x15
+ VK_IME_ON = 0x16
+ VK_JUNJA = 0x17
+ VK_FINAL = 0x18
+ VK_HANJA = 0x19
+ VK_KANJI = 0x19
+ VK_IME_OFF = 0x1A
+ VK_ESCAPE = 0x1B
+ VK_CONVERT = 0x1C
+ VK_NONCONVERT = 0x1D
+ VK_ACCEPT = 0x1E
+ VK_MODECHANGE = 0x1F
+ VK_SPACE = 0x20
+ VK_PRIOR = 0x21
+ VK_NEXT = 0x22
+ VK_END = 0x23
+ VK_HOME = 0x24
+ VK_LEFT = 0x25
+ VK_UP = 0x26
+ VK_RIGHT = 0x27
+ VK_DOWN = 0x28
+ VK_SELECT = 0x29
+ VK_PRINT = 0x2A
+ VK_EXECUTE = 0x2B
+ VK_SNAPSHOT = 0x2C
+ VK_INSERT = 0x2D
+ VK_DELETE = 0x2E
+ VK_HELP = 0x2F
+ VK_LWIN = 0x5B
+ VK_RWIN = 0x5C
+ VK_APPS = 0x5D
+ VK_SLEEP = 0x5F
+ VK_NUMPAD0 = 0x60
+ VK_NUMPAD1 = 0x61
+ VK_NUMPAD2 = 0x62
+ VK_NUMPAD3 = 0x63
+ VK_NUMPAD4 = 0x64
+ VK_NUMPAD5 = 0x65
+ VK_NUMPAD6 = 0x66
+ VK_NUMPAD7 = 0x67
+ VK_NUMPAD8 = 0x68
+ VK_NUMPAD9 = 0x69
+ VK_MULTIPLY = 0x6A
+ VK_ADD = 0x6B
+ VK_SEPARATOR = 0x6C
+ VK_SUBTRACT = 0x6D
+ VK_DECIMAL = 0x6E
+ VK_DIVIDE = 0x6F
+ VK_F1 = 0x70
+ VK_F2 = 0x71
+ VK_F3 = 0x72
+ VK_F4 = 0x73
+ VK_F5 = 0x74
+ VK_F6 = 0x75
+ VK_F7 = 0x76
+ VK_F8 = 0x77
+ VK_F9 = 0x78
+ VK_F10 = 0x79
+ VK_F11 = 0x7A
+ VK_F12 = 0x7B
+ VK_F13 = 0x7C
+ VK_F14 = 0x7D
+ VK_F15 = 0x7E
+ VK_F16 = 0x7F
+ VK_F17 = 0x80
+ VK_F18 = 0x81
+ VK_F19 = 0x82
+ VK_F20 = 0x83
+ VK_F21 = 0x84
+ VK_F22 = 0x85
+ VK_F23 = 0x86
+ VK_F24 = 0x87
+ VK_NUMLOCK = 0x90
+ VK_SCROLL = 0x91
+ VK_OEM_NEC_EQUAL = 0x92
+ VK_OEM_FJ_JISHO = 0x92
+ VK_OEM_FJ_MASSHOU = 0x93
+ VK_OEM_FJ_TOUROKU = 0x94
+ VK_OEM_FJ_LOYA = 0x95
+ VK_OEM_FJ_ROYA = 0x96
+ VK_LSHIFT = 0xA0
+ VK_RSHIFT = 0xA1
+ VK_LCONTROL = 0xA2
+ VK_RCONTROL = 0xA3
+ VK_LMENU = 0xA4
+ VK_RMENU = 0xA5
+ VK_BROWSER_BACK = 0xA6
+ VK_BROWSER_FORWARD = 0xA7
+ VK_BROWSER_REFRESH = 0xA8
+ VK_BROWSER_STOP = 0xA9
+ VK_BROWSER_SEARCH = 0xAA
+ VK_BROWSER_FAVORITES = 0xAB
+ VK_BROWSER_HOME = 0xAC
+ VK_VOLUME_MUTE = 0xAD
+ VK_VOLUME_DOWN = 0xAE
+ VK_VOLUME_UP = 0xAF
+ VK_MEDIA_NEXT_TRACK = 0xB0
+ VK_MEDIA_PREV_TRACK = 0xB1
+ VK_MEDIA_STOP = 0xB2
+ VK_MEDIA_PLAY_PAUSE = 0xB3
+ VK_LAUNCH_MAIL = 0xB4
+ VK_LAUNCH_MEDIA_SELECT = 0xB5
+ VK_LAUNCH_APP1 = 0xB6
+ VK_LAUNCH_APP2 = 0xB7
+ VK_OEM_1 = 0xBA
+ VK_OEM_PLUS = 0xBB
+ VK_OEM_COMMA = 0xBC
+ VK_OEM_MINUS = 0xBD
+ VK_OEM_PERIOD = 0xBE
+ VK_OEM_2 = 0xBF
+ VK_OEM_3 = 0xC0
+ VK_OEM_4 = 0xDB
+ VK_OEM_5 = 0xDC
+ VK_OEM_6 = 0xDD
+ VK_OEM_7 = 0xDE
+ VK_OEM_8 = 0xDF
+ VK_OEM_AX = 0xE1
+ VK_OEM_102 = 0xE2
+ VK_ICO_HELP = 0xE3
+ VK_ICO_00 = 0xE4
+ VK_PROCESSKEY = 0xE5
+ VK_ICO_CLEAR = 0xE6
+ VK_OEM_RESET = 0xE9
+ VK_OEM_JUMP = 0xEA
+ VK_OEM_PA1 = 0xEB
+ VK_OEM_PA2 = 0xEC
+ VK_OEM_PA3 = 0xED
+ VK_OEM_WSCTRL = 0xEE
+ VK_OEM_CUSEL = 0xEF
+ VK_OEM_ATTN = 0xF0
+ VK_OEM_FINISH = 0xF1
+ VK_OEM_COPY = 0xF2
+ VK_OEM_AUTO = 0xF3
+ VK_OEM_ENLW = 0xF4
+ VK_OEM_BACKTAB = 0xF5
+ VK_ATTN = 0xF6
+ VK_CRSEL = 0xF7
+ VK_EXSEL = 0xF8
+ VK_EREOF = 0xF9
+ VK_PLAY = 0xFA
+ VK_ZOOM = 0xFB
+ VK_NONAME = 0xFC
+ VK_PA1 = 0xFD
+ VK_OEM_CLEAR = 0xFE
+)
+
+// Mouse button constants.
+// https://docs.microsoft.com/en-us/windows/console/mouse-event-record-str
+const (
+ FROM_LEFT_1ST_BUTTON_PRESSED = 0x0001
+ RIGHTMOST_BUTTON_PRESSED = 0x0002
+ FROM_LEFT_2ND_BUTTON_PRESSED = 0x0004
+ FROM_LEFT_3RD_BUTTON_PRESSED = 0x0008
+ FROM_LEFT_4TH_BUTTON_PRESSED = 0x0010
+)
+
+// Control key state constaints.
+// https://docs.microsoft.com/en-us/windows/console/key-event-record-str
+// https://docs.microsoft.com/en-us/windows/console/mouse-event-record-str
+const (
+ CAPSLOCK_ON = 0x0080
+ ENHANCED_KEY = 0x0100
+ LEFT_ALT_PRESSED = 0x0002
+ LEFT_CTRL_PRESSED = 0x0008
+ NUMLOCK_ON = 0x0020
+ RIGHT_ALT_PRESSED = 0x0001
+ RIGHT_CTRL_PRESSED = 0x0004
+ SCROLLLOCK_ON = 0x0040
+ SHIFT_PRESSED = 0x0010
+)
+
+// Mouse event record event flags.
+// https://docs.microsoft.com/en-us/windows/console/mouse-event-record-str
+const (
+ MOUSE_MOVED = 0x0001
+ DOUBLE_CLICK = 0x0002
+ MOUSE_WHEELED = 0x0004
+ MOUSE_HWHEELED = 0x0008
+)
+
+// Input Record Event Types
+// https://learn.microsoft.com/en-us/windows/console/input-record-str
+const (
+ FOCUS_EVENT = 0x0010
+ KEY_EVENT = 0x0001
+ MENU_EVENT = 0x0008
+ MOUSE_EVENT = 0x0002
+ WINDOW_BUFFER_SIZE_EVENT = 0x0004
+)
diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
index 01c0716c2c..a58bc48b8e 100644
--- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
@@ -511,6 +511,7 @@ var (
procFreeAddrInfoW = modws2_32.NewProc("FreeAddrInfoW")
procGetAddrInfoW = modws2_32.NewProc("GetAddrInfoW")
procWSACleanup = modws2_32.NewProc("WSACleanup")
+ procWSADuplicateSocketW = modws2_32.NewProc("WSADuplicateSocketW")
procWSAEnumProtocolsW = modws2_32.NewProc("WSAEnumProtocolsW")
procWSAGetOverlappedResult = modws2_32.NewProc("WSAGetOverlappedResult")
procWSAIoctl = modws2_32.NewProc("WSAIoctl")
@@ -4391,6 +4392,14 @@ func WSACleanup() (err error) {
return
}
+func WSADuplicateSocket(s Handle, processID uint32, info *WSAProtocolInfo) (err error) {
+ r1, _, e1 := syscall.Syscall(procWSADuplicateSocketW.Addr(), 3, uintptr(s), uintptr(processID), uintptr(unsafe.Pointer(info)))
+ if r1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
func WSAEnumProtocols(protocols *int32, protocolBuffer *WSAProtocolInfo, bufferLength *uint32) (n int32, err error) {
r0, _, e1 := syscall.Syscall(procWSAEnumProtocolsW.Addr(), 3, uintptr(unsafe.Pointer(protocols)), uintptr(unsafe.Pointer(protocolBuffer)), uintptr(unsafe.Pointer(bufferLength)))
n = int32(r0)
diff --git a/vendor/golang.org/x/term/terminal.go b/vendor/golang.org/x/term/terminal.go
index f636667fb0..13e9a64ad1 100644
--- a/vendor/golang.org/x/term/terminal.go
+++ b/vendor/golang.org/x/term/terminal.go
@@ -6,6 +6,7 @@ package term
import (
"bytes"
+ "fmt"
"io"
"runtime"
"strconv"
@@ -36,6 +37,26 @@ var vt100EscapeCodes = EscapeCodes{
Reset: []byte{keyEscape, '[', '0', 'm'},
}
+// A History provides a (possibly bounded) queue of input lines read by [Terminal.ReadLine].
+type History interface {
+ // Add will be called by [Terminal.ReadLine] to add
+ // a new, most recent entry to the history.
+ // It is allowed to drop any entry, including
+ // the entry being added (e.g., if it's deemed an invalid entry),
+ // the least-recent entry (e.g., to keep the history bounded),
+ // or any other entry.
+ Add(entry string)
+
+ // Len returns the number of entries in the history.
+ Len() int
+
+ // At returns an entry from the history.
+ // Index 0 is the most-recently added entry and
+ // index Len()-1 is the least-recently added entry.
+ // If index is < 0 or >= Len(), it panics.
+ At(idx int) string
+}
+
// Terminal contains the state for running a VT100 terminal that is capable of
// reading lines of input.
type Terminal struct {
@@ -44,6 +65,8 @@ type Terminal struct {
// bytes, as an index into |line|). If it returns ok=false, the key
// press is processed normally. Otherwise it returns a replacement line
// and the new cursor position.
+ //
+ // This will be disabled during ReadPassword.
AutoCompleteCallback func(line string, pos int, key rune) (newLine string, newPos int, ok bool)
// Escape contains a pointer to the escape codes for this terminal.
@@ -84,9 +107,14 @@ type Terminal struct {
remainder []byte
inBuf [256]byte
- // history contains previously entered commands so that they can be
- // accessed with the up and down keys.
- history stRingBuffer
+ // History records and retrieves lines of input read by [ReadLine] which
+ // a user can retrieve and navigate using the up and down arrow keys.
+ //
+ // It is not safe to call ReadLine concurrently with any methods on History.
+ //
+ // [NewTerminal] sets this to a default implementation that records the
+ // last 100 lines of input.
+ History History
// historyIndex stores the currently accessed history entry, where zero
// means the immediately previous entry.
historyIndex int
@@ -109,6 +137,7 @@ func NewTerminal(c io.ReadWriter, prompt string) *Terminal {
termHeight: 24,
echo: true,
historyIndex: -1,
+ History: &stRingBuffer{},
}
}
@@ -448,6 +477,23 @@ func visualLength(runes []rune) int {
return length
}
+// histroryAt unlocks the terminal and relocks it while calling History.At.
+func (t *Terminal) historyAt(idx int) (string, bool) {
+ t.lock.Unlock() // Unlock to avoid deadlock if History methods use the output writer.
+ defer t.lock.Lock() // panic in At (or Len) protection.
+ if idx < 0 || idx >= t.History.Len() {
+ return "", false
+ }
+ return t.History.At(idx), true
+}
+
+// historyAdd unlocks the terminal and relocks it while calling History.Add.
+func (t *Terminal) historyAdd(entry string) {
+ t.lock.Unlock() // Unlock to avoid deadlock if History methods use the output writer.
+ defer t.lock.Lock() // panic in Add protection.
+ t.History.Add(entry)
+}
+
// handleKey processes the given key and, optionally, returns a line of text
// that the user has entered.
func (t *Terminal) handleKey(key rune) (line string, ok bool) {
@@ -495,7 +541,7 @@ func (t *Terminal) handleKey(key rune) (line string, ok bool) {
t.pos = len(t.line)
t.moveCursorToPos(t.pos)
case keyUp:
- entry, ok := t.history.NthPreviousEntry(t.historyIndex + 1)
+ entry, ok := t.historyAt(t.historyIndex + 1)
if !ok {
return "", false
}
@@ -514,7 +560,7 @@ func (t *Terminal) handleKey(key rune) (line string, ok bool) {
t.setLine(runes, len(runes))
t.historyIndex--
default:
- entry, ok := t.history.NthPreviousEntry(t.historyIndex - 1)
+ entry, ok := t.historyAt(t.historyIndex - 1)
if ok {
t.historyIndex--
runes := []rune(entry)
@@ -692,6 +738,8 @@ func (t *Terminal) Write(buf []byte) (n int, err error) {
// ReadPassword temporarily changes the prompt and reads a password, without
// echo, from the terminal.
+//
+// The AutoCompleteCallback is disabled during this call.
func (t *Terminal) ReadPassword(prompt string) (line string, err error) {
t.lock.Lock()
defer t.lock.Unlock()
@@ -699,6 +747,11 @@ func (t *Terminal) ReadPassword(prompt string) (line string, err error) {
oldPrompt := t.prompt
t.prompt = []rune(prompt)
t.echo = false
+ oldAutoCompleteCallback := t.AutoCompleteCallback
+ t.AutoCompleteCallback = nil
+ defer func() {
+ t.AutoCompleteCallback = oldAutoCompleteCallback
+ }()
line, err = t.readLine()
@@ -772,7 +825,7 @@ func (t *Terminal) readLine() (line string, err error) {
if lineOk {
if t.echo {
t.historyIndex = -1
- t.history.Add(line)
+ t.historyAdd(line)
}
if lineIsPasted {
err = ErrPasteIndicator
@@ -929,19 +982,23 @@ func (s *stRingBuffer) Add(a string) {
}
}
-// NthPreviousEntry returns the value passed to the nth previous call to Add.
+func (s *stRingBuffer) Len() int {
+ return s.size
+}
+
+// At returns the value passed to the nth previous call to Add.
// If n is zero then the immediately prior value is returned, if one, then the
// next most recent, and so on. If such an element doesn't exist then ok is
// false.
-func (s *stRingBuffer) NthPreviousEntry(n int) (value string, ok bool) {
+func (s *stRingBuffer) At(n int) string {
if n < 0 || n >= s.size {
- return "", false
+ panic(fmt.Sprintf("term: history index [%d] out of range [0,%d)", n, s.size))
}
index := s.head - n
if index < 0 {
index += s.max
}
- return s.entries[index], true
+ return s.entries[index]
}
// readPasswordLine reads from reader until it finds \n or io.EOF.
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 1ebffc46ab..86fad1ac1b 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -79,8 +79,8 @@ github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources
github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2017-10-01/storage
github.com/Azure/azure-sdk-for-go/storage
github.com/Azure/azure-sdk-for-go/version
-# github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0
-## explicit; go 1.18
+# github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.0
+## explicit; go 1.23.0
github.com/Azure/azure-sdk-for-go/sdk/azcore
github.com/Azure/azure-sdk-for-go/sdk/azcore/arm
github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/internal/resource
@@ -102,12 +102,12 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime
github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming
github.com/Azure/azure-sdk-for-go/sdk/azcore/to
github.com/Azure/azure-sdk-for-go/sdk/azcore/tracing
-# github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2
-## explicit; go 1.18
+# github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1
+## explicit; go 1.23.0
github.com/Azure/azure-sdk-for-go/sdk/azidentity
github.com/Azure/azure-sdk-for-go/sdk/azidentity/internal
-# github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0
-## explicit; go 1.18
+# github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1
+## explicit; go 1.23.0
github.com/Azure/azure-sdk-for-go/sdk/internal/diag
github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo
github.com/Azure/azure-sdk-for-go/sdk/internal/exported
@@ -118,6 +118,9 @@ github.com/Azure/azure-sdk-for-go/sdk/internal/uuid
# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3 v3.0.0-beta.2
## explicit; go 1.18
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3
+# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0
+## explicit; go 1.18
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute
# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4 v4.2.1
## explicit; go 1.18
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4
@@ -195,13 +198,13 @@ github.com/Azure/go-autorest/logger
# github.com/Azure/go-autorest/tracing v0.6.0
## explicit; go 1.12
github.com/Azure/go-autorest/tracing
-# github.com/AzureAD/microsoft-authentication-library-for-go v1.3.3
+# github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2
## explicit; go 1.18
github.com/AzureAD/microsoft-authentication-library-for-go/apps/cache
github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential
github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base
-github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/internal/storage
+github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/exported
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/json
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/json/types/time
@@ -217,6 +220,7 @@ github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/o
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/options
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/shared
github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/version
+github.com/AzureAD/microsoft-authentication-library-for-go/apps/managedidentity
github.com/AzureAD/microsoft-authentication-library-for-go/apps/public
# github.com/BurntSushi/toml v1.4.0
## explicit; go 1.18
@@ -691,8 +695,8 @@ github.com/coreos/ignition/v2/config/v3_2
github.com/coreos/ignition/v2/config/v3_2/translate
github.com/coreos/ignition/v2/config/v3_2/types
github.com/coreos/ignition/v2/config/validate
-# github.com/coreos/stream-metadata-go v0.1.8
-## explicit; go 1.15
+# github.com/coreos/stream-metadata-go v0.4.10-0.20250806142651-4a7d280a6c7b
+## explicit; go 1.18
github.com/coreos/stream-metadata-go/arch
github.com/coreos/stream-metadata-go/stream
github.com/coreos/stream-metadata-go/stream/rhcos
@@ -1656,20 +1660,19 @@ go.opentelemetry.io/auto/sdk/internal/telemetry
## explicit; go 1.21
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/internal
-# go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0
-## explicit; go 1.21
+# go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0
+## explicit; go 1.23.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil
-# go.opentelemetry.io/otel v1.35.0
-## explicit; go 1.22.0
+# go.opentelemetry.io/otel v1.36.0
+## explicit; go 1.23.0
go.opentelemetry.io/otel
go.opentelemetry.io/otel/attribute
+go.opentelemetry.io/otel/attribute/internal
go.opentelemetry.io/otel/baggage
go.opentelemetry.io/otel/codes
-go.opentelemetry.io/otel/internal
-go.opentelemetry.io/otel/internal/attribute
go.opentelemetry.io/otel/internal/baggage
go.opentelemetry.io/otel/internal/global
go.opentelemetry.io/otel/propagation
@@ -1678,13 +1681,13 @@ go.opentelemetry.io/otel/semconv/v1.17.0
go.opentelemetry.io/otel/semconv/v1.17.0/httpconv
go.opentelemetry.io/otel/semconv/v1.20.0
go.opentelemetry.io/otel/semconv/v1.26.0
-# go.opentelemetry.io/otel/metric v1.35.0
-## explicit; go 1.22.0
+# go.opentelemetry.io/otel/metric v1.36.0
+## explicit; go 1.23.0
go.opentelemetry.io/otel/metric
go.opentelemetry.io/otel/metric/embedded
go.opentelemetry.io/otel/metric/noop
-# go.opentelemetry.io/otel/trace v1.35.0
-## explicit; go 1.22.0
+# go.opentelemetry.io/otel/trace v1.36.0
+## explicit; go 1.23.0
go.opentelemetry.io/otel/trace
go.opentelemetry.io/otel/trace/embedded
go.opentelemetry.io/otel/trace/internal/telemetry
@@ -1716,7 +1719,7 @@ go.uber.org/zap/internal/exit
go.uber.org/zap/internal/pool
go.uber.org/zap/internal/stacktrace
go.uber.org/zap/zapcore
-# golang.org/x/crypto v0.36.0
+# golang.org/x/crypto v0.38.0
## explicit; go 1.23.0
golang.org/x/crypto/bcrypt
golang.org/x/crypto/blowfish
@@ -1745,7 +1748,7 @@ golang.org/x/mod/internal/lazyregexp
golang.org/x/mod/modfile
golang.org/x/mod/module
golang.org/x/mod/semver
-# golang.org/x/net v0.38.0
+# golang.org/x/net v0.40.0
## explicit; go 1.23.0
golang.org/x/net/html
golang.org/x/net/html/atom
@@ -1772,21 +1775,21 @@ golang.org/x/oauth2/google/internal/stsexchange
golang.org/x/oauth2/internal
golang.org/x/oauth2/jws
golang.org/x/oauth2/jwt
-# golang.org/x/sync v0.12.0
+# golang.org/x/sync v0.14.0
## explicit; go 1.23.0
golang.org/x/sync/errgroup
golang.org/x/sync/semaphore
-# golang.org/x/sys v0.32.0
+# golang.org/x/sys v0.33.0
## explicit; go 1.23.0
golang.org/x/sys/cpu
golang.org/x/sys/plan9
golang.org/x/sys/unix
golang.org/x/sys/windows
golang.org/x/sys/windows/registry
-# golang.org/x/term v0.30.0
+# golang.org/x/term v0.32.0
## explicit; go 1.23.0
golang.org/x/term
-# golang.org/x/text v0.23.0
+# golang.org/x/text v0.25.0
## explicit; go 1.23.0
golang.org/x/text/cases
golang.org/x/text/encoding