From 5e9b61702b13cd7040f898d0c1c64c6909bf3d55 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 18 Apr 2022 20:51:06 +0000 Subject: [PATCH] CodeGen from PR 18592 in Azure/azure-rest-api-specs Merge 9f1c4adfa53cdb942b4ca406ed588e921e4f7a88 into 5873c8fc2e706a747d8835bc84095a689a42552e --- .../compute/mgmt/compute/CHANGELOG.md | 2 + .../compute/mgmt/compute/_meta.json | 11 + .../compute/mgmt/compute/dedicatedhosts.go | 9 +- .../mgmt/compute/diskencryptionsets.go | 9 +- .../2020-09-01/compute/mgmt/compute/disks.go | 15 +- .../2020-09-01/compute/mgmt/compute/images.go | 9 +- .../compute/mgmt/compute/loganalytics.go | 6 +- .../2020-09-01/compute/mgmt/compute/models.go | 259 +++++++- .../compute/mgmt/compute/snapshots.go | 15 +- .../mgmt/compute/virtualmachineextensions.go | 9 +- .../compute/mgmt/compute/virtualmachines.go | 44 +- .../virtualmachinescalesetextensions.go | 9 +- .../virtualmachinescalesetrollingupgrades.go | 9 +- .../mgmt/compute/virtualmachinescalesets.go | 48 +- .../virtualmachinescalesetvmextensions.go | 9 +- .../mgmt/compute/virtualmachinescalesetvms.go | 30 +- .../mgmt/2015-06-15/compute/CHANGELOG.md | 2 +- .../mgmt/2015-06-15/compute/_meta.json | 2 +- .../mgmt/2016-03-30/compute/CHANGELOG.md | 2 +- .../mgmt/2016-03-30/compute/_meta.json | 2 +- .../mgmt/2017-03-30/compute/CHANGELOG.md | 2 +- .../mgmt/2017-03-30/compute/_meta.json | 2 +- .../compute/mgmt/2017-03-30/compute/models.go | 2 +- .../compute/mgmt/2017-09-01/skus/CHANGELOG.md | 2 +- .../compute/mgmt/2017-09-01/skus/_meta.json | 2 +- .../mgmt/2017-12-01/compute/CHANGELOG.md | 2 +- .../mgmt/2017-12-01/compute/_meta.json | 2 +- .../compute/mgmt/2017-12-01/compute/models.go | 2 +- .../mgmt/2018-04-01/compute/CHANGELOG.md | 2 +- .../mgmt/2018-04-01/compute/_meta.json | 2 +- .../compute/mgmt/2018-04-01/compute/models.go | 2 +- .../mgmt/2018-06-01/compute/CHANGELOG.md | 2 +- .../mgmt/2018-06-01/compute/_meta.json | 2 +- .../compute/mgmt/2018-06-01/compute/models.go | 2 +- .../mgmt/2018-10-01/compute/CHANGELOG.md | 2 +- .../mgmt/2018-10-01/compute/_meta.json | 2 +- .../compute/mgmt/2018-10-01/compute/models.go | 2 +- .../mgmt/2019-03-01/compute/CHANGELOG.md | 23 +- .../mgmt/2019-03-01/compute/_meta.json | 2 +- .../compute/galleryapplicationversions.go | 8 +- .../compute/mgmt/2019-03-01/compute/models.go | 29 +- .../mgmt/2019-07-01/compute/CHANGELOG.md | 23 +- .../mgmt/2019-07-01/compute/_meta.json | 2 +- .../compute/galleryapplicationversions.go | 8 +- .../compute/mgmt/2019-07-01/compute/models.go | 29 +- .../mgmt/2019-12-01/compute/CHANGELOG.md | 29 +- .../mgmt/2019-12-01/compute/_meta.json | 2 +- .../compute/galleryapplicationversions.go | 8 +- .../compute/mgmt/2019-12-01/compute/models.go | 35 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2020-06-01/compute/CHANGELOG.md | 37 +- .../mgmt/2020-06-01/compute/_meta.json | 2 +- .../compute/galleryapplicationversions.go | 8 +- .../compute/mgmt/2020-06-01/compute/models.go | 55 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2020-06-30/compute/CHANGELOG.md | 37 +- .../mgmt/2020-06-30/compute/_meta.json | 2 +- .../compute/galleryapplicationversions.go | 8 +- .../compute/mgmt/2020-06-30/compute/models.go | 55 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2020-12-01/compute/CHANGELOG.md | 560 +----------------- .../mgmt/2020-12-01/compute/_meta.json | 2 +- .../compute/mgmt/2020-12-01/compute/models.go | 6 +- .../2020-12-01/compute/virtualmachines.go | 2 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2021-03-01/compute/CHANGELOG.md | 51 +- .../mgmt/2021-03-01/compute/_meta.json | 2 +- .../compute/computeapi/interfaces.go | 2 + .../2021-03-01/compute/diskrestorepoint.go | 181 ++++++ .../compute/mgmt/2021-03-01/compute/models.go | 202 ++++++- .../mgmt/2021-03-01/compute/restorepoints.go | 28 +- .../2021-03-01/compute/virtualmachines.go | 2 +- .../mgmt/2021-04-01/compute/CHANGELOG.md | 53 +- .../mgmt/2021-04-01/compute/_meta.json | 2 +- .../mgmt/2021-04-01/compute/diskaccesses.go | 64 +- .../2021-04-01/compute/diskencryptionsets.go | 24 +- .../2021-04-01/compute/diskrestorepoint.go | 33 +- .../compute/mgmt/2021-04-01/compute/disks.go | 28 +- .../compute/mgmt/2021-04-01/compute/enums.go | 35 +- .../compute/mgmt/2021-04-01/compute/models.go | 125 +++- .../mgmt/2021-04-01/compute/snapshots.go | 34 +- .../2021-04-01/compute/virtualmachines.go | 2 +- .../mgmt/2021-07-01/compute/CHANGELOG.md | 27 +- .../mgmt/2021-07-01/compute/_meta.json | 2 +- .../compute/mgmt/2021-07-01/compute/models.go | 27 +- .../2021-07-01/compute/virtualmachines.go | 2 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2021-08-01/compute/CHANGELOG.md | 9 +- .../mgmt/2021-08-01/compute/_meta.json | 2 +- .../compute/mgmt/2021-08-01/compute/models.go | 6 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2021-11-01/compute/CHANGELOG.md | 59 +- .../mgmt/2021-11-01/compute/_meta.json | 2 +- .../compute/mgmt/2021-11-01/compute/models.go | 31 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2021-12-01/compute/CHANGELOG.md | 22 +- .../mgmt/2021-12-01/compute/_meta.json | 2 +- .../compute/mgmt/2021-12-01/compute/models.go | 31 +- .../compute/virtualmachinescalesets.go | 6 + .../2016-03-30/containerservice/CHANGELOG.md | 2 +- .../2016-03-30/containerservice/_meta.json | 2 +- .../2016-09-30/containerservice/CHANGELOG.md | 2 +- .../2016-09-30/containerservice/_meta.json | 2 +- .../2017-01-31/containerservice/CHANGELOG.md | 2 +- .../2017-01-31/containerservice/_meta.json | 2 +- .../2016-04-30-preview/compute/CHANGELOG.md | 2 +- .../2016-04-30-preview/compute/_meta.json | 2 +- .../2020-10-01-preview/compute/CHANGELOG.md | 9 +- .../2020-10-01-preview/compute/_meta.json | 2 +- .../mgmt/2020-10-01-preview/compute/models.go | 10 +- .../compute/virtualmachines.go | 2 +- .../compute/virtualmachinescalesets.go | 6 + .../containerservice/CHANGELOG.md | 2 +- .../containerservice/_meta.json | 2 +- 114 files changed, 1669 insertions(+), 1025 deletions(-) create mode 100644 profiles/2020-09-01/compute/mgmt/compute/CHANGELOG.md create mode 100644 profiles/2020-09-01/compute/mgmt/compute/_meta.json diff --git a/profiles/2020-09-01/compute/mgmt/compute/CHANGELOG.md b/profiles/2020-09-01/compute/mgmt/compute/CHANGELOG.md new file mode 100644 index 000000000000..a1ecf841edb0 --- /dev/null +++ b/profiles/2020-09-01/compute/mgmt/compute/CHANGELOG.md @@ -0,0 +1,2 @@ +# Unreleased + diff --git a/profiles/2020-09-01/compute/mgmt/compute/_meta.json b/profiles/2020-09-01/compute/mgmt/compute/_meta.json new file mode 100644 index 000000000000..fc155ff9bf7e --- /dev/null +++ b/profiles/2020-09-01/compute/mgmt/compute/_meta.json @@ -0,0 +1,11 @@ +{ + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", + "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "tag": "profile-hybrid-2020-09-01", + "use": "@microsoft.azure/autorest.go@2.1.187", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.187 --tag=profile-hybrid-2020-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=2.0.4421 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "additional_properties": { + "additional_options": "--go --verbose --use-onever --version=2.0.4421 --go.license-header=MICROSOFT_MIT_NO_VERSION" + } +} \ No newline at end of file diff --git a/profiles/2020-09-01/compute/mgmt/compute/dedicatedhosts.go b/profiles/2020-09-01/compute/mgmt/compute/dedicatedhosts.go index fb86c5e98483..7c28d013ee50 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/dedicatedhosts.go +++ b/profiles/2020-09-01/compute/mgmt/compute/dedicatedhosts.go @@ -66,7 +66,7 @@ func (client DedicatedHostsClient) CreateOrUpdate(ctx context.Context, resourceG result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -101,6 +101,7 @@ func (client DedicatedHostsClient) CreateOrUpdatePreparer(ctx context.Context, r // http.Response Body if it receives an error. func (client DedicatedHostsClient) CreateOrUpdateSender(req *http.Request) (future DedicatedHostsCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -148,7 +149,7 @@ func (client DedicatedHostsClient) Delete(ctx context.Context, resourceGroupName result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Delete", result.Response(), "Failure sending request") return } @@ -181,6 +182,7 @@ func (client DedicatedHostsClient) DeletePreparer(ctx context.Context, resourceG // http.Response Body if it receives an error. func (client DedicatedHostsClient) DeleteSender(req *http.Request) (future DedicatedHostsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -429,7 +431,7 @@ func (client DedicatedHostsClient) Update(ctx context.Context, resourceGroupName result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Update", result.Response(), "Failure sending request") return } @@ -464,6 +466,7 @@ func (client DedicatedHostsClient) UpdatePreparer(ctx context.Context, resourceG // http.Response Body if it receives an error. func (client DedicatedHostsClient) UpdateSender(req *http.Request) (future DedicatedHostsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/diskencryptionsets.go b/profiles/2020-09-01/compute/mgmt/compute/diskencryptionsets.go index 556ba3fbbc8a..614e91345490 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/diskencryptionsets.go +++ b/profiles/2020-09-01/compute/mgmt/compute/diskencryptionsets.go @@ -70,7 +70,7 @@ func (client DiskEncryptionSetsClient) CreateOrUpdate(ctx context.Context, resou result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -104,6 +104,7 @@ func (client DiskEncryptionSetsClient) CreateOrUpdatePreparer(ctx context.Contex // http.Response Body if it receives an error. func (client DiskEncryptionSetsClient) CreateOrUpdateSender(req *http.Request) (future DiskEncryptionSetsCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -152,7 +153,7 @@ func (client DiskEncryptionSetsClient) Delete(ctx context.Context, resourceGroup result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Delete", result.Response(), "Failure sending request") return } @@ -184,6 +185,7 @@ func (client DiskEncryptionSetsClient) DeletePreparer(ctx context.Context, resou // http.Response Body if it receives an error. func (client DiskEncryptionSetsClient) DeleteSender(req *http.Request) (future DiskEncryptionSetsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -540,7 +542,7 @@ func (client DiskEncryptionSetsClient) Update(ctx context.Context, resourceGroup result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Update", result.Response(), "Failure sending request") return } @@ -574,6 +576,7 @@ func (client DiskEncryptionSetsClient) UpdatePreparer(ctx context.Context, resou // http.Response Body if it receives an error. func (client DiskEncryptionSetsClient) UpdateSender(req *http.Request) (future DiskEncryptionSetsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/disks.go b/profiles/2020-09-01/compute/mgmt/compute/disks.go index 6422330afbf2..ad7cae61bb38 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/disks.go +++ b/profiles/2020-09-01/compute/mgmt/compute/disks.go @@ -70,7 +70,7 @@ func (client DisksClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DisksClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DisksClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -105,6 +105,7 @@ func (client DisksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGr // http.Response Body if it receives an error. func (client DisksClient) CreateOrUpdateSender(req *http.Request) (future DisksCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -153,7 +154,7 @@ func (client DisksClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DisksClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DisksClient", "Delete", result.Response(), "Failure sending request") return } @@ -185,6 +186,7 @@ func (client DisksClient) DeletePreparer(ctx context.Context, resourceGroupName // http.Response Body if it receives an error. func (client DisksClient) DeleteSender(req *http.Request) (future DisksDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -317,7 +319,7 @@ func (client DisksClient) GrantAccess(ctx context.Context, resourceGroupName str result, err = client.GrantAccessSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DisksClient", "GrantAccess", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DisksClient", "GrantAccess", result.Response(), "Failure sending request") return } @@ -351,6 +353,7 @@ func (client DisksClient) GrantAccessPreparer(ctx context.Context, resourceGroup // http.Response Body if it receives an error. func (client DisksClient) GrantAccessSender(req *http.Request) (future DisksGrantAccessFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -628,7 +631,7 @@ func (client DisksClient) RevokeAccess(ctx context.Context, resourceGroupName st result, err = client.RevokeAccessSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DisksClient", "RevokeAccess", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DisksClient", "RevokeAccess", result.Response(), "Failure sending request") return } @@ -660,6 +663,7 @@ func (client DisksClient) RevokeAccessPreparer(ctx context.Context, resourceGrou // http.Response Body if it receives an error. func (client DisksClient) RevokeAccessSender(req *http.Request) (future DisksRevokeAccessFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -708,7 +712,7 @@ func (client DisksClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.DisksClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.DisksClient", "Update", result.Response(), "Failure sending request") return } @@ -742,6 +746,7 @@ func (client DisksClient) UpdatePreparer(ctx context.Context, resourceGroupName // http.Response Body if it receives an error. func (client DisksClient) UpdateSender(req *http.Request) (future DisksUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/images.go b/profiles/2020-09-01/compute/mgmt/compute/images.go index 1048545e11a5..27f54763925b 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/images.go +++ b/profiles/2020-09-01/compute/mgmt/compute/images.go @@ -54,7 +54,7 @@ func (client ImagesClient) CreateOrUpdate(ctx context.Context, resourceGroupName result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.ImagesClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.ImagesClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -88,6 +88,7 @@ func (client ImagesClient) CreateOrUpdatePreparer(ctx context.Context, resourceG // http.Response Body if it receives an error. func (client ImagesClient) CreateOrUpdateSender(req *http.Request) (future ImagesCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -134,7 +135,7 @@ func (client ImagesClient) Delete(ctx context.Context, resourceGroupName string, result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Delete", result.Response(), "Failure sending request") return } @@ -166,6 +167,7 @@ func (client ImagesClient) DeletePreparer(ctx context.Context, resourceGroupName // http.Response Body if it receives an error. func (client ImagesClient) DeleteSender(req *http.Request) (future ImagesDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -522,7 +524,7 @@ func (client ImagesClient) Update(ctx context.Context, resourceGroupName string, result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Update", result.Response(), "Failure sending request") return } @@ -556,6 +558,7 @@ func (client ImagesClient) UpdatePreparer(ctx context.Context, resourceGroupName // http.Response Body if it receives an error. func (client ImagesClient) UpdateSender(req *http.Request) (future ImagesUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/loganalytics.go b/profiles/2020-09-01/compute/mgmt/compute/loganalytics.go index d96a293e4a2f..80879b57f1ca 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/loganalytics.go +++ b/profiles/2020-09-01/compute/mgmt/compute/loganalytics.go @@ -61,7 +61,7 @@ func (client LogAnalyticsClient) ExportRequestRateByInterval(ctx context.Context result, err = client.ExportRequestRateByIntervalSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.LogAnalyticsClient", "ExportRequestRateByInterval", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.LogAnalyticsClient", "ExportRequestRateByInterval", result.Response(), "Failure sending request") return } @@ -94,6 +94,7 @@ func (client LogAnalyticsClient) ExportRequestRateByIntervalPreparer(ctx context // http.Response Body if it receives an error. func (client LogAnalyticsClient) ExportRequestRateByIntervalSender(req *http.Request) (future LogAnalyticsExportRequestRateByIntervalFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -147,7 +148,7 @@ func (client LogAnalyticsClient) ExportThrottledRequests(ctx context.Context, pa result, err = client.ExportThrottledRequestsSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.LogAnalyticsClient", "ExportThrottledRequests", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.LogAnalyticsClient", "ExportThrottledRequests", result.Response(), "Failure sending request") return } @@ -180,6 +181,7 @@ func (client LogAnalyticsClient) ExportThrottledRequestsPreparer(ctx context.Con // http.Response Body if it receives an error. func (client LogAnalyticsClient) ExportThrottledRequestsSender(req *http.Request) (future LogAnalyticsExportThrottledRequestsFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/models.go b/profiles/2020-09-01/compute/mgmt/compute/models.go index 3f8694e6331c..698d3e2351ef 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/models.go +++ b/profiles/2020-09-01/compute/mgmt/compute/models.go @@ -27,6 +27,12 @@ type AccessURI struct { AccessSAS *string `json:"accessSAS,omitempty"` } +// MarshalJSON is the custom marshaler for AccessURI. +func (au AccessURI) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale // set. type AdditionalCapabilities struct { @@ -503,6 +509,12 @@ type AvailablePatchSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for AvailablePatchSummary. +func (aps AvailablePatchSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BillingProfile specifies the billing related details of a Azure Spot VM or VMSS.

Minimum // api-version: 2019-03-01. type BillingProfile struct { @@ -530,6 +542,12 @@ type BootDiagnosticsInstanceView struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView. +func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // CloudError an error response from the Compute service. type CloudError struct { Error *APIError `json:"error,omitempty"` @@ -647,6 +665,12 @@ type DataDiskImage struct { Lun *int32 `json:"lun,omitempty"` } +// MarshalJSON is the custom marshaler for DataDiskImage. +func (ddi DataDiskImage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // DedicatedHost specifies information about the Dedicated host. type DedicatedHost struct { autorest.Response `json:"-"` @@ -1418,6 +1442,7 @@ func (future *DedicatedHostsCreateOrUpdateFuture) result(client DedicatedHostsCl return } if !done { + dh.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DedicatedHostsCreateOrUpdateFuture") return } @@ -1460,6 +1485,7 @@ func (future *DedicatedHostsDeleteFuture) result(client DedicatedHostsClient) (a return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DedicatedHostsDeleteFuture") return } @@ -1496,6 +1522,7 @@ func (future *DedicatedHostsUpdateFuture) result(client DedicatedHostsClient) (d return } if !done { + dh.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DedicatedHostsUpdateFuture") return } @@ -2031,6 +2058,7 @@ func (future *DiskEncryptionSetsCreateOrUpdateFuture) result(client DiskEncrypti return } if !done { + desVar.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DiskEncryptionSetsCreateOrUpdateFuture") return } @@ -2073,6 +2101,7 @@ func (future *DiskEncryptionSetsDeleteFuture) result(client DiskEncryptionSetsCl return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DiskEncryptionSetsDeleteFuture") return } @@ -2109,6 +2138,7 @@ func (future *DiskEncryptionSetsUpdateFuture) result(client DiskEncryptionSetsCl return } if !done { + desVar.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DiskEncryptionSetsUpdateFuture") return } @@ -2447,6 +2477,7 @@ func (future *DisksCreateOrUpdateFuture) result(client DisksClient) (d Disk, err return } if !done { + d.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DisksCreateOrUpdateFuture") return } @@ -2488,6 +2519,7 @@ func (future *DisksDeleteFuture) result(client DisksClient) (ar autorest.Respons return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DisksDeleteFuture") return } @@ -2524,6 +2556,7 @@ func (future *DisksGrantAccessFuture) result(client DisksClient) (au AccessURI, return } if !done { + au.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DisksGrantAccessFuture") return } @@ -2583,6 +2616,7 @@ func (future *DisksRevokeAccessFuture) result(client DisksClient) (ar autorest.R return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DisksRevokeAccessFuture") return } @@ -2618,6 +2652,7 @@ func (future *DisksUpdateFuture) result(client DisksClient) (d Disk, err error) return } if !done { + d.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.DisksUpdateFuture") return } @@ -3216,6 +3251,7 @@ func (future *ImagesCreateOrUpdateFuture) result(client ImagesClient) (i Image, return } if !done { + i.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.ImagesCreateOrUpdateFuture") return } @@ -3257,6 +3293,7 @@ func (future *ImagesDeleteFuture) result(client ImagesClient) (ar autorest.Respo return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.ImagesDeleteFuture") return } @@ -3302,6 +3339,7 @@ func (future *ImagesUpdateFuture) result(client ImagesClient) (i Image, err erro return } if !done { + i.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.ImagesUpdateFuture") return } @@ -3452,6 +3490,12 @@ type LastPatchInstallationSummary struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for LastPatchInstallationSummary. +func (lpis LastPatchInstallationSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LinuxConfiguration specifies the Linux operating system settings on the virtual machine.

For a // list of supported Linux distributions, see [Linux on Azure-Endorsed // Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) @@ -3666,6 +3710,7 @@ func (future *LogAnalyticsExportRequestRateByIntervalFuture) result(client LogAn return } if !done { + laor.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.LogAnalyticsExportRequestRateByIntervalFuture") return } @@ -3708,6 +3753,7 @@ func (future *LogAnalyticsExportThrottledRequestsFuture) result(client LogAnalyt return } if !done { + laor.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.LogAnalyticsExportThrottledRequestsFuture") return } @@ -3748,12 +3794,24 @@ type LogAnalyticsOperationResult struct { Properties *LogAnalyticsOutput `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult. +func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } +// MarshalJSON is the custom marshaler for LogAnalyticsOutput. +func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MaintenanceRedeployStatus maintenance Operation Status. type MaintenanceRedeployStatus struct { // IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance. @@ -3774,7 +3832,7 @@ type MaintenanceRedeployStatus struct { // ManagedDiskParameters the parameters of a managed disk. type ManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk. DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` @@ -3853,6 +3911,12 @@ type OperationListResult struct { Value *[]OperationValue `json:"value,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { // Origin - READ-ONLY; The origin of the compute operation. @@ -3925,22 +3989,34 @@ type OperationValueDisplay struct { Provider *string `json:"provider,omitempty"` } +// MarshalJSON is the custom marshaler for OperationValueDisplay. +func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'Resume', 'Suspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs', 'DummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'NotRunning', 'Running', 'Suspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` } +// MarshalJSON is the custom marshaler for OrchestrationServiceSummary. +func (oss OrchestrationServiceSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // OSDisk specifies information about the operating system disk used by the virtual machine.

For // more information about disks, see [About disks and VHDs for Azure virtual // machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). @@ -4341,6 +4417,12 @@ type RecoveryWalkResponse struct { NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } +// MarshalJSON is the custom marshaler for RecoveryWalkResponse. +func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api. type RequestRateByIntervalInput struct { // IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' @@ -4398,6 +4480,12 @@ type RetrieveBootDiagnosticsDataResult struct { SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` } +// MarshalJSON is the custom marshaler for RetrieveBootDiagnosticsDataResult. +func (rbddr RetrieveBootDiagnosticsDataResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. @@ -4408,6 +4496,12 @@ type RollbackStatusInfo struct { RollbackError *APIError `json:"rollbackError,omitempty"` } +// MarshalJSON is the custom marshaler for RollbackStatusInfo. +func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade. type RollingUpgradePolicy struct { // MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. @@ -4433,6 +4527,12 @@ type RollingUpgradeProgressInfo struct { PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo. +func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' @@ -4445,6 +4545,12 @@ type RollingUpgradeRunningStatus struct { LastActionTime *date.Time `json:"lastActionTime,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus. +func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` @@ -4557,6 +4663,12 @@ type RollingUpgradeStatusInfoProperties struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties. +func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ScaleInPolicy describes a scale-in policy for a virtual machine scale set. type ScaleInPolicy struct { // Rules - 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.

