From 8fce40973f4151c629c0cc65d6838e7b9e225e98 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 23 Jun 2021 11:25:10 +0000 Subject: [PATCH] CodeGen from PR 14640 in Azure/azure-rest-api-specs Changed modelAsString for SecurityType param in Microsoft.Compute spec to true (#14640) --- .../compute/mgmt/compute/CHANGELOG.md | 2 + .../compute/mgmt/compute/_meta.json | 11 + .../2020-09-01/compute/mgmt/compute/models.go | 259 ++++- .../mgmt/compute/virtualmachinescalesets.go | 6 + .../mgmt/2015-06-15/compute/CHANGELOG.md | 14 +- .../mgmt/2015-06-15/compute/_meta.json | 2 +- .../mgmt/2016-03-30/compute/CHANGELOG.md | 14 +- .../mgmt/2016-03-30/compute/_meta.json | 2 +- .../mgmt/2017-03-30/compute/CHANGELOG.md | 25 +- .../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 | 13 +- .../compute/mgmt/2017-09-01/skus/_meta.json | 2 +- .../mgmt/2017-12-01/compute/CHANGELOG.md | 36 +- .../mgmt/2017-12-01/compute/_meta.json | 2 +- .../compute/mgmt/2017-12-01/compute/models.go | 2 +- .../mgmt/2018-04-01/compute/CHANGELOG.md | 28 +- .../mgmt/2018-04-01/compute/_meta.json | 2 +- .../compute/mgmt/2018-04-01/compute/models.go | 2 +- .../mgmt/2018-06-01/compute/CHANGELOG.md | 44 +- .../mgmt/2018-06-01/compute/_meta.json | 2 +- .../compute/mgmt/2018-06-01/compute/models.go | 2 +- .../mgmt/2018-10-01/compute/CHANGELOG.md | 44 +- .../mgmt/2018-10-01/compute/_meta.json | 2 +- .../compute/mgmt/2018-10-01/compute/models.go | 2 +- .../mgmt/2019-03-01/compute/CHANGELOG.md | 62 +- .../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 | 58 +- .../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 | 66 +- .../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 | 81 +- .../mgmt/2020-06-01/compute/_meta.json | 2 +- .../compute/galleryapplicationversions.go | 8 +- .../compute/mgmt/2020-06-01/compute/models.go | 55 +- .../2020-06-01/compute/virtualmachines.go | 2 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2020-06-30/compute/CHANGELOG.md | 81 +- .../mgmt/2020-06-30/compute/_meta.json | 2 +- .../compute/galleryapplicationversions.go | 8 +- .../compute/mgmt/2020-06-30/compute/models.go | 55 +- .../2020-06-30/compute/virtualmachines.go | 2 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2020-12-01/compute/CHANGELOG.md | 74 +- .../mgmt/2020-12-01/compute/_meta.json | 2 +- .../compute/computeapi/interfaces.go | 2 + .../2020-12-01/compute/diskrestorepoint.go | 179 ++++ .../compute/mgmt/2020-12-01/compute/models.go | 88 +- .../compute/virtualmachinescalesets.go | 6 + .../mgmt/2021-03-01/compute/CHANGELOG.md | 925 +----------------- .../mgmt/2021-03-01/compute/_meta.json | 2 +- .../compute/computeapi/interfaces.go | 2 + .../2021-03-01/compute/diskrestorepoint.go | 179 ++++ .../compute/mgmt/2021-03-01/compute/models.go | 90 +- .../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 | 16 +- .../2016-04-30-preview/compute/_meta.json | 2 +- .../2020-10-01-preview/compute/CHANGELOG.md | 61 +- .../2020-10-01-preview/compute/_meta.json | 2 +- .../mgmt/2020-10-01-preview/compute/models.go | 10 +- .../compute/virtualmachinescalesets.go | 6 + .../containerservice/CHANGELOG.md | 2 +- .../containerservice/_meta.json | 2 +- 75 files changed, 1231 insertions(+), 1576 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..7b2218ad4b9d --- /dev/null +++ b/profiles/2020-09-01/compute/mgmt/compute/_meta.json @@ -0,0 +1,11 @@ +{ + "commit": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", + "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "tag": "profile-hybrid-2020-09-01", + "use": "@microsoft.azure/autorest.go@2.1.183", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=profile-hybrid-2020-09-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", + "additional_properties": { + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" + } +} \ No newline at end of file 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/virtualmachinescalesets.go b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesets.go index 43b9416b2366..158321ea30ee 100644 --- a/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesets.go +++ b/profiles/2020-09-01/compute/mgmt/compute/virtualmachinescalesets.go @@ -1689,6 +1689,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/2015-06-15/compute/CHANGELOG.md b/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md index a790bd4cedc2..a1ecf841edb0 100644 --- a/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md +++ b/services/compute/mgmt/2015-06-15/compute/CHANGELOG.md @@ -1,14 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. OperationStatusResponse.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2015-06-15/compute/_meta.json b/services/compute/mgmt/2015-06-15/compute/_meta.json index a05a499fc137..0b27cf1a33b2 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2015-06", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md b/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md index a790bd4cedc2..a1ecf841edb0 100644 --- a/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2016-03-30/compute/CHANGELOG.md @@ -1,14 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. OperationStatusResponse.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2016-03-30/compute/_meta.json b/services/compute/mgmt/2016-03-30/compute/_meta.json index 46a9212852e1..b6093d377b3c 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2016-03", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md b/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md index d2a41427aae1..a1ecf841edb0 100644 --- a/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2017-03-30/compute/CHANGELOG.md @@ -1,25 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. AccessURIRaw.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. OperationStatusResponse.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2017-03-30/compute/_meta.json b/services/compute/mgmt/2017-03-30/compute/_meta.json index ff30a5390bcf..a23ce9cd46cd 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2017-03", "use": "@microsoft.azure/autorest.go@2.1.183", 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 3b0e5b300569..a1ecf841edb0 100644 --- a/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md +++ b/services/compute/mgmt/2017-09-01/skus/CHANGELOG.md @@ -1,13 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2017-09-01/skus/_meta.json b/services/compute/mgmt/2017-09-01/skus/_meta.json index 24797cde3a91..e6d1df381955 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-skus-2017-09", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md b/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md index 40a2929f8d3e..a1ecf841edb0 100644 --- a/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2017-12-01/compute/CHANGELOG.md @@ -1,36 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. AccessURIRaw.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationStatusResponse.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2017-12-01/compute/_meta.json b/services/compute/mgmt/2017-12-01/compute/_meta.json index dbe0837541cf..0cbbcb039fd0 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2017-12", "use": "@microsoft.azure/autorest.go@2.1.183", 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 d2828f1f34c5..a1ecf841edb0 100644 --- a/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-04-01/compute/CHANGELOG.md @@ -1,28 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2018-04-01/compute/_meta.json b/services/compute/mgmt/2018-04-01/compute/_meta.json index e97725a65334..0880138953a2 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2018-04", "use": "@microsoft.azure/autorest.go@2.1.183", 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 4a3834a4c00e..a1ecf841edb0 100644 --- a/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-06-01/compute/CHANGELOG.md @@ -1,44 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryDataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryDiskImage.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. GalleryImageVersionStorageProfile.MarshalJSON() ([]byte, error) -1. GalleryOSDiskImage.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2018-06-01/compute/_meta.json b/services/compute/mgmt/2018-06-01/compute/_meta.json index 28b44419e44b..663d3e7b380c 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2018-06", "use": "@microsoft.azure/autorest.go@2.1.183", 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 4a3834a4c00e..a1ecf841edb0 100644 --- a/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md @@ -1,44 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryDataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryDiskImage.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. GalleryImageVersionStorageProfile.MarshalJSON() ([]byte, error) -1. GalleryOSDiskImage.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) diff --git a/services/compute/mgmt/2018-10-01/compute/_meta.json b/services/compute/mgmt/2018-10-01/compute/_meta.json index 916acf762a1b..016cb9b52ab5 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2018-10-01", "use": "@microsoft.azure/autorest.go@2.1.183", 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 4d66b8edac10..2316a7bf5807 100644 --- a/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md @@ -1,45 +1,23 @@ -# Change History +# Unreleased + +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ContentType +1. UserArtifactSource.FileName ## Additive Changes -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryDataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryDiskImage.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. GalleryImageVersionStorageProfile.MarshalJSON() ([]byte, error) -1. GalleryOSDiskImage.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +### 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 eac3db5703fa..195e54b38bd0 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-03-01", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go index c7e8e73ff957..c50926939548 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 79041df8f55e..2316a7bf5807 100644 --- a/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-07-01/compute/CHANGELOG.md @@ -1,41 +1,23 @@ -# Change History +# Unreleased + +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ContentType +1. UserArtifactSource.FileName ## Additive Changes -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +### 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 0a135dc4bd83..b54917762214 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-07", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-07-01/compute/galleryapplicationversions.go index a1f74ea7e3bd..6e3cb0a65a9a 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 36998b6d59fb..f7afdd6774d4 100644 --- a/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md @@ -1,43 +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 -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. ShareInfoElement.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +### 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 19bf9006ede8..e5f3a7361aa4 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-12-01", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-12-01/compute/galleryapplicationversions.go index 122818fed019..a5b0fdf91e75 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 ef561dedb432..213d796ef591 100644 --- a/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2019-12-01/compute/virtualmachinescalesets.go @@ -1689,6 +1689,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 39d0e341e5e9..ae928bd924d2 100644 --- a/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md @@ -1,50 +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 -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. AvailablePatchSummary.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. DiskAccessProperties.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) -1. PrivateEndpoint.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. ShareInfoElement.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +### 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 2ebcc340bbec..98649b66c4ea 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-06-01", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2020-06-01/compute/galleryapplicationversions.go index 122818fed019..a5b0fdf91e75 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/virtualmachines.go b/services/compute/mgmt/2020-06-01/compute/virtualmachines.go index a2ac95dbcc73..56ba5c2d5ee0 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachines.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachines.go @@ -463,7 +463,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. +// forceDeletion - optional parameter to force delete virtual machines.(Feature in Preview) 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-06-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go index 43b9416b2366..158321ea30ee 100644 --- a/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2020-06-01/compute/virtualmachinescalesets.go @@ -1689,6 +1689,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 39d0e341e5e9..ae928bd924d2 100644 --- a/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-06-30/compute/CHANGELOG.md @@ -1,50 +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 -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. AvailablePatchSummary.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. DiskAccessProperties.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) -1. PrivateEndpoint.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. ShareInfoElement.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +### 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 4b9a6d80f9e4..63e858cf89db 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-06-30", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go b/services/compute/mgmt/2020-06-30/compute/galleryapplicationversions.go index 122818fed019..a5b0fdf91e75 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/virtualmachines.go b/services/compute/mgmt/2020-06-30/compute/virtualmachines.go index a2ac95dbcc73..56ba5c2d5ee0 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachines.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachines.go @@ -463,7 +463,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. +// forceDeletion - optional parameter to force delete virtual machines.(Feature in Preview) 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-06-30/compute/virtualmachinescalesets.go b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go index 43b9416b2366..158321ea30ee 100644 --- a/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2020-06-30/compute/virtualmachinescalesets.go @@ -1689,6 +1689,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 b9055bec3169..4091ee1bd846 100644 --- a/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2020-12-01/compute/CHANGELOG.md @@ -1,53 +1,31 @@ -# Change History +# Unreleased + +## Breaking Changes + +### Signature Changes + +#### Struct Fields + +1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string ## Additive Changes ### New Funcs -1. AccessURI.MarshalJSON() ([]byte, error) -1. AvailablePatchSummary.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. DiskAccessProperties.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) -1. PatchInstallationDetail.MarshalJSON() ([]byte, error) -1. PrivateEndpoint.MarshalJSON() ([]byte, error) -1. ProxyOnlyResource.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. ShareInfoElement.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineInstallPatchesResult.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +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 diff --git a/services/compute/mgmt/2020-12-01/compute/_meta.json b/services/compute/mgmt/2020-12-01/compute/_meta.json index 24ac069d726e..5f721996f313 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": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", + "commit": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-12-01", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2020-12-01/compute/computeapi/interfaces.go b/services/compute/mgmt/2020-12-01/compute/computeapi/interfaces.go index 90d05f4c77c8..898be3db4317 100644 --- a/services/compute/mgmt/2020-12-01/compute/computeapi/interfaces.go +++ b/services/compute/mgmt/2020-12-01/compute/computeapi/interfaces.go @@ -398,8 +398,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/2020-12-01/compute/diskrestorepoint.go b/services/compute/mgmt/2020-12-01/compute/diskrestorepoint.go index 79620d98ae91..c8e2f541e739 100644 --- a/services/compute/mgmt/2020-12-01/compute/diskrestorepoint.go +++ b/services/compute/mgmt/2020-12-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,100 @@ 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", nil, "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 + 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 +330,87 @@ 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", nil, "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 + 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/2020-12-01/compute/models.go b/services/compute/mgmt/2020-12-01/compute/models.go index 9e9c951884a3..6dec6e622ece 100644 --- a/services/compute/mgmt/2020-12-01/compute/models.go +++ b/services/compute/mgmt/2020-12-01/compute/models.go @@ -3147,6 +3147,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:"-"` @@ -3343,6 +3386,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 { @@ -7608,7 +7688,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"` @@ -7773,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: '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"` diff --git a/services/compute/mgmt/2020-12-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2020-12-01/compute/virtualmachinescalesets.go index 909df89996f1..cc7309d18a83 100644 --- a/services/compute/mgmt/2020-12-01/compute/virtualmachinescalesets.go +++ b/services/compute/mgmt/2020-12-01/compute/virtualmachinescalesets.go @@ -1820,6 +1820,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 259a02ae6f87..f1467d5c3115 100644 --- a/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2021-03-01/compute/CHANGELOG.md @@ -1,924 +1,37 @@ -# Change History +# Unreleased ## Breaking Changes -### Removed Constants - -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. CloudServiceUpgradeMode.Auto -1. CloudServiceUpgradeMode.Manual -1. CloudServiceUpgradeMode.Simultaneous -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. 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 - -### Signature Changes - -#### Funcs - -1. GalleriesClient.Get - - Params - - From: context.Context, string, string - - To: context.Context, string, string, SelectPermissions -1. GalleriesClient.GetPreparer - - Params - - From: context.Context, string, string - - To: context.Context, string, string, SelectPermissions -1. VirtualMachineScaleSetsClient.Get - - Params - - From: context.Context, string, string - - To: context.Context, string, string, ExpandTypesForGetVMScaleSets -1. VirtualMachineScaleSetsClient.GetPreparer - - Params - - From: context.Context, string, string - - To: context.Context, string, string, ExpandTypesForGetVMScaleSets +### Struct Changes -#### Struct Fields +#### Removed Struct Fields -1. OrchestrationServiceStateInput.ServiceName changed type from OrchestrationServiceNames to *string +1. PublicIPAddressSku.PublicIPAddressSkuName +1. PublicIPAddressSku.PublicIPAddressSkuTier ## 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. CloudServiceUpgradeMode.CloudServiceUpgradeModeAuto -1. CloudServiceUpgradeMode.CloudServiceUpgradeModeManual -1. CloudServiceUpgradeMode.CloudServiceUpgradeModeSimultaneous -1. ComponentNames.ComponentNamesMicrosoftWindowsShellSetup -1. ConsistencyModeTypes.ConsistencyModeTypesApplicationConsistent -1. ConsistencyModeTypes.ConsistencyModeTypesCrashConsistent -1. ConsistencyModeTypes.ConsistencyModeTypesFileSystemConsistent -1. DeleteOptions.DeleteOptionsDelete -1. DeleteOptions.DeleteOptionsDetach -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. DiskDeleteOptionTypes.DiskDeleteOptionTypesDelete -1. DiskDeleteOptionTypes.DiskDeleteOptionTypesDetach -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. ExpandTypesForGetVMScaleSets.ExpandTypesForGetVMScaleSetsUserData -1. ExtendedLocationTypes.ExtendedLocationTypesEdgeZone -1. GallerySharingPermissionTypes.GallerySharingPermissionTypesGroups -1. GallerySharingPermissionTypes.GallerySharingPermissionTypesPrivate -1. HyperVGeneration.HyperVGenerationV1 -1. HyperVGeneration.HyperVGenerationV2 -1. IPVersion.IPVersionIPv4 -1. IPVersion.IPVersionIPv6 -1. IPVersions.IPVersionsIPv4 -1. IPVersions.IPVersionsIPv6 -1. InstanceViewTypes.InstanceViewTypesInstanceView -1. InstanceViewTypes.InstanceViewTypesUserData -1. IntervalInMins.IntervalInMinsFiveMins -1. IntervalInMins.IntervalInMinsSixtyMins -1. IntervalInMins.IntervalInMinsThirtyMins -1. IntervalInMins.IntervalInMinsThreeMins -1. LinuxPatchAssessmentMode.LinuxPatchAssessmentModeAutomaticByPlatform -1. LinuxPatchAssessmentMode.LinuxPatchAssessmentModeImageDefault -1. LinuxVMGuestPatchMode.LinuxVMGuestPatchModeAutomaticByPlatform -1. LinuxVMGuestPatchMode.LinuxVMGuestPatchModeImageDefault -1. NetworkAPIVersion.NetworkAPIVersionTwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne -1. NetworkAccessPolicy.NetworkAccessPolicyAllowAll -1. NetworkAccessPolicy.NetworkAccessPolicyAllowPrivate -1. NetworkAccessPolicy.NetworkAccessPolicyDenyAll -1. OperatingSystemStateTypes.OperatingSystemStateTypesGeneralized -1. OperatingSystemStateTypes.OperatingSystemStateTypesSpecialized -1. OperatingSystemType.OperatingSystemTypeLinux -1. OperatingSystemType.OperatingSystemTypeWindows -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. PublicIPAddressSkuName.PublicIPAddressSkuNameBasic -1. PublicIPAddressSkuName.PublicIPAddressSkuNameStandard -1. PublicIPAddressSkuTier.PublicIPAddressSkuTierGlobal -1. PublicIPAddressSkuTier.PublicIPAddressSkuTierRegional -1. PublicIPAllocationMethod.PublicIPAllocationMethodDynamic -1. PublicIPAllocationMethod.PublicIPAllocationMethodStatic -1. ResourceSkuRestrictionsReasonCode.ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription -1. ResourceSkuRestrictionsReasonCode.ResourceSkuRestrictionsReasonCodeQuotaID -1. ResourceSkuRestrictionsType.ResourceSkuRestrictionsTypeLocation -1. ResourceSkuRestrictionsType.ResourceSkuRestrictionsTypeZone -1. RestorePointCollectionExpandOptions.RestorePointCollectionExpandOptionsRestorePoints -1. RollingUpgradeActionType.RollingUpgradeActionTypeCancel -1. RollingUpgradeActionType.RollingUpgradeActionTypeStart -1. SelectPermissions.SelectPermissionsPermissions -1. SettingNames.SettingNamesAutoLogon -1. SettingNames.SettingNamesFirstLogonCommands -1. SharedToValues.SharedToValuesTenant -1. SharingProfileGroupTypes.SharingProfileGroupTypesAADTenants -1. SharingProfileGroupTypes.SharingProfileGroupTypesSubscriptions -1. SharingUpdateOperationTypes.SharingUpdateOperationTypesAdd -1. SharingUpdateOperationTypes.SharingUpdateOperationTypesRemove -1. SharingUpdateOperationTypes.SharingUpdateOperationTypesReset -1. StatusLevelTypes.StatusLevelTypesError -1. StatusLevelTypes.StatusLevelTypesInfo -1. StatusLevelTypes.StatusLevelTypesWarning -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 -1. WindowsPatchAssessmentMode.WindowsPatchAssessmentModeAutomaticByPlatform -1. WindowsPatchAssessmentMode.WindowsPatchAssessmentModeImageDefault - ### New Funcs -1. *GallerySharingProfileUpdateFuture.UnmarshalJSON([]byte) error -1. *PirSharedGalleryResource.UnmarshalJSON([]byte) error -1. *RestorePointCollection.UnmarshalJSON([]byte) error -1. *RestorePointCollectionListResultIterator.Next() error -1. *RestorePointCollectionListResultIterator.NextWithContext(context.Context) error -1. *RestorePointCollectionListResultPage.Next() error -1. *RestorePointCollectionListResultPage.NextWithContext(context.Context) error -1. *RestorePointCollectionUpdate.UnmarshalJSON([]byte) error -1. *RestorePointCollectionsDeleteFuture.UnmarshalJSON([]byte) error -1. *RestorePointsCreateFuture.UnmarshalJSON([]byte) error -1. *RestorePointsDeleteFuture.UnmarshalJSON([]byte) error -1. *SharedGallery.UnmarshalJSON([]byte) error -1. *SharedGalleryImage.UnmarshalJSON([]byte) error -1. *SharedGalleryImageListIterator.Next() error -1. *SharedGalleryImageListIterator.NextWithContext(context.Context) error -1. *SharedGalleryImageListPage.Next() error -1. *SharedGalleryImageListPage.NextWithContext(context.Context) error -1. *SharedGalleryImageVersion.UnmarshalJSON([]byte) error -1. *SharedGalleryImageVersionListIterator.Next() error -1. *SharedGalleryImageVersionListIterator.NextWithContext(context.Context) error -1. *SharedGalleryImageVersionListPage.Next() error -1. *SharedGalleryImageVersionListPage.NextWithContext(context.Context) error -1. *SharedGalleryListIterator.Next() error -1. *SharedGalleryListIterator.NextWithContext(context.Context) error -1. *SharedGalleryListPage.Next() error -1. *SharedGalleryListPage.NextWithContext(context.Context) error -1. *VirtualMachineNetworkInterfaceConfiguration.UnmarshalJSON([]byte) error -1. *VirtualMachineNetworkInterfaceIPConfiguration.UnmarshalJSON([]byte) error -1. *VirtualMachinePublicIPAddressConfiguration.UnmarshalJSON([]byte) error -1. AccessURI.MarshalJSON() ([]byte, error) -1. AvailablePatchSummary.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. CloudServiceRoleProperties.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. DiskAccessProperties.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. GallerySharingProfileClient.Update(context.Context, string, string, SharingUpdate) (GallerySharingProfileUpdateFuture, error) -1. GallerySharingProfileClient.UpdatePreparer(context.Context, string, string, SharingUpdate) (*http.Request, error) -1. GallerySharingProfileClient.UpdateResponder(*http.Response) (SharingUpdate, error) -1. GallerySharingProfileClient.UpdateSender(*http.Request) (GallerySharingProfileUpdateFuture, error) -1. InstanceSku.MarshalJSON() ([]byte, error) -1. InstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. NewGallerySharingProfileClient(string) GallerySharingProfileClient -1. NewGallerySharingProfileClientWithBaseURI(string, string) GallerySharingProfileClient -1. NewRestorePointCollectionListResultIterator(RestorePointCollectionListResultPage) RestorePointCollectionListResultIterator -1. NewRestorePointCollectionListResultPage(RestorePointCollectionListResult, func(context.Context, RestorePointCollectionListResult) (RestorePointCollectionListResult, error)) RestorePointCollectionListResultPage -1. NewRestorePointCollectionsClient(string) RestorePointCollectionsClient -1. NewRestorePointCollectionsClientWithBaseURI(string, string) RestorePointCollectionsClient -1. NewRestorePointsClient(string) RestorePointsClient -1. NewRestorePointsClientWithBaseURI(string, string) RestorePointsClient -1. NewSharedGalleriesClient(string) SharedGalleriesClient -1. NewSharedGalleriesClientWithBaseURI(string, string) SharedGalleriesClient -1. NewSharedGalleryImageListIterator(SharedGalleryImageListPage) SharedGalleryImageListIterator -1. NewSharedGalleryImageListPage(SharedGalleryImageList, func(context.Context, SharedGalleryImageList) (SharedGalleryImageList, error)) SharedGalleryImageListPage -1. NewSharedGalleryImageVersionListIterator(SharedGalleryImageVersionListPage) SharedGalleryImageVersionListIterator -1. NewSharedGalleryImageVersionListPage(SharedGalleryImageVersionList, func(context.Context, SharedGalleryImageVersionList) (SharedGalleryImageVersionList, error)) SharedGalleryImageVersionListPage -1. NewSharedGalleryImageVersionsClient(string) SharedGalleryImageVersionsClient -1. NewSharedGalleryImageVersionsClientWithBaseURI(string, string) SharedGalleryImageVersionsClient -1. NewSharedGalleryImagesClient(string) SharedGalleryImagesClient -1. NewSharedGalleryImagesClientWithBaseURI(string, string) SharedGalleryImagesClient -1. NewSharedGalleryListIterator(SharedGalleryListPage) SharedGalleryListIterator -1. NewSharedGalleryListPage(SharedGalleryList, func(context.Context, SharedGalleryList) (SharedGalleryList, error)) SharedGalleryListPage -1. OSFamilyProperties.MarshalJSON() ([]byte, error) -1. OSVersionProperties.MarshalJSON() ([]byte, error) -1. OSVersionPropertiesBase.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) -1. PatchInstallationDetail.MarshalJSON() ([]byte, error) -1. PirResource.MarshalJSON() ([]byte, error) -1. PirSharedGalleryResource.MarshalJSON() ([]byte, error) -1. PossibleConsistencyModeTypesValues() []ConsistencyModeTypes -1. PossibleDeleteOptionsValues() []DeleteOptions -1. PossibleDiskDeleteOptionTypesValues() []DiskDeleteOptionTypes -1. PossibleExpandTypesForGetVMScaleSetsValues() []ExpandTypesForGetVMScaleSets -1. PossibleGallerySharingPermissionTypesValues() []GallerySharingPermissionTypes -1. PossibleIPVersionsValues() []IPVersions -1. PossibleLinuxPatchAssessmentModeValues() []LinuxPatchAssessmentMode -1. PossibleNetworkAPIVersionValues() []NetworkAPIVersion -1. PossibleOperatingSystemTypeValues() []OperatingSystemType -1. PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName -1. PossiblePublicIPAddressSkuTierValues() []PublicIPAddressSkuTier -1. PossiblePublicIPAllocationMethodValues() []PublicIPAllocationMethod -1. PossibleRestorePointCollectionExpandOptionsValues() []RestorePointCollectionExpandOptions -1. PossibleSelectPermissionsValues() []SelectPermissions -1. PossibleSharedToValuesValues() []SharedToValues -1. PossibleSharingProfileGroupTypesValues() []SharingProfileGroupTypes -1. PossibleSharingUpdateOperationTypesValues() []SharingUpdateOperationTypes -1. PossibleWindowsPatchAssessmentModeValues() []WindowsPatchAssessmentMode -1. PrivateEndpoint.MarshalJSON() ([]byte, error) -1. ProxyOnlyResource.MarshalJSON() ([]byte, error) -1. ProxyResource.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RestorePoint.MarshalJSON() ([]byte, error) -1. RestorePointCollection.MarshalJSON() ([]byte, error) -1. RestorePointCollectionListResult.IsEmpty() bool -1. RestorePointCollectionListResultIterator.NotDone() bool -1. RestorePointCollectionListResultIterator.Response() RestorePointCollectionListResult -1. RestorePointCollectionListResultIterator.Value() RestorePointCollection -1. RestorePointCollectionListResultPage.NotDone() bool -1. RestorePointCollectionListResultPage.Response() RestorePointCollectionListResult -1. RestorePointCollectionListResultPage.Values() []RestorePointCollection -1. RestorePointCollectionProperties.MarshalJSON() ([]byte, error) -1. RestorePointCollectionSourceProperties.MarshalJSON() ([]byte, error) -1. RestorePointCollectionUpdate.MarshalJSON() ([]byte, error) -1. RestorePointCollectionsClient.CreateOrUpdate(context.Context, string, string, RestorePointCollection) (RestorePointCollection, error) -1. RestorePointCollectionsClient.CreateOrUpdatePreparer(context.Context, string, string, RestorePointCollection) (*http.Request, error) -1. RestorePointCollectionsClient.CreateOrUpdateResponder(*http.Response) (RestorePointCollection, error) -1. RestorePointCollectionsClient.CreateOrUpdateSender(*http.Request) (*http.Response, error) -1. RestorePointCollectionsClient.Delete(context.Context, string, string) (RestorePointCollectionsDeleteFuture, error) -1. RestorePointCollectionsClient.DeletePreparer(context.Context, string, string) (*http.Request, error) -1. RestorePointCollectionsClient.DeleteResponder(*http.Response) (autorest.Response, error) -1. RestorePointCollectionsClient.DeleteSender(*http.Request) (RestorePointCollectionsDeleteFuture, error) -1. RestorePointCollectionsClient.Get(context.Context, string, string, RestorePointCollectionExpandOptions) (RestorePointCollection, error) -1. RestorePointCollectionsClient.GetPreparer(context.Context, string, string, RestorePointCollectionExpandOptions) (*http.Request, error) -1. RestorePointCollectionsClient.GetResponder(*http.Response) (RestorePointCollection, error) -1. RestorePointCollectionsClient.GetSender(*http.Request) (*http.Response, error) -1. RestorePointCollectionsClient.List(context.Context, string) (RestorePointCollectionListResultPage, error) -1. RestorePointCollectionsClient.ListAll(context.Context) (RestorePointCollectionListResultPage, error) -1. RestorePointCollectionsClient.ListAllComplete(context.Context) (RestorePointCollectionListResultIterator, error) -1. RestorePointCollectionsClient.ListAllPreparer(context.Context) (*http.Request, error) -1. RestorePointCollectionsClient.ListAllResponder(*http.Response) (RestorePointCollectionListResult, error) -1. RestorePointCollectionsClient.ListAllSender(*http.Request) (*http.Response, error) -1. RestorePointCollectionsClient.ListComplete(context.Context, string) (RestorePointCollectionListResultIterator, error) -1. RestorePointCollectionsClient.ListPreparer(context.Context, string) (*http.Request, error) -1. RestorePointCollectionsClient.ListResponder(*http.Response) (RestorePointCollectionListResult, error) -1. RestorePointCollectionsClient.ListSender(*http.Request) (*http.Response, error) -1. RestorePointCollectionsClient.Update(context.Context, string, string, RestorePointCollectionUpdate) (RestorePointCollection, error) -1. RestorePointCollectionsClient.UpdatePreparer(context.Context, string, string, RestorePointCollectionUpdate) (*http.Request, error) -1. RestorePointCollectionsClient.UpdateResponder(*http.Response) (RestorePointCollection, error) -1. RestorePointCollectionsClient.UpdateSender(*http.Request) (*http.Response, error) -1. RestorePointsClient.Create(context.Context, string, string, string, RestorePoint) (RestorePointsCreateFuture, error) -1. RestorePointsClient.CreatePreparer(context.Context, string, string, string, RestorePoint) (*http.Request, error) -1. RestorePointsClient.CreateResponder(*http.Response) (RestorePoint, error) -1. RestorePointsClient.CreateSender(*http.Request) (RestorePointsCreateFuture, error) -1. RestorePointsClient.Delete(context.Context, string, string, string) (RestorePointsDeleteFuture, error) -1. RestorePointsClient.DeletePreparer(context.Context, string, string, string) (*http.Request, error) -1. RestorePointsClient.DeleteResponder(*http.Response) (autorest.Response, error) -1. RestorePointsClient.DeleteSender(*http.Request) (RestorePointsDeleteFuture, error) -1. RestorePointsClient.Get(context.Context, string, string, string) (RestorePoint, error) -1. RestorePointsClient.GetPreparer(context.Context, string, string, string) (*http.Request, error) -1. RestorePointsClient.GetResponder(*http.Response) (RestorePoint, error) -1. RestorePointsClient.GetSender(*http.Request) (*http.Response, error) -1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) -1. RoleInstanceInstanceView.MarshalJSON() ([]byte, error) -1. RoleInstanceNetworkProfile.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. ShareInfoElement.MarshalJSON() ([]byte, error) -1. SharedGalleriesClient.Get(context.Context, string, string) (SharedGallery, error) -1. SharedGalleriesClient.GetPreparer(context.Context, string, string) (*http.Request, error) -1. SharedGalleriesClient.GetResponder(*http.Response) (SharedGallery, error) -1. SharedGalleriesClient.GetSender(*http.Request) (*http.Response, error) -1. SharedGalleriesClient.List(context.Context, string, SharedToValues) (SharedGalleryListPage, error) -1. SharedGalleriesClient.ListComplete(context.Context, string, SharedToValues) (SharedGalleryListIterator, error) -1. SharedGalleriesClient.ListPreparer(context.Context, string, SharedToValues) (*http.Request, error) -1. SharedGalleriesClient.ListResponder(*http.Response) (SharedGalleryList, error) -1. SharedGalleriesClient.ListSender(*http.Request) (*http.Response, error) -1. SharedGallery.MarshalJSON() ([]byte, error) -1. SharedGalleryImage.MarshalJSON() ([]byte, error) -1. SharedGalleryImageList.IsEmpty() bool -1. SharedGalleryImageListIterator.NotDone() bool -1. SharedGalleryImageListIterator.Response() SharedGalleryImageList -1. SharedGalleryImageListIterator.Value() SharedGalleryImage -1. SharedGalleryImageListPage.NotDone() bool -1. SharedGalleryImageListPage.Response() SharedGalleryImageList -1. SharedGalleryImageListPage.Values() []SharedGalleryImage -1. SharedGalleryImageVersion.MarshalJSON() ([]byte, error) -1. SharedGalleryImageVersionList.IsEmpty() bool -1. SharedGalleryImageVersionListIterator.NotDone() bool -1. SharedGalleryImageVersionListIterator.Response() SharedGalleryImageVersionList -1. SharedGalleryImageVersionListIterator.Value() SharedGalleryImageVersion -1. SharedGalleryImageVersionListPage.NotDone() bool -1. SharedGalleryImageVersionListPage.Response() SharedGalleryImageVersionList -1. SharedGalleryImageVersionListPage.Values() []SharedGalleryImageVersion -1. SharedGalleryImageVersionsClient.Get(context.Context, string, string, string, string) (SharedGalleryImageVersion, error) -1. SharedGalleryImageVersionsClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error) -1. SharedGalleryImageVersionsClient.GetResponder(*http.Response) (SharedGalleryImageVersion, error) -1. SharedGalleryImageVersionsClient.GetSender(*http.Request) (*http.Response, error) -1. SharedGalleryImageVersionsClient.List(context.Context, string, string, string, SharedToValues) (SharedGalleryImageVersionListPage, error) -1. SharedGalleryImageVersionsClient.ListComplete(context.Context, string, string, string, SharedToValues) (SharedGalleryImageVersionListIterator, error) -1. SharedGalleryImageVersionsClient.ListPreparer(context.Context, string, string, string, SharedToValues) (*http.Request, error) -1. SharedGalleryImageVersionsClient.ListResponder(*http.Response) (SharedGalleryImageVersionList, error) -1. SharedGalleryImageVersionsClient.ListSender(*http.Request) (*http.Response, error) -1. SharedGalleryImagesClient.Get(context.Context, string, string, string) (SharedGalleryImage, error) -1. SharedGalleryImagesClient.GetPreparer(context.Context, string, string, string) (*http.Request, error) -1. SharedGalleryImagesClient.GetResponder(*http.Response) (SharedGalleryImage, error) -1. SharedGalleryImagesClient.GetSender(*http.Request) (*http.Response, error) -1. SharedGalleryImagesClient.List(context.Context, string, string, SharedToValues) (SharedGalleryImageListPage, error) -1. SharedGalleryImagesClient.ListComplete(context.Context, string, string, SharedToValues) (SharedGalleryImageListIterator, error) -1. SharedGalleryImagesClient.ListPreparer(context.Context, string, string, SharedToValues) (*http.Request, error) -1. SharedGalleryImagesClient.ListResponder(*http.Response) (SharedGalleryImageList, error) -1. SharedGalleryImagesClient.ListSender(*http.Request) (*http.Response, error) -1. SharedGalleryList.IsEmpty() bool -1. SharedGalleryListIterator.NotDone() bool -1. SharedGalleryListIterator.Response() SharedGalleryList -1. SharedGalleryListIterator.Value() SharedGallery -1. SharedGalleryListPage.NotDone() bool -1. SharedGalleryListPage.Response() SharedGalleryList -1. SharedGalleryListPage.Values() []SharedGallery -1. SharingProfile.MarshalJSON() ([]byte, error) -1. StatusCodeCount.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpdateDomain.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineInstallPatchesResult.MarshalJSON() ([]byte, error) -1. VirtualMachineNetworkInterfaceConfiguration.MarshalJSON() ([]byte, error) -1. VirtualMachineNetworkInterfaceIPConfiguration.MarshalJSON() ([]byte, error) -1. VirtualMachinePublicIPAddressConfiguration.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +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. GalleryImageFeature -1. GallerySharingProfileClient -1. GallerySharingProfileUpdateFuture -1. PirResource -1. PirSharedGalleryResource -1. ProxyResource -1. PublicIPAddressSku -1. RestorePoint -1. RestorePointCollection -1. RestorePointCollectionListResult -1. RestorePointCollectionListResultIterator -1. RestorePointCollectionListResultPage -1. RestorePointCollectionProperties -1. RestorePointCollectionSourceProperties -1. RestorePointCollectionUpdate -1. RestorePointCollectionsClient -1. RestorePointCollectionsDeleteFuture -1. RestorePointProvisioningDetails -1. RestorePointSourceMetadata -1. RestorePointSourceVMDataDisk -1. RestorePointSourceVMOSDisk -1. RestorePointSourceVMStorageProfile -1. RestorePointsClient -1. RestorePointsCreateFuture -1. RestorePointsDeleteFuture -1. SharedGalleriesClient -1. SharedGallery -1. SharedGalleryIdentifier -1. SharedGalleryImage -1. SharedGalleryImageList -1. SharedGalleryImageListIterator -1. SharedGalleryImageListPage -1. SharedGalleryImageProperties -1. SharedGalleryImageVersion -1. SharedGalleryImageVersionList -1. SharedGalleryImageVersionListIterator -1. SharedGalleryImageVersionListPage -1. SharedGalleryImageVersionProperties -1. SharedGalleryImageVersionsClient -1. SharedGalleryImagesClient -1. SharedGalleryList -1. SharedGalleryListIterator -1. SharedGalleryListPage -1. SharingProfile -1. SharingProfileGroup -1. SharingUpdate -1. VirtualMachineIPTag -1. VirtualMachineNetworkInterfaceConfiguration -1. VirtualMachineNetworkInterfaceConfigurationProperties -1. VirtualMachineNetworkInterfaceDNSSettingsConfiguration -1. VirtualMachineNetworkInterfaceIPConfiguration -1. VirtualMachineNetworkInterfaceIPConfigurationProperties -1. VirtualMachinePublicIPAddressConfiguration -1. VirtualMachinePublicIPAddressConfigurationProperties -1. VirtualMachinePublicIPAddressDNSSettingsConfiguration +1. DiskRestorePointGrantAccessFuture +1. DiskRestorePointRevokeAccessFuture #### New Struct Fields -1. DataDisk.DeleteOption -1. GalleryArtifactVersionSource.URI -1. GalleryImageProperties.Features -1. GalleryProperties.SharingProfile -1. LinuxPatchSettings.AssessmentMode -1. NetworkInterfaceReferenceProperties.DeleteOption -1. NetworkProfile.NetworkAPIVersion -1. NetworkProfile.NetworkInterfaceConfigurations -1. OSDisk.DeleteOption -1. PatchSettings.AssessmentMode -1. VirtualMachineProperties.ScheduledEventsProfile -1. VirtualMachineProperties.UserData -1. VirtualMachineScaleSetNetworkConfigurationProperties.DeleteOption -1. VirtualMachineScaleSetNetworkProfile.NetworkAPIVersion -1. VirtualMachineScaleSetPublicIPAddressConfiguration.Sku -1. VirtualMachineScaleSetPublicIPAddressConfigurationProperties.DeleteOption -1. VirtualMachineScaleSetUpdateNetworkConfigurationProperties.DeleteOption -1. VirtualMachineScaleSetUpdateNetworkProfile.NetworkAPIVersion -1. VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties.DeleteOption -1. VirtualMachineScaleSetUpdateVMProfile.UserData -1. VirtualMachineScaleSetVMProfile.UserData -1. VirtualMachineScaleSetVMProperties.UserData +1. PublicIPAddressSku.Name +1. PublicIPAddressSku.Tier diff --git a/services/compute/mgmt/2021-03-01/compute/_meta.json b/services/compute/mgmt/2021-03-01/compute/_meta.json index 720dbeccb766..037697212fee 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2021-03-01", "use": "@microsoft.azure/autorest.go@2.1.183", 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..c8e2f541e739 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,100 @@ 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", nil, "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 + 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 +330,87 @@ 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", nil, "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 + 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..eed4e62dc671 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"` @@ -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. 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 972b2f1da3ea..90e0b9252000 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2016-03", "use": "@microsoft.azure/autorest.go@2.1.183", 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 be6885f82c95..b6f0969a3587 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2016-09", "use": "@microsoft.azure/autorest.go@2.1.183", 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 c7a3a564d382..85d951eba33e 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-container-service-2017-01", "use": "@microsoft.azure/autorest.go@2.1.183", 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 8e938b9669e3..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,16 +1,2 @@ -# Change History +# Unreleased -## Additive Changes - -### New Funcs - -1. AccessURIRaw.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. OperationStatusResponse.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) 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 8dbcd3bdba74..1299be805502 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-compute-2016-04-preview", "use": "@microsoft.azure/autorest.go@2.1.183", 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 94e1f4509adc..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,58 +1,9 @@ -# Change History +# Unreleased -## Additive Changes +## Breaking Changes -### New Funcs +### Signature Changes -1. AccessURI.MarshalJSON() ([]byte, error) -1. AvailablePatchSummary.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. CloudServiceRoleProperties.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. DiskAccessProperties.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. InstanceSku.MarshalJSON() ([]byte, error) -1. InstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error) -1. PrivateEndpoint.MarshalJSON() ([]byte, error) -1. ProxyOnlyResource.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error) -1. RoleInstanceInstanceView.MarshalJSON() ([]byte, error) -1. RoleInstanceNetworkProfile.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. ShareInfoElement.MarshalJSON() ([]byte, error) -1. StatusCodeCount.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpdateDomain.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +#### 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 a64ffcf16091..6c8db5f988e8 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2020-10-01-preview", "use": "@microsoft.azure/autorest.go@2.1.183", 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/virtualmachinescalesets.go b/services/preview/compute/mgmt/2020-10-01-preview/compute/virtualmachinescalesets.go index 43b9416b2366..158321ea30ee 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 @@ -1689,6 +1689,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 8321470f30f7..eb04284fbf93 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": "9c4f909644f4b0194bd17d02b87c3fd2cd6fb47d", "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.183",