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..6c8920cbb9f6
--- /dev/null
+++ b/profiles/2020-09-01/compute/mgmt/compute/_meta.json
@@ -0,0 +1,11 @@
+{
+ "commit": "d92047595da0e0410925301c7d1174c3296e3ebe",
+ "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")