@@ -4953,6 +5065,7 @@ func (future *SnapshotsCreateOrUpdateFuture) result(client SnapshotsClient) (s S return } if !done { + s.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.SnapshotsCreateOrUpdateFuture") return } @@ -4995,6 +5108,7 @@ func (future *SnapshotsDeleteFuture) result(client SnapshotsClient) (ar autorest return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.SnapshotsDeleteFuture") return } @@ -5031,6 +5145,7 @@ func (future *SnapshotsGrantAccessFuture) result(client SnapshotsClient) (au Acc return } if !done { + au.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.SnapshotsGrantAccessFuture") return } @@ -5090,6 +5205,7 @@ func (future *SnapshotsRevokeAccessFuture) result(client SnapshotsClient) (ar au return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.SnapshotsRevokeAccessFuture") return } @@ -5126,6 +5242,7 @@ func (future *SnapshotsUpdateFuture) result(client SnapshotsClient) (s Snapshot, return } if !done { + s.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.SnapshotsUpdateFuture") return } @@ -5591,6 +5708,12 @@ type SubResourceReadOnly struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for SubResourceReadOnly. +func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SubResourceWithColocationStatus ... type SubResourceWithColocationStatus struct { // ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group. @@ -5652,6 +5775,12 @@ type UpgradeOperationHistoricalStatusInfo struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo. +func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { @@ -5669,6 +5798,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct { RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties. +func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' @@ -5679,6 +5814,12 @@ type UpgradeOperationHistoryStatus struct { EndTime *date.Time `json:"endTime,omitempty"` } +// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus. +func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // UpgradePolicy describes an upgrade policy - automatic, manual, or rolling. type UpgradePolicy struct { // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.

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. Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual', 'UpgradeModeRolling' @@ -5916,6 +6057,12 @@ type VirtualMachineAssessPatchesResult struct { Error *APIError `json:"error,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineAssessPatchesResult. +func (vmapr VirtualMachineAssessPatchesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineCaptureParameters capture Virtual Machine parameters. type VirtualMachineCaptureParameters struct { // VhdPrefix - The captured virtual hard disk's name prefix. @@ -6274,6 +6421,7 @@ func (future *VirtualMachineExtensionsCreateOrUpdateFuture) result(client Virtua return } if !done { + vme.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineExtensionsCreateOrUpdateFuture") return } @@ -6316,6 +6464,7 @@ func (future *VirtualMachineExtensionsDeleteFuture) result(client VirtualMachine return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineExtensionsDeleteFuture") return } @@ -6359,6 +6508,7 @@ func (future *VirtualMachineExtensionsUpdateFuture) result(client VirtualMachine return } if !done { + vme.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineExtensionsUpdateFuture") return } @@ -6450,6 +6600,12 @@ type VirtualMachineHealthStatus struct { Status *InstanceViewStatus `json:"status,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus. +func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. @@ -6482,6 +6638,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue. +func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineImage describes a Virtual Machine Image. type VirtualMachineImage struct { autorest.Response `json:"-"` @@ -7008,6 +7170,7 @@ func (future *VirtualMachinesAssessPatchesFuture) result(client VirtualMachinesC return } if !done { + vmapr.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesAssessPatchesFuture") return } @@ -7529,6 +7692,7 @@ func (future *VirtualMachineScaleSetExtensionsCreateOrUpdateFuture) result(clien return } if !done { + vmsse.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetExtensionsCreateOrUpdateFuture") return } @@ -7571,6 +7735,7 @@ func (future *VirtualMachineScaleSetExtensionsDeleteFuture) result(client Virtua return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetExtensionsDeleteFuture") return } @@ -7607,6 +7772,7 @@ func (future *VirtualMachineScaleSetExtensionsUpdateFuture) result(client Virtua return } if !done { + vmsse.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetExtensionsUpdateFuture") return } @@ -7723,6 +7889,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. +func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` @@ -7752,6 +7924,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary. +func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP // configuration. type VirtualMachineScaleSetIPConfiguration struct { @@ -8827,6 +9005,7 @@ func (future *VirtualMachineScaleSetRollingUpgradesCancelFuture) result(client V return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetRollingUpgradesCancelFuture") return } @@ -8863,6 +9042,7 @@ func (future *VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeFuture) return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeFuture") return } @@ -8899,6 +9079,7 @@ func (future *VirtualMachineScaleSetRollingUpgradesStartOSUpgradeFuture) result( return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetRollingUpgradesStartOSUpgradeFuture") return } @@ -8935,6 +9116,7 @@ func (future *VirtualMachineScaleSetsCreateOrUpdateFuture) result(client Virtual return } if !done { + vmss.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsCreateOrUpdateFuture") return } @@ -8977,6 +9159,7 @@ func (future *VirtualMachineScaleSetsDeallocateFuture) result(client VirtualMach return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsDeallocateFuture") return } @@ -9013,6 +9196,7 @@ func (future *VirtualMachineScaleSetsDeleteFuture) result(client VirtualMachineS return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsDeleteFuture") return } @@ -9049,6 +9233,7 @@ func (future *VirtualMachineScaleSetsDeleteInstancesFuture) result(client Virtua return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsDeleteInstancesFuture") return } @@ -9066,6 +9251,12 @@ type VirtualMachineScaleSetSku struct { Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku. +func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { // Minimum - READ-ONLY; The minimum capacity. @@ -9078,6 +9269,12 @@ type VirtualMachineScaleSetSkuCapacity struct { ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity. +func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetsPerformMaintenanceFuture struct { @@ -9107,6 +9304,7 @@ func (future *VirtualMachineScaleSetsPerformMaintenanceFuture) result(client Vir return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsPerformMaintenanceFuture") return } @@ -9143,6 +9341,7 @@ func (future *VirtualMachineScaleSetsPowerOffFuture) result(client VirtualMachin return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsPowerOffFuture") return } @@ -9179,6 +9378,7 @@ func (future *VirtualMachineScaleSetsRedeployFuture) result(client VirtualMachin return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsRedeployFuture") return } @@ -9215,6 +9415,7 @@ func (future *VirtualMachineScaleSetsReimageAllFuture) result(client VirtualMach return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsReimageAllFuture") return } @@ -9251,6 +9452,7 @@ func (future *VirtualMachineScaleSetsReimageFuture) result(client VirtualMachine return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsReimageFuture") return } @@ -9287,6 +9489,7 @@ func (future *VirtualMachineScaleSetsRestartFuture) result(client VirtualMachine return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsRestartFuture") return } @@ -9323,6 +9526,7 @@ func (future *VirtualMachineScaleSetsSetOrchestrationServiceStateFuture) result( return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsSetOrchestrationServiceStateFuture") return } @@ -9359,6 +9563,7 @@ func (future *VirtualMachineScaleSetsStartFuture) result(client VirtualMachineSc return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsStartFuture") return } @@ -9405,6 +9610,7 @@ func (future *VirtualMachineScaleSetsUpdateFuture) result(client VirtualMachineS return } if !done { + vmss.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsUpdateFuture") return } @@ -9447,6 +9653,7 @@ func (future *VirtualMachineScaleSetsUpdateInstancesFuture) result(client Virtua return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetsUpdateInstancesFuture") return } @@ -10136,6 +10343,7 @@ func (future *VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture) result(cli return } if !done { + vmssve.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture") return } @@ -10178,6 +10386,7 @@ func (future *VirtualMachineScaleSetVMExtensionsDeleteFuture) result(client Virt return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMExtensionsDeleteFuture") return } @@ -10201,6 +10410,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct { StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary. +func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualMachineScaleSetVMExtensionsUpdateFuture struct { @@ -10230,6 +10445,7 @@ func (future *VirtualMachineScaleSetVMExtensionsUpdateFuture) result(client Virt return } if !done { + vmssve.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMExtensionsUpdateFuture") return } @@ -10705,6 +10921,7 @@ func (future *VirtualMachineScaleSetVMsDeallocateFuture) result(client VirtualMa return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsDeallocateFuture") return } @@ -10741,6 +10958,7 @@ func (future *VirtualMachineScaleSetVMsDeleteFuture) result(client VirtualMachin return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsDeleteFuture") return } @@ -10777,6 +10995,7 @@ func (future *VirtualMachineScaleSetVMsPerformMaintenanceFuture) result(client V return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsPerformMaintenanceFuture") return } @@ -10813,6 +11032,7 @@ func (future *VirtualMachineScaleSetVMsPowerOffFuture) result(client VirtualMach return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsPowerOffFuture") return } @@ -10849,6 +11069,7 @@ func (future *VirtualMachineScaleSetVMsRedeployFuture) result(client VirtualMach return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsRedeployFuture") return } @@ -10885,6 +11106,7 @@ func (future *VirtualMachineScaleSetVMsReimageAllFuture) result(client VirtualMa return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsReimageAllFuture") return } @@ -10921,6 +11143,7 @@ func (future *VirtualMachineScaleSetVMsReimageFuture) result(client VirtualMachi return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsReimageFuture") return } @@ -10957,6 +11180,7 @@ func (future *VirtualMachineScaleSetVMsRestartFuture) result(client VirtualMachi return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsRestartFuture") return } @@ -10993,6 +11217,7 @@ func (future *VirtualMachineScaleSetVMsStartFuture) result(client VirtualMachine return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsStartFuture") return } @@ -11029,6 +11254,7 @@ func (future *VirtualMachineScaleSetVMsUpdateFuture) result(client VirtualMachin return } if !done { + vmssv.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMsUpdateFuture") return } @@ -11071,6 +11297,7 @@ func (future *VirtualMachinesCaptureFuture) result(client VirtualMachinesClient) return } if !done { + vmcr.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesCaptureFuture") return } @@ -11113,6 +11340,7 @@ func (future *VirtualMachinesConvertToManagedDisksFuture) result(client VirtualM return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesConvertToManagedDisksFuture") return } @@ -11149,6 +11377,7 @@ func (future *VirtualMachinesCreateOrUpdateFuture) result(client VirtualMachines return } if !done { + VM.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesCreateOrUpdateFuture") return } @@ -11191,6 +11420,7 @@ func (future *VirtualMachinesDeallocateFuture) result(client VirtualMachinesClie return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesDeallocateFuture") return } @@ -11227,6 +11457,7 @@ func (future *VirtualMachinesDeleteFuture) result(client VirtualMachinesClient) return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesDeleteFuture") return } @@ -11281,6 +11512,12 @@ type VirtualMachineSoftwarePatchProperties struct { AssessmentState PatchAssessmentState `json:"assessmentState,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineSoftwarePatchProperties. +func (vmspp VirtualMachineSoftwarePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesPerformMaintenanceFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type VirtualMachinesPerformMaintenanceFuture struct { @@ -11310,6 +11547,7 @@ func (future *VirtualMachinesPerformMaintenanceFuture) result(client VirtualMach return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesPerformMaintenanceFuture") return } @@ -11346,6 +11584,7 @@ func (future *VirtualMachinesPowerOffFuture) result(client VirtualMachinesClient return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesPowerOffFuture") return } @@ -11382,6 +11621,7 @@ func (future *VirtualMachinesReapplyFuture) result(client VirtualMachinesClient) return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesReapplyFuture") return } @@ -11418,6 +11658,7 @@ func (future *VirtualMachinesRedeployFuture) result(client VirtualMachinesClient return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesRedeployFuture") return } @@ -11454,6 +11695,7 @@ func (future *VirtualMachinesReimageFuture) result(client VirtualMachinesClient) return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesReimageFuture") return } @@ -11490,6 +11732,7 @@ func (future *VirtualMachinesRestartFuture) result(client VirtualMachinesClient) return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesRestartFuture") return } @@ -11526,6 +11769,7 @@ func (future *VirtualMachinesStartFuture) result(client VirtualMachinesClient) ( return } if !done { + ar.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesStartFuture") return } @@ -11542,6 +11786,12 @@ type VirtualMachineStatusCodeCount struct { Count *int32 `json:"count,omitempty"` } +// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount. +func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type VirtualMachinesUpdateFuture struct { @@ -11571,6 +11821,7 @@ func (future *VirtualMachinesUpdateFuture) result(client VirtualMachinesClient) return } if !done { + VM.Response.Response = future.Response() err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesUpdateFuture") return } diff --git a/profiles/2020-09-01/compute/mgmt/compute/snapshots.go b/profiles/2020-09-01/compute/mgmt/compute/snapshots.go index 2b4e6e2d6cf0..382b9ae7793d 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/snapshots.go +++ b/profiles/2020-09-01/compute/mgmt/compute/snapshots.go @@ -69,7 +69,7 @@ func (client SnapshotsClient) CreateOrUpdate(ctx context.Context, resourceGroupN result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -104,6 +104,7 @@ func (client SnapshotsClient) CreateOrUpdatePreparer(ctx context.Context, resour // http.Response Body if it receives an error. func (client SnapshotsClient) CreateOrUpdateSender(req *http.Request) (future SnapshotsCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -151,7 +152,7 @@ func (client SnapshotsClient) Delete(ctx context.Context, resourceGroupName stri result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Delete", result.Response(), "Failure sending request") return } @@ -183,6 +184,7 @@ func (client SnapshotsClient) DeletePreparer(ctx context.Context, resourceGroupN // http.Response Body if it receives an error. func (client SnapshotsClient) DeleteSender(req *http.Request) (future SnapshotsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -313,7 +315,7 @@ func (client SnapshotsClient) GrantAccess(ctx context.Context, resourceGroupName result, err = client.GrantAccessSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "GrantAccess", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "GrantAccess", result.Response(), "Failure sending request") return } @@ -347,6 +349,7 @@ func (client SnapshotsClient) GrantAccessPreparer(ctx context.Context, resourceG // http.Response Body if it receives an error. func (client SnapshotsClient) GrantAccessSender(req *http.Request) (future SnapshotsGrantAccessFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -623,7 +626,7 @@ func (client SnapshotsClient) RevokeAccess(ctx context.Context, resourceGroupNam result, err = client.RevokeAccessSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "RevokeAccess", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "RevokeAccess", result.Response(), "Failure sending request") return } @@ -655,6 +658,7 @@ func (client SnapshotsClient) RevokeAccessPreparer(ctx context.Context, resource // http.Response Body if it receives an error. func (client SnapshotsClient) RevokeAccessSender(req *http.Request) (future SnapshotsRevokeAccessFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -702,7 +706,7 @@ func (client SnapshotsClient) Update(ctx context.Context, resourceGroupName stri result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Update", result.Response(), "Failure sending request") return } @@ -736,6 +740,7 @@ func (client SnapshotsClient) UpdatePreparer(ctx context.Context, resourceGroupN // http.Response Body if it receives an error. func (client SnapshotsClient) UpdateSender(req *http.Request) (future SnapshotsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/virtualmachineextensions.go b/profiles/2020-09-01/compute/mgmt/compute/virtualmachineextensions.go index 54205146a0bd..1abdc961d109 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/virtualmachineextensions.go +++ b/profiles/2020-09-01/compute/mgmt/compute/virtualmachineextensions.go @@ -56,7 +56,7 @@ func (client VirtualMachineExtensionsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -91,6 +91,7 @@ func (client VirtualMachineExtensionsClient) CreateOrUpdatePreparer(ctx context. // http.Response Body if it receives an error. func (client VirtualMachineExtensionsClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineExtensionsCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -138,7 +139,7 @@ func (client VirtualMachineExtensionsClient) Delete(ctx context.Context, resourc result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Delete", result.Response(), "Failure sending request") return } @@ -171,6 +172,7 @@ func (client VirtualMachineExtensionsClient) DeletePreparer(ctx context.Context, // http.Response Body if it receives an error. func (client VirtualMachineExtensionsClient) DeleteSender(req *http.Request) (future VirtualMachineExtensionsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -380,7 +382,7 @@ func (client VirtualMachineExtensionsClient) Update(ctx context.Context, resourc result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Update", result.Response(), "Failure sending request") return } @@ -415,6 +417,7 @@ func (client VirtualMachineExtensionsClient) UpdatePreparer(ctx context.Context, // http.Response Body if it receives an error. func (client VirtualMachineExtensionsClient) UpdateSender(req *http.Request) (future VirtualMachineExtensionsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/virtualmachines.go b/profiles/2020-09-01/compute/mgmt/compute/virtualmachines.go index c6525e44b48a..1e1be36440f0 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/virtualmachines.go +++ b/profiles/2020-09-01/compute/mgmt/compute/virtualmachines.go @@ -54,7 +54,7 @@ func (client VirtualMachinesClient) AssessPatches(ctx context.Context, resourceG result, err = client.AssessPatchesSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "AssessPatches", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "AssessPatches", result.Response(), "Failure sending request") return } @@ -86,6 +86,7 @@ func (client VirtualMachinesClient) AssessPatchesPreparer(ctx context.Context, r // http.Response Body if it receives an error. func (client VirtualMachinesClient) AssessPatchesSender(req *http.Request) (future VirtualMachinesAssessPatchesFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -142,7 +143,7 @@ func (client VirtualMachinesClient) Capture(ctx context.Context, resourceGroupNa result, err = client.CaptureSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Capture", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Capture", result.Response(), "Failure sending request") return } @@ -176,6 +177,7 @@ func (client VirtualMachinesClient) CapturePreparer(ctx context.Context, resourc // http.Response Body if it receives an error. func (client VirtualMachinesClient) CaptureSender(req *http.Request) (future VirtualMachinesCaptureFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -223,7 +225,7 @@ func (client VirtualMachinesClient) ConvertToManagedDisks(ctx context.Context, r result, err = client.ConvertToManagedDisksSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ConvertToManagedDisks", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ConvertToManagedDisks", result.Response(), "Failure sending request") return } @@ -255,6 +257,7 @@ func (client VirtualMachinesClient) ConvertToManagedDisksPreparer(ctx context.Co // http.Response Body if it receives an error. func (client VirtualMachinesClient) ConvertToManagedDisksSender(req *http.Request) (future VirtualMachinesConvertToManagedDisksFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -323,7 +326,7 @@ func (client VirtualMachinesClient) CreateOrUpdate(ctx context.Context, resource result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -358,6 +361,7 @@ func (client VirtualMachinesClient) CreateOrUpdatePreparer(ctx context.Context, // http.Response Body if it receives an error. func (client VirtualMachinesClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachinesCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -405,7 +409,7 @@ func (client VirtualMachinesClient) Deallocate(ctx context.Context, resourceGrou result, err = client.DeallocateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Deallocate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Deallocate", result.Response(), "Failure sending request") return } @@ -437,6 +441,7 @@ func (client VirtualMachinesClient) DeallocatePreparer(ctx context.Context, reso // http.Response Body if it receives an error. func (client VirtualMachinesClient) DeallocateSender(req *http.Request) (future VirtualMachinesDeallocateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -463,7 +468,7 @@ func (client VirtualMachinesClient) DeallocateResponder(resp *http.Response) (re // Parameters: // resourceGroupName - the name of the resource group. // VMName - the name of the virtual machine. -// forceDeletion - optional parameter to force delete virtual machines.(Feature in Preview) +// forceDeletion - optional parameter to force delete virtual machines. func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, VMName string, forceDeletion *bool) (result VirtualMachinesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Delete") @@ -483,7 +488,7 @@ func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupNam result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Delete", result.Response(), "Failure sending request") return } @@ -518,6 +523,7 @@ func (client VirtualMachinesClient) DeletePreparer(ctx context.Context, resource // http.Response Body if it receives an error. func (client VirtualMachinesClient) DeleteSender(req *http.Request) (future VirtualMachinesDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1232,7 +1238,7 @@ func (client VirtualMachinesClient) PerformMaintenance(ctx context.Context, reso result, err = client.PerformMaintenanceSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "PerformMaintenance", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "PerformMaintenance", result.Response(), "Failure sending request") return } @@ -1264,6 +1270,7 @@ func (client VirtualMachinesClient) PerformMaintenancePreparer(ctx context.Conte // http.Response Body if it receives an error. func (client VirtualMachinesClient) PerformMaintenanceSender(req *http.Request) (future VirtualMachinesPerformMaintenanceFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1313,7 +1320,7 @@ func (client VirtualMachinesClient) PowerOff(ctx context.Context, resourceGroupN result, err = client.PowerOffSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "PowerOff", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "PowerOff", result.Response(), "Failure sending request") return } @@ -1350,6 +1357,7 @@ func (client VirtualMachinesClient) PowerOffPreparer(ctx context.Context, resour // http.Response Body if it receives an error. func (client VirtualMachinesClient) PowerOffSender(req *http.Request) (future VirtualMachinesPowerOffFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1395,7 +1403,7 @@ func (client VirtualMachinesClient) Reapply(ctx context.Context, resourceGroupNa result, err = client.ReapplySender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reapply", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reapply", result.Response(), "Failure sending request") return } @@ -1427,6 +1435,7 @@ func (client VirtualMachinesClient) ReapplyPreparer(ctx context.Context, resourc // http.Response Body if it receives an error. func (client VirtualMachinesClient) ReapplySender(req *http.Request) (future VirtualMachinesReapplyFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1472,7 +1481,7 @@ func (client VirtualMachinesClient) Redeploy(ctx context.Context, resourceGroupN result, err = client.RedeploySender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Redeploy", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Redeploy", result.Response(), "Failure sending request") return } @@ -1504,6 +1513,7 @@ func (client VirtualMachinesClient) RedeployPreparer(ctx context.Context, resour // http.Response Body if it receives an error. func (client VirtualMachinesClient) RedeploySender(req *http.Request) (future VirtualMachinesRedeployFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1550,7 +1560,7 @@ func (client VirtualMachinesClient) Reimage(ctx context.Context, resourceGroupNa result, err = client.ReimageSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reimage", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reimage", result.Response(), "Failure sending request") return } @@ -1587,6 +1597,7 @@ func (client VirtualMachinesClient) ReimagePreparer(ctx context.Context, resourc // http.Response Body if it receives an error. func (client VirtualMachinesClient) ReimageSender(req *http.Request) (future VirtualMachinesReimageFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1632,7 +1643,7 @@ func (client VirtualMachinesClient) Restart(ctx context.Context, resourceGroupNa result, err = client.RestartSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Restart", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Restart", result.Response(), "Failure sending request") return } @@ -1664,6 +1675,7 @@ func (client VirtualMachinesClient) RestartPreparer(ctx context.Context, resourc // http.Response Body if it receives an error. func (client VirtualMachinesClient) RestartSender(req *http.Request) (future VirtualMachinesRestartFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1866,7 +1878,7 @@ func (client VirtualMachinesClient) Start(ctx context.Context, resourceGroupName result, err = client.StartSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Start", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Start", result.Response(), "Failure sending request") return } @@ -1898,6 +1910,7 @@ func (client VirtualMachinesClient) StartPreparer(ctx context.Context, resourceG // http.Response Body if it receives an error. func (client VirtualMachinesClient) StartSender(req *http.Request) (future VirtualMachinesStartFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1944,7 +1957,7 @@ func (client VirtualMachinesClient) Update(ctx context.Context, resourceGroupNam result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Update", result.Response(), "Failure sending request") return } @@ -1978,6 +1991,7 @@ func (client VirtualMachinesClient) UpdatePreparer(ctx context.Context, resource // http.Response Body if it receives an error. func (client VirtualMachinesClient) UpdateSender(req *http.Request) (future VirtualMachinesUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetextensions.go b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetextensions.go index 69ac2cb71f81..ac7a4d029d53 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetextensions.go +++ b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetextensions.go @@ -56,7 +56,7 @@ func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdate(ctx context. result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -92,6 +92,7 @@ func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdatePreparer(ctx // http.Response Body if it receives an error. func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineScaleSetExtensionsCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -139,7 +140,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Delete(ctx context.Context, result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Delete", result.Response(), "Failure sending request") return } @@ -172,6 +173,7 @@ func (client VirtualMachineScaleSetExtensionsClient) DeletePreparer(ctx context. // http.Response Body if it receives an error. func (client VirtualMachineScaleSetExtensionsClient) DeleteSender(req *http.Request) (future VirtualMachineScaleSetExtensionsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -419,7 +421,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Update(ctx context.Context, result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Update", result.Response(), "Failure sending request") return } @@ -456,6 +458,7 @@ func (client VirtualMachineScaleSetExtensionsClient) UpdatePreparer(ctx context. // http.Response Body if it receives an error. func (client VirtualMachineScaleSetExtensionsClient) UpdateSender(req *http.Request) (future VirtualMachineScaleSetExtensionsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetrollingupgrades.go b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetrollingupgrades.go index 6e2a1a5f0b3a..d22bc1d83a7d 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetrollingupgrades.go +++ b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetrollingupgrades.go @@ -55,7 +55,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) Cancel(ctx context.Con result, err = client.CancelSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "Cancel", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "Cancel", result.Response(), "Failure sending request") return } @@ -87,6 +87,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) CancelPreparer(ctx con // http.Response Body if it receives an error. func (client VirtualMachineScaleSetRollingUpgradesClient) CancelSender(req *http.Request) (future VirtualMachineScaleSetRollingUpgradesCancelFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -210,7 +211,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgrade( result, err = client.StartExtensionUpgradeSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "StartExtensionUpgrade", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "StartExtensionUpgrade", result.Response(), "Failure sending request") return } @@ -242,6 +243,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeP // http.Response Body if it receives an error. func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeSender(req *http.Request) (future VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -288,7 +290,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgrade(ctx con result, err = client.StartOSUpgradeSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "StartOSUpgrade", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "StartOSUpgrade", result.Response(), "Failure sending request") return } @@ -320,6 +322,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradePreparer // http.Response Body if it receives an error. func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradeSender(req *http.Request) (future VirtualMachineScaleSetRollingUpgradesStartOSUpgradeFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesets.go b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesets.go index 43b9416b2366..526677d9ed29 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesets.go +++ b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesets.go @@ -158,7 +158,7 @@ func (client VirtualMachineScaleSetsClient) CreateOrUpdate(ctx context.Context, result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -192,6 +192,7 @@ func (client VirtualMachineScaleSetsClient) CreateOrUpdatePreparer(ctx context.C // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineScaleSetsCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -240,7 +241,7 @@ func (client VirtualMachineScaleSetsClient) Deallocate(ctx context.Context, reso result, err = client.DeallocateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Deallocate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Deallocate", result.Response(), "Failure sending request") return } @@ -277,6 +278,7 @@ func (client VirtualMachineScaleSetsClient) DeallocatePreparer(ctx context.Conte // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) DeallocateSender(req *http.Request) (future VirtualMachineScaleSetsDeallocateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -322,7 +324,7 @@ func (client VirtualMachineScaleSetsClient) Delete(ctx context.Context, resource result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Delete", result.Response(), "Failure sending request") return } @@ -354,6 +356,7 @@ func (client VirtualMachineScaleSetsClient) DeletePreparer(ctx context.Context, // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) DeleteSender(req *http.Request) (future VirtualMachineScaleSetsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -406,7 +409,7 @@ func (client VirtualMachineScaleSetsClient) DeleteInstances(ctx context.Context, result, err = client.DeleteInstancesSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "DeleteInstances", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "DeleteInstances", result.Response(), "Failure sending request") return } @@ -440,6 +443,7 @@ func (client VirtualMachineScaleSetsClient) DeleteInstancesPreparer(ctx context. // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) DeleteInstancesSender(req *http.Request) (future VirtualMachineScaleSetsDeleteInstancesFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1187,7 +1191,7 @@ func (client VirtualMachineScaleSetsClient) PerformMaintenance(ctx context.Conte result, err = client.PerformMaintenanceSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "PerformMaintenance", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "PerformMaintenance", result.Response(), "Failure sending request") return } @@ -1224,6 +1228,7 @@ func (client VirtualMachineScaleSetsClient) PerformMaintenancePreparer(ctx conte // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) PerformMaintenanceSender(req *http.Request) (future VirtualMachineScaleSetsPerformMaintenanceFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1274,7 +1279,7 @@ func (client VirtualMachineScaleSetsClient) PowerOff(ctx context.Context, resour result, err = client.PowerOffSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "PowerOff", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "PowerOff", result.Response(), "Failure sending request") return } @@ -1316,6 +1321,7 @@ func (client VirtualMachineScaleSetsClient) PowerOffPreparer(ctx context.Context // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) PowerOffSender(req *http.Request) (future VirtualMachineScaleSetsPowerOffFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1363,7 +1369,7 @@ func (client VirtualMachineScaleSetsClient) Redeploy(ctx context.Context, resour result, err = client.RedeploySender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Redeploy", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Redeploy", result.Response(), "Failure sending request") return } @@ -1400,6 +1406,7 @@ func (client VirtualMachineScaleSetsClient) RedeployPreparer(ctx context.Context // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) RedeploySender(req *http.Request) (future VirtualMachineScaleSetsRedeployFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1447,7 +1454,7 @@ func (client VirtualMachineScaleSetsClient) Reimage(ctx context.Context, resourc result, err = client.ReimageSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Reimage", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Reimage", result.Response(), "Failure sending request") return } @@ -1484,6 +1491,7 @@ func (client VirtualMachineScaleSetsClient) ReimagePreparer(ctx context.Context, // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) ReimageSender(req *http.Request) (future VirtualMachineScaleSetsReimageFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1531,7 +1539,7 @@ func (client VirtualMachineScaleSetsClient) ReimageAll(ctx context.Context, reso result, err = client.ReimageAllSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ReimageAll", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ReimageAll", result.Response(), "Failure sending request") return } @@ -1568,6 +1576,7 @@ func (client VirtualMachineScaleSetsClient) ReimageAllPreparer(ctx context.Conte // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) ReimageAllSender(req *http.Request) (future VirtualMachineScaleSetsReimageAllFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1614,7 +1623,7 @@ func (client VirtualMachineScaleSetsClient) Restart(ctx context.Context, resourc result, err = client.RestartSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Restart", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Restart", result.Response(), "Failure sending request") return } @@ -1651,6 +1660,7 @@ func (client VirtualMachineScaleSetsClient) RestartPreparer(ctx context.Context, // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) RestartSender(req *http.Request) (future VirtualMachineScaleSetsRestartFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1689,6 +1699,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") @@ -1697,7 +1713,7 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con result, err = client.SetOrchestrationServiceStateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", result.Response(), "Failure sending request") return } @@ -1731,6 +1747,7 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceStatePreparer // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceStateSender(req *http.Request) (future VirtualMachineScaleSetsSetOrchestrationServiceStateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1777,7 +1794,7 @@ func (client VirtualMachineScaleSetsClient) Start(ctx context.Context, resourceG result, err = client.StartSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Start", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Start", result.Response(), "Failure sending request") return } @@ -1814,6 +1831,7 @@ func (client VirtualMachineScaleSetsClient) StartPreparer(ctx context.Context, r // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) StartSender(req *http.Request) (future VirtualMachineScaleSetsStartFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1860,7 +1878,7 @@ func (client VirtualMachineScaleSetsClient) Update(ctx context.Context, resource result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Update", result.Response(), "Failure sending request") return } @@ -1894,6 +1912,7 @@ func (client VirtualMachineScaleSetsClient) UpdatePreparer(ctx context.Context, // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) UpdateSender(req *http.Request) (future VirtualMachineScaleSetsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1947,7 +1966,7 @@ func (client VirtualMachineScaleSetsClient) UpdateInstances(ctx context.Context, result, err = client.UpdateInstancesSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "UpdateInstances", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "UpdateInstances", result.Response(), "Failure sending request") return } @@ -1981,6 +2000,7 @@ func (client VirtualMachineScaleSetsClient) UpdateInstancesPreparer(ctx context. // http.Response Body if it receives an error. func (client VirtualMachineScaleSetsClient) UpdateInstancesSender(req *http.Request) (future VirtualMachineScaleSetsUpdateInstancesFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetvmextensions.go b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetvmextensions.go index 0591e5f4255a..1c1be484f16e 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetvmextensions.go +++ b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetvmextensions.go @@ -58,7 +58,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdate(ctx contex result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "CreateOrUpdate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -96,6 +96,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdatePreparer(ct // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -144,7 +145,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Delete(ctx context.Contex result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Delete", result.Response(), "Failure sending request") return } @@ -178,6 +179,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) DeletePreparer(ctx contex // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMExtensionsClient) DeleteSender(req *http.Request) (future VirtualMachineScaleSetVMExtensionsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -392,7 +394,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Update(ctx context.Contex result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Update", result.Response(), "Failure sending request") return } @@ -430,6 +432,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) UpdatePreparer(ctx contex // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMExtensionsClient) UpdateSender(req *http.Request) (future VirtualMachineScaleSetVMExtensionsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetvms.go b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetvms.go index e9385946d5a8..682efe248d3f 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetvms.go +++ b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesetvms.go @@ -58,7 +58,7 @@ func (client VirtualMachineScaleSetVMsClient) Deallocate(ctx context.Context, re result, err = client.DeallocateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Deallocate", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Deallocate", result.Response(), "Failure sending request") return } @@ -91,6 +91,7 @@ func (client VirtualMachineScaleSetVMsClient) DeallocatePreparer(ctx context.Con // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) DeallocateSender(req *http.Request) (future VirtualMachineScaleSetVMsDeallocateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -137,7 +138,7 @@ func (client VirtualMachineScaleSetVMsClient) Delete(ctx context.Context, resour result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Delete", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Delete", result.Response(), "Failure sending request") return } @@ -170,6 +171,7 @@ func (client VirtualMachineScaleSetVMsClient) DeletePreparer(ctx context.Context // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) DeleteSender(req *http.Request) (future VirtualMachineScaleSetVMsDeleteFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -507,7 +509,7 @@ func (client VirtualMachineScaleSetVMsClient) PerformMaintenance(ctx context.Con result, err = client.PerformMaintenanceSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "PerformMaintenance", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "PerformMaintenance", result.Response(), "Failure sending request") return } @@ -540,6 +542,7 @@ func (client VirtualMachineScaleSetVMsClient) PerformMaintenancePreparer(ctx con // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) PerformMaintenanceSender(req *http.Request) (future VirtualMachineScaleSetVMsPerformMaintenanceFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -590,7 +593,7 @@ func (client VirtualMachineScaleSetVMsClient) PowerOff(ctx context.Context, reso result, err = client.PowerOffSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "PowerOff", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "PowerOff", result.Response(), "Failure sending request") return } @@ -628,6 +631,7 @@ func (client VirtualMachineScaleSetVMsClient) PowerOffPreparer(ctx context.Conte // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) PowerOffSender(req *http.Request) (future VirtualMachineScaleSetVMsPowerOffFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -675,7 +679,7 @@ func (client VirtualMachineScaleSetVMsClient) Redeploy(ctx context.Context, reso result, err = client.RedeploySender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Redeploy", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Redeploy", result.Response(), "Failure sending request") return } @@ -708,6 +712,7 @@ func (client VirtualMachineScaleSetVMsClient) RedeployPreparer(ctx context.Conte // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) RedeploySender(req *http.Request) (future VirtualMachineScaleSetVMsRedeployFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -755,7 +760,7 @@ func (client VirtualMachineScaleSetVMsClient) Reimage(ctx context.Context, resou result, err = client.ReimageSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Reimage", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Reimage", result.Response(), "Failure sending request") return } @@ -793,6 +798,7 @@ func (client VirtualMachineScaleSetVMsClient) ReimagePreparer(ctx context.Contex // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) ReimageSender(req *http.Request) (future VirtualMachineScaleSetVMsReimageFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -840,7 +846,7 @@ func (client VirtualMachineScaleSetVMsClient) ReimageAll(ctx context.Context, re result, err = client.ReimageAllSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "ReimageAll", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "ReimageAll", result.Response(), "Failure sending request") return } @@ -873,6 +879,7 @@ func (client VirtualMachineScaleSetVMsClient) ReimageAllPreparer(ctx context.Con // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) ReimageAllSender(req *http.Request) (future VirtualMachineScaleSetVMsReimageAllFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -919,7 +926,7 @@ func (client VirtualMachineScaleSetVMsClient) Restart(ctx context.Context, resou result, err = client.RestartSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Restart", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Restart", result.Response(), "Failure sending request") return } @@ -952,6 +959,7 @@ func (client VirtualMachineScaleSetVMsClient) RestartPreparer(ctx context.Contex // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) RestartSender(req *http.Request) (future VirtualMachineScaleSetVMsRestartFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1160,7 +1168,7 @@ func (client VirtualMachineScaleSetVMsClient) Start(ctx context.Context, resourc result, err = client.StartSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Start", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Start", result.Response(), "Failure sending request") return } @@ -1193,6 +1201,7 @@ func (client VirtualMachineScaleSetVMsClient) StartPreparer(ctx context.Context, // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) StartSender(req *http.Request) (future VirtualMachineScaleSetVMsStartFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return @@ -1261,7 +1270,7 @@ func (client VirtualMachineScaleSetVMsClient) Update(ctx context.Context, resour result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Update", nil, "Failure sending request") + err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Update", result.Response(), "Failure sending request") return } @@ -1300,6 +1309,7 @@ func (client VirtualMachineScaleSetVMsClient) UpdatePreparer(ctx context.Context // http.Response Body if it receives an error. func (client VirtualMachineScaleSetVMsClient) UpdateSender(req *http.Request) (future VirtualMachineScaleSetVMsUpdateFuture, err error) { var resp *http.Response + future.FutureAPI = &azure.Future{} resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return diff --git a/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md b/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md +++ b/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/compute/mgmt/2015-06-15/compute/_meta.json b/services/compute/mgmt/2015-06-15/compute/_meta.json index 56b128d87087..5a2633e12b7e 100644 --- a/services/compute/mgmt/2015-06-15/compute/_meta.json +++ b/services/compute/mgmt/2015-06-15/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2015-06", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md b/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/compute/mgmt/2016-03-30/compute/_meta.json b/services/compute/mgmt/2016-03-30/compute/_meta.json index f5e0cf33e0eb..e6112dc3617f 100644 --- a/services/compute/mgmt/2016-03-30/compute/_meta.json +++ b/services/compute/mgmt/2016-03-30/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2016-03", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md b/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/compute/mgmt/2017-03-30/compute/_meta.json b/services/compute/mgmt/2017-03-30/compute/_meta.json index 8204ecf61bb8..6938d254f548 100644 --- a/services/compute/mgmt/2017-03-30/compute/_meta.json +++ b/services/compute/mgmt/2017-03-30/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2017-03", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2017-03-30/compute/models.go b/services/compute/mgmt/2017-03-30/compute/models.go index 5e46d661097e..e8911b8b2233 100644 --- a/services/compute/mgmt/2017-03-30/compute/models.go +++ b/services/compute/mgmt/2017-03-30/compute/models.go @@ -5851,7 +5851,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'StandardLRS', 'PremiumLRS' + // StorageAccountType - 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. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'StandardLRS', 'PremiumLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` } diff --git a/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md b/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md +++ b/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/compute/mgmt/2017-09-01/skus/_meta.json b/services/compute/mgmt/2017-09-01/skus/_meta.json index 489cc4ea934a..2d4d7e59c399 100644 --- a/services/compute/mgmt/2017-09-01/skus/_meta.json +++ b/services/compute/mgmt/2017-09-01/skus/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-skus-2017-09", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md b/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/compute/mgmt/2017-12-01/compute/_meta.json b/services/compute/mgmt/2017-12-01/compute/_meta.json index fd8e0502390b..841d3af9c51a 100644 --- a/services/compute/mgmt/2017-12-01/compute/_meta.json +++ b/services/compute/mgmt/2017-12-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2017-12", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2017-12-01/compute/models.go b/services/compute/mgmt/2017-12-01/compute/models.go index e2efc0545644..85bed2357574 100644 --- a/services/compute/mgmt/2017-12-01/compute/models.go +++ b/services/compute/mgmt/2017-12-01/compute/models.go @@ -6588,7 +6588,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'StandardLRS', 'PremiumLRS' + // StorageAccountType - 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. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'StandardLRS', 'PremiumLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` } diff --git a/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md b/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/compute/mgmt/2018-04-01/compute/_meta.json b/services/compute/mgmt/2018-04-01/compute/_meta.json index 25b66938c35b..6e56506f525c 100644 --- a/services/compute/mgmt/2018-04-01/compute/_meta.json +++ b/services/compute/mgmt/2018-04-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2018-04", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2018-04-01/compute/models.go b/services/compute/mgmt/2018-04-01/compute/models.go index 7720ffe1557c..587a2dba8976 100644 --- a/services/compute/mgmt/2018-04-01/compute/models.go +++ b/services/compute/mgmt/2018-04-01/compute/models.go @@ -6329,7 +6329,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - Specifies the storage account type for the managed disk. Possible values are: Standard_LRS, Premium_LRS, and StandardSSD_LRS. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS' + // StorageAccountType - 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. Possible values are: Standard_LRS, Premium_LRS, and StandardSSD_LRS. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` } diff --git a/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md b/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/compute/mgmt/2018-06-01/compute/_meta.json b/services/compute/mgmt/2018-06-01/compute/_meta.json index b52209f385b7..940aa6002e0b 100644 --- a/services/compute/mgmt/2018-06-01/compute/_meta.json +++ b/services/compute/mgmt/2018-06-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2018-06", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2018-06-01/compute/models.go b/services/compute/mgmt/2018-06-01/compute/models.go index 1eb8b3874c85..a91ec9ce4477 100644 --- a/services/compute/mgmt/2018-06-01/compute/models.go +++ b/services/compute/mgmt/2018-06-01/compute/models.go @@ -8593,7 +8593,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` } diff --git a/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md b/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/compute/mgmt/2018-10-01/compute/_meta.json b/services/compute/mgmt/2018-10-01/compute/_meta.json index e6ac6c4400ba..ed518d89782b 100644 --- a/services/compute/mgmt/2018-10-01/compute/_meta.json +++ b/services/compute/mgmt/2018-10-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2018-10-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2018-10-01/compute/models.go b/services/compute/mgmt/2018-10-01/compute/models.go index 9aed45caac93..8382e332d91f 100644 --- a/services/compute/mgmt/2018-10-01/compute/models.go +++ b/services/compute/mgmt/2018-10-01/compute/models.go @@ -8609,7 +8609,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` } diff --git a/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md b/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md index 52911e4cc5e4..2316a7bf5807 100644 --- a/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md @@ -1,2 +1,23 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ContentType +1. UserArtifactSource.FileName + +## Additive Changes + +### Struct Changes + +#### New Structs + +1. UserArtifactManage + +#### New Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ManageActions +1. UserArtifactSource.DefaultConfigurationLink diff --git a/services/compute/mgmt/2019-03-01/compute/_meta.json b/services/compute/mgmt/2019-03-01/compute/_meta.json index 5de5c1129c5b..bddbe9fa82fc 100644 --- a/services/compute/mgmt/2019-03-01/compute/_meta.json +++ b/services/compute/mgmt/2019-03-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-03-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go index 9cb10c62105c..91c340cf0e66 100644 --- a/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go @@ -59,9 +59,11 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdate(ctx context.Contex Constraints: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.FileName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}, - }}, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Install", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Remove", Name: validation.Null, Rule: true, Chain: nil}, + }}, }}, }}}}}); err != nil { return result, validation.NewError("compute.GalleryApplicationVersionsClient", "CreateOrUpdate", err.Error()) diff --git a/services/compute/mgmt/2019-03-01/compute/models.go b/services/compute/mgmt/2019-03-01/compute/models.go index 58810d3afb5e..c945b65b677a 100644 --- a/services/compute/mgmt/2019-03-01/compute/models.go +++ b/services/compute/mgmt/2019-03-01/compute/models.go @@ -3523,11 +3523,10 @@ func (gavp GalleryApplicationVersionProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery Image Version. +// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery image version. type GalleryApplicationVersionPublishingProfile struct { - Source *UserArtifactSource `json:"source,omitempty"` - // ContentType - Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc. - ContentType *string `json:"contentType,omitempty"` + Source *UserArtifactSource `json:"source,omitempty"` + ManageActions *UserArtifactManage `json:"manageActions,omitempty"` // EnableHealthCheck - Optional. Whether or not this application reports health. EnableHealthCheck *bool `json:"enableHealthCheck,omitempty"` // TargetRegions - The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3550,8 +3549,8 @@ func (gavpp GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, e if gavpp.Source != nil { objectMap["source"] = gavpp.Source } - if gavpp.ContentType != nil { - objectMap["contentType"] = gavpp.ContentType + if gavpp.ManageActions != nil { + objectMap["manageActions"] = gavpp.ManageActions } if gavpp.EnableHealthCheck != nil { objectMap["enableHealthCheck"] = gavpp.EnableHealthCheck @@ -7908,12 +7907,22 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// UserArtifactManage ... +type UserArtifactManage struct { + // Install - Required. The path and arguments to install the gallery application. This is limited to 4096 characters. + Install *string `json:"install,omitempty"` + // Remove - Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. + Remove *string `json:"remove,omitempty"` + // Update - 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 { - // FileName - Required. The fileName of the artifact. - FileName *string `json:"fileName,omitempty"` - // MediaLink - Required. The mediaLink of the artifact, must be a readable storage blob. + // MediaLink - Required. The mediaLink of the artifact, must be a readable storage page blob. MediaLink *string `json:"mediaLink,omitempty"` + // DefaultConfigurationLink - Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. + DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"` } // VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate @@ -10442,7 +10451,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` } diff --git a/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md b/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md index 52911e4cc5e4..2316a7bf5807 100644 --- a/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md @@ -1,2 +1,23 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ContentType +1. UserArtifactSource.FileName + +## Additive Changes + +### Struct Changes + +#### New Structs + +1. UserArtifactManage + +#### New Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ManageActions +1. UserArtifactSource.DefaultConfigurationLink diff --git a/services/compute/mgmt/2019-07-01/compute/_meta.json b/services/compute/mgmt/2019-07-01/compute/_meta.json index 6663f4e2919a..d7afccb515f7 100644 --- a/services/compute/mgmt/2019-07-01/compute/_meta.json +++ b/services/compute/mgmt/2019-07-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-07", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go index 2fa93086ead3..bb07020a3086 100644 --- a/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go @@ -59,9 +59,11 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdate(ctx context.Contex Constraints: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.FileName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}, - }}, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Install", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Remove", Name: validation.Null, Rule: true, Chain: nil}, + }}, }}, }}}}}); err != nil { return result, validation.NewError("compute.GalleryApplicationVersionsClient", "CreateOrUpdate", err.Error()) diff --git a/services/compute/mgmt/2019-07-01/compute/models.go b/services/compute/mgmt/2019-07-01/compute/models.go index 22e9a488220b..d3282a39492d 100644 --- a/services/compute/mgmt/2019-07-01/compute/models.go +++ b/services/compute/mgmt/2019-07-01/compute/models.go @@ -4216,11 +4216,10 @@ func (gavp GalleryApplicationVersionProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery Image Version. +// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery image version. type GalleryApplicationVersionPublishingProfile struct { - Source *UserArtifactSource `json:"source,omitempty"` - // ContentType - Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc. - ContentType *string `json:"contentType,omitempty"` + Source *UserArtifactSource `json:"source,omitempty"` + ManageActions *UserArtifactManage `json:"manageActions,omitempty"` // EnableHealthCheck - Optional. Whether or not this application reports health. EnableHealthCheck *bool `json:"enableHealthCheck,omitempty"` // TargetRegions - The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -4243,8 +4242,8 @@ func (gavpp GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, e if gavpp.Source != nil { objectMap["source"] = gavpp.Source } - if gavpp.ContentType != nil { - objectMap["contentType"] = gavpp.ContentType + if gavpp.ManageActions != nil { + objectMap["manageActions"] = gavpp.ManageActions } if gavpp.EnableHealthCheck != nil { objectMap["enableHealthCheck"] = gavpp.EnableHealthCheck @@ -9034,12 +9033,22 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// UserArtifactManage ... +type UserArtifactManage struct { + // Install - Required. The path and arguments to install the gallery application. This is limited to 4096 characters. + Install *string `json:"install,omitempty"` + // Remove - Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. + Remove *string `json:"remove,omitempty"` + // Update - 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 { - // FileName - Required. The fileName of the artifact. - FileName *string `json:"fileName,omitempty"` - // MediaLink - Required. The mediaLink of the artifact, must be a readable storage blob. + // MediaLink - Required. The mediaLink of the artifact, must be a readable storage page blob. MediaLink *string `json:"mediaLink,omitempty"` + // DefaultConfigurationLink - Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. + DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"` } // VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate @@ -11697,7 +11706,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk. DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` diff --git a/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md b/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md index 52911e4cc5e4..f7afdd6774d4 100644 --- a/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md @@ -1,2 +1,29 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ContentType +1. UserArtifactSource.FileName + +### Signature Changes + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string + +## Additive Changes + +### Struct Changes + +#### New Structs + +1. UserArtifactManage + +#### New Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ManageActions +1. UserArtifactSource.DefaultConfigurationLink diff --git a/services/compute/mgmt/2019-12-01/compute/_meta.json b/services/compute/mgmt/2019-12-01/compute/_meta.json index ad0ecd947317..7b5c80087f7d 100644 --- a/services/compute/mgmt/2019-12-01/compute/_meta.json +++ b/services/compute/mgmt/2019-12-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-12-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go index 3958d3bbe33c..1390517d554d 100644 --- a/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go @@ -59,9 +59,11 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdate(ctx context.Contex Constraints: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.FileName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}, - }}, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Install", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Remove", Name: validation.Null, Rule: true, Chain: nil}, + }}, }}, }}}}}); err != nil { return result, validation.NewError("compute.GalleryApplicationVersionsClient", "CreateOrUpdate", err.Error()) diff --git a/services/compute/mgmt/2019-12-01/compute/models.go b/services/compute/mgmt/2019-12-01/compute/models.go index 4cb1fad422d4..fb3c227b7b01 100644 --- a/services/compute/mgmt/2019-12-01/compute/models.go +++ b/services/compute/mgmt/2019-12-01/compute/models.go @@ -4312,11 +4312,10 @@ func (gavp GalleryApplicationVersionProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery Image Version. +// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery image version. type GalleryApplicationVersionPublishingProfile struct { - Source *UserArtifactSource `json:"source,omitempty"` - // ContentType - Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc. - ContentType *string `json:"contentType,omitempty"` + Source *UserArtifactSource `json:"source,omitempty"` + ManageActions *UserArtifactManage `json:"manageActions,omitempty"` // EnableHealthCheck - Optional. Whether or not this application reports health. EnableHealthCheck *bool `json:"enableHealthCheck,omitempty"` // TargetRegions - The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -4339,8 +4338,8 @@ func (gavpp GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, e if gavpp.Source != nil { objectMap["source"] = gavpp.Source } - if gavpp.ContentType != nil { - objectMap["contentType"] = gavpp.ContentType + if gavpp.ManageActions != nil { + objectMap["manageActions"] = gavpp.ManageActions } if gavpp.EnableHealthCheck != nil { objectMap["enableHealthCheck"] = gavpp.EnableHealthCheck @@ -7207,15 +7206,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'Resume', 'Suspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs', 'DummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'NotRunning', 'Running', 'Suspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` @@ -9655,12 +9654,22 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// UserArtifactManage ... +type UserArtifactManage struct { + // Install - Required. The path and arguments to install the gallery application. This is limited to 4096 characters. + Install *string `json:"install,omitempty"` + // Remove - Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. + Remove *string `json:"remove,omitempty"` + // Update - 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 { - // FileName - Required. The fileName of the artifact. - FileName *string `json:"fileName,omitempty"` - // MediaLink - Required. The mediaLink of the artifact, must be a readable storage blob. + // MediaLink - Required. The mediaLink of the artifact, must be a readable storage page blob. MediaLink *string `json:"mediaLink,omitempty"` + // DefaultConfigurationLink - Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. + DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"` } // VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate @@ -12320,7 +12329,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk. DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` diff --git a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go index a14352bdc23c..3f2ddc90bef0 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go @@ -1699,6 +1699,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md b/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md index 52911e4cc5e4..ae928bd924d2 100644 --- a/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md @@ -1,2 +1,37 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ContentType +1. UserArtifactSource.FileName + +### Signature Changes + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string + +## Additive Changes + +### Struct Changes + +#### New Structs + +1. UserArtifactManage + +#### New Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ManageActions +1. LogAnalyticsInputBase.GroupByClientApplicationID +1. LogAnalyticsInputBase.GroupByUserAgent +1. RequestRateByIntervalInput.GroupByClientApplicationID +1. RequestRateByIntervalInput.GroupByUserAgent +1. ThrottledRequestsInput.GroupByClientApplicationID +1. ThrottledRequestsInput.GroupByUserAgent +1. UserArtifactSource.DefaultConfigurationLink +1. VirtualMachineScaleSetNetworkConfigurationProperties.EnableFpga +1. VirtualMachineScaleSetUpdateNetworkConfigurationProperties.EnableFpga diff --git a/services/compute/mgmt/2020-06-01/compute/_meta.json b/services/compute/mgmt/2020-06-01/compute/_meta.json index 6a12a17eb0dd..5c346b02e27a 100644 --- a/services/compute/mgmt/2020-06-01/compute/_meta.json +++ b/services/compute/mgmt/2020-06-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-06-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go index 3958d3bbe33c..1390517d554d 100644 --- a/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go @@ -59,9 +59,11 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdate(ctx context.Contex Constraints: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.FileName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}, - }}, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Install", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Remove", Name: validation.Null, Rule: true, Chain: nil}, + }}, }}, }}}}}); err != nil { return result, validation.NewError("compute.GalleryApplicationVersionsClient", "CreateOrUpdate", err.Error()) diff --git a/services/compute/mgmt/2020-06-01/compute/models.go b/services/compute/mgmt/2020-06-01/compute/models.go index 81992bd93191..d2eb56e2e1c7 100644 --- a/services/compute/mgmt/2020-06-01/compute/models.go +++ b/services/compute/mgmt/2020-06-01/compute/models.go @@ -4817,11 +4817,10 @@ func (gavp GalleryApplicationVersionProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery Image Version. +// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery image version. type GalleryApplicationVersionPublishingProfile struct { - Source *UserArtifactSource `json:"source,omitempty"` - // ContentType - Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc. - ContentType *string `json:"contentType,omitempty"` + Source *UserArtifactSource `json:"source,omitempty"` + ManageActions *UserArtifactManage `json:"manageActions,omitempty"` // EnableHealthCheck - Optional. Whether or not this application reports health. EnableHealthCheck *bool `json:"enableHealthCheck,omitempty"` // TargetRegions - The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -4844,8 +4843,8 @@ func (gavpp GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, e if gavpp.Source != nil { objectMap["source"] = gavpp.Source } - if gavpp.ContentType != nil { - objectMap["contentType"] = gavpp.ContentType + if gavpp.ManageActions != nil { + objectMap["manageActions"] = gavpp.ManageActions } if gavpp.EnableHealthCheck != nil { objectMap["enableHealthCheck"] = gavpp.EnableHealthCheck @@ -7530,6 +7529,10 @@ type LogAnalyticsInputBase struct { GroupByOperationName *bool `json:"groupByOperationName,omitempty"` // GroupByResourceName - Group query result by Resource Name. GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + // GroupByClientApplicationID - Group query result by Client Application ID. + GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + // GroupByUserAgent - Group query result by User Agent. + GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` } // LogAnalyticsOperationResult logAnalytics operation status response @@ -7583,7 +7586,7 @@ type ManagedArtifact struct { // ManagedDiskParameters the parameters of a managed disk. type ManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk. DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` @@ -7748,15 +7751,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'Resume', 'Suspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs', 'DummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'NotRunning', 'Running', 'Suspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` @@ -7833,7 +7836,7 @@ type OSProfile struct { // PatchSettings ... type PatchSettings struct { - // PatchMode - Specifies the mode of in-guest patching to IaaS virtual machine.

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. Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' + // PatchMode - Specifies the mode of in-guest patching to IaaS virtual machine.

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. Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' PatchMode InGuestPatchMode `json:"patchMode,omitempty"` } @@ -8438,6 +8441,10 @@ type RequestRateByIntervalInput struct { GroupByOperationName *bool `json:"groupByOperationName,omitempty"` // GroupByResourceName - Group query result by Resource Name. GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + // GroupByClientApplicationID - Group query result by Client Application ID. + GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + // GroupByUserAgent - Group query result by User Agent. + GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` } // Resource the Resource model definition. @@ -9914,7 +9921,7 @@ type SSHConfiguration struct { type SSHPublicKey struct { // Path - 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"` - // KeyData - 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/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). + // KeyData - 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/en-us/azure/virtual-machines/linux/mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). KeyData *string `json:"keyData,omitempty"` } @@ -10318,6 +10325,10 @@ type ThrottledRequestsInput struct { GroupByOperationName *bool `json:"groupByOperationName,omitempty"` // GroupByResourceName - Group query result by Resource Name. GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + // GroupByClientApplicationID - Group query result by Client Application ID. + GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + // GroupByUserAgent - Group query result by User Agent. + GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` } // UpdateResource the Update Resource model definition. @@ -10441,12 +10452,22 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// UserArtifactManage ... +type UserArtifactManage struct { + // Install - Required. The path and arguments to install the gallery application. This is limited to 4096 characters. + Install *string `json:"install,omitempty"` + // Remove - Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. + Remove *string `json:"remove,omitempty"` + // Update - 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 { - // FileName - Required. The fileName of the artifact. - FileName *string `json:"fileName,omitempty"` - // MediaLink - Required. The mediaLink of the artifact, must be a readable storage blob. + // MediaLink - Required. The mediaLink of the artifact, must be a readable storage page blob. MediaLink *string `json:"mediaLink,omitempty"` + // DefaultConfigurationLink - Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. + DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"` } // VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate @@ -13880,6 +13901,8 @@ type VirtualMachineScaleSetNetworkConfigurationProperties struct { Primary *bool `json:"primary,omitempty"` // EnableAcceleratedNetworking - Specifies whether the network interface is accelerated networking-enabled. EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + // EnableFpga - Specifies whether the network interface is FPGA networking-enabled. + EnableFpga *bool `json:"enableFpga,omitempty"` // NetworkSecurityGroup - The network security group. NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` // DNSSettings - The dns settings to be applied on the network interfaces. @@ -15040,6 +15063,8 @@ type VirtualMachineScaleSetUpdateNetworkConfigurationProperties struct { Primary *bool `json:"primary,omitempty"` // EnableAcceleratedNetworking - Specifies whether the network interface is accelerated networking-enabled. EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + // EnableFpga - Specifies whether the network interface is FPGA networking-enabled. + EnableFpga *bool `json:"enableFpga,omitempty"` // NetworkSecurityGroup - The network security group. NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` // DNSSettings - The dns settings to be applied on the network interfaces. diff --git a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go index d3c18e071e0c..526677d9ed29 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go @@ -1699,6 +1699,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md b/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md index 52911e4cc5e4..ae928bd924d2 100644 --- a/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md @@ -1,2 +1,37 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ContentType +1. UserArtifactSource.FileName + +### Signature Changes + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string + +## Additive Changes + +### Struct Changes + +#### New Structs + +1. UserArtifactManage + +#### New Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ManageActions +1. LogAnalyticsInputBase.GroupByClientApplicationID +1. LogAnalyticsInputBase.GroupByUserAgent +1. RequestRateByIntervalInput.GroupByClientApplicationID +1. RequestRateByIntervalInput.GroupByUserAgent +1. ThrottledRequestsInput.GroupByClientApplicationID +1. ThrottledRequestsInput.GroupByUserAgent +1. UserArtifactSource.DefaultConfigurationLink +1. VirtualMachineScaleSetNetworkConfigurationProperties.EnableFpga +1. VirtualMachineScaleSetUpdateNetworkConfigurationProperties.EnableFpga diff --git a/services/compute/mgmt/2020-06-30/compute/_meta.json b/services/compute/mgmt/2020-06-30/compute/_meta.json index 9ad558e3f2e9..900cd42c300e 100644 --- a/services/compute/mgmt/2020-06-30/compute/_meta.json +++ b/services/compute/mgmt/2020-06-30/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-06-30", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go b/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go index 3958d3bbe33c..1390517d554d 100644 --- a/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go @@ -59,9 +59,11 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdate(ctx context.Contex Constraints: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.FileName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}, - }}, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Install", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Remove", Name: validation.Null, Rule: true, Chain: nil}, + }}, }}, }}}}}); err != nil { return result, validation.NewError("compute.GalleryApplicationVersionsClient", "CreateOrUpdate", err.Error()) diff --git a/services/compute/mgmt/2020-06-30/compute/models.go b/services/compute/mgmt/2020-06-30/compute/models.go index f6218bf1f9cd..31972aa56645 100644 --- a/services/compute/mgmt/2020-06-30/compute/models.go +++ b/services/compute/mgmt/2020-06-30/compute/models.go @@ -4832,11 +4832,10 @@ func (gavp GalleryApplicationVersionProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery Image Version. +// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery image version. type GalleryApplicationVersionPublishingProfile struct { - Source *UserArtifactSource `json:"source,omitempty"` - // ContentType - Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc. - ContentType *string `json:"contentType,omitempty"` + Source *UserArtifactSource `json:"source,omitempty"` + ManageActions *UserArtifactManage `json:"manageActions,omitempty"` // EnableHealthCheck - Optional. Whether or not this application reports health. EnableHealthCheck *bool `json:"enableHealthCheck,omitempty"` // TargetRegions - The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -4859,8 +4858,8 @@ func (gavpp GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, e if gavpp.Source != nil { objectMap["source"] = gavpp.Source } - if gavpp.ContentType != nil { - objectMap["contentType"] = gavpp.ContentType + if gavpp.ManageActions != nil { + objectMap["manageActions"] = gavpp.ManageActions } if gavpp.EnableHealthCheck != nil { objectMap["enableHealthCheck"] = gavpp.EnableHealthCheck @@ -7545,6 +7544,10 @@ type LogAnalyticsInputBase struct { GroupByOperationName *bool `json:"groupByOperationName,omitempty"` // GroupByResourceName - Group query result by Resource Name. GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + // GroupByClientApplicationID - Group query result by Client Application ID. + GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + // GroupByUserAgent - Group query result by User Agent. + GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` } // LogAnalyticsOperationResult logAnalytics operation status response @@ -7598,7 +7601,7 @@ type ManagedArtifact struct { // ManagedDiskParameters the parameters of a managed disk. type ManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk. DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` @@ -7763,15 +7766,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'Resume', 'Suspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs', 'DummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'NotRunning', 'Running', 'Suspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` @@ -7848,7 +7851,7 @@ type OSProfile struct { // PatchSettings ... type PatchSettings struct { - // PatchMode - Specifies the mode of in-guest patching to IaaS virtual machine.

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. Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' + // PatchMode - Specifies the mode of in-guest patching to IaaS virtual machine.

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. Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' PatchMode InGuestPatchMode `json:"patchMode,omitempty"` } @@ -8453,6 +8456,10 @@ type RequestRateByIntervalInput struct { GroupByOperationName *bool `json:"groupByOperationName,omitempty"` // GroupByResourceName - Group query result by Resource Name. GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + // GroupByClientApplicationID - Group query result by Client Application ID. + GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + // GroupByUserAgent - Group query result by User Agent. + GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` } // Resource the Resource model definition. @@ -10093,7 +10100,7 @@ type SSHConfiguration struct { type SSHPublicKey struct { // Path - 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"` - // KeyData - 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/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). + // KeyData - 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/en-us/azure/virtual-machines/linux/mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). KeyData *string `json:"keyData,omitempty"` } @@ -10497,6 +10504,10 @@ type ThrottledRequestsInput struct { GroupByOperationName *bool `json:"groupByOperationName,omitempty"` // GroupByResourceName - Group query result by Resource Name. GroupByResourceName *bool `json:"groupByResourceName,omitempty"` + // GroupByClientApplicationID - Group query result by Client Application ID. + GroupByClientApplicationID *bool `json:"groupByClientApplicationId,omitempty"` + // GroupByUserAgent - Group query result by User Agent. + GroupByUserAgent *bool `json:"groupByUserAgent,omitempty"` } // UpdateResource the Update Resource model definition. @@ -10620,12 +10631,22 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// UserArtifactManage ... +type UserArtifactManage struct { + // Install - Required. The path and arguments to install the gallery application. This is limited to 4096 characters. + Install *string `json:"install,omitempty"` + // Remove - Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. + Remove *string `json:"remove,omitempty"` + // Update - 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 { - // FileName - Required. The fileName of the artifact. - FileName *string `json:"fileName,omitempty"` - // MediaLink - Required. The mediaLink of the artifact, must be a readable storage blob. + // MediaLink - Required. The mediaLink of the artifact, must be a readable storage page blob. MediaLink *string `json:"mediaLink,omitempty"` + // DefaultConfigurationLink - Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. + DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"` } // VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate @@ -14059,6 +14080,8 @@ type VirtualMachineScaleSetNetworkConfigurationProperties struct { Primary *bool `json:"primary,omitempty"` // EnableAcceleratedNetworking - Specifies whether the network interface is accelerated networking-enabled. EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + // EnableFpga - Specifies whether the network interface is FPGA networking-enabled. + EnableFpga *bool `json:"enableFpga,omitempty"` // NetworkSecurityGroup - The network security group. NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` // DNSSettings - The dns settings to be applied on the network interfaces. @@ -15219,6 +15242,8 @@ type VirtualMachineScaleSetUpdateNetworkConfigurationProperties struct { Primary *bool `json:"primary,omitempty"` // EnableAcceleratedNetworking - Specifies whether the network interface is accelerated networking-enabled. EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + // EnableFpga - Specifies whether the network interface is FPGA networking-enabled. + EnableFpga *bool `json:"enableFpga,omitempty"` // NetworkSecurityGroup - The network security group. NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` // DNSSettings - The dns settings to be applied on the network interfaces. diff --git a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go index d3c18e071e0c..526677d9ed29 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go @@ -1699,6 +1699,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md b/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md index e66613099e84..0a87faa8c9fe 100644 --- a/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md @@ -1,561 +1,9 @@ -# Change History +# Unreleased ## Breaking Changes -### Removed Constants +### Signature Changes -1. AccessLevel.None -1. AccessLevel.Read -1. AccessLevel.Write -1. AggregatedReplicationState.Completed -1. AggregatedReplicationState.Failed -1. AggregatedReplicationState.InProgress -1. AggregatedReplicationState.Unknown -1. AvailabilitySetSkuTypes.Aligned -1. AvailabilitySetSkuTypes.Classic -1. ComponentNames.MicrosoftWindowsShellSetup -1. DiffDiskOptions.Local -1. DiffDiskPlacement.CacheDisk -1. DiffDiskPlacement.ResourceDisk -1. DiskCreateOption.Attach -1. DiskCreateOption.Copy -1. DiskCreateOption.Empty -1. DiskCreateOption.FromImage -1. DiskCreateOption.Import -1. DiskCreateOption.Restore -1. DiskCreateOption.Upload -1. DiskDetachOptionTypes.ForceDetach -1. DiskEncryptionSetType.EncryptionAtRestWithCustomerKey -1. DiskEncryptionSetType.EncryptionAtRestWithPlatformAndCustomerKeys -1. DiskSecurityTypes.TrustedLaunch -1. DiskState.ActiveSAS -1. DiskState.ActiveUpload -1. DiskState.Attached -1. DiskState.ReadyToUpload -1. DiskState.Reserved -1. DiskState.Unattached -1. DiskStorageAccountTypes.PremiumLRS -1. DiskStorageAccountTypes.PremiumZRS -1. DiskStorageAccountTypes.StandardLRS -1. DiskStorageAccountTypes.StandardSSDLRS -1. DiskStorageAccountTypes.StandardSSDZRS -1. DiskStorageAccountTypes.UltraSSDLRS -1. ExtendedLocationTypes.EdgeZone -1. HyperVGeneration.V1 -1. HyperVGeneration.V2 -1. IPVersion.IPv4 -1. IPVersion.IPv6 -1. InstanceViewTypes.InstanceView -1. IntervalInMins.FiveMins -1. IntervalInMins.SixtyMins -1. IntervalInMins.ThirtyMins -1. IntervalInMins.ThreeMins -1. LinuxVMGuestPatchMode.AutomaticByPlatform -1. LinuxVMGuestPatchMode.ImageDefault -1. NetworkAccessPolicy.AllowAll -1. NetworkAccessPolicy.AllowPrivate -1. NetworkAccessPolicy.DenyAll -1. OperatingSystemStateTypes.Generalized -1. OperatingSystemStateTypes.Specialized -1. OperatingSystemTypes.Linux -1. OperatingSystemTypes.Windows -1. OrchestrationMode.Flexible -1. OrchestrationMode.Uniform -1. OrchestrationServiceNames.AutomaticRepairs -1. OrchestrationServiceState.NotRunning -1. OrchestrationServiceState.Running -1. OrchestrationServiceState.Suspended -1. OrchestrationServiceStateAction.Resume -1. OrchestrationServiceStateAction.Suspend -1. PassNames.OobeSystem -1. PrivateEndpointServiceConnectionStatus.Approved -1. PrivateEndpointServiceConnectionStatus.Pending -1. PrivateEndpointServiceConnectionStatus.Rejected -1. ProtocolTypes.HTTP -1. ProtocolTypes.HTTPS -1. ProximityPlacementGroupType.Standard -1. ProximityPlacementGroupType.Ultra -1. ResourceSkuRestrictionsReasonCode.NotAvailableForSubscription -1. ResourceSkuRestrictionsReasonCode.QuotaID -1. ResourceSkuRestrictionsType.Location -1. ResourceSkuRestrictionsType.Zone -1. RollingUpgradeActionType.Cancel -1. RollingUpgradeActionType.Start -1. SettingNames.AutoLogon -1. SettingNames.FirstLogonCommands -1. StatusLevelTypes.Error -1. StatusLevelTypes.Info -1. StatusLevelTypes.Warning -1. UpgradeMode.Automatic -1. UpgradeMode.Manual -1. UpgradeMode.Rolling -1. VMGuestPatchClassificationLinux.Critical -1. VMGuestPatchClassificationLinux.Other -1. VMGuestPatchClassificationLinux.Security -1. VMGuestPatchRebootSetting.Always -1. VMGuestPatchRebootSetting.IfRequired -1. VMGuestPatchRebootSetting.Never -1. VirtualMachineEvictionPolicyTypes.Deallocate -1. VirtualMachineEvictionPolicyTypes.Delete -1. VirtualMachinePriorityTypes.Low -1. VirtualMachinePriorityTypes.Regular -1. VirtualMachinePriorityTypes.Spot -1. VirtualMachineScaleSetScaleInRules.Default -1. VirtualMachineScaleSetScaleInRules.NewestVM -1. VirtualMachineScaleSetScaleInRules.OldestVM -1. VirtualMachineSizeTypes.BasicA0 -1. VirtualMachineSizeTypes.BasicA1 -1. VirtualMachineSizeTypes.BasicA2 -1. VirtualMachineSizeTypes.BasicA3 -1. VirtualMachineSizeTypes.BasicA4 -1. VirtualMachineSizeTypes.StandardA0 -1. VirtualMachineSizeTypes.StandardA1 -1. VirtualMachineSizeTypes.StandardA10 -1. VirtualMachineSizeTypes.StandardA11 -1. VirtualMachineSizeTypes.StandardA1V2 -1. VirtualMachineSizeTypes.StandardA2 -1. VirtualMachineSizeTypes.StandardA2V2 -1. VirtualMachineSizeTypes.StandardA2mV2 -1. VirtualMachineSizeTypes.StandardA3 -1. VirtualMachineSizeTypes.StandardA4 -1. VirtualMachineSizeTypes.StandardA4V2 -1. VirtualMachineSizeTypes.StandardA4mV2 -1. VirtualMachineSizeTypes.StandardA5 -1. VirtualMachineSizeTypes.StandardA6 -1. VirtualMachineSizeTypes.StandardA7 -1. VirtualMachineSizeTypes.StandardA8 -1. VirtualMachineSizeTypes.StandardA8V2 -1. VirtualMachineSizeTypes.StandardA8mV2 -1. VirtualMachineSizeTypes.StandardA9 -1. VirtualMachineSizeTypes.StandardB1ms -1. VirtualMachineSizeTypes.StandardB1s -1. VirtualMachineSizeTypes.StandardB2ms -1. VirtualMachineSizeTypes.StandardB2s -1. VirtualMachineSizeTypes.StandardB4ms -1. VirtualMachineSizeTypes.StandardB8ms -1. VirtualMachineSizeTypes.StandardD1 -1. VirtualMachineSizeTypes.StandardD11 -1. VirtualMachineSizeTypes.StandardD11V2 -1. VirtualMachineSizeTypes.StandardD12 -1. VirtualMachineSizeTypes.StandardD12V2 -1. VirtualMachineSizeTypes.StandardD13 -1. VirtualMachineSizeTypes.StandardD13V2 -1. VirtualMachineSizeTypes.StandardD14 -1. VirtualMachineSizeTypes.StandardD14V2 -1. VirtualMachineSizeTypes.StandardD15V2 -1. VirtualMachineSizeTypes.StandardD16V3 -1. VirtualMachineSizeTypes.StandardD16sV3 -1. VirtualMachineSizeTypes.StandardD1V2 -1. VirtualMachineSizeTypes.StandardD2 -1. VirtualMachineSizeTypes.StandardD2V2 -1. VirtualMachineSizeTypes.StandardD2V3 -1. VirtualMachineSizeTypes.StandardD2sV3 -1. VirtualMachineSizeTypes.StandardD3 -1. VirtualMachineSizeTypes.StandardD32V3 -1. VirtualMachineSizeTypes.StandardD32sV3 -1. VirtualMachineSizeTypes.StandardD3V2 -1. VirtualMachineSizeTypes.StandardD4 -1. VirtualMachineSizeTypes.StandardD4V2 -1. VirtualMachineSizeTypes.StandardD4V3 -1. VirtualMachineSizeTypes.StandardD4sV3 -1. VirtualMachineSizeTypes.StandardD5V2 -1. VirtualMachineSizeTypes.StandardD64V3 -1. VirtualMachineSizeTypes.StandardD64sV3 -1. VirtualMachineSizeTypes.StandardD8V3 -1. VirtualMachineSizeTypes.StandardD8sV3 -1. VirtualMachineSizeTypes.StandardDS1 -1. VirtualMachineSizeTypes.StandardDS11 -1. VirtualMachineSizeTypes.StandardDS11V2 -1. VirtualMachineSizeTypes.StandardDS12 -1. VirtualMachineSizeTypes.StandardDS12V2 -1. VirtualMachineSizeTypes.StandardDS13 -1. VirtualMachineSizeTypes.StandardDS132V2 -1. VirtualMachineSizeTypes.StandardDS134V2 -1. VirtualMachineSizeTypes.StandardDS13V2 -1. VirtualMachineSizeTypes.StandardDS14 -1. VirtualMachineSizeTypes.StandardDS144V2 -1. VirtualMachineSizeTypes.StandardDS148V2 -1. VirtualMachineSizeTypes.StandardDS14V2 -1. VirtualMachineSizeTypes.StandardDS15V2 -1. VirtualMachineSizeTypes.StandardDS1V2 -1. VirtualMachineSizeTypes.StandardDS2 -1. VirtualMachineSizeTypes.StandardDS2V2 -1. VirtualMachineSizeTypes.StandardDS3 -1. VirtualMachineSizeTypes.StandardDS3V2 -1. VirtualMachineSizeTypes.StandardDS4 -1. VirtualMachineSizeTypes.StandardDS4V2 -1. VirtualMachineSizeTypes.StandardDS5V2 -1. VirtualMachineSizeTypes.StandardE16V3 -1. VirtualMachineSizeTypes.StandardE16sV3 -1. VirtualMachineSizeTypes.StandardE2V3 -1. VirtualMachineSizeTypes.StandardE2sV3 -1. VirtualMachineSizeTypes.StandardE3216V3 -1. VirtualMachineSizeTypes.StandardE328sV3 -1. VirtualMachineSizeTypes.StandardE32V3 -1. VirtualMachineSizeTypes.StandardE32sV3 -1. VirtualMachineSizeTypes.StandardE4V3 -1. VirtualMachineSizeTypes.StandardE4sV3 -1. VirtualMachineSizeTypes.StandardE6416sV3 -1. VirtualMachineSizeTypes.StandardE6432sV3 -1. VirtualMachineSizeTypes.StandardE64V3 -1. VirtualMachineSizeTypes.StandardE64sV3 -1. VirtualMachineSizeTypes.StandardE8V3 -1. VirtualMachineSizeTypes.StandardE8sV3 -1. VirtualMachineSizeTypes.StandardF1 -1. VirtualMachineSizeTypes.StandardF16 -1. VirtualMachineSizeTypes.StandardF16s -1. VirtualMachineSizeTypes.StandardF16sV2 -1. VirtualMachineSizeTypes.StandardF1s -1. VirtualMachineSizeTypes.StandardF2 -1. VirtualMachineSizeTypes.StandardF2s -1. VirtualMachineSizeTypes.StandardF2sV2 -1. VirtualMachineSizeTypes.StandardF32sV2 -1. VirtualMachineSizeTypes.StandardF4 -1. VirtualMachineSizeTypes.StandardF4s -1. VirtualMachineSizeTypes.StandardF4sV2 -1. VirtualMachineSizeTypes.StandardF64sV2 -1. VirtualMachineSizeTypes.StandardF72sV2 -1. VirtualMachineSizeTypes.StandardF8 -1. VirtualMachineSizeTypes.StandardF8s -1. VirtualMachineSizeTypes.StandardF8sV2 -1. VirtualMachineSizeTypes.StandardG1 -1. VirtualMachineSizeTypes.StandardG2 -1. VirtualMachineSizeTypes.StandardG3 -1. VirtualMachineSizeTypes.StandardG4 -1. VirtualMachineSizeTypes.StandardG5 -1. VirtualMachineSizeTypes.StandardGS1 -1. VirtualMachineSizeTypes.StandardGS2 -1. VirtualMachineSizeTypes.StandardGS3 -1. VirtualMachineSizeTypes.StandardGS4 -1. VirtualMachineSizeTypes.StandardGS44 -1. VirtualMachineSizeTypes.StandardGS48 -1. VirtualMachineSizeTypes.StandardGS5 -1. VirtualMachineSizeTypes.StandardGS516 -1. VirtualMachineSizeTypes.StandardGS58 -1. VirtualMachineSizeTypes.StandardH16 -1. VirtualMachineSizeTypes.StandardH16m -1. VirtualMachineSizeTypes.StandardH16mr -1. VirtualMachineSizeTypes.StandardH16r -1. VirtualMachineSizeTypes.StandardH8 -1. VirtualMachineSizeTypes.StandardH8m -1. VirtualMachineSizeTypes.StandardL16s -1. VirtualMachineSizeTypes.StandardL32s -1. VirtualMachineSizeTypes.StandardL4s -1. VirtualMachineSizeTypes.StandardL8s -1. VirtualMachineSizeTypes.StandardM12832ms -1. VirtualMachineSizeTypes.StandardM12864ms -1. VirtualMachineSizeTypes.StandardM128ms -1. VirtualMachineSizeTypes.StandardM128s -1. VirtualMachineSizeTypes.StandardM6416ms -1. VirtualMachineSizeTypes.StandardM6432ms -1. VirtualMachineSizeTypes.StandardM64ms -1. VirtualMachineSizeTypes.StandardM64s -1. VirtualMachineSizeTypes.StandardNC12 -1. VirtualMachineSizeTypes.StandardNC12sV2 -1. VirtualMachineSizeTypes.StandardNC12sV3 -1. VirtualMachineSizeTypes.StandardNC24 -1. VirtualMachineSizeTypes.StandardNC24r -1. VirtualMachineSizeTypes.StandardNC24rsV2 -1. VirtualMachineSizeTypes.StandardNC24rsV3 -1. VirtualMachineSizeTypes.StandardNC24sV2 -1. VirtualMachineSizeTypes.StandardNC24sV3 -1. VirtualMachineSizeTypes.StandardNC6 -1. VirtualMachineSizeTypes.StandardNC6sV2 -1. VirtualMachineSizeTypes.StandardNC6sV3 -1. VirtualMachineSizeTypes.StandardND12s -1. VirtualMachineSizeTypes.StandardND24rs -1. VirtualMachineSizeTypes.StandardND24s -1. VirtualMachineSizeTypes.StandardND6s -1. VirtualMachineSizeTypes.StandardNV12 -1. VirtualMachineSizeTypes.StandardNV24 -1. VirtualMachineSizeTypes.StandardNV6 +#### Struct Fields -## Additive Changes - -### New Constants - -1. AccessLevel.AccessLevelNone -1. AccessLevel.AccessLevelRead -1. AccessLevel.AccessLevelWrite -1. AggregatedReplicationState.AggregatedReplicationStateCompleted -1. AggregatedReplicationState.AggregatedReplicationStateFailed -1. AggregatedReplicationState.AggregatedReplicationStateInProgress -1. AggregatedReplicationState.AggregatedReplicationStateUnknown -1. AvailabilitySetSkuTypes.AvailabilitySetSkuTypesAligned -1. AvailabilitySetSkuTypes.AvailabilitySetSkuTypesClassic -1. ComponentNames.ComponentNamesMicrosoftWindowsShellSetup -1. DiffDiskOptions.DiffDiskOptionsLocal -1. DiffDiskPlacement.DiffDiskPlacementCacheDisk -1. DiffDiskPlacement.DiffDiskPlacementResourceDisk -1. DiskCreateOption.DiskCreateOptionAttach -1. DiskCreateOption.DiskCreateOptionCopy -1. DiskCreateOption.DiskCreateOptionEmpty -1. DiskCreateOption.DiskCreateOptionFromImage -1. DiskCreateOption.DiskCreateOptionImport -1. DiskCreateOption.DiskCreateOptionRestore -1. DiskCreateOption.DiskCreateOptionUpload -1. DiskDetachOptionTypes.DiskDetachOptionTypesForceDetach -1. DiskEncryptionSetType.DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey -1. DiskEncryptionSetType.DiskEncryptionSetTypeEncryptionAtRestWithPlatformAndCustomerKeys -1. DiskSecurityTypes.DiskSecurityTypesTrustedLaunch -1. DiskState.DiskStateActiveSAS -1. DiskState.DiskStateActiveUpload -1. DiskState.DiskStateAttached -1. DiskState.DiskStateReadyToUpload -1. DiskState.DiskStateReserved -1. DiskState.DiskStateUnattached -1. DiskStorageAccountTypes.DiskStorageAccountTypesPremiumLRS -1. DiskStorageAccountTypes.DiskStorageAccountTypesPremiumZRS -1. DiskStorageAccountTypes.DiskStorageAccountTypesStandardLRS -1. DiskStorageAccountTypes.DiskStorageAccountTypesStandardSSDLRS -1. DiskStorageAccountTypes.DiskStorageAccountTypesStandardSSDZRS -1. DiskStorageAccountTypes.DiskStorageAccountTypesUltraSSDLRS -1. ExtendedLocationTypes.ExtendedLocationTypesEdgeZone -1. HyperVGeneration.HyperVGenerationV1 -1. HyperVGeneration.HyperVGenerationV2 -1. IPVersion.IPVersionIPv4 -1. IPVersion.IPVersionIPv6 -1. InstanceViewTypes.InstanceViewTypesInstanceView -1. IntervalInMins.IntervalInMinsFiveMins -1. IntervalInMins.IntervalInMinsSixtyMins -1. IntervalInMins.IntervalInMinsThirtyMins -1. IntervalInMins.IntervalInMinsThreeMins -1. LinuxVMGuestPatchMode.LinuxVMGuestPatchModeAutomaticByPlatform -1. LinuxVMGuestPatchMode.LinuxVMGuestPatchModeImageDefault -1. NetworkAccessPolicy.NetworkAccessPolicyAllowAll -1. NetworkAccessPolicy.NetworkAccessPolicyAllowPrivate -1. NetworkAccessPolicy.NetworkAccessPolicyDenyAll -1. OperatingSystemStateTypes.OperatingSystemStateTypesGeneralized -1. OperatingSystemStateTypes.OperatingSystemStateTypesSpecialized -1. OperatingSystemTypes.OperatingSystemTypesLinux -1. OperatingSystemTypes.OperatingSystemTypesWindows -1. OrchestrationMode.OrchestrationModeFlexible -1. OrchestrationMode.OrchestrationModeUniform -1. OrchestrationServiceNames.OrchestrationServiceNamesAutomaticRepairs -1. OrchestrationServiceState.OrchestrationServiceStateNotRunning -1. OrchestrationServiceState.OrchestrationServiceStateRunning -1. OrchestrationServiceState.OrchestrationServiceStateSuspended -1. OrchestrationServiceStateAction.OrchestrationServiceStateActionResume -1. OrchestrationServiceStateAction.OrchestrationServiceStateActionSuspend -1. PassNames.PassNamesOobeSystem -1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusApproved -1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusPending -1. PrivateEndpointServiceConnectionStatus.PrivateEndpointServiceConnectionStatusRejected -1. ProtocolTypes.ProtocolTypesHTTP -1. ProtocolTypes.ProtocolTypesHTTPS -1. ProximityPlacementGroupType.ProximityPlacementGroupTypeStandard -1. ProximityPlacementGroupType.ProximityPlacementGroupTypeUltra -1. ResourceSkuRestrictionsReasonCode.ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription -1. ResourceSkuRestrictionsReasonCode.ResourceSkuRestrictionsReasonCodeQuotaID -1. ResourceSkuRestrictionsType.ResourceSkuRestrictionsTypeLocation -1. ResourceSkuRestrictionsType.ResourceSkuRestrictionsTypeZone -1. RollingUpgradeActionType.RollingUpgradeActionTypeCancel -1. RollingUpgradeActionType.RollingUpgradeActionTypeStart -1. SettingNames.SettingNamesAutoLogon -1. SettingNames.SettingNamesFirstLogonCommands -1. StatusLevelTypes.StatusLevelTypesError -1. StatusLevelTypes.StatusLevelTypesInfo -1. StatusLevelTypes.StatusLevelTypesWarning -1. UpgradeMode.UpgradeModeAutomatic -1. UpgradeMode.UpgradeModeManual -1. UpgradeMode.UpgradeModeRolling -1. VMGuestPatchClassificationLinux.VMGuestPatchClassificationLinuxCritical -1. VMGuestPatchClassificationLinux.VMGuestPatchClassificationLinuxOther -1. VMGuestPatchClassificationLinux.VMGuestPatchClassificationLinuxSecurity -1. VMGuestPatchRebootSetting.VMGuestPatchRebootSettingAlways -1. VMGuestPatchRebootSetting.VMGuestPatchRebootSettingIfRequired -1. VMGuestPatchRebootSetting.VMGuestPatchRebootSettingNever -1. VirtualMachineEvictionPolicyTypes.VirtualMachineEvictionPolicyTypesDeallocate -1. VirtualMachineEvictionPolicyTypes.VirtualMachineEvictionPolicyTypesDelete -1. VirtualMachinePriorityTypes.VirtualMachinePriorityTypesLow -1. VirtualMachinePriorityTypes.VirtualMachinePriorityTypesRegular -1. VirtualMachinePriorityTypes.VirtualMachinePriorityTypesSpot -1. VirtualMachineScaleSetScaleInRules.VirtualMachineScaleSetScaleInRulesDefault -1. VirtualMachineScaleSetScaleInRules.VirtualMachineScaleSetScaleInRulesNewestVM -1. VirtualMachineScaleSetScaleInRules.VirtualMachineScaleSetScaleInRulesOldestVM -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA0 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA1 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesBasicA4 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA0 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA1 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA10 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA11 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA1V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA2V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA2mV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA4 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA4V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA4mV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA5 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA6 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA7 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA8 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA8V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA8mV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardA9 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB1ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB1s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB2ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB2s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB4ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardB8ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD1 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD11 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD11V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD12 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD12V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD13 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD13V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD14 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD14V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD15V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD16V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD16sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD1V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD2V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD2V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD2sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD32V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD32sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD3V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD4 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD4V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD4V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD4sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD5V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD64V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD64sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD8V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardD8sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS1 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS11 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS11V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS12 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS12V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS13 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS132V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS134V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS13V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS14 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS144V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS148V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS14V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS15V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS1V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS2V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS3V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS4 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS4V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardDS5V2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE16V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE16sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE2V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE2sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE3216V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE328sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE32V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE32sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE4V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE4sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE6416sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE6432sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE64V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE64sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE8V3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardE8sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF1 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF16 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF16s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF16sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF1s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF2s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF2sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF32sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF4 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF4s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF4sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF64sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF72sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF8 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF8s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardF8sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG1 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG4 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardG5 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS1 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS4 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS44 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS48 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS5 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS516 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardGS58 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH16 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH16m -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH16mr -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH16r -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH8 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardH8m -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardL16s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardL32s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardL4s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardL8s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM12832ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM12864ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM128ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM128s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM6416ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM6432ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM64ms -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardM64s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC12 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC12sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC12sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24r -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24rsV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24rsV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC24sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC6 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC6sV2 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNC6sV3 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardND12s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardND24rs -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardND24s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardND6s -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNV12 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNV24 -1. VirtualMachineSizeTypes.VirtualMachineSizeTypesStandardNV6 - -### New Funcs - -1. *DiskRestorePointGrantAccessFuture.UnmarshalJSON([]byte) error -1. *DiskRestorePointRevokeAccessFuture.UnmarshalJSON([]byte) error -1. DiskRestorePointClient.GrantAccess(context.Context, string, string, string, string, GrantAccessData) (DiskRestorePointGrantAccessFuture, error) -1. DiskRestorePointClient.GrantAccessPreparer(context.Context, string, string, string, string, GrantAccessData) (*http.Request, error) -1. DiskRestorePointClient.GrantAccessResponder(*http.Response) (AccessURI, error) -1. DiskRestorePointClient.GrantAccessSender(*http.Request) (DiskRestorePointGrantAccessFuture, error) -1. DiskRestorePointClient.RevokeAccess(context.Context, string, string, string, string) (DiskRestorePointRevokeAccessFuture, error) -1. DiskRestorePointClient.RevokeAccessPreparer(context.Context, string, string, string, string) (*http.Request, error) -1. DiskRestorePointClient.RevokeAccessResponder(*http.Response) (autorest.Response, error) -1. DiskRestorePointClient.RevokeAccessSender(*http.Request) (DiskRestorePointRevokeAccessFuture, error) - -### Struct Changes - -#### New Structs - -1. DiskRestorePointGrantAccessFuture -1. DiskRestorePointRevokeAccessFuture +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string diff --git a/services/compute/mgmt/2020-12-01/compute/_meta.json b/services/compute/mgmt/2020-12-01/compute/_meta.json index 74d93d45ca57..9e071ffed04c 100644 --- a/services/compute/mgmt/2020-12-01/compute/_meta.json +++ b/services/compute/mgmt/2020-12-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "af463c3f9502d353b8a009685177f13335adb8cd", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-12-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2020-12-01/compute/models.go b/services/compute/mgmt/2020-12-01/compute/models.go index 14a353540e8a..94120ce6d969 100644 --- a/services/compute/mgmt/2020-12-01/compute/models.go +++ b/services/compute/mgmt/2020-12-01/compute/models.go @@ -7853,15 +7853,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'OrchestrationServiceStateActionResume', 'OrchestrationServiceStateActionSuspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs', 'OrchestrationServiceNamesDummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'OrchestrationServiceStateNotRunning', 'OrchestrationServiceStateRunning', 'OrchestrationServiceStateSuspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` diff --git a/services/compute/mgmt/2020-12-01/compute/virtualmachines.go b/services/compute/mgmt/2020-12-01/compute/virtualmachines.go index 73ab326f9310..7b364f3dbb6f 100644 --- a/services/compute/mgmt/2020-12-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2020-12-01/compute/virtualmachines.go @@ -468,7 +468,7 @@ func (client VirtualMachinesClient) DeallocateResponder(resp *http.Response) (re // Parameters: // resourceGroupName - the name of the resource group. // VMName - the name of the virtual machine. -// forceDeletion - optional parameter to force delete virtual machines.(Feature in Preview) +// forceDeletion - optional parameter to force delete virtual machines. func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, VMName string, forceDeletion *bool) (result VirtualMachinesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Delete") diff --git a/services/compute/mgmt/2020-12-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2020-12-01/compute/virtualmachinescalesets.go index 52282335a259..9b3646dc41c1 100644 --- a/services/compute/mgmt/2020-12-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2020-12-01/compute/virtualmachinescalesets.go @@ -1830,6 +1830,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md b/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md index 52911e4cc5e4..2911196ee1d5 100644 --- a/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md @@ -1,2 +1,51 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Structs + +1. RestorePointProvisioningDetails + +#### Removed Struct Fields + +1. PublicIPAddressSku.PublicIPAddressSkuName +1. PublicIPAddressSku.PublicIPAddressSkuTier +1. RestorePoint.ConsistencyMode +1. RestorePoint.ExcludeDisks +1. RestorePoint.ProvisioningDetails +1. RestorePoint.ProvisioningState +1. RestorePoint.SourceMetadata + +## Additive Changes + +### New Funcs + +1. *DiskRestorePointGrantAccessFuture.UnmarshalJSON([]byte) error +1. *DiskRestorePointRevokeAccessFuture.UnmarshalJSON([]byte) error +1. *RestorePoint.UnmarshalJSON([]byte) error +1. DiskRestorePointClient.GrantAccess(context.Context, string, string, string, string, GrantAccessData) (DiskRestorePointGrantAccessFuture, error) +1. DiskRestorePointClient.GrantAccessPreparer(context.Context, string, string, string, string, GrantAccessData) (*http.Request, error) +1. DiskRestorePointClient.GrantAccessResponder(*http.Response) (AccessURI, error) +1. DiskRestorePointClient.GrantAccessSender(*http.Request) (DiskRestorePointGrantAccessFuture, error) +1. DiskRestorePointClient.RevokeAccess(context.Context, string, string, string, string) (DiskRestorePointRevokeAccessFuture, error) +1. DiskRestorePointClient.RevokeAccessPreparer(context.Context, string, string, string, string) (*http.Request, error) +1. DiskRestorePointClient.RevokeAccessResponder(*http.Response) (autorest.Response, error) +1. DiskRestorePointClient.RevokeAccessSender(*http.Request) (DiskRestorePointRevokeAccessFuture, error) +1. RestorePointProperties.MarshalJSON() ([]byte, error) + +### Struct Changes + +#### New Structs + +1. DiskRestorePointGrantAccessFuture +1. DiskRestorePointRevokeAccessFuture +1. RestorePointProperties + +#### New Struct Fields + +1. PublicIPAddressSku.Name +1. PublicIPAddressSku.Tier +1. RestorePoint.*RestorePointProperties +1. RestorePointSourceMetadata.Location diff --git a/services/compute/mgmt/2021-03-01/compute/_meta.json b/services/compute/mgmt/2021-03-01/compute/_meta.json index fe6b2a451f2a..a1f942e95c5a 100644 --- a/services/compute/mgmt/2021-03-01/compute/_meta.json +++ b/services/compute/mgmt/2021-03-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "394395ed0bdc1c5c05cb37a031379ca03bfebbb5", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2021-03-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2021-03-01/compute/computeapi/interfaces.go b/services/compute/mgmt/2021-03-01/compute/computeapi/interfaces.go index c952b33db1e4..2c9a8c535ddd 100644 --- a/services/compute/mgmt/2021-03-01/compute/computeapi/interfaces.go +++ b/services/compute/mgmt/2021-03-01/compute/computeapi/interfaces.go @@ -421,8 +421,10 @@ var _ DiskAccessesClientAPI = (*compute.DiskAccessesClient)(nil) // DiskRestorePointClientAPI contains the set of methods on the DiskRestorePointClient type. type DiskRestorePointClientAPI interface { Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string) (result compute.DiskRestorePoint, err error) + GrantAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string, grantAccessData compute.GrantAccessData) (result compute.DiskRestorePointGrantAccessFuture, err error) ListByRestorePoint(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string) (result compute.DiskRestorePointListPage, err error) ListByRestorePointComplete(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string) (result compute.DiskRestorePointListIterator, err error) + RevokeAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string) (result compute.DiskRestorePointRevokeAccessFuture, err error) } var _ DiskRestorePointClientAPI = (*compute.DiskRestorePointClient)(nil) diff --git a/services/compute/mgmt/2021-03-01/compute/diskrestorepoint.go b/services/compute/mgmt/2021-03-01/compute/diskrestorepoint.go index 79620d98ae91..20b31a6d4748 100644 --- a/services/compute/mgmt/2021-03-01/compute/diskrestorepoint.go +++ b/services/compute/mgmt/2021-03-01/compute/diskrestorepoint.go @@ -10,6 +10,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -114,6 +115,101 @@ func (client DiskRestorePointClient) GetResponder(resp *http.Response) (result D return } +// GrantAccess grants access to a diskRestorePoint. +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the restore point collection that the disk restore point belongs. +// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. Supported +// characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +// diskRestorePointName - the name of the disk restore point 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. +func (client DiskRestorePointClient) GrantAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string, grantAccessData GrantAccessData) (result DiskRestorePointGrantAccessFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskRestorePointClient.GrantAccess") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: grantAccessData, + Constraints: []validation.Constraint{{Target: "grantAccessData.DurationInSeconds", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.DiskRestorePointClient", "GrantAccess", err.Error()) + } + + req, err := client.GrantAccessPreparer(ctx, resourceGroupName, restorePointCollectionName, VMRestorePointName, diskRestorePointName, grantAccessData) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.DiskRestorePointClient", "GrantAccess", nil, "Failure preparing request") + return + } + + result, err = client.GrantAccessSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.DiskRestorePointClient", "GrantAccess", result.Response(), "Failure sending request") + return + } + + return +} + +// GrantAccessPreparer prepares the GrantAccess request. +func (client DiskRestorePointClient) GrantAccessPreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string, grantAccessData GrantAccessData) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskRestorePointName": autorest.Encode("path", diskRestorePointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vmRestorePointName": autorest.Encode("path", VMRestorePointName), + } + + const APIVersion = "2020-12-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", pathParameters), + autorest.WithJSON(grantAccessData), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GrantAccessSender sends the GrantAccess request. The method will close the +// http.Response Body if it receives an error. +func (client DiskRestorePointClient) GrantAccessSender(req *http.Request) (future DiskRestorePointGrantAccessFuture, err error) { + var resp *http.Response + future.FutureAPI = &azure.Future{} + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// GrantAccessResponder handles the response to the GrantAccess request. The method always +// closes the http.Response Body. +func (client DiskRestorePointClient) GrantAccessResponder(resp *http.Response) (result AccessURI, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // ListByRestorePoint lists diskRestorePoints under a vmRestorePoint. // Parameters: // resourceGroupName - the name of the resource group. @@ -235,3 +331,88 @@ func (client DiskRestorePointClient) ListByRestorePointComplete(ctx context.Cont result.page, err = client.ListByRestorePoint(ctx, resourceGroupName, restorePointCollectionName, VMRestorePointName) return } + +// RevokeAccess revokes access to a diskRestorePoint. +// Parameters: +// resourceGroupName - the name of the resource group. +// restorePointCollectionName - the name of the restore point collection that the disk restore point belongs. +// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. Supported +// characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +// diskRestorePointName - the name of the disk restore point created. Supported characters for the name are +// a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +func (client DiskRestorePointClient) RevokeAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string) (result DiskRestorePointRevokeAccessFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DiskRestorePointClient.RevokeAccess") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RevokeAccessPreparer(ctx, resourceGroupName, restorePointCollectionName, VMRestorePointName, diskRestorePointName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.DiskRestorePointClient", "RevokeAccess", nil, "Failure preparing request") + return + } + + result, err = client.RevokeAccessSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.DiskRestorePointClient", "RevokeAccess", result.Response(), "Failure sending request") + return + } + + return +} + +// RevokeAccessPreparer prepares the RevokeAccess request. +func (client DiskRestorePointClient) RevokeAccessPreparer(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "diskRestorePointName": autorest.Encode("path", diskRestorePointName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "restorePointCollectionName": autorest.Encode("path", restorePointCollectionName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "vmRestorePointName": autorest.Encode("path", VMRestorePointName), + } + + const APIVersion = "2020-12-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RevokeAccessSender sends the RevokeAccess request. The method will close the +// http.Response Body if it receives an error. +func (client DiskRestorePointClient) RevokeAccessSender(req *http.Request) (future DiskRestorePointRevokeAccessFuture, err error) { + var resp *http.Response + future.FutureAPI = &azure.Future{} + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// RevokeAccessResponder handles the response to the RevokeAccess request. The method always +// closes the http.Response Body. +func (client DiskRestorePointClient) RevokeAccessResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/services/compute/mgmt/2021-03-01/compute/models.go b/services/compute/mgmt/2021-03-01/compute/models.go index e5be0f2f6e62..811f51bb6f04 100644 --- a/services/compute/mgmt/2021-03-01/compute/models.go +++ b/services/compute/mgmt/2021-03-01/compute/models.go @@ -4289,6 +4289,49 @@ func (drp *DiskRestorePoint) UnmarshalJSON(body []byte) error { return nil } +// DiskRestorePointGrantAccessFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DiskRestorePointGrantAccessFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DiskRestorePointClient) (AccessURI, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DiskRestorePointGrantAccessFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DiskRestorePointGrantAccessFuture.Result. +func (future *DiskRestorePointGrantAccessFuture) result(client DiskRestorePointClient) (au AccessURI, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.DiskRestorePointGrantAccessFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + au.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("compute.DiskRestorePointGrantAccessFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if au.Response.Response, err = future.GetResult(sender); err == nil && au.Response.Response.StatusCode != http.StatusNoContent { + au, err = client.GrantAccessResponder(au.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.DiskRestorePointGrantAccessFuture", "Result", au.Response.Response, "Failure responding to request") + } + } + return +} + // DiskRestorePointList the List Disk Restore Points operation response. type DiskRestorePointList struct { autorest.Response `json:"-"` @@ -4485,6 +4528,43 @@ func (drpp DiskRestorePointProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// DiskRestorePointRevokeAccessFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DiskRestorePointRevokeAccessFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DiskRestorePointClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DiskRestorePointRevokeAccessFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DiskRestorePointRevokeAccessFuture.Result. +func (future *DiskRestorePointRevokeAccessFuture) result(client DiskRestorePointClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.DiskRestorePointRevokeAccessFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("compute.DiskRestorePointRevokeAccessFuture") + return + } + ar.Response = future.Response() + return +} + // DisksCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type DisksCreateOrUpdateFuture struct { @@ -8879,7 +8959,7 @@ type ManagedArtifact struct { // ManagedDiskParameters the parameters of a managed disk. type ManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS', 'StorageAccountTypesPremiumZRS', 'StorageAccountTypesStandardSSDZRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS', 'StorageAccountTypesPremiumZRS', 'StorageAccountTypesStandardSSDZRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk. DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` @@ -9323,7 +9403,7 @@ type OSProfile struct { WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` // 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). LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` - // Secrets - Specifies set of certificates that should be installed onto the virtual machine. + // Secrets - 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"` // AllowExtensionOperations - 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"` @@ -10393,10 +10473,10 @@ func (pr ProxyResource) MarshalJSON() ([]byte, error) { // PublicIPAddressSku describes the public IP Sku type PublicIPAddressSku struct { - // PublicIPAddressSkuName - Specify public IP sku name. Possible values include: 'PublicIPAddressSkuNameBasic', 'PublicIPAddressSkuNameStandard' - PublicIPAddressSkuName PublicIPAddressSkuName `json:"publicIPAddressSkuName,omitempty"` - // PublicIPAddressSkuTier - Specify public IP sku tier. Possible values include: 'PublicIPAddressSkuTierRegional', 'PublicIPAddressSkuTierGlobal' - PublicIPAddressSkuTier PublicIPAddressSkuTier `json:"publicIPAddressSkuTier,omitempty"` + // Name - Specify public IP sku name. Possible values include: 'PublicIPAddressSkuNameBasic', 'PublicIPAddressSkuNameStandard' + Name PublicIPAddressSkuName `json:"name,omitempty"` + // Tier - Specify public IP sku tier. Possible values include: 'PublicIPAddressSkuTierRegional', 'PublicIPAddressSkuTierGlobal' + Tier PublicIPAddressSkuTier `json:"tier,omitempty"` } // PurchasePlan used for establishing the purchase context of any 3rd Party artifact through MarketPlace. @@ -11016,17 +11096,8 @@ func NewResourceURIListPage(cur ResourceURIList, getNextPage func(context.Contex // RestorePoint restore Point details. type RestorePoint struct { - autorest.Response `json:"-"` - // SourceMetadata - READ-ONLY; Gets the details of the VM captured at the time of the restore point creation. - SourceMetadata *RestorePointSourceMetadata `json:"sourceMetadata,omitempty"` - // ProvisioningState - READ-ONLY; Gets the provisioning state of the restore point. - ProvisioningState *string `json:"provisioningState,omitempty"` - // ConsistencyMode - READ-ONLY; Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details. Possible values include: 'ConsistencyModeTypesCrashConsistent', 'ConsistencyModeTypesFileSystemConsistent', 'ConsistencyModeTypesApplicationConsistent' - ConsistencyMode ConsistencyModeTypes `json:"consistencyMode,omitempty"` - // ProvisioningDetails - READ-ONLY; Gets the provisioning details set by the server during Create restore point operation. - ProvisioningDetails *RestorePointProvisioningDetails `json:"provisioningDetails,omitempty"` - // ExcludeDisks - 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"` + autorest.Response `json:"-"` + *RestorePointProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name @@ -11038,12 +11109,63 @@ type RestorePoint struct { // MarshalJSON is the custom marshaler for RestorePoint. func (rp RestorePoint) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if rp.ExcludeDisks != nil { - objectMap["excludeDisks"] = rp.ExcludeDisks + if rp.RestorePointProperties != nil { + objectMap["properties"] = rp.RestorePointProperties } return json.Marshal(objectMap) } +// UnmarshalJSON is the custom unmarshaler for RestorePoint struct. +func (rp *RestorePoint) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var restorePointProperties RestorePointProperties + err = json.Unmarshal(*v, &restorePointProperties) + if err != nil { + return err + } + rp.RestorePointProperties = &restorePointProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rp.Type = &typeVar + } + } + } + + return nil +} + // RestorePointCollection create or update Restore Point collection parameters. type RestorePointCollection struct { autorest.Response `json:"-"` @@ -11431,16 +11553,30 @@ func (rpcu *RestorePointCollectionUpdate) UnmarshalJSON(body []byte) error { return nil } -// RestorePointProvisioningDetails restore Point Provisioning details. -type RestorePointProvisioningDetails struct { - // CreationTime - Gets the creation time of the restore point. - CreationTime *date.Time `json:"creationTime,omitempty"` - // TotalUsedSizeInBytes - Gets the total size of the data in all the disks which are part of the restore point. - TotalUsedSizeInBytes *int64 `json:"totalUsedSizeInBytes,omitempty"` - // StatusCode - Gets the status of the Create restore point operation. - StatusCode *int32 `json:"statusCode,omitempty"` - // StatusMessage - Gets the status message of the Create restore point operation. - StatusMessage *string `json:"statusMessage,omitempty"` +// RestorePointProperties the restore point properties. +type RestorePointProperties struct { + // ExcludeDisks - 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"` + // SourceMetadata - READ-ONLY; Gets the details of the VM captured at the time of the restore point creation. + SourceMetadata *RestorePointSourceMetadata `json:"sourceMetadata,omitempty"` + // ProvisioningState - READ-ONLY; Gets the provisioning state of the restore point. + ProvisioningState *string `json:"provisioningState,omitempty"` + // ConsistencyMode - READ-ONLY; Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details. Possible values include: 'ConsistencyModeTypesCrashConsistent', 'ConsistencyModeTypesFileSystemConsistent', 'ConsistencyModeTypesApplicationConsistent' + ConsistencyMode ConsistencyModeTypes `json:"consistencyMode,omitempty"` + // TimeCreated - Gets the creation time of the restore point. + TimeCreated *date.Time `json:"timeCreated,omitempty"` +} + +// MarshalJSON is the custom marshaler for RestorePointProperties. +func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rpp.ExcludeDisks != nil { + objectMap["excludeDisks"] = rpp.ExcludeDisks + } + if rpp.TimeCreated != nil { + objectMap["timeCreated"] = rpp.TimeCreated + } + return json.Marshal(objectMap) } // RestorePointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running @@ -11541,6 +11677,8 @@ type RestorePointSourceMetadata struct { VMID *string `json:"vmId,omitempty"` // SecurityProfile - Gets the security profile. SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` + // Location - Location of the VM from which the restore point was created. + Location *string `json:"location,omitempty"` } // RestorePointSourceVMDataDisk describes a data disk. @@ -14492,7 +14630,7 @@ type UserArtifactSource struct { // VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate // should reside on the VM. type VaultCertificate struct { - // CertificateURL - 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":""
} + // CertificateURL - 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"` // CertificateStore - 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 <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted. CertificateStore *string `json:"certificateStore,omitempty"` @@ -18368,7 +18506,7 @@ type VirtualMachineScaleSetOSProfile struct { WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` // 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). LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` - // Secrets - Specifies set of certificates that should be installed onto the virtual machines in the scale set. + // Secrets - 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"` } @@ -21815,6 +21953,6 @@ type WinRMConfiguration struct { type WinRMListener struct { // Protocol - Specifies the protocol of WinRM listener.

Possible values are:
**http**

**https**. Possible values include: 'ProtocolTypesHTTP', 'ProtocolTypesHTTPS' Protocol ProtocolTypes `json:"protocol,omitempty"` - // CertificateURL - 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":""
} + // CertificateURL - 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"` } diff --git a/services/compute/mgmt/2021-03-01/compute/restorepoints.go b/services/compute/mgmt/2021-03-01/compute/restorepoints.go index 113cdc7cf074..8717a6966a21 100644 --- a/services/compute/mgmt/2021-03-01/compute/restorepoints.go +++ b/services/compute/mgmt/2021-03-01/compute/restorepoints.go @@ -50,18 +50,20 @@ func (client RestorePointsClient) Create(ctx context.Context, resourceGroupName } if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.SourceMetadata", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SecretURL", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil}, - }}, - {Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.KeyURL", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil}, + Constraints: []validation.Constraint{{Target: "parameters.RestorePointProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.RestorePointProperties.SourceMetadata", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile.OsDisk", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SecretURL", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil}, }}, + {Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.KeyURL", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.RestorePointProperties.SourceMetadata.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}, }}, }}, }}, @@ -98,10 +100,6 @@ func (client RestorePointsClient) CreatePreparer(ctx context.Context, resourceGr "api-version": APIVersion, } - parameters.SourceMetadata = nil - parameters.ProvisioningState = nil - parameters.ConsistencyMode = "" - parameters.ProvisioningDetails = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/services/compute/mgmt/2021-03-01/compute/virtualmachines.go b/services/compute/mgmt/2021-03-01/compute/virtualmachines.go index 23b3744fbea1..7d42d885b5de 100644 --- a/services/compute/mgmt/2021-03-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2021-03-01/compute/virtualmachines.go @@ -468,7 +468,7 @@ func (client VirtualMachinesClient) DeallocateResponder(resp *http.Response) (re // Parameters: // resourceGroupName - the name of the resource group. // VMName - the name of the virtual machine. -// forceDeletion - optional parameter to force delete virtual machines.(Feature in Preview) +// forceDeletion - optional parameter to force delete virtual machines. func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, VMName string, forceDeletion *bool) (result VirtualMachinesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Delete") diff --git a/services/compute/mgmt/2021-04-01/compute/CHANGELOG.md b/services/compute/mgmt/2021-04-01/compute/CHANGELOG.md index 52911e4cc5e4..99129c806373 100644 --- a/services/compute/mgmt/2021-04-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2021-04-01/compute/CHANGELOG.md @@ -1,2 +1,53 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Structs + +1. RestorePointProvisioningDetails + +#### Removed Struct Fields + +1. RestorePointProperties.ProvisioningDetails + +## Additive Changes + +### New Constants + +1. DiskCreateOption.DiskCreateOptionCopyStart +1. DiskState.DiskStateActiveSASFrozen +1. DiskState.DiskStateFrozen +1. PublicNetworkAccess.PublicNetworkAccessDisabled +1. PublicNetworkAccess.PublicNetworkAccessEnabled + +### New Funcs + +1. PossiblePublicNetworkAccessValues() []PublicNetworkAccess + +### Struct Changes + +#### New Structs + +1. SupportedCapabilities + +#### New Struct Fields + +1. DiskAccess.ExtendedLocation +1. DiskProperties.CompletionPercent +1. DiskProperties.PublicNetworkAccess +1. DiskProperties.SupportedCapabilities +1. DiskRestorePointProperties.CompletionPercent +1. DiskRestorePointProperties.DiskAccessID +1. DiskRestorePointProperties.NetworkAccessPolicy +1. DiskRestorePointProperties.PublicNetworkAccess +1. DiskRestorePointProperties.SupportedCapabilities +1. DiskUpdateProperties.PublicNetworkAccess +1. DiskUpdateProperties.SupportedCapabilities +1. EncryptionSetProperties.AutoKeyRotationError +1. RestorePointProperties.TimeCreated +1. SnapshotProperties.CompletionPercent +1. SnapshotProperties.PublicNetworkAccess +1. SnapshotProperties.SupportedCapabilities +1. SnapshotUpdateProperties.PublicNetworkAccess diff --git a/services/compute/mgmt/2021-04-01/compute/_meta.json b/services/compute/mgmt/2021-04-01/compute/_meta.json index 633716733312..53f51e2d6419 100644 --- a/services/compute/mgmt/2021-04-01/compute/_meta.json +++ b/services/compute/mgmt/2021-04-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "e9a6009d8f1a98656cf5b6f1fe5809251bfa0085", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2021-04-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2021-04-01/compute/diskaccesses.go b/services/compute/mgmt/2021-04-01/compute/diskaccesses.go index 45105cae000e..618db0d550a5 100644 --- a/services/compute/mgmt/2021-04-01/compute/diskaccesses.go +++ b/services/compute/mgmt/2021-04-01/compute/diskaccesses.go @@ -35,8 +35,8 @@ func NewDiskAccessesClientWithBaseURI(baseURI string, subscriptionID string) Dis // Parameters: // 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. +// 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. func (client DiskAccessesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccess) (result DiskAccessesCreateOrUpdateFuture, err error) { if tracing.IsEnabled() { @@ -72,7 +72,7 @@ func (client DiskAccessesClient) CreateOrUpdatePreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -119,8 +119,8 @@ func (client DiskAccessesClient) CreateOrUpdateResponder(resp *http.Response) (r // Parameters: // 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. +// 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. func (client DiskAccessesClient) Delete(ctx context.Context, resourceGroupName string, diskAccessName string) (result DiskAccessesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskAccessesClient.Delete") @@ -155,7 +155,7 @@ func (client DiskAccessesClient) DeletePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -199,9 +199,9 @@ func (client DiskAccessesClient) DeleteResponder(resp *http.Response) (result au // Parameters: // 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 +// 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. func (client DiskAccessesClient) DeleteAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string) (result DiskAccessesDeleteAPrivateEndpointConnectionFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskAccessesClient.DeleteAPrivateEndpointConnection") @@ -237,7 +237,7 @@ func (client DiskAccessesClient) DeleteAPrivateEndpointConnectionPreparer(ctx co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -281,8 +281,8 @@ func (client DiskAccessesClient) DeleteAPrivateEndpointConnectionResponder(resp // Parameters: // 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. +// 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. func (client DiskAccessesClient) Get(ctx context.Context, resourceGroupName string, diskAccessName string) (result DiskAccess, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskAccessesClient.Get") @@ -324,7 +324,7 @@ func (client DiskAccessesClient) GetPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -359,9 +359,9 @@ func (client DiskAccessesClient) GetResponder(resp *http.Response) (result DiskA // Parameters: // 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 +// 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. func (client DiskAccessesClient) GetAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskAccessesClient.GetAPrivateEndpointConnection") @@ -404,7 +404,7 @@ func (client DiskAccessesClient) GetAPrivateEndpointConnectionPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -439,8 +439,8 @@ func (client DiskAccessesClient) GetAPrivateEndpointConnectionResponder(resp *ht // Parameters: // 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. +// 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. func (client DiskAccessesClient) GetPrivateLinkResources(ctx context.Context, resourceGroupName string, diskAccessName string) (result PrivateLinkResourceListResult, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskAccessesClient.GetPrivateLinkResources") @@ -482,7 +482,7 @@ func (client DiskAccessesClient) GetPrivateLinkResourcesPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -558,7 +558,7 @@ func (client DiskAccessesClient) ListPreparer(ctx context.Context) (*http.Reques "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -674,7 +674,7 @@ func (client DiskAccessesClient) ListByResourceGroupPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -746,8 +746,8 @@ func (client DiskAccessesClient) ListByResourceGroupComplete(ctx context.Context // Parameters: // 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. +// 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. func (client DiskAccessesClient) ListPrivateEndpointConnections(ctx context.Context, resourceGroupName string, diskAccessName string) (result PrivateEndpointConnectionListResultPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskAccessesClient.ListPrivateEndpointConnections") @@ -794,7 +794,7 @@ func (client DiskAccessesClient) ListPrivateEndpointConnectionsPreparer(ctx cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -866,8 +866,8 @@ func (client DiskAccessesClient) ListPrivateEndpointConnectionsComplete(ctx cont // Parameters: // 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. +// 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. func (client DiskAccessesClient) Update(ctx context.Context, resourceGroupName string, diskAccessName string, diskAccess DiskAccessUpdate) (result DiskAccessesUpdateFuture, err error) { if tracing.IsEnabled() { @@ -903,7 +903,7 @@ func (client DiskAccessesClient) UpdatePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -951,9 +951,9 @@ func (client DiskAccessesClient) UpdateResponder(resp *http.Response) (result Di // Parameters: // 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 +// 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. func (client DiskAccessesClient) UpdateAPrivateEndpointConnection(ctx context.Context, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection) (result DiskAccessesUpdateAPrivateEndpointConnectionFuture, err error) { @@ -998,7 +998,7 @@ func (client DiskAccessesClient) UpdateAPrivateEndpointConnectionPreparer(ctx co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-04-01/compute/diskencryptionsets.go b/services/compute/mgmt/2021-04-01/compute/diskencryptionsets.go index 37f51fe19198..af979a6e8909 100644 --- a/services/compute/mgmt/2021-04-01/compute/diskencryptionsets.go +++ b/services/compute/mgmt/2021-04-01/compute/diskencryptionsets.go @@ -36,7 +36,7 @@ func NewDiskEncryptionSetsClientWithBaseURI(baseURI string, subscriptionID strin // Parameters: // 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 +// 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. @@ -83,7 +83,7 @@ func (client DiskEncryptionSetsClient) CreateOrUpdatePreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -130,7 +130,7 @@ func (client DiskEncryptionSetsClient) CreateOrUpdateResponder(resp *http.Respon // Parameters: // 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 +// 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. func (client DiskEncryptionSetsClient) Delete(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (result DiskEncryptionSetsDeleteFuture, err error) { if tracing.IsEnabled() { @@ -166,7 +166,7 @@ func (client DiskEncryptionSetsClient) DeletePreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -210,7 +210,7 @@ func (client DiskEncryptionSetsClient) DeleteResponder(resp *http.Response) (res // Parameters: // 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 +// 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. func (client DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (result DiskEncryptionSet, err error) { if tracing.IsEnabled() { @@ -253,7 +253,7 @@ func (client DiskEncryptionSetsClient) GetPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -329,7 +329,7 @@ func (client DiskEncryptionSetsClient) ListPreparer(ctx context.Context) (*http. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -401,7 +401,7 @@ func (client DiskEncryptionSetsClient) ListComplete(ctx context.Context) (result // Parameters: // 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 +// 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. func (client DiskEncryptionSetsClient) ListAssociatedResources(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (result ResourceURIListPage, err error) { if tracing.IsEnabled() { @@ -449,7 +449,7 @@ func (client DiskEncryptionSetsClient) ListAssociatedResourcesPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -565,7 +565,7 @@ func (client DiskEncryptionSetsClient) ListByResourceGroupPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -637,7 +637,7 @@ func (client DiskEncryptionSetsClient) ListByResourceGroupComplete(ctx context.C // Parameters: // 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 +// 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. @@ -675,7 +675,7 @@ func (client DiskEncryptionSetsClient) UpdatePreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-04-01/compute/diskrestorepoint.go b/services/compute/mgmt/2021-04-01/compute/diskrestorepoint.go index 20b31a6d4748..d1fe4a66bc2e 100644 --- a/services/compute/mgmt/2021-04-01/compute/diskrestorepoint.go +++ b/services/compute/mgmt/2021-04-01/compute/diskrestorepoint.go @@ -36,11 +36,8 @@ func NewDiskRestorePointClientWithBaseURI(baseURI string, subscriptionID string) // Parameters: // resourceGroupName - the name of the resource group. // restorePointCollectionName - the name of the restore point collection that the disk restore point belongs. -// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. -// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. Supported -// characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. -// diskRestorePointName - the name of the disk restore point created. Supported characters for the name are -// a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. +// diskRestorePointName - the name of the disk restore point created. func (client DiskRestorePointClient) Get(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string) (result DiskRestorePoint, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskRestorePointClient.Get") @@ -84,7 +81,7 @@ func (client DiskRestorePointClient) GetPreparer(ctx context.Context, resourceGr "vmRestorePointName": autorest.Encode("path", VMRestorePointName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -119,11 +116,8 @@ func (client DiskRestorePointClient) GetResponder(resp *http.Response) (result D // Parameters: // resourceGroupName - the name of the resource group. // restorePointCollectionName - the name of the restore point collection that the disk restore point belongs. -// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. -// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. Supported -// characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. -// diskRestorePointName - the name of the disk restore point created. Supported characters for the name are -// a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +// 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. func (client DiskRestorePointClient) GrantAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string, grantAccessData GrantAccessData) (result DiskRestorePointGrantAccessFuture, err error) { if tracing.IsEnabled() { @@ -167,7 +161,7 @@ func (client DiskRestorePointClient) GrantAccessPreparer(ctx context.Context, re "vmRestorePointName": autorest.Encode("path", VMRestorePointName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -214,9 +208,7 @@ func (client DiskRestorePointClient) GrantAccessResponder(resp *http.Response) ( // Parameters: // resourceGroupName - the name of the resource group. // restorePointCollectionName - the name of the restore point collection that the disk restore point belongs. -// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. -// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. Supported -// characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. func (client DiskRestorePointClient) ListByRestorePoint(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string) (result DiskRestorePointListPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskRestorePointClient.ListByRestorePoint") @@ -264,7 +256,7 @@ func (client DiskRestorePointClient) ListByRestorePointPreparer(ctx context.Cont "vmRestorePointName": autorest.Encode("path", VMRestorePointName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -336,11 +328,8 @@ func (client DiskRestorePointClient) ListByRestorePointComplete(ctx context.Cont // Parameters: // resourceGroupName - the name of the resource group. // restorePointCollectionName - the name of the restore point collection that the disk restore point belongs. -// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. -// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. Supported -// characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. -// diskRestorePointName - the name of the disk restore point created. Supported characters for the name are -// a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. +// VMRestorePointName - the name of the vm restore point that the disk disk restore point belongs. +// diskRestorePointName - the name of the disk restore point created. func (client DiskRestorePointClient) RevokeAccess(ctx context.Context, resourceGroupName string, restorePointCollectionName string, VMRestorePointName string, diskRestorePointName string) (result DiskRestorePointRevokeAccessFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiskRestorePointClient.RevokeAccess") @@ -377,7 +366,7 @@ func (client DiskRestorePointClient) RevokeAccessPreparer(ctx context.Context, r "vmRestorePointName": autorest.Encode("path", VMRestorePointName), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-04-01/compute/disks.go b/services/compute/mgmt/2021-04-01/compute/disks.go index 1080f7b8558e..4aec8ae542ff 100644 --- a/services/compute/mgmt/2021-04-01/compute/disks.go +++ b/services/compute/mgmt/2021-04-01/compute/disks.go @@ -35,7 +35,7 @@ func NewDisksClientWithBaseURI(baseURI string, subscriptionID string) DisksClien // Parameters: // 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 +// 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. func (client DisksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskName string, disk Disk) (result DisksCreateOrUpdateFuture, err error) { @@ -92,7 +92,7 @@ func (client DisksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -141,7 +141,7 @@ func (client DisksClient) CreateOrUpdateResponder(resp *http.Response) (result D // Parameters: // 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 +// created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 // characters. func (client DisksClient) Delete(ctx context.Context, resourceGroupName string, diskName string) (result DisksDeleteFuture, err error) { if tracing.IsEnabled() { @@ -177,7 +177,7 @@ func (client DisksClient) DeletePreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -221,7 +221,7 @@ func (client DisksClient) DeleteResponder(resp *http.Response) (result autorest. // Parameters: // 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 +// created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 // characters. func (client DisksClient) Get(ctx context.Context, resourceGroupName string, diskName string) (result Disk, err error) { if tracing.IsEnabled() { @@ -264,7 +264,7 @@ func (client DisksClient) GetPreparer(ctx context.Context, resourceGroupName str "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -299,7 +299,7 @@ func (client DisksClient) GetResponder(resp *http.Response) (result Disk, err er // Parameters: // 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 +// 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. func (client DisksClient) GrantAccess(ctx context.Context, resourceGroupName string, diskName string, grantAccessData GrantAccessData) (result DisksGrantAccessFuture, err error) { @@ -342,7 +342,7 @@ func (client DisksClient) GrantAccessPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -430,7 +430,7 @@ func (client DisksClient) ListPreparer(ctx context.Context) (*http.Request, erro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -546,7 +546,7 @@ func (client DisksClient) ListByResourceGroupPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -618,7 +618,7 @@ func (client DisksClient) ListByResourceGroupComplete(ctx context.Context, resou // Parameters: // 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 +// created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 // characters. func (client DisksClient) RevokeAccess(ctx context.Context, resourceGroupName string, diskName string) (result DisksRevokeAccessFuture, err error) { if tracing.IsEnabled() { @@ -654,7 +654,7 @@ func (client DisksClient) RevokeAccessPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -698,7 +698,7 @@ func (client DisksClient) RevokeAccessResponder(resp *http.Response) (result aut // Parameters: // 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 +// 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. func (client DisksClient) Update(ctx context.Context, resourceGroupName string, diskName string, disk DiskUpdate) (result DisksUpdateFuture, err error) { @@ -735,7 +735,7 @@ func (client DisksClient) UpdatePreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-04-01/compute/enums.go b/services/compute/mgmt/2021-04-01/compute/enums.go index c0e60607c280..e69d7b5b96b0 100644 --- a/services/compute/mgmt/2021-04-01/compute/enums.go +++ b/services/compute/mgmt/2021-04-01/compute/enums.go @@ -217,6 +217,9 @@ const ( // 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 @@ -234,7 +237,7 @@ const ( // PossibleDiskCreateOptionValues returns an array of possible values for the DiskCreateOption const type. func PossibleDiskCreateOptionValues() []DiskCreateOption { - return []DiskCreateOption{DiskCreateOptionAttach, DiskCreateOptionCopy, DiskCreateOptionEmpty, DiskCreateOptionFromImage, DiskCreateOptionImport, DiskCreateOptionRestore, DiskCreateOptionUpload} + return []DiskCreateOption{DiskCreateOptionAttach, DiskCreateOptionCopy, DiskCreateOptionCopyStart, DiskCreateOptionEmpty, DiskCreateOptionFromImage, DiskCreateOptionImport, DiskCreateOptionRestore, DiskCreateOptionUpload} } // DiskCreateOptionTypes enumerates the values for disk create option types. @@ -335,14 +338,19 @@ 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 mounted to a running VM. + // 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 mounted to a stopped-deallocated VM + // 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" @@ -350,7 +358,7 @@ const ( // PossibleDiskStateValues returns an array of possible values for the DiskState const type. func PossibleDiskStateValues() []DiskState { - return []DiskState{DiskStateActiveSAS, DiskStateActiveUpload, DiskStateAttached, DiskStateReadyToUpload, DiskStateReserved, DiskStateUnattached} + return []DiskState{DiskStateActiveSAS, DiskStateActiveSASFrozen, DiskStateActiveUpload, DiskStateAttached, DiskStateFrozen, DiskStateReadyToUpload, DiskStateReserved, DiskStateUnattached} } // DiskStorageAccountTypes enumerates the values for disk storage account types. @@ -1071,6 +1079,25 @@ func PossiblePublicIPAllocationMethodValues() []PublicIPAllocationMethod { return []PublicIPAllocationMethod{PublicIPAllocationMethodDynamic, PublicIPAllocationMethodStatic} } +// PublicNetworkAccess enumerates the values for public network access. +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 an array of possible values for the PublicNetworkAccess const type. +func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { + return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled} +} + // ReplicationState enumerates the values for replication state. type ReplicationState string diff --git a/services/compute/mgmt/2021-04-01/compute/models.go b/services/compute/mgmt/2021-04-01/compute/models.go index cab6563679c1..90388f6dfe8d 100644 --- a/services/compute/mgmt/2021-04-01/compute/models.go +++ b/services/compute/mgmt/2021-04-01/compute/models.go @@ -2601,7 +2601,7 @@ type CloudServiceVaultSecretGroup struct { // CreationData data used when creating a disk. type CreationData struct { - // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'DiskCreateOptionEmpty', 'DiskCreateOptionAttach', 'DiskCreateOptionFromImage', 'DiskCreateOptionImport', 'DiskCreateOptionCopy', 'DiskCreateOptionRestore', 'DiskCreateOptionUpload' + // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'DiskCreateOptionEmpty', 'DiskCreateOptionAttach', 'DiskCreateOptionFromImage', 'DiskCreateOptionImport', 'DiskCreateOptionCopy', 'DiskCreateOptionRestore', 'DiskCreateOptionUpload', 'DiskCreateOptionCopyStart' CreateOption DiskCreateOption `json:"createOption,omitempty"` // StorageAccountID - 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"` @@ -3858,6 +3858,8 @@ func (d *Disk) UnmarshalJSON(body []byte) error { type DiskAccess struct { autorest.Response `json:"-"` *DiskAccessProperties `json:"properties,omitempty"` + // ExtendedLocation - The extended location where the disk access will be created. Extended location cannot be changed. + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name @@ -3876,6 +3878,9 @@ func (da DiskAccess) MarshalJSON() ([]byte, error) { if da.DiskAccessProperties != nil { objectMap["properties"] = da.DiskAccessProperties } + if da.ExtendedLocation != nil { + objectMap["extendedLocation"] = da.ExtendedLocation + } if da.Location != nil { objectMap["location"] = da.Location } @@ -3903,6 +3908,15 @@ func (da *DiskAccess) UnmarshalJSON(body []byte) error { } da.DiskAccessProperties = &diskAccessProperties } + case "extendedLocation": + if v != nil { + var extendedLocation ExtendedLocation + err = json.Unmarshal(*v, &extendedLocation) + if err != nil { + return err + } + da.ExtendedLocation = &extendedLocation + } case "id": if v != nil { var ID string @@ -5019,6 +5033,8 @@ type DiskProperties struct { HyperVGeneration HyperVGeneration `json:"hyperVGeneration,omitempty"` // PurchasePlan - Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer} PurchasePlan *PurchasePlan `json:"purchasePlan,omitempty"` + // SupportedCapabilities - List of supported capabilities for the image from which the OS disk was created. + SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` // CreationData - Disk source information. CreationData information cannot be changed after the disk has been created. CreationData *CreationData `json:"creationData,omitempty"` // DiskSizeGB - 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. @@ -5039,7 +5055,7 @@ type DiskProperties struct { DiskIOPSReadOnly *int64 `json:"diskIOPSReadOnly,omitempty"` // DiskMBpsReadOnly - 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"` - // DiskState - The state of the disk. Possible values include: 'DiskStateUnattached', 'DiskStateAttached', 'DiskStateReserved', 'DiskStateActiveSAS', 'DiskStateReadyToUpload', 'DiskStateActiveUpload' + // DiskState - The state of the disk. Possible values include: 'DiskStateUnattached', 'DiskStateAttached', 'DiskStateReserved', 'DiskStateFrozen', 'DiskStateActiveSAS', 'DiskStateActiveSASFrozen', 'DiskStateReadyToUpload', 'DiskStateActiveUpload' DiskState DiskState `json:"diskState,omitempty"` // Encryption - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. Encryption *Encryption `json:"encryption,omitempty"` @@ -5061,6 +5077,10 @@ type DiskProperties struct { SupportsHibernation *bool `json:"supportsHibernation,omitempty"` // SecurityProfile - Contains the security related information for the resource. SecurityProfile *DiskSecurityProfile `json:"securityProfile,omitempty"` + // CompletionPercent - Percentage complete for the background copy when a resource is created via the CopyStart operation. + CompletionPercent *float64 `json:"completionPercent,omitempty"` + // PublicNetworkAccess - Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` } // MarshalJSON is the custom marshaler for DiskProperties. @@ -5075,6 +5095,9 @@ func (dp DiskProperties) MarshalJSON() ([]byte, error) { if dp.PurchasePlan != nil { objectMap["purchasePlan"] = dp.PurchasePlan } + if dp.SupportedCapabilities != nil { + objectMap["supportedCapabilities"] = dp.SupportedCapabilities + } if dp.CreationData != nil { objectMap["creationData"] = dp.CreationData } @@ -5123,6 +5146,12 @@ func (dp DiskProperties) MarshalJSON() ([]byte, error) { if dp.SecurityProfile != nil { objectMap["securityProfile"] = dp.SecurityProfile } + if dp.CompletionPercent != nil { + objectMap["completionPercent"] = dp.CompletionPercent + } + if dp.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = dp.PublicNetworkAccess + } return json.Marshal(objectMap) } @@ -5412,6 +5441,8 @@ type DiskRestorePointProperties struct { HyperVGeneration HyperVGeneration `json:"hyperVGeneration,omitempty"` // PurchasePlan - Purchase plan information for the the image from which the OS disk was created. PurchasePlan *PurchasePlan `json:"purchasePlan,omitempty"` + // SupportedCapabilities - List of supported capabilities (like accelerated networking) for the image from which the OS disk was created. + SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` // FamilyID - READ-ONLY; id of the backing snapshot's MIS family FamilyID *string `json:"familyId,omitempty"` // SourceUniqueID - READ-ONLY; unique incarnation id of the source disk @@ -5420,6 +5451,14 @@ type DiskRestorePointProperties struct { Encryption *Encryption `json:"encryption,omitempty"` // SupportsHibernation - Indicates the OS on a disk supports hibernation. SupportsHibernation *bool `json:"supportsHibernation,omitempty"` + // NetworkAccessPolicy - Possible values include: 'NetworkAccessPolicyAllowAll', 'NetworkAccessPolicyAllowPrivate', 'NetworkAccessPolicyDenyAll' + NetworkAccessPolicy NetworkAccessPolicy `json:"networkAccessPolicy,omitempty"` + // PublicNetworkAccess - Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + // DiskAccessID - ARM id of the DiskAccess resource for using private endpoints on disks. + DiskAccessID *string `json:"diskAccessId,omitempty"` + // CompletionPercent - Percentage complete for the background copy when a resource is created via the CopyStart operation. + CompletionPercent *float64 `json:"completionPercent,omitempty"` } // MarshalJSON is the custom marshaler for DiskRestorePointProperties. @@ -5431,9 +5470,24 @@ func (drpp DiskRestorePointProperties) MarshalJSON() ([]byte, error) { if drpp.PurchasePlan != nil { objectMap["purchasePlan"] = drpp.PurchasePlan } + if drpp.SupportedCapabilities != nil { + objectMap["supportedCapabilities"] = drpp.SupportedCapabilities + } if drpp.SupportsHibernation != nil { objectMap["supportsHibernation"] = drpp.SupportsHibernation } + if drpp.NetworkAccessPolicy != "" { + objectMap["networkAccessPolicy"] = drpp.NetworkAccessPolicy + } + if drpp.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = drpp.PublicNetworkAccess + } + if drpp.DiskAccessID != nil { + objectMap["diskAccessId"] = drpp.DiskAccessID + } + if drpp.CompletionPercent != nil { + objectMap["completionPercent"] = drpp.CompletionPercent + } return json.Marshal(objectMap) } @@ -5794,10 +5848,14 @@ type DiskUpdateProperties struct { BurstingEnabled *bool `json:"burstingEnabled,omitempty"` // PurchasePlan - Purchase plan information to be added on the OS disk PurchasePlan *PurchasePlan `json:"purchasePlan,omitempty"` + // SupportedCapabilities - List of supported capabilities (like accelerated networking) to be added on the OS disk. + SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` // PropertyUpdatesInProgress - READ-ONLY; Properties of the disk for which update is pending. PropertyUpdatesInProgress *PropertyUpdatesInProgress `json:"propertyUpdatesInProgress,omitempty"` // SupportsHibernation - Indicates the OS on a disk supports hibernation. SupportsHibernation *bool `json:"supportsHibernation,omitempty"` + // PublicNetworkAccess - Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` } // MarshalJSON is the custom marshaler for DiskUpdateProperties. @@ -5845,9 +5903,15 @@ func (dup DiskUpdateProperties) MarshalJSON() ([]byte, error) { if dup.PurchasePlan != nil { objectMap["purchasePlan"] = dup.PurchasePlan } + if dup.SupportedCapabilities != nil { + objectMap["supportedCapabilities"] = dup.SupportedCapabilities + } if dup.SupportsHibernation != nil { objectMap["supportsHibernation"] = dup.SupportsHibernation } + if dup.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = dup.PublicNetworkAccess + } return json.Marshal(objectMap) } @@ -5901,6 +5965,8 @@ type EncryptionSetProperties struct { RotationToLatestKeyVersionEnabled *bool `json:"rotationToLatestKeyVersionEnabled,omitempty"` // LastKeyRotationTimestamp - READ-ONLY; The time when the active key of this disk encryption set was updated. LastKeyRotationTimestamp *date.Time `json:"lastKeyRotationTimestamp,omitempty"` + // AutoKeyRotationError - 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"` } // MarshalJSON is the custom marshaler for EncryptionSetProperties. @@ -10312,7 +10378,7 @@ type OSProfile struct { WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` // 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). LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` - // Secrets - Specifies set of certificates that should be installed onto the virtual machine. + // Secrets - 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"` // AllowExtensionOperations - 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"` @@ -12472,8 +12538,8 @@ type RestorePointProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` // ConsistencyMode - READ-ONLY; Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details. Possible values include: 'ConsistencyModeTypesCrashConsistent', 'ConsistencyModeTypesFileSystemConsistent', 'ConsistencyModeTypesApplicationConsistent' ConsistencyMode ConsistencyModeTypes `json:"consistencyMode,omitempty"` - // ProvisioningDetails - READ-ONLY; Gets the provisioning details set by the server during Create restore point operation. - ProvisioningDetails *RestorePointProvisioningDetails `json:"provisioningDetails,omitempty"` + // TimeCreated - Gets the creation time of the restore point. + TimeCreated *date.Time `json:"timeCreated,omitempty"` } // MarshalJSON is the custom marshaler for RestorePointProperties. @@ -12482,21 +12548,12 @@ func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { if rpp.ExcludeDisks != nil { objectMap["excludeDisks"] = rpp.ExcludeDisks } + if rpp.TimeCreated != nil { + objectMap["timeCreated"] = rpp.TimeCreated + } return json.Marshal(objectMap) } -// RestorePointProvisioningDetails restore Point Provisioning details. -type RestorePointProvisioningDetails struct { - // CreationTime - Gets the creation time of the restore point. - CreationTime *date.Time `json:"creationTime,omitempty"` - // TotalUsedSizeInBytes - Gets the total size of the data in all the disks which are part of the restore point. - TotalUsedSizeInBytes *int64 `json:"totalUsedSizeInBytes,omitempty"` - // StatusCode - Gets the status of the Create restore point operation. - StatusCode *int32 `json:"statusCode,omitempty"` - // StatusMessage - Gets the status message of the Create restore point operation. - StatusMessage *string `json:"statusMessage,omitempty"` -} - // RestorePointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RestorePointsCreateFuture struct { @@ -14410,13 +14467,15 @@ type SnapshotProperties struct { HyperVGeneration HyperVGeneration `json:"hyperVGeneration,omitempty"` // PurchasePlan - Purchase plan information for the image from which the source disk for the snapshot was originally created. PurchasePlan *PurchasePlan `json:"purchasePlan,omitempty"` + // SupportedCapabilities - List of supported capabilities (like Accelerated Networking) for the image from which the source disk from the snapshot was originally created. + SupportedCapabilities *SupportedCapabilities `json:"supportedCapabilities,omitempty"` // CreationData - Disk source information. CreationData information cannot be changed after the disk has been created. CreationData *CreationData `json:"creationData,omitempty"` // DiskSizeGB - 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"` // DiskSizeBytes - READ-ONLY; The size of the disk in bytes. This field is read only. DiskSizeBytes *int64 `json:"diskSizeBytes,omitempty"` - // DiskState - The state of the snapshot. Possible values include: 'DiskStateUnattached', 'DiskStateAttached', 'DiskStateReserved', 'DiskStateActiveSAS', 'DiskStateReadyToUpload', 'DiskStateActiveUpload' + // DiskState - The state of the snapshot. Possible values include: 'DiskStateUnattached', 'DiskStateAttached', 'DiskStateReserved', 'DiskStateFrozen', 'DiskStateActiveSAS', 'DiskStateActiveSASFrozen', 'DiskStateReadyToUpload', 'DiskStateActiveUpload' DiskState DiskState `json:"diskState,omitempty"` // UniqueID - READ-ONLY; Unique Guid identifying the resource. UniqueID *string `json:"uniqueId,omitempty"` @@ -14434,6 +14493,10 @@ type SnapshotProperties struct { DiskAccessID *string `json:"diskAccessId,omitempty"` // SupportsHibernation - Indicates the OS on a snapshot supports hibernation. SupportsHibernation *bool `json:"supportsHibernation,omitempty"` + // PublicNetworkAccess - Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + // CompletionPercent - Percentage complete for the background copy when a resource is created via the CopyStart operation. + CompletionPercent *float64 `json:"completionPercent,omitempty"` } // MarshalJSON is the custom marshaler for SnapshotProperties. @@ -14448,6 +14511,9 @@ func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { if sp.PurchasePlan != nil { objectMap["purchasePlan"] = sp.PurchasePlan } + if sp.SupportedCapabilities != nil { + objectMap["supportedCapabilities"] = sp.SupportedCapabilities + } if sp.CreationData != nil { objectMap["creationData"] = sp.CreationData } @@ -14475,6 +14541,12 @@ func (sp SnapshotProperties) MarshalJSON() ([]byte, error) { if sp.SupportsHibernation != nil { objectMap["supportsHibernation"] = sp.SupportsHibernation } + if sp.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = sp.PublicNetworkAccess + } + if sp.CompletionPercent != nil { + objectMap["completionPercent"] = sp.CompletionPercent + } return json.Marshal(objectMap) } @@ -14781,6 +14853,8 @@ type SnapshotUpdateProperties struct { DiskAccessID *string `json:"diskAccessId,omitempty"` // SupportsHibernation - Indicates the OS on a snapshot supports hibernation. SupportsHibernation *bool `json:"supportsHibernation,omitempty"` + // PublicNetworkAccess - Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` } // SourceVault the vault id is an Azure Resource Manager Resource id in the form @@ -15196,6 +15270,13 @@ type SubResourceWithColocationStatus struct { ID *string `json:"id,omitempty"` } +// SupportedCapabilities list of supported capabilities (like accelerated networking) persisted on the disk +// resource for VM use. +type SupportedCapabilities struct { + // AcceleratedNetwork - True if the image from which the OS disk is created supports accelerated networking. + AcceleratedNetwork *bool `json:"acceleratedNetwork,omitempty"` +} + // TargetRegion describes the target region information. type TargetRegion struct { // Name - The name of the region. @@ -15558,7 +15639,7 @@ type UserArtifactSource struct { // VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate // should reside on the VM. type VaultCertificate struct { - // CertificateURL - 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":""
} + // CertificateURL - 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"` // CertificateStore - 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 <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted. CertificateStore *string `json:"certificateStore,omitempty"` @@ -19439,7 +19520,7 @@ type VirtualMachineScaleSetOSProfile struct { WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` // 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). LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` - // Secrets - Specifies set of certificates that should be installed onto the virtual machines in the scale set. + // Secrets - 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"` } @@ -19461,7 +19542,7 @@ type VirtualMachineScaleSetProperties struct { UniqueID *string `json:"uniqueId,omitempty"` // SinglePlacementGroup - 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"` - // ZoneBalance - Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. + // ZoneBalance - 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"` // PlatformFaultDomainCount - Fault Domain count for each placement group. PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"` @@ -22893,6 +22974,6 @@ type WinRMConfiguration struct { type WinRMListener struct { // Protocol - Specifies the protocol of WinRM listener.

Possible values are:
**http**

**https**. Possible values include: 'ProtocolTypesHTTP', 'ProtocolTypesHTTPS' Protocol ProtocolTypes `json:"protocol,omitempty"` - // CertificateURL - 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":""
} + // CertificateURL - 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"` } diff --git a/services/compute/mgmt/2021-04-01/compute/snapshots.go b/services/compute/mgmt/2021-04-01/compute/snapshots.go index a33f86841054..3590bc688f6b 100644 --- a/services/compute/mgmt/2021-04-01/compute/snapshots.go +++ b/services/compute/mgmt/2021-04-01/compute/snapshots.go @@ -35,7 +35,8 @@ func NewSnapshotsClientWithBaseURI(baseURI string, subscriptionID string) Snapsh // Parameters: // 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. +// 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. func (client SnapshotsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, snapshotName string, snapshot Snapshot) (result SnapshotsCreateOrUpdateFuture, err error) { if tracing.IsEnabled() { @@ -91,7 +92,7 @@ func (client SnapshotsClient) CreateOrUpdatePreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -139,7 +140,8 @@ func (client SnapshotsClient) CreateOrUpdateResponder(resp *http.Response) (resu // Parameters: // 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. +// is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. func (client SnapshotsClient) Delete(ctx context.Context, resourceGroupName string, snapshotName string) (result SnapshotsDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.Delete") @@ -174,7 +176,7 @@ func (client SnapshotsClient) DeletePreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -218,7 +220,8 @@ func (client SnapshotsClient) DeleteResponder(resp *http.Response) (result autor // Parameters: // 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. +// is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, snapshotName string) (result Snapshot, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.Get") @@ -260,7 +263,7 @@ func (client SnapshotsClient) GetPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -295,7 +298,8 @@ func (client SnapshotsClient) GetResponder(resp *http.Response) (result Snapshot // Parameters: // 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. +// 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. func (client SnapshotsClient) GrantAccess(ctx context.Context, resourceGroupName string, snapshotName string, grantAccessData GrantAccessData) (result SnapshotsGrantAccessFuture, err error) { if tracing.IsEnabled() { @@ -337,7 +341,7 @@ func (client SnapshotsClient) GrantAccessPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -425,7 +429,7 @@ func (client SnapshotsClient) ListPreparer(ctx context.Context) (*http.Request, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -541,7 +545,7 @@ func (client SnapshotsClient) ListByResourceGroupPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -613,7 +617,8 @@ func (client SnapshotsClient) ListByResourceGroupComplete(ctx context.Context, r // Parameters: // 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. +// is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 +// characters. func (client SnapshotsClient) RevokeAccess(ctx context.Context, resourceGroupName string, snapshotName string) (result SnapshotsRevokeAccessFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.RevokeAccess") @@ -648,7 +653,7 @@ func (client SnapshotsClient) RevokeAccessPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -692,7 +697,8 @@ func (client SnapshotsClient) RevokeAccessResponder(resp *http.Response) (result // Parameters: // 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. +// 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. func (client SnapshotsClient) Update(ctx context.Context, resourceGroupName string, snapshotName string, snapshot SnapshotUpdate) (result SnapshotsUpdateFuture, err error) { if tracing.IsEnabled() { @@ -728,7 +734,7 @@ func (client SnapshotsClient) UpdatePreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-12-01" + const APIVersion = "2021-04-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/compute/mgmt/2021-04-01/compute/virtualmachines.go b/services/compute/mgmt/2021-04-01/compute/virtualmachines.go index 31abded41f53..e2af539b64f1 100644 --- a/services/compute/mgmt/2021-04-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2021-04-01/compute/virtualmachines.go @@ -468,7 +468,7 @@ func (client VirtualMachinesClient) DeallocateResponder(resp *http.Response) (re // Parameters: // resourceGroupName - the name of the resource group. // VMName - the name of the virtual machine. -// forceDeletion - optional parameter to force delete virtual machines.(Feature in Preview) +// forceDeletion - optional parameter to force delete virtual machines. func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, VMName string, forceDeletion *bool) (result VirtualMachinesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Delete") diff --git a/services/compute/mgmt/2021-07-01/compute/CHANGELOG.md b/services/compute/mgmt/2021-07-01/compute/CHANGELOG.md index 52911e4cc5e4..782182123844 100644 --- a/services/compute/mgmt/2021-07-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2021-07-01/compute/CHANGELOG.md @@ -1,2 +1,27 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Structs + +1. RestorePointProvisioningDetails + +#### Removed Struct Fields + +1. RestorePointProperties.ProvisioningDetails + +### Signature Changes + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string + +## Additive Changes + +### Struct Changes + +#### New Struct Fields + +1. RestorePointProperties.TimeCreated diff --git a/services/compute/mgmt/2021-07-01/compute/_meta.json b/services/compute/mgmt/2021-07-01/compute/_meta.json index ee881857d1cc..86b26e2945a0 100644 --- a/services/compute/mgmt/2021-07-01/compute/_meta.json +++ b/services/compute/mgmt/2021-07-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "bd64220293a403f70ae8beebd56fb86951007acf", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2021-07-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2021-07-01/compute/models.go b/services/compute/mgmt/2021-07-01/compute/models.go index 9718eb39f588..09f95f09f461 100644 --- a/services/compute/mgmt/2021-07-01/compute/models.go +++ b/services/compute/mgmt/2021-07-01/compute/models.go @@ -3951,7 +3951,7 @@ func (dhu *DedicatedHostUpdate) UnmarshalJSON(body []byte) error { // DiagnosticsProfile specifies the boot diagnostic settings state.

Minimum api-version: // 2015-06-15. type DiagnosticsProfile struct { - // 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. + // BootDiagnostics - 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"` } @@ -10416,15 +10416,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'OrchestrationServiceStateActionResume', 'OrchestrationServiceStateActionSuspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs', 'OrchestrationServiceNamesDummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'OrchestrationServiceStateNotRunning', 'OrchestrationServiceStateRunning', 'OrchestrationServiceStateSuspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` @@ -12924,8 +12924,8 @@ type RestorePointProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` // ConsistencyMode - READ-ONLY; Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details. Possible values include: 'ConsistencyModeTypesCrashConsistent', 'ConsistencyModeTypesFileSystemConsistent', 'ConsistencyModeTypesApplicationConsistent' ConsistencyMode ConsistencyModeTypes `json:"consistencyMode,omitempty"` - // ProvisioningDetails - READ-ONLY; Gets the provisioning details set by the server during Create restore point operation. - ProvisioningDetails *RestorePointProvisioningDetails `json:"provisioningDetails,omitempty"` + // TimeCreated - Gets the creation time of the restore point. + TimeCreated *date.Time `json:"timeCreated,omitempty"` } // MarshalJSON is the custom marshaler for RestorePointProperties. @@ -12934,21 +12934,12 @@ func (rpp RestorePointProperties) MarshalJSON() ([]byte, error) { if rpp.ExcludeDisks != nil { objectMap["excludeDisks"] = rpp.ExcludeDisks } + if rpp.TimeCreated != nil { + objectMap["timeCreated"] = rpp.TimeCreated + } return json.Marshal(objectMap) } -// RestorePointProvisioningDetails restore Point Provisioning details. -type RestorePointProvisioningDetails struct { - // CreationTime - Gets the creation time of the restore point. - CreationTime *date.Time `json:"creationTime,omitempty"` - // TotalUsedSizeInBytes - Gets the total size of the data in all the disks which are part of the restore point. - TotalUsedSizeInBytes *int64 `json:"totalUsedSizeInBytes,omitempty"` - // StatusCode - Gets the status of the Create restore point operation. - StatusCode *int32 `json:"statusCode,omitempty"` - // StatusMessage - Gets the status message of the Create restore point operation. - StatusMessage *string `json:"statusMessage,omitempty"` -} - // RestorePointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type RestorePointsCreateFuture struct { diff --git a/services/compute/mgmt/2021-07-01/compute/virtualmachines.go b/services/compute/mgmt/2021-07-01/compute/virtualmachines.go index d1aff5e7573b..d1d62c748fc3 100644 --- a/services/compute/mgmt/2021-07-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2021-07-01/compute/virtualmachines.go @@ -472,7 +472,7 @@ func (client VirtualMachinesClient) DeallocateResponder(resp *http.Response) (re // Parameters: // resourceGroupName - the name of the resource group. // VMName - the name of the virtual machine. -// forceDeletion - optional parameter to force delete virtual machines.(Feature in Preview) +// forceDeletion - optional parameter to force delete virtual machines. func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, VMName string, forceDeletion *bool) (result VirtualMachinesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Delete") diff --git a/services/compute/mgmt/2021-07-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2021-07-01/compute/virtualmachinescalesets.go index 28523a860773..52423eddf0c4 100644 --- a/services/compute/mgmt/2021-07-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2021-07-01/compute/virtualmachinescalesets.go @@ -1835,6 +1835,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/compute/mgmt/2021-08-01/compute/CHANGELOG.md b/services/compute/mgmt/2021-08-01/compute/CHANGELOG.md index 52911e4cc5e4..0a87faa8c9fe 100644 --- a/services/compute/mgmt/2021-08-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2021-08-01/compute/CHANGELOG.md @@ -1,2 +1,9 @@ -# Change History +# Unreleased +## Breaking Changes + +### Signature Changes + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string diff --git a/services/compute/mgmt/2021-08-01/compute/_meta.json b/services/compute/mgmt/2021-08-01/compute/_meta.json index 439d41bf9b4e..f6dfc5eea2bf 100644 --- a/services/compute/mgmt/2021-08-01/compute/_meta.json +++ b/services/compute/mgmt/2021-08-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "1118376e6b4c59716f4a2bcf3ddea212aeee5536", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2021-08-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2021-08-01/compute/models.go b/services/compute/mgmt/2021-08-01/compute/models.go index 6092674e5e10..31941ae604d0 100644 --- a/services/compute/mgmt/2021-08-01/compute/models.go +++ b/services/compute/mgmt/2021-08-01/compute/models.go @@ -10431,15 +10431,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'OrchestrationServiceStateActionResume', 'OrchestrationServiceStateActionSuspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs', 'OrchestrationServiceNamesDummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'OrchestrationServiceStateNotRunning', 'OrchestrationServiceStateRunning', 'OrchestrationServiceStateSuspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` diff --git a/services/compute/mgmt/2021-08-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2021-08-01/compute/virtualmachinescalesets.go index 28523a860773..52423eddf0c4 100644 --- a/services/compute/mgmt/2021-08-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2021-08-01/compute/virtualmachinescalesets.go @@ -1835,6 +1835,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/compute/mgmt/2021-11-01/compute/CHANGELOG.md b/services/compute/mgmt/2021-11-01/compute/CHANGELOG.md index 368bd9163639..b3f605bdc304 100644 --- a/services/compute/mgmt/2021-11-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2021-11-01/compute/CHANGELOG.md @@ -1,69 +1,22 @@ -# Change History +# Unreleased ## Breaking Changes ### Signature Changes -#### Funcs +#### Struct Fields -1. GalleriesClient.Get - - Params - - From: context.Context, string, string, SelectPermissions - - To: context.Context, string, string, SelectPermissions, GalleryExpandParams -1. GalleriesClient.GetPreparer - - Params - - From: context.Context, string, string, SelectPermissions - - To: context.Context, string, string, SelectPermissions, GalleryExpandParams +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string ## Additive Changes -### New Constants - -1. Architecture.ArchitectureArm64 -1. Architecture.ArchitectureX64 -1. ArchitectureTypes.ArchitectureTypesArm64 -1. ArchitectureTypes.ArchitectureTypesX64 -1. ConfidentialVMEncryptionType.ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk -1. ConfidentialVMEncryptionType.ConfidentialVMEncryptionTypeEncryptedWithCmk -1. ConfidentialVMEncryptionType.ConfidentialVMEncryptionTypeEncryptedWithPmk -1. GalleryExpandParams.GalleryExpandParamsSharingProfileGroups -1. GalleryExtendedLocationType.GalleryExtendedLocationTypeEdgeZone -1. GalleryExtendedLocationType.GalleryExtendedLocationTypeUnknown -1. SharingProfileGroupTypes.SharingProfileGroupTypesCommunity -1. SharingState.SharingStateFailed -1. SharingState.SharingStateInProgress -1. SharingState.SharingStateSucceeded -1. SharingState.SharingStateUnknown -1. SharingUpdateOperationTypes.SharingUpdateOperationTypesEnableCommunity - -### New Funcs - -1. CommunityGalleryInfo.MarshalJSON() ([]byte, error) -1. PossibleArchitectureTypesValues() []ArchitectureTypes -1. PossibleArchitectureValues() []Architecture -1. PossibleConfidentialVMEncryptionTypeValues() []ConfidentialVMEncryptionType -1. PossibleGalleryExpandParamsValues() []GalleryExpandParams -1. PossibleGalleryExtendedLocationTypeValues() []GalleryExtendedLocationType -1. PossibleSharingStateValues() []SharingState - ### Struct Changes #### New Structs -1. CommunityGalleryInfo -1. GalleryExtendedLocation -1. GalleryTargetExtendedLocation -1. OSDiskImageSecurityProfile -1. RegionalSharingStatus -1. SharingStatus +1. ProximityPlacementGroupPropertiesIntent #### New Struct Fields -1. GalleryApplicationVersionPublishingProfile.TargetExtendedLocations -1. GalleryArtifactPublishingProfileBase.TargetExtendedLocations -1. GalleryImageProperties.Architecture -1. GalleryImageVersionPublishingProfile.TargetExtendedLocations -1. GalleryProperties.SharingStatus -1. OSDiskImageEncryption.SecurityProfile -1. SharingProfile.CommunityGalleryInfo -1. VirtualMachineImageProperties.Architecture +1. ProximityPlacementGroup.Zones +1. ProximityPlacementGroupProperties.Intent diff --git a/services/compute/mgmt/2021-11-01/compute/_meta.json b/services/compute/mgmt/2021-11-01/compute/_meta.json index 39a07ee041c7..d2202913e214 100644 --- a/services/compute/mgmt/2021-11-01/compute/_meta.json +++ b/services/compute/mgmt/2021-11-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "bb4175d29020cfff55f1d9087c2a5a89765067dc", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2021-11-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2021-11-01/compute/models.go b/services/compute/mgmt/2021-11-01/compute/models.go index 88f3468d61bb..88eb78fb3519 100644 --- a/services/compute/mgmt/2021-11-01/compute/models.go +++ b/services/compute/mgmt/2021-11-01/compute/models.go @@ -10570,15 +10570,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'OrchestrationServiceStateActionResume', 'OrchestrationServiceStateActionSuspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs', 'OrchestrationServiceNamesDummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'OrchestrationServiceStateNotRunning', 'OrchestrationServiceStateRunning', 'OrchestrationServiceStateSuspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` @@ -11662,6 +11662,8 @@ type ProximityPlacementGroup struct { autorest.Response `json:"-"` // ProximityPlacementGroupProperties - Describes the properties of a Proximity Placement Group. *ProximityPlacementGroupProperties `json:"properties,omitempty"` + // Zones - 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"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name @@ -11680,6 +11682,9 @@ func (ppg ProximityPlacementGroup) MarshalJSON() ([]byte, error) { if ppg.ProximityPlacementGroupProperties != nil { objectMap["properties"] = ppg.ProximityPlacementGroupProperties } + if ppg.Zones != nil { + objectMap["zones"] = ppg.Zones + } if ppg.Location != nil { objectMap["location"] = ppg.Location } @@ -11707,6 +11712,15 @@ func (ppg *ProximityPlacementGroup) UnmarshalJSON(body []byte) error { } ppg.ProximityPlacementGroupProperties = &proximityPlacementGroupProperties } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + ppg.Zones = &zones + } case "id": if v != nil { var ID string @@ -11922,6 +11936,8 @@ func NewProximityPlacementGroupListResultPage(cur ProximityPlacementGroupListRes type ProximityPlacementGroupProperties struct { // 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. Possible values include: 'ProximityPlacementGroupTypeStandard', 'ProximityPlacementGroupTypeUltra' ProximityPlacementGroupType ProximityPlacementGroupType `json:"proximityPlacementGroupType,omitempty"` + // Intent - Specifies the user intent of the proximity placement group. + Intent *ProximityPlacementGroupPropertiesIntent `json:"intent,omitempty"` // VirtualMachines - READ-ONLY; A list of references to all virtual machines in the proximity placement group. VirtualMachines *[]SubResourceWithColocationStatus `json:"virtualMachines,omitempty"` // VirtualMachineScaleSets - READ-ONLY; A list of references to all virtual machine scale sets in the proximity placement group. @@ -11938,12 +11954,21 @@ func (ppgp ProximityPlacementGroupProperties) MarshalJSON() ([]byte, error) { if ppgp.ProximityPlacementGroupType != "" { objectMap["proximityPlacementGroupType"] = ppgp.ProximityPlacementGroupType } + if ppgp.Intent != nil { + objectMap["intent"] = ppgp.Intent + } if ppgp.ColocationStatus != nil { objectMap["colocationStatus"] = ppgp.ColocationStatus } return json.Marshal(objectMap) } +// ProximityPlacementGroupPropertiesIntent specifies the user intent of the proximity placement group. +type ProximityPlacementGroupPropertiesIntent struct { + // VMSizes - 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 { // Tags - Resource tags diff --git a/services/compute/mgmt/2021-11-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2021-11-01/compute/virtualmachinescalesets.go index 96a564c79a48..1c728db45878 100644 --- a/services/compute/mgmt/2021-11-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2021-11-01/compute/virtualmachinescalesets.go @@ -1843,6 +1843,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/compute/mgmt/2021-12-01/compute/CHANGELOG.md b/services/compute/mgmt/2021-12-01/compute/CHANGELOG.md index 52911e4cc5e4..b3f605bdc304 100644 --- a/services/compute/mgmt/2021-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2021-12-01/compute/CHANGELOG.md @@ -1,2 +1,22 @@ -# Change History +# Unreleased +## Breaking Changes + +### Signature Changes + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string + +## Additive Changes + +### Struct Changes + +#### New Structs + +1. ProximityPlacementGroupPropertiesIntent + +#### New Struct Fields + +1. ProximityPlacementGroup.Zones +1. ProximityPlacementGroupProperties.Intent diff --git a/services/compute/mgmt/2021-12-01/compute/_meta.json b/services/compute/mgmt/2021-12-01/compute/_meta.json index ac529a1fa6a0..7e77b10989fe 100644 --- a/services/compute/mgmt/2021-12-01/compute/_meta.json +++ b/services/compute/mgmt/2021-12-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "58cb0aa2979e64c7335cc26fe45a1854a6d0b7ad", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2021-12-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/compute/mgmt/2021-12-01/compute/models.go b/services/compute/mgmt/2021-12-01/compute/models.go index 7a8c4b51ed74..f3b587489e92 100644 --- a/services/compute/mgmt/2021-12-01/compute/models.go +++ b/services/compute/mgmt/2021-12-01/compute/models.go @@ -10580,15 +10580,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'OrchestrationServiceStateActionResume', 'OrchestrationServiceStateActionSuspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs', 'OrchestrationServiceNamesDummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'OrchestrationServiceNamesAutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'OrchestrationServiceStateNotRunning', 'OrchestrationServiceStateRunning', 'OrchestrationServiceStateSuspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` @@ -11672,6 +11672,8 @@ type ProximityPlacementGroup struct { autorest.Response `json:"-"` // ProximityPlacementGroupProperties - Describes the properties of a Proximity Placement Group. *ProximityPlacementGroupProperties `json:"properties,omitempty"` + // Zones - 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"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name @@ -11690,6 +11692,9 @@ func (ppg ProximityPlacementGroup) MarshalJSON() ([]byte, error) { if ppg.ProximityPlacementGroupProperties != nil { objectMap["properties"] = ppg.ProximityPlacementGroupProperties } + if ppg.Zones != nil { + objectMap["zones"] = ppg.Zones + } if ppg.Location != nil { objectMap["location"] = ppg.Location } @@ -11717,6 +11722,15 @@ func (ppg *ProximityPlacementGroup) UnmarshalJSON(body []byte) error { } ppg.ProximityPlacementGroupProperties = &proximityPlacementGroupProperties } + case "zones": + if v != nil { + var zones []string + err = json.Unmarshal(*v, &zones) + if err != nil { + return err + } + ppg.Zones = &zones + } case "id": if v != nil { var ID string @@ -11932,6 +11946,8 @@ func NewProximityPlacementGroupListResultPage(cur ProximityPlacementGroupListRes type ProximityPlacementGroupProperties struct { // 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. Possible values include: 'ProximityPlacementGroupTypeStandard', 'ProximityPlacementGroupTypeUltra' ProximityPlacementGroupType ProximityPlacementGroupType `json:"proximityPlacementGroupType,omitempty"` + // Intent - Specifies the user intent of the proximity placement group. + Intent *ProximityPlacementGroupPropertiesIntent `json:"intent,omitempty"` // VirtualMachines - READ-ONLY; A list of references to all virtual machines in the proximity placement group. VirtualMachines *[]SubResourceWithColocationStatus `json:"virtualMachines,omitempty"` // VirtualMachineScaleSets - READ-ONLY; A list of references to all virtual machine scale sets in the proximity placement group. @@ -11948,12 +11964,21 @@ func (ppgp ProximityPlacementGroupProperties) MarshalJSON() ([]byte, error) { if ppgp.ProximityPlacementGroupType != "" { objectMap["proximityPlacementGroupType"] = ppgp.ProximityPlacementGroupType } + if ppgp.Intent != nil { + objectMap["intent"] = ppgp.Intent + } if ppgp.ColocationStatus != nil { objectMap["colocationStatus"] = ppgp.ColocationStatus } return json.Marshal(objectMap) } +// ProximityPlacementGroupPropertiesIntent specifies the user intent of the proximity placement group. +type ProximityPlacementGroupPropertiesIntent struct { + // VMSizes - 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 { // Tags - Resource tags diff --git a/services/compute/mgmt/2021-12-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2021-12-01/compute/virtualmachinescalesets.go index 96a564c79a48..1c728db45878 100644 --- a/services/compute/mgmt/2021-12-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2021-12-01/compute/virtualmachinescalesets.go @@ -1843,6 +1843,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/containerservice/mgmt/2016-03-30/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2016-03-30/containerservice/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/containerservice/mgmt/2016-03-30/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2016-03-30/containerservice/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/containerservice/mgmt/2016-03-30/containerservice/_meta.json b/services/containerservice/mgmt/2016-03-30/containerservice/_meta.json index 7cb3903d3375..8f50dfa81d38 100644 --- a/services/containerservice/mgmt/2016-03-30/containerservice/_meta.json +++ b/services/containerservice/mgmt/2016-03-30/containerservice/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2016-03", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/containerservice/mgmt/2016-09-30/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2016-09-30/containerservice/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/containerservice/mgmt/2016-09-30/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2016-09-30/containerservice/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/containerservice/mgmt/2016-09-30/containerservice/_meta.json b/services/containerservice/mgmt/2016-09-30/containerservice/_meta.json index 83c7392ebf09..dbd3b72606cf 100644 --- a/services/containerservice/mgmt/2016-09-30/containerservice/_meta.json +++ b/services/containerservice/mgmt/2016-09-30/containerservice/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2016-09", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/containerservice/mgmt/2017-01-31/containerservice/CHANGELOG.md b/services/containerservice/mgmt/2017-01-31/containerservice/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/containerservice/mgmt/2017-01-31/containerservice/CHANGELOG.md +++ b/services/containerservice/mgmt/2017-01-31/containerservice/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/containerservice/mgmt/2017-01-31/containerservice/_meta.json b/services/containerservice/mgmt/2017-01-31/containerservice/_meta.json index ad67cb7d477a..ca220fa2a582 100644 --- a/services/containerservice/mgmt/2017-01-31/containerservice/_meta.json +++ b/services/containerservice/mgmt/2017-01-31/containerservice/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2017-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md b/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/preview/compute/mgmt/2016-04-30-preview/compute/_meta.json b/services/preview/compute/mgmt/2016-04-30-preview/compute/_meta.json index a59ff2bac1fa..90c51b46cbfb 100644 --- a/services/preview/compute/mgmt/2016-04-30-preview/compute/_meta.json +++ b/services/preview/compute/mgmt/2016-04-30-preview/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2016-04-preview", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md b/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md index 52911e4cc5e4..0a87faa8c9fe 100644 --- a/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md +++ b/services/preview/compute/mgmt/2020-10-01-preview/compute/CHANGELOG.md @@ -1,2 +1,9 @@ -# Change History +# Unreleased +## Breaking Changes + +### Signature Changes + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string diff --git a/services/preview/compute/mgmt/2020-10-01-preview/compute/_meta.json b/services/preview/compute/mgmt/2020-10-01-preview/compute/_meta.json index 4a159fdc3cd9..df479a00e3ba 100644 --- a/services/preview/compute/mgmt/2020-10-01-preview/compute/_meta.json +++ b/services/preview/compute/mgmt/2020-10-01-preview/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "0b17e6a5e811fd7b122d383b4942441d95e5e8cf", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-10-01-preview", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/compute/mgmt/2020-10-01-preview/compute/models.go b/services/preview/compute/mgmt/2020-10-01-preview/compute/models.go index f72051c4b3b2..5736b5281f61 100644 --- a/services/preview/compute/mgmt/2020-10-01-preview/compute/models.go +++ b/services/preview/compute/mgmt/2020-10-01-preview/compute/models.go @@ -9179,7 +9179,7 @@ type ManagedArtifact struct { // ManagedDiskParameters the parameters of a managed disk. type ManagedDiskParameters struct { - // StorageAccountType - 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. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - 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: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk. DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"` @@ -9344,15 +9344,15 @@ func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) { // OrchestrationServiceStateInput the input for OrchestrationServiceState type OrchestrationServiceStateInput struct { - // ServiceName - The name of the service. Possible values include: 'AutomaticRepairs' - ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` + // ServiceName - The name of the service. + ServiceName *string `json:"serviceName,omitempty"` // Action - The action to be performed. Possible values include: 'Resume', 'Suspend' Action OrchestrationServiceStateAction `json:"action,omitempty"` } // OrchestrationServiceSummary summary for an orchestration service of a virtual machine scale set. type OrchestrationServiceSummary struct { - // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs', 'DummyOrchestrationServiceName' + // ServiceName - READ-ONLY; The name of the service. Possible values include: 'AutomaticRepairs' ServiceName OrchestrationServiceNames `json:"serviceName,omitempty"` // ServiceState - READ-ONLY; The current state of the service. Possible values include: 'NotRunning', 'Running', 'Suspended' ServiceState OrchestrationServiceState `json:"serviceState,omitempty"` @@ -9429,7 +9429,7 @@ type OSProfile struct { // PatchSettings ... type PatchSettings struct { - // PatchMode - Specifies the mode of in-guest patching to IaaS virtual machine.

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. Possible values include: 'InGuestPatchModeManual', 'InGuestPatchModeAutomaticByOS', 'InGuestPatchModeAutomaticByPlatform' + // PatchMode - Specifies the mode of in-guest patching to IaaS virtual machine.

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. Possible values include: 'InGuestPatchModeManual', 'InGuestPatchModeAutomaticByOS', 'InGuestPatchModeAutomaticByPlatform' PatchMode InGuestPatchMode `json:"patchMode,omitempty"` } diff --git a/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachines.go b/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachines.go index e599a0cbf95a..647e62c5c1dc 100644 --- a/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachines.go +++ b/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachines.go @@ -468,7 +468,7 @@ func (client VirtualMachinesClient) DeallocateResponder(resp *http.Response) (re // Parameters: // resourceGroupName - the name of the resource group. // VMName - the name of the virtual machine. -// forceDeletion - optional parameter to force delete virtual machines.(Feature in Preview) +// forceDeletion - optional parameter to force delete virtual machines. func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, VMName string, forceDeletion *bool) (result VirtualMachinesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Delete") diff --git a/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachinescalesets.go b/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachinescalesets.go index d3c18e071e0c..526677d9ed29 100644 --- a/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachinescalesets.go +++ b/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachinescalesets.go @@ -1699,6 +1699,12 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ServiceName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", err.Error()) + } + req, err := client.SetOrchestrationServiceStatePreparer(ctx, resourceGroupName, VMScaleSetName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure preparing request") diff --git a/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/CHANGELOG.md b/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/CHANGELOG.md +++ b/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/_meta.json b/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/_meta.json index 222c185562cc..312592e6840d 100644 --- a/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/_meta.json +++ b/services/preview/containerservice/mgmt/2015-11-01-preview/containerservice/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "17d1f1dd094023ef2fa91206560a41e63dfc3103", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2015-11-preview", "use": "@microsoft.azure/autorest.go@2.1.187",