diff --git a/sdk/compute/arm-compute/LICENSE.txt b/sdk/compute/arm-compute/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/compute/arm-compute/LICENSE.txt +++ b/sdk/compute/arm-compute/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/compute/arm-compute/README.md b/sdk/compute/arm-compute/README.md index e9c72aae2c8b..64daf5f54b2d 100644 --- a/sdk/compute/arm-compute/README.md +++ b/sdk/compute/arm-compute/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-compute ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +#### nodejs - client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ComputeManagementClient, ComputeManagementModels, ComputeManagementMappers } from "@azure/arm-compute"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { ComputeManagementClient } = require("@azure/arm-compute"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/compute/arm-compute/rollup.config.js b/sdk/compute/arm-compute/rollup.config.js index e7a527c7d3ad..21325d2ced2e 100644 --- a/sdk/compute/arm-compute/rollup.config.js +++ b/sdk/compute/arm-compute/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 4617fee5e9c3..f68b80674622 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -26,28 +25,30 @@ class ComputeManagementClient extends ComputeManagementClientContext { virtualMachineExtensionImages: operations.VirtualMachineExtensionImages; virtualMachineExtensions: operations.VirtualMachineExtensions; virtualMachineImages: operations.VirtualMachineImages; + virtualMachineImagesEdgeZone: operations.VirtualMachineImagesEdgeZone; usage: operations.UsageOperations; virtualMachines: operations.VirtualMachines; + virtualMachineScaleSets: operations.VirtualMachineScaleSets; virtualMachineSizes: operations.VirtualMachineSizes; images: operations.Images; - virtualMachineScaleSets: operations.VirtualMachineScaleSets; virtualMachineScaleSetExtensions: operations.VirtualMachineScaleSetExtensions; virtualMachineScaleSetRollingUpgrades: operations.VirtualMachineScaleSetRollingUpgrades; virtualMachineScaleSetVMExtensions: operations.VirtualMachineScaleSetVMExtensions; virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs; logAnalytics: operations.LogAnalytics; virtualMachineRunCommands: operations.VirtualMachineRunCommands; + virtualMachineScaleSetVMRunCommands: operations.VirtualMachineScaleSetVMRunCommands; resourceSkus: operations.ResourceSkus; disks: operations.Disks; snapshots: operations.Snapshots; diskEncryptionSets: operations.DiskEncryptionSets; diskAccesses: operations.DiskAccesses; + diskRestorePoint: operations.DiskRestorePointOperations; galleries: operations.Galleries; galleryImages: operations.GalleryImages; galleryImageVersions: operations.GalleryImageVersions; galleryApplications: operations.GalleryApplications; galleryApplicationVersions: operations.GalleryApplicationVersions; - containerServices: operations.ContainerServices; /** * Initializes a new instance of the ComputeManagementClient class. @@ -67,28 +68,30 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.virtualMachineExtensionImages = new operations.VirtualMachineExtensionImages(this); this.virtualMachineExtensions = new operations.VirtualMachineExtensions(this); this.virtualMachineImages = new operations.VirtualMachineImages(this); + this.virtualMachineImagesEdgeZone = new operations.VirtualMachineImagesEdgeZone(this); this.usage = new operations.UsageOperations(this); this.virtualMachines = new operations.VirtualMachines(this); + this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this); this.virtualMachineSizes = new operations.VirtualMachineSizes(this); this.images = new operations.Images(this); - this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this); this.virtualMachineScaleSetExtensions = new operations.VirtualMachineScaleSetExtensions(this); this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades(this); this.virtualMachineScaleSetVMExtensions = new operations.VirtualMachineScaleSetVMExtensions(this); this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this); this.logAnalytics = new operations.LogAnalytics(this); this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this); + this.virtualMachineScaleSetVMRunCommands = new operations.VirtualMachineScaleSetVMRunCommands(this); this.resourceSkus = new operations.ResourceSkus(this); this.disks = new operations.Disks(this); this.snapshots = new operations.Snapshots(this); this.diskEncryptionSets = new operations.DiskEncryptionSets(this); this.diskAccesses = new operations.DiskAccesses(this); + this.diskRestorePoint = new operations.DiskRestorePointOperations(this); this.galleries = new operations.Galleries(this); this.galleryImages = new operations.GalleryImages(this); this.galleryImageVersions = new operations.GalleryImageVersions(this); this.galleryApplications = new operations.GalleryApplications(this); this.galleryApplicationVersions = new operations.GalleryApplicationVersions(this); - this.containerServices = new operations.ContainerServices(this); } } diff --git a/sdk/compute/arm-compute/src/computeManagementClientContext.ts b/sdk/compute/arm-compute/src/computeManagementClientContext.ts index cebdc218eaf4..01d00869e6e2 100644 --- a/sdk/compute/arm-compute/src/computeManagementClientContext.ts +++ b/sdk/compute/arm-compute/src/computeManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index 81c92f5c003c..5a4fab80e431 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -24,18 +24,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -66,6 +54,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -98,12 +87,14 @@ export { ImageUpdate, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,6 +120,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -147,9 +139,11 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -166,9 +160,14 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +196,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index d6492a5ccb31..81e6a37c4544 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -23,18 +23,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -66,6 +54,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -98,12 +87,14 @@ export { ImageUpdate, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,6 +120,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -147,9 +139,11 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -166,9 +160,14 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +196,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index e13ef3198917..1431344a7438 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -23,18 +23,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -66,6 +54,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -98,12 +87,14 @@ export { ImageUpdate, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,6 +120,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -147,9 +139,11 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -166,9 +160,14 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +196,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts index 04693ac9ce02..50b49cf8ca0e 100644 --- a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -64,6 +52,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -95,12 +84,14 @@ export { ImageStorageProfile, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -113,6 +104,7 @@ export { Plan, PrivateEndpoint, PrivateEndpointConnection, + PrivateEndpointConnectionListResult, PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkServiceConnectionState, @@ -127,6 +119,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -144,8 +137,10 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,9 +156,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +185,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index 1fb77b62ea0b..f49c3f08d45f 100644 --- a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -64,6 +52,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -95,12 +84,14 @@ export { ImageStorageProfile, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -126,6 +117,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -143,8 +135,10 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,9 +154,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -185,6 +183,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/diskRestorePointOperationsMappers.ts b/sdk/compute/arm-compute/src/models/diskRestorePointOperationsMappers.ts new file mode 100644 index 000000000000..abbb4f14eb06 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/diskRestorePointOperationsMappers.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApiError, + ApiErrorBase, + CloudError, + DiskRestorePoint, + DiskRestorePointList, + Encryption, + InnerError, + ProxyOnlyResource, + PurchasePlan +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index f4b1367453d6..53c12b4d1721 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -23,18 +23,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -65,6 +53,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -97,12 +86,14 @@ export { ImageStorageProfile, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -127,6 +118,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -144,8 +136,10 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,9 +155,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +184,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index e8848382bd37..a0a6d3def6eb 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,12 +83,14 @@ export { ImageStorageProfile, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +115,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,8 +133,10 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -158,9 +152,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +181,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index 08917ccbf34c..fe805401b42b 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,12 +83,14 @@ export { ImageStorageProfile, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +115,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,8 +133,10 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -158,9 +152,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +181,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index 23e299c473a6..40c7ddc91126 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationList, @@ -94,12 +83,14 @@ export { ImageStorageProfile, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +115,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,8 +133,10 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -158,9 +152,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +181,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index f793a9a603e8..0fd8c34471a9 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,12 +83,14 @@ export { ImageStorageProfile, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +115,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,8 +133,10 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -158,9 +152,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +181,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 578486eff4ca..0bfd34e8b713 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -22,18 +22,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -62,6 +50,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,12 +83,14 @@ export { ImageStorageProfile, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,6 +115,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -141,8 +133,10 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -158,9 +152,13 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +181,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 69e44f43cd84..1a33484c208d 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -23,18 +23,6 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, - ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, - ContainerServiceSshConfiguration, - ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CreationData, DataDisk, DataDiskImage, @@ -65,6 +53,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + ExtendedLocation, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -98,12 +87,14 @@ export { ImageUpdate, InnerError, InstanceViewStatus, + KeyForDiskEncryptionSet, KeyVaultAndKeyReference, KeyVaultAndSecretReference, KeyVaultKeyReference, KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LinuxPatchSettings, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,6 +120,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, @@ -147,9 +139,11 @@ export { SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, + UefiSettings, UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -166,9 +160,14 @@ export { VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, VirtualMachineImage, + VirtualMachineImageFeature, VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +196,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index cc59586f553f..739e8bb00ee6 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -369,7 +369,7 @@ export interface DedicatedHostGroup extends Resource { * Specifies whether virtual machines or virtual machine scale sets can be placed automatically * on the dedicated host group. Automatic placement means resources are allocated on dedicated * hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to - * 'true' when not provided.

Minimum api-version: 2020-06-01. + * 'false' when not provided.

Minimum api-version: 2020-06-01. */ supportAutomaticPlacement?: boolean; /** @@ -404,7 +404,7 @@ export interface DedicatedHostGroupUpdate extends UpdateResource { * Specifies whether virtual machines or virtual machine scale sets can be placed automatically * on the dedicated host group. Automatic placement means resources are allocated on dedicated * hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to - * 'true' when not provided.

Minimum api-version: 2020-06-01. + * 'false' when not provided.

Minimum api-version: 2020-06-01. */ supportAutomaticPlacement?: boolean; /** @@ -648,6 +648,20 @@ export interface VirtualMachineExtensionImage extends Resource { supportsMultipleExtensions?: boolean; } +/** + * The complex type of the extended location. + */ +export interface ExtendedLocation { + /** + * The name of the extended location. + */ + name?: string; + /** + * The type of the extended location. Possible values include: 'EdgeZone' + */ + type?: ExtendedLocationTypes; +} + /** * Virtual machine image resource information. */ @@ -666,6 +680,10 @@ export interface VirtualMachineImageResource extends SubResource { * resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). */ tags?: { [propertyName: string]: string }; + /** + * The extended location of the Virtual Machine. + */ + extendedLocation?: ExtendedLocation; } /** @@ -746,6 +764,68 @@ export interface VirtualMachineExtension extends Resource { instanceView?: VirtualMachineExtensionInstanceView; } +/** + * Describes a VMSS VM Extension. + */ +export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { + /** + * The name of the extension. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * How the extension handler should be forced to update even if the extension configuration has + * not changed. + */ + forceUpdateTag?: string; + /** + * The name of the extension handler publisher. + */ + publisher?: string; + /** + * Specifies the type of the extension; an example is "CustomScriptExtension". + */ + type1?: string; + /** + * Specifies the version of the script handler. + */ + typeHandlerVersion?: string; + /** + * Indicates whether the extension should use a newer minor version if one is available at + * deployment time. Once deployed, however, the extension will not upgrade minor versions unless + * redeployed, even with this property set to true. + */ + autoUpgradeMinorVersion?: boolean; + /** + * Indicates whether the extension should be automatically upgraded by the platform if there is a + * newer version of the extension available. + */ + enableAutomaticUpgrade?: boolean; + /** + * Json formatted public settings for the extension. + */ + settings?: any; + /** + * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no + * protected settings at all. + */ + protectedSettings?: any; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine extension instance view. + */ + instanceView?: VirtualMachineExtensionInstanceView; +} + /** * Describes a Virtual Machine Extension. */ @@ -789,6 +869,59 @@ export interface VirtualMachineExtensionUpdate extends UpdateResource { protectedSettings?: any; } +/** + * Describes a VMSS VM Extension. + */ +export interface VirtualMachineScaleSetVMExtensionUpdate extends SubResourceReadOnly { + /** + * The name of the extension. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * How the extension handler should be forced to update even if the extension configuration has + * not changed. + */ + forceUpdateTag?: string; + /** + * The name of the extension handler publisher. + */ + publisher?: string; + /** + * Specifies the type of the extension; an example is "CustomScriptExtension". + */ + type1?: string; + /** + * Specifies the version of the script handler. + */ + typeHandlerVersion?: string; + /** + * Indicates whether the extension should use a newer minor version if one is available at + * deployment time. Once deployed, however, the extension will not upgrade minor versions unless + * redeployed, even with this property set to true. + */ + autoUpgradeMinorVersion?: boolean; + /** + * Indicates whether the extension should be automatically upgraded by the platform if there is a + * newer version of the extension available. + */ + enableAutomaticUpgrade?: boolean; + /** + * Json formatted public settings for the extension. + */ + settings?: any; + /** + * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no + * protected settings at all. + */ + protectedSettings?: any; +} + /** * The List Extension operation response */ @@ -799,6 +932,16 @@ export interface VirtualMachineExtensionsListResult { value?: VirtualMachineExtension[]; } +/** + * The List VMSS VM Extension operation response + */ +export interface VirtualMachineScaleSetVMExtensionsListResult { + /** + * The list of VMSS VM extensions + */ + value?: VirtualMachineScaleSetVMExtension[]; +} + /** * Describes the properties of a Virtual Machine software patch. */ @@ -822,18 +965,18 @@ export interface VirtualMachineSoftwarePatchProperties { * The KBID of the patch. Only applies to Windows patches. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kbid?: string; + readonly kbId?: string; /** * The classification(s) of the patch as provided by the patch publisher. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly classifications?: string[]; /** - * Describes the reboot requirements of the patch. Possible values include: 'NeverReboots', - * 'AlwaysRequiresReboot', 'CanRequestReboot' + * Describes the reboot requirements of the patch. Possible values include: 'Unknown', + * 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly rebootBehavior?: SoftwareUpdateRebootBehavior; + readonly rebootBehavior?: VMGuestPatchRebootBehavior; /** * The activity ID of the operation that produced this result. It is used to correlate across CRP * and extension logs. @@ -851,8 +994,7 @@ export interface VirtualMachineSoftwarePatchProperties { */ readonly lastModifiedDateTime?: Date; /** - * Describes the outcome of an install operation for a given patch. Possible values include: - * 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending', 'Available' + * Describes the availability of a given patch. Possible values include: 'Unknown', 'Available' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly assessmentState?: PatchAssessmentState; @@ -922,9 +1064,9 @@ export interface ApiError { export interface VirtualMachineAssessPatchesResult { /** * The overall success or failure status of the operation. It remains "InProgress" until the - * operation completes. At that point it will become "Failed", "Succeeded", or - * "CompletedWithWarnings.". Possible values include: 'InProgress', 'Failed', 'Succeeded', - * 'CompletedWithWarnings' + * operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: PatchOperationStatus; @@ -960,7 +1102,7 @@ export interface VirtualMachineAssessPatchesResult { * The list of patches that have been detected as available for installation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly patches?: VirtualMachineSoftwarePatchProperties[]; + readonly availablePatches?: VirtualMachineSoftwarePatchProperties[]; /** * The errors that were encountered during execution of the operation. The details array contains * the list of them. @@ -970,180 +1112,385 @@ export interface VirtualMachineAssessPatchesResult { } /** - * Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. + * Input for InstallPatches on a Windows VM, as directly received by the API */ -export interface PurchasePlan { - /** - * The publisher ID. - */ - publisher: string; +export interface WindowsParameters { /** - * The plan ID. + * The update classifications to select when installing patches for Windows. */ - name: string; + classificationsToInclude?: VMGuestPatchClassificationWindows[]; /** - * Specifies the product of the image from the marketplace. This is the same value as Offer under - * the imageReference element. + * Kbs to include in the patch operation */ - product: string; -} - -/** - * Contains the os disk image information. - */ -export interface OSDiskImage { + kbNumbersToInclude?: string[]; /** - * The operating system of the osDiskImage. Possible values include: 'Windows', 'Linux' + * Kbs to exclude in the patch operation */ - operatingSystem: OperatingSystemTypes; -} - -/** - * Contains the data disk images information. - */ -export interface DataDiskImage { + kbNumbersToExclude?: string[]; /** - * Specifies the logical unit number of the data disk. This value is used to identify data disks - * within the VM and therefore must be unique for each data disk attached to a VM. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is + * set to true. */ - readonly lun?: number; -} - -/** - * Describes automatic OS upgrade properties on the image. - */ -export interface AutomaticOSUpgradeProperties { + excludeKbsRequiringReboot?: boolean; /** - * Specifies whether automatic OS upgrade is supported on the image. + * This is used to install patches that were published on or before this given max published + * date. */ - automaticOSUpgradeSupported: boolean; + maxPatchPublishDate?: Date; } /** - * Describes a Virtual Machine Image. + * Input for InstallPatches on a Linux VM, as directly received by the API */ -export interface VirtualMachineImage extends VirtualMachineImageResource { - plan?: PurchasePlan; - osDiskImage?: OSDiskImage; - dataDiskImages?: DataDiskImage[]; - automaticOSUpgradeProperties?: AutomaticOSUpgradeProperties; +export interface LinuxParameters { /** - * Possible values include: 'V1', 'V2' + * The update classifications to select when installing patches for Linux. */ - hyperVGeneration?: HyperVGenerationTypes; + classificationsToInclude?: VMGuestPatchClassificationLinux[]; /** - * Specifies disallowed configuration for the VirtualMachine created from the image + * packages to include in the patch operation. Format: packageName_packageVersion */ - disallowed?: DisallowedConfiguration; -} - -/** - * The Usage Names. - */ -export interface UsageName { + packageNameMasksToInclude?: string[]; /** - * The name of the resource. + * packages to exclude in the patch operation. Format: packageName_packageVersion */ - value?: string; + packageNameMasksToExclude?: string[]; /** - * The localized name of the resource. + * This is used as a maintenance run identifier for Auto VM Guest Patching in Linux. */ - localizedValue?: string; + maintenanceRunId?: string; } /** - * Describes Compute Resource Usage. + * Input for InstallPatches as directly received by the API */ -export interface Usage { +export interface VirtualMachineInstallPatchesParameters { /** - * The current usage of the resource. + * Specifies the maximum amount of time that the operation will run. It must be an ISO + * 8601-compliant duration string such as PT4H (4 hours) */ - currentValue: number; + maximumDuration: string; /** - * The maximum permitted usage of the resource. + * Defines when it is acceptable to reboot a VM during a software update operation. Possible + * values include: 'IfRequired', 'Never', 'Always' */ - limit: number; + rebootSetting: VMGuestPatchRebootSetting; /** - * The name of the type of usage. + * Input for InstallPatches on a Windows VM, as directly received by the API */ - name: UsageName; -} - -/** - * Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged - */ -export interface VirtualMachineReimageParameters { + windowsParameters?: WindowsParameters; /** - * Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage - * parameter is only supported for VM/VMSS with Ephemeral OS disk. + * Input for InstallPatches on a Linux VM, as directly received by the API */ - tempDisk?: boolean; + linuxParameters?: LinuxParameters; } /** - * Capture Virtual Machine parameters. + * Information about a specific patch that was encountered during an installation action. */ -export interface VirtualMachineCaptureParameters { - /** - * The captured virtual hard disk's name prefix. - */ - vhdPrefix: string; +export interface PatchInstallationDetail { /** - * The destination container name. + * A unique identifier for the patch. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - destinationContainerName: string; + readonly patchId?: string; /** - * Specifies whether to overwrite the destination virtual hard disk, in case of conflict. + * The friendly name of the patch. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - overwriteVhds: boolean; -} - -/** - * Output of virtual machine capture operation. - */ -export interface VirtualMachineCaptureResult extends SubResource { + readonly name?: string; /** - * the schema of the captured virtual machine + * The version string of the package. It may conform to Semantic Versioning. Only applies to + * Linux. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly schema?: string; + readonly version?: string; /** - * the version of the content + * The KBID of the patch. Only applies to Windows patches. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly contentVersion?: string; + readonly kbId?: string; /** - * parameters of the captured virtual machine + * The classification(s) of the patch as provided by the patch publisher. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly parameters?: any; + readonly classifications?: string[]; /** - * a list of resource items of the captured virtual machine + * The state of the patch after the installation operation completed. Possible values include: + * 'Unknown', 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resources?: any[]; + readonly installationState?: PatchInstallationState; } /** - * Specifies information about the marketplace image used to create the virtual machine. This - * element is only used for marketplace images. Before you can use a marketplace image from an API, - * you must enable the image for programmatic use. In the Azure portal, find the marketplace image - * that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter - * any required information and then click **Save**. + * The result summary of an installation operation. */ -export interface Plan { +export interface VirtualMachineInstallPatchesResult { /** - * The plan ID. + * The overall success or failure status of the operation. It remains "InProgress" until the + * operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly status?: PatchOperationStatus; /** - * The publisher ID. + * The activity ID of the operation that produced this result. It is used to correlate across CRP + * and extension logs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - publisher?: string; + readonly installationActivityId?: string; /** - * Specifies the product of the image from the marketplace. This is the same value as Offer under - * the imageReference element. + * The reboot state of the VM following completion of the operation. Possible values include: + * 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rebootStatus?: VMGuestPatchRebootStatus; + /** + * Whether the operation ran out of time before it completed all its intended actions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maintenanceWindowExceeded?: boolean; + /** + * The number of patches that were not installed due to the user blocking their installation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly excludedPatchCount?: number; + /** + * The number of patches that were detected as available for install, but did not meet the + * operation's criteria. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notSelectedPatchCount?: number; + /** + * The number of patches that were identified as meeting the installation criteria, but were not + * able to be installed. Typically this happens when maintenanceWindowExceeded == true. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly pendingPatchCount?: number; + /** + * The number of patches successfully installed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly installedPatchCount?: number; + /** + * The number of patches that could not be installed due to some issue. See errors for details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly failedPatchCount?: number; + /** + * The patches that were installed during the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly patches?: PatchInstallationDetail[]; + /** + * The UTC timestamp when the operation began. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startDateTime?: Date; + /** + * The errors that were encountered during execution of the operation. The details array contains + * the list of them. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ApiError; +} + +/** + * Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. + */ +export interface PurchasePlan { + /** + * The publisher ID. + */ + publisher: string; + /** + * The plan ID. + */ + name: string; + /** + * Specifies the product of the image from the marketplace. This is the same value as Offer under + * the imageReference element. + */ + product: string; + /** + * The Offer Promotion Code. + */ + promotionCode?: string; +} + +/** + * Contains the os disk image information. + */ +export interface OSDiskImage { + /** + * The operating system of the osDiskImage. Possible values include: 'Windows', 'Linux' + */ + operatingSystem: OperatingSystemTypes; +} + +/** + * Contains the data disk images information. + */ +export interface DataDiskImage { + /** + * Specifies the logical unit number of the data disk. This value is used to identify data disks + * within the VM and therefore must be unique for each data disk attached to a VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lun?: number; +} + +/** + * Describes automatic OS upgrade properties on the image. + */ +export interface AutomaticOSUpgradeProperties { + /** + * Specifies whether automatic OS upgrade is supported on the image. + */ + automaticOSUpgradeSupported: boolean; +} + +/** + * Specifies additional capabilities supported by the image + */ +export interface VirtualMachineImageFeature { + /** + * The name of the feature. + */ + name?: string; + /** + * The corresponding value for the feature. + */ + value?: string; +} + +/** + * Describes a Virtual Machine Image. + */ +export interface VirtualMachineImage extends VirtualMachineImageResource { + plan?: PurchasePlan; + osDiskImage?: OSDiskImage; + dataDiskImages?: DataDiskImage[]; + automaticOSUpgradeProperties?: AutomaticOSUpgradeProperties; + /** + * Possible values include: 'V1', 'V2' + */ + hyperVGeneration?: HyperVGenerationTypes; + /** + * Specifies disallowed configuration for the VirtualMachine created from the image + */ + disallowed?: DisallowedConfiguration; + features?: VirtualMachineImageFeature[]; +} + +/** + * The Usage Names. + */ +export interface UsageName { + /** + * The name of the resource. + */ + value?: string; + /** + * The localized name of the resource. + */ + localizedValue?: string; +} + +/** + * Describes Compute Resource Usage. + */ +export interface Usage { + /** + * The current usage of the resource. + */ + currentValue: number; + /** + * The maximum permitted usage of the resource. + */ + limit: number; + /** + * The name of the type of usage. + */ + name: UsageName; +} + +/** + * Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged + */ +export interface VirtualMachineReimageParameters { + /** + * Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage + * parameter is only supported for VM/VMSS with Ephemeral OS disk. + */ + tempDisk?: boolean; +} + +/** + * Capture Virtual Machine parameters. + */ +export interface VirtualMachineCaptureParameters { + /** + * The captured virtual hard disk's name prefix. + */ + vhdPrefix: string; + /** + * The destination container name. + */ + destinationContainerName: string; + /** + * Specifies whether to overwrite the destination virtual hard disk, in case of conflict. + */ + overwriteVhds: boolean; +} + +/** + * Output of virtual machine capture operation. + */ +export interface VirtualMachineCaptureResult extends SubResource { + /** + * the schema of the captured virtual machine + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly schema?: string; + /** + * the version of the content + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly contentVersion?: string; + /** + * parameters of the captured virtual machine + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly parameters?: any; + /** + * a list of resource items of the captured virtual machine + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resources?: any[]; +} + +/** + * Specifies information about the marketplace image used to create the virtual machine. This + * element is only used for marketplace images. Before you can use a marketplace image from an API, + * you must enable the image for programmatic use. In the Azure portal, find the marketplace image + * that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter + * any required information and then click **Save**. + */ +export interface Plan { + /** + * The plan ID. + */ + name?: string; + /** + * The publisher ID. + */ + publisher?: string; + /** + * Specifies the product of the image from the marketplace. This is the same value as Offer under + * the imageReference element. */ product?: string; /** @@ -1157,51 +1504,52 @@ export interface Plan { */ export interface HardwareProfile { /** - * Specifies the size of the virtual machine. For more information about virtual machine sizes, - * see [Sizes for virtual - * machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). - *

The available VM sizes depend on region and availability set. For a list of available - * sizes use these APIs:

[List all available virtual machine sizes in an availability + * Specifies the size of the virtual machine.

The enum data type is currently deprecated + * and will be removed by December 23rd 2023.

Recommended way to get the list of + * available sizes is using these APIs:

[List all available virtual machine sizes in an + * availability * set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)

- * [List all available virtual machine sizes in a - * region](https://docs.microsoft.com/rest/api/compute/virtualmachinesizes/list)

[List - * all available virtual machine sizes for - * resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). - * Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', - * 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', - * 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', - * 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', - * 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', - * 'Standard_B2ms', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D2', - * 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', - * 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', - * 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3', 'Standard_D32_v3', - * 'Standard_D64_v3', 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', - * 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_D11_v2', - * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', - * 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', - * 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', - * 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', - * 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_DS13-4_v2', - * 'Standard_DS13-2_v2', 'Standard_DS14-8_v2', 'Standard_DS14-4_v2', 'Standard_E2_v3', - * 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', 'Standard_E32_v3', 'Standard_E64_v3', - * 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', - * 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_E32-16_v3', 'Standard_E32-8s_v3', - * 'Standard_E64-32s_v3', 'Standard_E64-16s_v3', 'Standard_F1', 'Standard_F2', 'Standard_F4', - * 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', - * 'Standard_F16s', 'Standard_F2s_v2', 'Standard_F4s_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', - * 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_G1', 'Standard_G2', - * 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', - * 'Standard_GS4', 'Standard_GS5', 'Standard_GS4-8', 'Standard_GS4-4', 'Standard_GS5-16', - * 'Standard_GS5-8', 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', - * 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', - * 'Standard_L32s', 'Standard_M64s', 'Standard_M64ms', 'Standard_M128s', 'Standard_M128ms', - * 'Standard_M64-32ms', 'Standard_M64-16ms', 'Standard_M128-64ms', 'Standard_M128-32ms', - * 'Standard_NC6', 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NC6s_v2', - * 'Standard_NC12s_v2', 'Standard_NC24s_v2', 'Standard_NC24rs_v2', 'Standard_NC6s_v3', - * 'Standard_NC12s_v3', 'Standard_NC24s_v3', 'Standard_NC24rs_v3', 'Standard_ND6s', - * 'Standard_ND12s', 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', - * 'Standard_NV24' + * [List all available virtual machine sizes in a region]( + * https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list)

[List all + * available virtual machine sizes for + * resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For + * more information about virtual machine sizes, see [Sizes for virtual + * machines](https://docs.microsoft.com/en-us/azure/virtual-machines/sizes).

The + * available VM sizes depend on region and availability set. Possible values include: 'Basic_A0', + * 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', + * 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', + * 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', + * 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', + * 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', 'Standard_B2ms', 'Standard_B4ms', + * 'Standard_B8ms', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', + * 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', + * 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D2_v3', 'Standard_D4_v3', + * 'Standard_D8_v3', 'Standard_D16_v3', 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_D2s_v3', + * 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', + * 'Standard_D64s_v3', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', + * 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', + * 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', + * 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', + * 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', + * 'Standard_DS15_v2', 'Standard_DS13-4_v2', 'Standard_DS13-2_v2', 'Standard_DS14-8_v2', + * 'Standard_DS14-4_v2', 'Standard_E2_v3', 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', + * 'Standard_E32_v3', 'Standard_E64_v3', 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', + * 'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_E32-16_v3', + * 'Standard_E32-8s_v3', 'Standard_E64-32s_v3', 'Standard_E64-16s_v3', 'Standard_F1', + * 'Standard_F2', 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', + * 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', 'Standard_F2s_v2', 'Standard_F4s_v2', + * 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', + * 'Standard_F72s_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', + * 'Standard_GS4-8', 'Standard_GS4-4', 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H8', + * 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', + * 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_M64s', + * 'Standard_M64ms', 'Standard_M128s', 'Standard_M128ms', 'Standard_M64-32ms', + * 'Standard_M64-16ms', 'Standard_M128-64ms', 'Standard_M128-32ms', 'Standard_NC6', + * 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NC6s_v2', 'Standard_NC12s_v2', + * 'Standard_NC24s_v2', 'Standard_NC24rs_v2', 'Standard_NC6s_v3', 'Standard_NC12s_v3', + * 'Standard_NC24s_v3', 'Standard_NC24rs_v3', 'Standard_ND6s', 'Standard_ND12s', + * 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24' */ vmSize?: VirtualMachineSizeTypes; } @@ -1337,7 +1685,7 @@ export interface ManagedDiskParameters extends SubResource { /** * 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: 'Standard_LRS', - * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS' */ storageAccountType?: StorageAccountTypes; /** @@ -1483,6 +1831,18 @@ export interface DataDisk { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly diskMBpsReadWrite?: number; + /** + * Specifies the detach behavior to be used while detaching a disk or which is already in the + * process of detachment from the virtual machine. Supported values: **ForceDetach**.

+ * detachOption: **ForceDetach** is applicable only for managed data disks. If a previous + * detachment attempt of the data disk did not complete due to an unexpected failure from the + * virtual machine and the disk is still not released then use force-detach as a last resort + * option to detach the disk forcibly from the VM. All writes might not have been flushed when + * using this detach behavior.

This feature is still in preview mode and is not + * supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to + * 'true' along with setting detachOption: 'ForceDetach'. Possible values include: 'ForceDetach' + */ + detachOption?: DiskDetachOptionTypes; } /** @@ -1510,10 +1870,32 @@ export interface StorageProfile { dataDisks?: DataDisk[]; } +/** + * Specifies the security settings like secure boot and vTPM used while creating the virtual + * machine.

Minimum api-version: 2020-12-01 + */ +export interface UefiSettings { + /** + * Specifies whether secure boot should be enabled on the virtual machine.

Minimum + * api-version: 2020-12-01 + */ + secureBootEnabled?: boolean; + /** + * Specifies whether vTPM should be enabled on the virtual machine.

Minimum api-version: + * 2020-12-01 + */ + vTpmEnabled?: boolean; +} + /** * Specifies the Security profile settings for the virtual machine or virtual machine scale set. */ export interface SecurityProfile { + /** + * Specifies the security settings like secure boot and vTPM used while creating the virtual + * machine.

Minimum api-version: 2020-12-01 + */ + uefiSettings?: UefiSettings; /** * This property can be used by user in the request to enable or disable the Host Encryption for * the virtual machine or virtual machine scale set. This will enable the encryption for all the @@ -1521,6 +1903,12 @@ export interface SecurityProfile { * will be disabled unless this property is set to true for the resource. */ encryptionAtHost?: boolean; + /** + * Specifies the SecurityType of the virtual machine. It is set as TrustedLaunch to enable + * UefiSettings.

Default: UefiSettings will not be enabled unless this property is set + * as TrustedLaunch. Possible values include: 'TrustedLaunch' + */ + securityType?: SecurityTypes; } /** @@ -1596,21 +1984,27 @@ export interface WinRMConfiguration { } /** - * An interface representing PatchSettings. + * Specifies settings related to VM Guest Patching on Windows. */ export interface PatchSettings { /** - * Specifies the mode of in-guest patching to IaaS virtual machine.

Possible values + * Specifies the mode of VM 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' + * 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; + patchMode?: WindowsVMGuestPatchMode; + /** + * Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, + * the 'provisionVMAgent' must be set to true and 'patchMode' must be set to + * 'AutomaticByPlatform'. + */ + enableHotpatching?: boolean; } /** @@ -1644,7 +2038,7 @@ export interface WindowsConfiguration { */ additionalUnattendContent?: AdditionalUnattendContent[]; /** - * Specifies settings related to in-guest patching (KBs). + * [Preview Feature] Specifies settings related to VM Guest Patching on Windows. */ patchSettings?: PatchSettings; /** @@ -1667,7 +2061,7 @@ export interface SshPublicKey { * 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). + * Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json). */ keyData?: string; } @@ -1682,6 +2076,20 @@ export interface SshConfiguration { publicKeys?: SshPublicKey[]; } +/** + * Specifies settings related to VM Guest Patching on Linux. + */ +export interface LinuxPatchSettings { + /** + * Specifies the mode of VM Guest Patching to IaaS virtual machine.

Possible values + * are:

**ImageDefault** - The virtual machine's default patching configuration is + * used.

**AutomaticByPlatform** - The virtual machine will be automatically updated + * by the platform. The property provisionVMAgent must be true. Possible values include: + * 'ImageDefault', 'AutomaticByPlatform' + */ + patchMode?: LinuxVMGuestPatchMode; +} + /** * Specifies the Linux operating system settings on the virtual machine.

For a list of * supported Linux distributions, see [Linux on Azure-Endorsed @@ -1705,6 +2113,10 @@ export interface LinuxConfiguration { * to the VM later. */ provisionVMAgent?: boolean; + /** + * [Preview Feature] Specifies settings related to VM Guest Patching on Linux. + */ + patchSettings?: LinuxPatchSettings; } /** @@ -2099,9 +2511,9 @@ export interface VirtualMachineHealthStatus { export interface AvailablePatchSummary { /** * The overall success or failure status of the operation. It remains "InProgress" until the - * operation completes. At that point it will become "Failed", "Succeeded", or - * "CompletedWithWarnings.". Possible values include: 'InProgress', 'Failed', 'Succeeded', - * 'CompletedWithWarnings' + * operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: PatchOperationStatus; @@ -2152,9 +2564,9 @@ export interface AvailablePatchSummary { export interface LastPatchInstallationSummary { /** * The overall success or failure status of the operation. It remains "InProgress" until the - * operation completes. At that point it will become "Failed", "Succeeded", or - * "CompletedWithWarnings.". Possible values include: 'InProgress', 'Failed', 'Succeeded', - * 'CompletedWithWarnings' + * operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + * "CompletedWithWarnings.". Possible values include: 'Unknown', 'InProgress', 'Failed', + * 'Succeeded', 'CompletedWithWarnings' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: PatchOperationStatus; @@ -2170,18 +2582,8 @@ export interface LastPatchInstallationSummary { */ readonly maintenanceWindowExceeded?: boolean; /** - * The reboot status of the machine after the patch operation. It will be in "NotNeeded" status - * if reboot is not needed after the patch operation. "Required" will be the status once the - * patch is applied and machine is required to reboot. "Started" will be the reboot status when - * the machine has started to reboot. "Failed" will be the status if the machine is failed to - * reboot. "Completed" will be the status once the machine is rebooted successfully. Possible - * values include: 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly rebootStatus?: RebootStatus; - /** - * The number of all available patches but not going to be installed because it didn't match a - * classification or inclusion list entry. + * The number of all available patches but not going to be installed because it didn't match a + * classification or inclusion list entry. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly notSelectedPatchCount?: number; @@ -2217,11 +2619,6 @@ export interface LastPatchInstallationSummary { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastModifiedTime?: Date; - /** - * The person or system account that started the operation - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startedBy?: string; /** * The errors that were encountered during execution of the operation. The details array contains * the list of them. @@ -2242,6 +2639,11 @@ export interface VirtualMachinePatchStatus { * The installation summary of the latest installation operation for the virtual machine. */ lastPatchInstallationSummary?: LastPatchInstallationSummary; + /** + * The enablement status of the specified patchMode + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly configurationStatuses?: InstanceViewStatus[]; } /** @@ -2316,7 +2718,7 @@ export interface VirtualMachineInstanceView { */ statuses?: InstanceViewStatus[]; /** - * The status of virtual machine patch operations. + * [Preview Feature] The status of virtual machine patch operations. */ patchStatus?: VirtualMachinePatchStatus; } @@ -2431,12 +2833,14 @@ export interface VirtualMachine extends Resource { */ readonly instanceView?: VirtualMachineInstanceView; /** - * Specifies that the image or disk that is being used was licensed on-premises. This element is - * only used for images that contain the Windows Server operating system.

Possible - * values are:

Windows_Client

Windows_Server

If this element is - * included in a request for an update, the value must match the initial value. This value cannot - * be updated.

For more information, see [Azure Hybrid Use Benefit for Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) + * Specifies that the image or disk that is being used was licensed on-premises.

+ * Possible values for Windows Server operating system are:

Windows_Client

+ * Windows_Server

Possible values for Linux Server operating system are:

+ * RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

For more information, see [Azure + * Hybrid Use Benefit for Windows + * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + *

[Azure Hybrid Use Benefit for Linux + * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -2452,6 +2856,16 @@ export interface VirtualMachine extends Resource { * value is 90 minutes (PT1H30M).

Minimum api-version: 2020-06-01 */ extensionsTimeBudget?: string; + /** + * Specifies the scale set logical fault domain into which the Virtual Machine will be created. + * By default, the Virtual Machine will by automatically assigned to a fault domain that best + * maintains balance across available fault domains.
  • This is applicable only if the + * 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale + * Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot + * be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in + * the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 + */ + platformFaultDomain?: number; /** * The virtual machine child extension resources. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2465,6 +2879,10 @@ export interface VirtualMachine extends Resource { * The virtual machine zones. */ zones?: string[]; + /** + * The extended location of the Virtual Machine. + */ + extendedLocation?: ExtendedLocation; } /** @@ -2577,12 +2995,14 @@ export interface VirtualMachineUpdate extends UpdateResource { */ readonly instanceView?: VirtualMachineInstanceView; /** - * Specifies that the image or disk that is being used was licensed on-premises. This element is - * only used for images that contain the Windows Server operating system.

    Possible - * values are:

    Windows_Client

    Windows_Server

    If this element is - * included in a request for an update, the value must match the initial value. This value cannot - * be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) + * Specifies that the image or disk that is being used was licensed on-premises.

    + * Possible values for Windows Server operating system are:

    Windows_Client

    + * Windows_Server

    Possible values for Linux Server operating system are:

    + * RHEL_BYOS (for RHEL)

    SLES_BYOS (for SUSE)

    For more information, see [Azure + * Hybrid Use Benefit for Windows + * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + *

    [Azure Hybrid Use Benefit for Linux + * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

    Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -2598,6 +3018,16 @@ export interface VirtualMachineUpdate extends UpdateResource { * value is 90 minutes (PT1H30M).

    Minimum api-version: 2020-06-01 */ extensionsTimeBudget?: string; + /** + * Specifies the scale set logical fault domain into which the Virtual Machine will be created. + * By default, the Virtual Machine will by automatically assigned to a fault domain that best + * maintains balance across available fault domains.
  • This is applicable only if the + * 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale + * Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot + * be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in + * the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 + */ + platformFaultDomain?: number; /** * The identity of the virtual machine, if configured. */ @@ -2657,6 +3087,15 @@ export interface RollingUpgradePolicy { * 0 seconds (PT0S). */ pauseTimeBetweenBatches?: string; + /** + * Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration + * the Update Domain and maxBatchInstancePercent to determine the batch size. + */ + enableCrossZoneUpgrade?: boolean; + /** + * Upgrade all unhealthy instances in a scale set before any healthy instances. + */ + prioritizeUnhealthyInstances?: boolean; } /** @@ -2733,7 +3172,7 @@ export interface ImageDisk { /** * 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: 'Standard_LRS', - * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS' */ storageAccountType?: StorageAccountTypes; /** @@ -2816,6 +3255,10 @@ export interface Image extends Resource { * include: 'V1', 'V2' */ hyperVGeneration?: HyperVGenerationTypes; + /** + * The extended location of the Image. + */ + extendedLocation?: ExtendedLocation; } /** @@ -2986,7 +3429,7 @@ export interface VirtualMachineScaleSetManagedDiskParameters { /** * 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: 'Standard_LRS', - * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS' */ storageAccountType?: StorageAccountTypes; /** @@ -3393,6 +3836,10 @@ export interface VirtualMachineScaleSetNetworkConfiguration extends SubResource * Specifies whether the network interface is accelerated networking-enabled. */ enableAcceleratedNetworking?: boolean; + /** + * Specifies whether the network interface is FPGA networking-enabled. + */ + enableFpga?: boolean; /** * The network security group. */ @@ -3427,6 +3874,10 @@ export interface VirtualMachineScaleSetUpdateNetworkConfiguration extends SubRes * Specifies whether the network interface is accelerated networking-enabled. */ enableAcceleratedNetworking?: boolean; + /** + * Specifies whether the network interface is FPGA networking-enabled. + */ + enableFpga?: boolean; /** * The network security group. */ @@ -3672,12 +4123,14 @@ export interface VirtualMachineScaleSetVMProfile { */ extensionProfile?: VirtualMachineScaleSetExtensionProfile; /** - * Specifies that the image or disk that is being used was licensed on-premises. This element is - * only used for images that contain the Windows Server operating system.

    Possible - * values are:

    Windows_Client

    Windows_Server

    If this element is - * included in a request for an update, the value must match the initial value. This value cannot - * be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) + * Specifies that the image or disk that is being used was licensed on-premises.

    + * Possible values for Windows Server operating system are:

    Windows_Client

    + * Windows_Server

    Possible values for Linux Server operating system are:

    + * RHEL_BYOS (for RHEL)

    SLES_BYOS (for SUSE)

    For more information, see [Azure + * Hybrid Use Benefit for Windows + * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + *

    [Azure Hybrid Use Benefit for Linux + * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

    Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -3832,6 +4285,11 @@ export interface VirtualMachineScaleSet extends Resource { * a Virtual Machine Scale Set is scaled-in. */ scaleInPolicy?: ScaleInPolicy; + /** + * Specifies the orchestration mode for the virtual machine scale set. Possible values include: + * 'Uniform', 'Flexible' + */ + orchestrationMode?: OrchestrationMode; /** * The identity of the virtual machine scale set, if configured. */ @@ -3841,6 +4299,10 @@ export interface VirtualMachineScaleSet extends Resource { * the scale set */ zones?: string[]; + /** + * The extended location of the Virtual Machine Scale Set. + */ + extendedLocation?: ExtendedLocation; } /** @@ -4373,12 +4835,14 @@ export interface VirtualMachineScaleSetVM extends Resource { */ readonly provisioningState?: string; /** - * Specifies that the image or disk that is being used was licensed on-premises. This element is - * only used for images that contain the Windows Server operating system.

    Possible - * values are:

    Windows_Client

    Windows_Server

    If this element is - * included in a request for an update, the value must match the initial value. This value cannot - * be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) + * Specifies that the image or disk that is being used was licensed on-premises.

    + * Possible values for Windows Server operating system are:

    Windows_Client

    + * Windows_Server

    Possible values for Linux Server operating system are:

    + * RHEL_BYOS (for RHEL)

    SLES_BYOS (for SUSE)

    For more information, see [Azure + * Hybrid Use Benefit for Windows + * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + *

    [Azure Hybrid Use Benefit for Linux + * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

    Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -4510,6 +4974,14 @@ export interface LogAnalyticsInputBase { * Group query result by Resource Name. */ groupByResourceName?: boolean; + /** + * Group query result by Client Application ID. + */ + groupByClientApplicationId?: boolean; + /** + * Group query result by User Agent. + */ + groupByUserAgent?: boolean; } /** @@ -4683,6 +5155,169 @@ export interface RunCommandResult { value?: InstanceViewStatus[]; } +/** + * The instance view of a virtual machine run command. + */ +export interface VirtualMachineRunCommandInstanceView { + /** + * Script execution status. Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', + * 'Succeeded', 'TimedOut', 'Canceled' + */ + executionState?: ExecutionState; + /** + * Communicate script configuration errors or execution messages. + */ + executionMessage?: string; + /** + * Exit code returned from script execution. + */ + exitCode?: number; + /** + * Script output stream. + */ + output?: string; + /** + * Script error stream. + */ + error?: string; + /** + * Script start time. + */ + startTime?: Date; + /** + * Script end time. + */ + endTime?: Date; + /** + * The resource status information. + */ + statuses?: InstanceViewStatus[]; +} + +/** + * Describes the script sources for run command. + */ +export interface VirtualMachineRunCommandScriptSource { + /** + * Specifies the script content to be executed on the VM. + */ + script?: string; + /** + * Specifies the script download location. + */ + scriptUri?: string; + /** + * Specifies a commandId of predefined built-in script. + */ + commandId?: string; +} + +/** + * Describes a Virtual Machine run command. + */ +export interface VirtualMachineRunCommand extends Resource { + /** + * The source of the run command script. + */ + source?: VirtualMachineRunCommandScriptSource; + /** + * The parameters used by the script. + */ + parameters?: RunCommandInputParameter[]; + /** + * The parameters used by the script. + */ + protectedParameters?: RunCommandInputParameter[]; + /** + * Optional. If set to true, provisioning will complete as soon as the script starts and will not + * wait for script to complete. Default value: false. + */ + asyncExecution?: boolean; + /** + * Specifies the user account on the VM when executing the run command. + */ + runAsUser?: string; + /** + * Specifies the user account password on the VM when executing the run command. + */ + runAsPassword?: string; + /** + * The timeout in seconds to execute the run command. + */ + timeoutInSeconds?: number; + /** + * Specifies the Azure storage blob where script output stream will be uploaded. + */ + outputBlobUri?: string; + /** + * Specifies the Azure storage blob where script error stream will be uploaded. + */ + errorBlobUri?: string; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine run command instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: VirtualMachineRunCommandInstanceView; +} + +/** + * Describes a Virtual Machine run command. + */ +export interface VirtualMachineRunCommandUpdate extends UpdateResource { + /** + * The source of the run command script. + */ + source?: VirtualMachineRunCommandScriptSource; + /** + * The parameters used by the script. + */ + parameters?: RunCommandInputParameter[]; + /** + * The parameters used by the script. + */ + protectedParameters?: RunCommandInputParameter[]; + /** + * Optional. If set to true, provisioning will complete as soon as the script starts and will not + * wait for script to complete. Default value: false. + */ + asyncExecution?: boolean; + /** + * Specifies the user account on the VM when executing the run command. + */ + runAsUser?: string; + /** + * Specifies the user account password on the VM when executing the run command. + */ + runAsPassword?: string; + /** + * The timeout in seconds to execute the run command. + */ + timeoutInSeconds?: number; + /** + * Specifies the Azure storage blob where script output stream will be uploaded. + */ + outputBlobUri?: string; + /** + * Specifies the Azure storage blob where script error stream will be uploaded. + */ + errorBlobUri?: string; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The virtual machine run command instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: VirtualMachineRunCommandInstanceView; +} + /** * Describes scaling information of a SKU. */ @@ -4899,6 +5534,27 @@ export interface ResourceSku { readonly restrictions?: ResourceSkuRestrictions[]; } +/** + * The ProxyOnly Resource model definition. + */ +export interface ProxyOnlyResource { + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + /** * The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or UltraSSD_LRS. */ @@ -5103,6 +5759,10 @@ export interface Disk extends Resource { * The Logical zone list for Disk. */ zones?: string[]; + /** + * The extended location where the disk will be created. Extended location cannot be changed. + */ + extendedLocation?: ExtendedLocation; /** * The time when the disk was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -5117,6 +5777,11 @@ export interface Disk extends Resource { * include: 'V1', 'V2' */ hyperVGeneration?: HyperVGeneration; + /** + * Purchase plan information for the the image from which the OS disk was created. E.g. - {name: + * 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer} + */ + purchasePlan?: PurchasePlan; /** * Disk source information. CreationData information cannot be changed after the disk has been * created. @@ -5205,6 +5870,11 @@ export interface Disk extends Resource { * disks. */ tier?: string; + /** + * Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting + * is disabled by default. Does not apply to Ultra disks. + */ + burstingEnabled?: boolean; } /** @@ -5272,6 +5942,15 @@ export interface DiskUpdate { * disks. */ tier?: string; + /** + * Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting + * is disabled by default. Does not apply to Ultra disks. + */ + burstingEnabled?: boolean; + /** + * Purchase plan information to be added on the OS disk + */ + purchasePlan?: PurchasePlan; /** * Resource tags */ @@ -5280,7 +5959,9 @@ export interface DiskUpdate { } /** - * The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. + * The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional + * parameter for incremental snapshot and the default behavior is the SKU will be set to the same + * sku as the previous snapshot */ export interface SnapshotSku { /** @@ -5294,6 +5975,21 @@ export interface SnapshotSku { readonly tier?: string; } +/** + * Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots + */ +export interface KeyForDiskEncryptionSet { + /** + * Resource id of the KeyVault containing the key or secret. This property is optional and cannot + * be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription. + */ + sourceVault?: SourceVault; + /** + * Fully versioned Key Url pointing to a key in KeyVault + */ + keyUrl: string; +} + /** * Data used for requesting a SAS. */ @@ -5329,6 +6025,10 @@ export interface Snapshot extends Resource { */ readonly managedBy?: string; sku?: SnapshotSku; + /** + * The extended location where the snapshot will be created. Extended location cannot be changed. + */ + extendedLocation?: ExtendedLocation; /** * The time when the snapshot was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -5343,6 +6043,11 @@ export interface Snapshot extends Resource { * include: 'V1', 'V2' */ hyperVGeneration?: HyperVGeneration; + /** + * Purchase plan information for the image from which the source disk for the snapshot was + * originally created. + */ + purchasePlan?: PurchasePlan; /** * Disk source information. CreationData information cannot be changed after the disk has been * created. @@ -5446,8 +6151,10 @@ export interface SnapshotUpdate { */ export interface EncryptionSetIdentity { /** - * The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported. - * Possible values include: 'SystemAssigned' + * The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported + * for new creations. Disk Encryption Sets can be updated with Identity type None during + * migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted + * resources to lose access to the keys. Possible values include: 'SystemAssigned', 'None' */ type?: DiskEncryptionSetIdentityType; /** @@ -5479,13 +6186,13 @@ export interface DiskEncryptionSet extends Resource { /** * The key vault key which is currently used by this disk encryption set. */ - activeKey?: KeyVaultAndKeyReference; + activeKey?: KeyForDiskEncryptionSet; /** * A readonly collection of key vault keys previously used by this disk encryption set while a * key rotation is in progress. It will be empty if there is no ongoing key rotation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly previousKeys?: KeyVaultAndKeyReference[]; + readonly previousKeys?: KeyForDiskEncryptionSet[]; /** * The disk encryption set provisioning state. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -5502,7 +6209,7 @@ export interface DiskEncryptionSetUpdate { * 'EncryptionAtRestWithPlatformAndCustomerKeys' */ encryptionType?: DiskEncryptionSetType; - activeKey?: KeyVaultAndKeyReference; + activeKey?: KeyForDiskEncryptionSet; /** * Resource tags */ @@ -5543,7 +6250,7 @@ export interface PrivateLinkServiceConnectionState { /** * The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection { +export interface PrivateEndpointConnection extends BaseResource { /** * The resource of private end point. */ @@ -5642,6 +6349,52 @@ export interface PrivateLinkResource { readonly type?: string; } +/** + * Properties of disk restore point + */ +export interface DiskRestorePoint extends ProxyOnlyResource { + /** + * The timestamp of restorePoint creation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeCreated?: Date; + /** + * arm id of source disk + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceResourceId?: string; + /** + * The Operating System type. Possible values include: 'Windows', 'Linux' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly osType?: OperatingSystemTypes; + /** + * The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values + * include: 'V1', 'V2' + */ + hyperVGeneration?: HyperVGeneration; + /** + * Purchase plan information for the the image from which the OS disk was created. + */ + purchasePlan?: PurchasePlan; + /** + * id of the backing snapshot's MIS family + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly familyId?: string; + /** + * unique incarnation id of the source disk + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceUniqueId?: string; + /** + * Encryption property can be used to encrypt data at rest with customer managed keys or platform + * managed keys. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly encryption?: Encryption; +} + /** * A list of private link resources */ @@ -5796,13 +6549,35 @@ export interface GalleryApplicationUpdate extends UpdateResourceDefinition { */ export interface UserArtifactSource { /** - * Required. The fileName of the artifact. + * Required. The mediaLink of the artifact, must be a readable storage page blob. */ - fileName: string; + mediaLink: string; /** - * Required. The mediaLink of the artifact, must be a readable storage blob. + * Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. */ - mediaLink: string; + defaultConfigurationLink?: string; +} + +/** + * An interface representing UserArtifactManage. + */ +export interface UserArtifactManage { + /** + * Required. The path and arguments to install the gallery application. This is limited to 4096 + * characters. + */ + install: string; + /** + * Required. The path and arguments to remove the gallery application. This is limited to 4096 + * characters. + */ + remove: string; + /** + * 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; } /** @@ -5842,15 +6617,11 @@ export interface GalleryArtifactPublishingProfileBase { } /** - * The publishing profile of a gallery Image Version. + * The publishing profile of a gallery image version. */ export interface GalleryApplicationVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { source: UserArtifactSource; - /** - * Optional. May be used to help process this file. The type of file contained in the source, - * e.g. zip, json, etc. - */ - contentType?: string; + manageActions?: UserArtifactManage; /** * Optional. Whether or not this application reports health. */ @@ -6295,265 +7066,97 @@ export interface GalleryArtifactSource { } /** - * Properties to configure a custom container service cluster. + * Optional Parameters. */ -export interface ContainerServiceCustomProfile { +export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * The name of the custom orchestrator to use. + * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - orchestrator: string; + expand?: string; } /** - * Information about a service principal identity for the cluster to use for manipulating Azure - * APIs. + * Optional Parameters. */ -export interface ContainerServiceServicePrincipalProfile { - /** - * The ID for the service principal. - */ - clientId: string; +export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { /** - * The secret password associated with the service principal. + * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - secret: string; + expand?: string; } /** - * Profile for the container service orchestrator. + * Optional Parameters. */ -export interface ContainerServiceOrchestratorProfile { +export interface ProximityPlacementGroupsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The orchestrator to use to manage container service cluster resources. Valid values are Swarm, - * DCOS, and Custom. Possible values include: 'Swarm', 'DCOS', 'Custom', 'Kubernetes' + * includeColocationStatus=true enables fetching the colocation status of all the resources in + * the proximity placement group. */ - orchestratorType: ContainerServiceOrchestratorTypes; + includeColocationStatus?: string; } /** - * Profile for the container service master. + * Optional Parameters. */ -export interface ContainerServiceMasterProfile { - /** - * Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The - * default value is 1. Default value: 1. - */ - count?: number; - /** - * DNS prefix to be used to create the FQDN for master. - */ - dnsPrefix: string; +export interface DedicatedHostGroupsGetOptionalParams extends msRest.RequestOptionsBase { /** - * FQDN for the master. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The expand expression to apply on the operation. The response shows the list of instance view + * of the dedicated hosts under the dedicated host group. Possible values include: 'instanceView' */ - readonly fqdn?: string; + expand?: InstanceViewTypes; } /** - * Profile for the container service agent pool. + * Optional Parameters. */ -export interface ContainerServiceAgentPoolProfile { +export interface DedicatedHostsGetOptionalParams extends msRest.RequestOptionsBase { /** - * Unique name of the agent pool profile in the context of the subscription and resource group. + * The expand expression to apply on the operation. Possible values include: 'instanceView' */ - name: string; - /** - * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to - * 100 (inclusive). The default value is 1. Default value: 1. - */ - count: number; - /** - * Size of agent VMs. Possible values include: 'Standard_A0', 'Standard_A1', 'Standard_A2', - * 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', - * 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', - * 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', - * 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', - * 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', - * 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', - * 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', - * 'Standard_DS14', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', - * 'Standard_GS5' - */ - vmSize: ContainerServiceVMSizeTypes; - /** - * DNS prefix to be used to create the FQDN for the agent pool. - */ - dnsPrefix: string; - /** - * FQDN for the agent pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly fqdn?: string; -} - -/** - * Profile for Windows VMs in the container service cluster. - */ -export interface ContainerServiceWindowsProfile { - /** - * The administrator username to use for Windows VMs. - */ - adminUsername: string; - /** - * The administrator password to use for Windows VMs. - */ - adminPassword: string; -} - -/** - * Contains information about SSH certificate public key data. - */ -export interface ContainerServiceSshPublicKey { - /** - * Certificate public key used to authenticate with VMs through SSH. The certificate must be in - * PEM format with or without headers. - */ - keyData: string; -} - -/** - * SSH configuration for Linux-based VMs running on Azure. - */ -export interface ContainerServiceSshConfiguration { - /** - * the list of SSH public keys used to authenticate with Linux-based VMs. - */ - publicKeys: ContainerServiceSshPublicKey[]; -} - -/** - * Profile for Linux VMs in the container service cluster. - */ -export interface ContainerServiceLinuxProfile { - /** - * The administrator username to use for Linux VMs. - */ - adminUsername: string; - /** - * The ssh key configuration for Linux VMs. - */ - ssh: ContainerServiceSshConfiguration; -} - -/** - * Profile for diagnostics on the container service VMs. - */ -export interface ContainerServiceVMDiagnostics { - /** - * Whether the VM diagnostic agent is provisioned on the VM. - */ - enabled: boolean; - /** - * The URI of the storage account where diagnostics are stored. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly storageUri?: string; -} - -/** - * An interface representing ContainerServiceDiagnosticsProfile. - */ -export interface ContainerServiceDiagnosticsProfile { - /** - * Profile for the container service VM diagnostic agent. - */ - vmDiagnostics: ContainerServiceVMDiagnostics; -} - -/** - * Container service. - */ -export interface ContainerService extends Resource { - /** - * the current deployment or provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * Properties of the orchestrator. - */ - orchestratorProfile?: ContainerServiceOrchestratorProfile; - /** - * Properties for custom clusters. - */ - customProfile?: ContainerServiceCustomProfile; - /** - * Properties for cluster service principals. - */ - servicePrincipalProfile?: ContainerServiceServicePrincipalProfile; - /** - * Properties of master agents. - */ - masterProfile: ContainerServiceMasterProfile; - /** - * Properties of the agent pool. - */ - agentPoolProfiles: ContainerServiceAgentPoolProfile[]; - /** - * Properties of Windows VMs. - */ - windowsProfile?: ContainerServiceWindowsProfile; - /** - * Properties of Linux VMs. - */ - linuxProfile: ContainerServiceLinuxProfile; - /** - * Properties of the diagnostic agent. - */ - diagnosticsProfile?: ContainerServiceDiagnosticsProfile; -} - -/** - * Optional Parameters. - */ -export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { - /** - * The expand expression to apply to the operation. Allowed values are 'instanceView'. - */ - expand?: string; + expand?: InstanceViewTypes; } /** * Optional Parameters. */ -export interface ProximityPlacementGroupsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends msRest.RequestOptionsBase { /** - * includeColocationStatus=true enables fetching the colocation status of all the resources in - * the proximity placement group. + * The filter to apply on the operation. */ - includeColocationStatus?: string; + filter?: string; + top?: number; + orderby?: string; } /** * Optional Parameters. */ -export interface DedicatedHostGroupsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineExtensionsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. The response shows the list of instance view - * of the dedicated hosts under the dedicated host group. Possible values include: 'instanceView' + * The expand expression to apply on the operation. */ - expand?: InstanceViewTypes; + expand?: string; } /** * Optional Parameters. */ -export interface DedicatedHostsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineExtensionsListOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'instanceView' + * The expand expression to apply on the operation. */ - expand?: InstanceViewTypes; + expand?: string; } /** * Optional Parameters. */ -export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. + * The expand expression to apply on the operation. */ - filter?: string; + expand?: string; top?: number; orderby?: string; } @@ -6561,33 +7164,29 @@ export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends /** * Optional Parameters. */ -export interface VirtualMachineExtensionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineImagesEdgeZoneListOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ expand?: string; -} - -/** - * Optional Parameters. - */ -export interface VirtualMachineExtensionsListOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * An integer value specifying the number of images to return that matches supplied values. */ - expand?: string; + top?: number; + /** + * Specifies the order of the results returned. Formatted as an OData query. + */ + orderby?: string; } /** * Optional Parameters. */ -export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * Optional parameter to force delete virtual machines.(Feature in Preview) */ - expand?: string; - top?: number; - orderby?: string; + forceDeletion?: boolean; } /** @@ -6644,6 +7243,16 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend sasUriExpirationTimeInMinutes?: number; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines.(Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6669,11 +7278,21 @@ export interface VirtualMachinesBeginReimageOptionalParams extends msRest.Reques /** * Optional Parameters. */ -export interface ImagesGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesListAllNextOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ - expand?: string; + statusOnly?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; } /** @@ -6686,6 +7305,17 @@ export interface VirtualMachineScaleSetsDeallocateOptionalParams extends msRest. vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines from the VM scale set. (Feature in + * Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6762,6 +7392,16 @@ export interface VirtualMachineScaleSetsReimageAllOptionalParams extends msRest. vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6772,6 +7412,17 @@ export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams extends ms vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines from the VM scale set. (Feature in + * Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6848,6 +7499,16 @@ export interface VirtualMachineScaleSetsBeginReimageAllOptionalParams extends ms vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +/** + * Optional Parameters. + */ +export interface ImagesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + /** * Optional Parameters. */ @@ -6888,6 +7549,16 @@ export interface VirtualMachineScaleSetVMsReimageOptionalParams extends msRest.R vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6952,6 +7623,16 @@ export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msR vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; +} + /** * Optional Parameters. */ @@ -6967,70 +7648,160 @@ export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends ms /** * Optional Parameters. */ -export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Only **location** filter is supported currently. + * The filter to apply to the operation. Allowed values are + * 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied + * eq true', 'properties/latestModelApplied eq false'. */ filter?: string; + /** + * The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. + */ + select?: string; + /** + * The expand expression to apply to the operation. Allowed values are 'instanceView'. + */ + expand?: string; } /** * Optional Parameters. */ -export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * The expand expression to apply on the operation. */ - expand?: ReplicationStatusTypes; + expand?: string; } /** * Optional Parameters. */ -export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * The expand expression to apply on the operation. */ - expand?: ReplicationStatusTypes; + expand?: string; } /** - * An interface representing ComputeManagementClientOptions. + * Optional Parameters. */ -export interface ComputeManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; } /** - * @interface - * The List Compute Operation operation response. - * @extends Array + * Optional Parameters. */ -export interface ComputeOperationListResult extends Array { +export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; } /** - * @interface - * The List Availability Set operation response. - * @extends Array + * Optional Parameters. */ -export interface AvailabilitySetListResult extends Array { +export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the - * next page of AvailabilitySets. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineSizeListResult extends Array { -} - -/** +export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Only **location** filter is supported currently. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ResourceSkusListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Only **location** filter is supported currently. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + */ + expand?: ReplicationStatusTypes; +} + +/** + * Optional Parameters. + */ +export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + */ + expand?: ReplicationStatusTypes; +} + +/** + * An interface representing ComputeManagementClientOptions. + */ +export interface ComputeManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * The List Compute Operation operation response. + * @extends Array + */ +export interface ComputeOperationListResult extends Array { +} + +/** + * @interface + * The List Availability Set operation response. + * @extends Array + */ +export interface AvailabilitySetListResult extends Array { + /** + * The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the + * next page of AvailabilitySets. + */ + nextLink?: string; +} + +/** + * @interface + * The List Virtual Machine operation response. + * @extends Array + */ +export interface VirtualMachineSizeListResult extends Array { +} + +/** * @interface * The List Proximity Placement Group operation response. * @extends Array @@ -7107,19 +7878,6 @@ export interface VirtualMachineListResult extends Array { nextLink?: string; } -/** - * @interface - * The List Image operation response. - * @extends Array - */ -export interface ImageListResult extends Array { - /** - * The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of - * Images. - */ - nextLink?: string; -} - /** * @interface * The List Virtual Machine operation response. @@ -7172,6 +7930,19 @@ export interface VirtualMachineScaleSetListOSUpgradeHistory extends Array + */ +export interface ImageListResult extends Array { + /** + * The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of + * Images. + */ + nextLink?: string; +} + /** * @interface * The List VM scale set extension operation response. @@ -7211,6 +7982,18 @@ export interface RunCommandListResult extends Array { nextLink?: string; } +/** + * @interface + * The List run command operation response + * @extends Array + */ +export interface VirtualMachineRunCommandsListResult extends Array { + /** + * The uri to fetch the next page of run commands. + */ + nextLink?: string; +} + /** * @interface * The List Resource Skus operation response. @@ -7289,6 +8072,32 @@ export interface DiskAccessList extends Array { nextLink?: string; } +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { + /** + * The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page + * of snapshots. + */ + nextLink?: string; +} + +/** + * @interface + * The List Disk Restore Points operation response. + * @extends Array + */ +export interface DiskRestorePointList extends Array { + /** + * The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the + * next page of disk restore points. + */ + nextLink?: string; +} + /** * @interface * The List Galleries operation response. @@ -7354,18 +8163,6 @@ export interface GalleryApplicationVersionList extends Array - */ -export interface ContainerServiceListResult extends Array { - /** - * The URL to get the next set of container service results. - */ - nextLink?: string; -} - /** * Defines values for VmDiskTypes. * Possible values include: 'None', 'Unmanaged' @@ -7415,29 +8212,77 @@ export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; export type DedicatedHostLicenseTypes = 'None' | 'Windows_Server_Hybrid' | 'Windows_Server_Perpetual'; /** - * Defines values for SoftwareUpdateRebootBehavior. - * Possible values include: 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' + * Defines values for ExtendedLocationTypes. + * Possible values include: 'EdgeZone' + * @readonly + * @enum {string} + */ +export type ExtendedLocationTypes = 'EdgeZone'; + +/** + * Defines values for VMGuestPatchRebootBehavior. + * Possible values include: 'Unknown', 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' * @readonly * @enum {string} */ -export type SoftwareUpdateRebootBehavior = 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; +export type VMGuestPatchRebootBehavior = 'Unknown' | 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; /** * Defines values for PatchAssessmentState. - * Possible values include: 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending', - * 'Available' + * Possible values include: 'Unknown', 'Available' * @readonly * @enum {string} */ -export type PatchAssessmentState = 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending' | 'Available'; +export type PatchAssessmentState = 'Unknown' | 'Available'; /** * Defines values for PatchOperationStatus. - * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' + * Possible values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' + * @readonly + * @enum {string} + */ +export type PatchOperationStatus = 'Unknown' | 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; + +/** + * Defines values for VMGuestPatchRebootSetting. + * Possible values include: 'IfRequired', 'Never', 'Always' + * @readonly + * @enum {string} + */ +export type VMGuestPatchRebootSetting = 'IfRequired' | 'Never' | 'Always'; + +/** + * Defines values for VMGuestPatchClassificationWindows. + * Possible values include: 'Critical', 'Security', 'UpdateRollUp', 'FeaturePack', 'ServicePack', + * 'Definition', 'Tools', 'Updates' + * @readonly + * @enum {string} + */ +export type VMGuestPatchClassificationWindows = 'Critical' | 'Security' | 'UpdateRollUp' | 'FeaturePack' | 'ServicePack' | 'Definition' | 'Tools' | 'Updates'; + +/** + * Defines values for VMGuestPatchClassificationLinux. + * Possible values include: 'Critical', 'Security', 'Other' + * @readonly + * @enum {string} + */ +export type VMGuestPatchClassificationLinux = 'Critical' | 'Security' | 'Other'; + +/** + * Defines values for VMGuestPatchRebootStatus. + * Possible values include: 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' * @readonly * @enum {string} */ -export type PatchOperationStatus = 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; +export type VMGuestPatchRebootStatus = 'Unknown' | 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; + +/** + * Defines values for PatchInstallationState. + * Possible values include: 'Unknown', 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending' + * @readonly + * @enum {string} + */ +export type PatchInstallationState = 'Unknown' | 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending'; /** * Defines values for OperatingSystemTypes. @@ -7504,13 +8349,22 @@ export type CachingTypes = 'None' | 'ReadOnly' | 'ReadWrite'; */ export type DiskCreateOptionTypes = 'FromImage' | 'Empty' | 'Attach'; +/** + * Defines values for DiskDetachOptionTypes. + * Possible values include: 'ForceDetach' + * @readonly + * @enum {string} + */ +export type DiskDetachOptionTypes = 'ForceDetach'; + /** * Defines values for StorageAccountTypes. - * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', + * 'Premium_ZRS', 'StandardSSD_ZRS' * @readonly * @enum {string} */ -export type StorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS'; +export type StorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS' | 'Premium_ZRS' | 'StandardSSD_ZRS'; /** * Defines values for DiffDiskOptions. @@ -7528,6 +8382,14 @@ export type DiffDiskOptions = 'Local'; */ export type DiffDiskPlacement = 'CacheDisk' | 'ResourceDisk'; +/** + * Defines values for SecurityTypes. + * Possible values include: 'TrustedLaunch' + * @readonly + * @enum {string} + */ +export type SecurityTypes = 'TrustedLaunch'; + /** * Defines values for PassNames. * Possible values include: 'OobeSystem' @@ -7561,12 +8423,20 @@ export type SettingNames = 'AutoLogon' | 'FirstLogonCommands'; export type ProtocolTypes = 'Http' | 'Https'; /** - * Defines values for InGuestPatchMode. + * Defines values for WindowsVMGuestPatchMode. * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' * @readonly * @enum {string} */ -export type InGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; +export type WindowsVMGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; + +/** + * Defines values for LinuxVMGuestPatchMode. + * Possible values include: 'ImageDefault', 'AutomaticByPlatform' + * @readonly + * @enum {string} + */ +export type LinuxVMGuestPatchMode = 'ImageDefault' | 'AutomaticByPlatform'; /** * Defines values for VirtualMachinePriorityTypes. @@ -7609,14 +8479,6 @@ export type MaintenanceOperationResultCodeTypes = 'None' | 'RetryLater' | 'Maint */ export type HyperVGenerationType = 'V1' | 'V2'; -/** - * Defines values for RebootStatus. - * Possible values include: 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' - * @readonly - * @enum {string} - */ -export type RebootStatus = 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; - /** * Defines values for UpgradeMode. * Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -7633,6 +8495,14 @@ export type UpgradeMode = 'Automatic' | 'Manual' | 'Rolling'; */ export type VirtualMachineScaleSetScaleInRules = 'Default' | 'OldestVM' | 'NewestVM'; +/** + * Defines values for OrchestrationMode. + * Possible values include: 'Uniform', 'Flexible' + * @readonly + * @enum {string} + */ +export type OrchestrationMode = 'Uniform' | 'Flexible'; + /** * Defines values for OperatingSystemStateTypes. * Possible values include: 'Generalized', 'Specialized' @@ -7721,6 +8591,15 @@ export type IntervalInMins = 'ThreeMins' | 'FiveMins' | 'ThirtyMins' | 'SixtyMin */ export type OrchestrationServiceStateAction = 'Resume' | 'Suspend'; +/** + * Defines values for ExecutionState. + * Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type ExecutionState = 'Unknown' | 'Pending' | 'Running' | 'Failed' | 'Succeeded' | 'TimedOut' | 'Canceled'; + /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' @@ -7822,11 +8701,11 @@ export type AccessLevel = 'None' | 'Read' | 'Write'; /** * Defines values for DiskEncryptionSetIdentityType. - * Possible values include: 'SystemAssigned' + * Possible values include: 'SystemAssigned', 'None' * @readonly * @enum {string} */ -export type DiskEncryptionSetIdentityType = 'SystemAssigned'; +export type DiskEncryptionSetIdentityType = 'SystemAssigned' | 'None'; /** * Defines values for PrivateEndpointServiceConnectionStatus. @@ -7876,30 +8755,6 @@ export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS' | 'Premium_LRS' */ export type HostCaching = 'None' | 'ReadOnly' | 'ReadWrite'; -/** - * Defines values for ContainerServiceOrchestratorTypes. - * Possible values include: 'Swarm', 'DCOS', 'Custom', 'Kubernetes' - * @readonly - * @enum {string} - */ -export type ContainerServiceOrchestratorTypes = 'Swarm' | 'DCOS' | 'Custom' | 'Kubernetes'; - -/** - * Defines values for ContainerServiceVMSizeTypes. - * Possible values include: 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', - * 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', - * 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', - * 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', - * 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', - * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', 'Standard_G2', - * 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', - * 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', - * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5' - * @readonly - * @enum {string} - */ -export type ContainerServiceVMSizeTypes = 'Standard_A0' | 'Standard_A1' | 'Standard_A2' | 'Standard_A3' | 'Standard_A4' | 'Standard_A5' | 'Standard_A6' | 'Standard_A7' | 'Standard_A8' | 'Standard_A9' | 'Standard_A10' | 'Standard_A11' | 'Standard_D1' | 'Standard_D2' | 'Standard_D3' | 'Standard_D4' | 'Standard_D11' | 'Standard_D12' | 'Standard_D13' | 'Standard_D14' | 'Standard_D1_v2' | 'Standard_D2_v2' | 'Standard_D3_v2' | 'Standard_D4_v2' | 'Standard_D5_v2' | 'Standard_D11_v2' | 'Standard_D12_v2' | 'Standard_D13_v2' | 'Standard_D14_v2' | 'Standard_G1' | 'Standard_G2' | 'Standard_G3' | 'Standard_G4' | 'Standard_G5' | 'Standard_DS1' | 'Standard_DS2' | 'Standard_DS3' | 'Standard_DS4' | 'Standard_DS11' | 'Standard_DS12' | 'Standard_DS13' | 'Standard_DS14' | 'Standard_GS1' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS5'; - /** * Defines values for InstanceViewTypes. * Possible values include: 'instanceView' @@ -8324,14 +9179,494 @@ export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DedicatedHostsUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DedicatedHostsGetResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the listByHostGroup operation. + */ +export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the listByHostGroupNext operation. + */ +export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostListResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeysGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeysGroupListResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type SshPublicKeysCreateResponse = SshPublicKeyResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeyResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeyResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SshPublicKeysGetResponse = SshPublicKeyResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeyResource; + }; +}; + +/** + * Contains response data for the generateKeyPair operation. + */ +export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeyGenerateKeyPairResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeysGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeysGroupListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtensionImage; + }; +}; + +/** + * Contains response data for the listTypes operation. + */ +export type VirtualMachineExtensionImagesListTypesResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtensionImage[]; + }; +}; + +/** + * Contains response data for the listVersions operation. + */ +export type VirtualMachineExtensionImagesListVersionsResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtensionImage[]; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsGetResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -8344,14 +9679,14 @@ export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupL /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the list operation. */ -export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult & { /** * The underlying HTTP response. */ @@ -8364,14 +9699,14 @@ export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupLi /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtensionsListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -8384,14 +9719,14 @@ export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGr /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the beginUpdate operation. */ -export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -8404,14 +9739,14 @@ export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGro /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -8424,14 +9759,14 @@ export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImage; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type DedicatedHostsUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesListResponse = Array & { /** * The underlying HTTP response. */ @@ -8444,14 +9779,14 @@ export type DedicatedHostsUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listOffers operation. */ -export type DedicatedHostsGetResponse = DedicatedHost & { +export type VirtualMachineImagesListOffersResponse = Array & { /** * The underlying HTTP response. */ @@ -8464,14 +9799,14 @@ export type DedicatedHostsGetResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listByHostGroup operation. + * Contains response data for the listPublishers operation. */ -export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { +export type VirtualMachineImagesListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -8484,14 +9819,14 @@ export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listSkus operation. */ -export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -8504,14 +9839,14 @@ export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesEdgeZoneGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -8524,14 +9859,14 @@ export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImage; }; }; /** - * Contains response data for the listByHostGroupNext operation. + * Contains response data for the list operation. */ -export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult & { +export type VirtualMachineImagesEdgeZoneListResponse = Array & { /** * The underlying HTTP response. */ @@ -8544,14 +9879,14 @@ export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listOffers operation. */ -export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult & { +export type VirtualMachineImagesEdgeZoneListOffersResponse = Array & { /** * The underlying HTTP response. */ @@ -8564,14 +9899,14 @@ export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResu /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listPublishers operation. */ -export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult & { +export type VirtualMachineImagesEdgeZoneListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -8584,14 +9919,14 @@ export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListRes /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listSkus operation. */ -export type SshPublicKeysCreateResponse = SshPublicKeyResource & { +export type VirtualMachineImagesEdgeZoneListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -8604,14 +9939,14 @@ export type SshPublicKeysCreateResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { +export type UsageListResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -8624,14 +9959,14 @@ export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type SshPublicKeysGetResponse = SshPublicKeyResource & { +export type UsageListNextResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -8644,14 +9979,14 @@ export type SshPublicKeysGetResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the generateKeyPair operation. + * Contains response data for the listByLocation operation. */ -export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult & { +export type VirtualMachinesListByLocationResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -8664,14 +9999,14 @@ export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairRe /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyGenerateKeyPairResult; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the capture operation. */ -export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult & { +export type VirtualMachinesCaptureResponse = VirtualMachineCaptureResult & { /** * The underlying HTTP response. */ @@ -8684,14 +10019,14 @@ export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupList /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachineCaptureResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult & { +export type VirtualMachinesCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8704,14 +10039,14 @@ export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupLis /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage & { +export type VirtualMachinesUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8724,14 +10059,14 @@ export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionIm /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtensionImage; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the listTypes operation. + * Contains response data for the get operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachinesGetResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8744,14 +10079,14 @@ export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachinesInstanceViewResponse = VirtualMachineInstanceView & { /** * The underlying HTTP response. */ @@ -8764,14 +10099,14 @@ export type VirtualMachineExtensionImagesListVersionsResponse = Array & { +export type VirtualMachinesBeginCaptureResponse = VirtualMachineCaptureResult & { /** * The underlying HTTP response. */ @@ -8924,14 +10259,14 @@ export type VirtualMachineImagesListResponse = Array & { +export type VirtualMachinesBeginCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8944,14 +10279,14 @@ export type VirtualMachineImagesListOffersResponse = Array & { +export type VirtualMachinesBeginUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8964,14 +10299,14 @@ export type VirtualMachineImagesListPublishersResponse = Array & { +export type VirtualMachinesBeginAssessPatchesResponse = VirtualMachineAssessPatchesResult & { /** * The underlying HTTP response. */ @@ -8984,14 +10319,14 @@ export type VirtualMachineImagesListSkusResponse = Array */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.AvailabilitySetsListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -264,8 +263,8 @@ export class AvailabilitySets { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: Models.AvailabilitySetsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.AvailabilitySetsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -499,6 +498,10 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -520,6 +523,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/containerServices.ts b/sdk/compute/arm-compute/src/operations/containerServices.ts deleted file mode 100644 index a0b681fc5406..000000000000 --- a/sdk/compute/arm-compute/src/operations/containerServices.ts +++ /dev/null @@ -1,444 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/containerServicesMappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClientContext } from "../computeManagementClientContext"; - -/** Class representing a ContainerServices. */ -export class ContainerServices { - private readonly client: ComputeManagementClientContext; - - /** - * Create a ContainerServices. - * @param {ComputeManagementClientContext} client Reference to the service client. - */ - constructor(client: ComputeManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of container services in the specified subscription. The operation returns - * properties of each container service including state, orchestrator, number of masters and - * agents, and FQDNs of masters and agents. - * @summary Gets a list of container services in the specified subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a container service with the specified configuration of orchestrator, - * masters, and agents. - * @summary Creates or updates a container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param parameters Parameters supplied to the Create or Update a Container Service operation. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, containerServiceName: string, parameters: Models.ContainerService, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,containerServiceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Gets the properties of the specified container service in the specified subscription and - * resource group. The operation returns the properties including state, orchestrator, number of - * masters and agents, and FQDNs of masters and agents. - * @summary Gets the properties of the specified container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param callback The callback - */ - get(resourceGroupName: string, containerServiceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, containerServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - containerServiceName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Deletes the specified container service in the specified subscription and resource group. The - * operation does not delete other resources created as part of creating a container service, - * including storage accounts, VMs, and availability sets. All the other resources created with the - * container service are part of the same resource group and can be deleted individually. - * @summary Deletes the specified container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,containerServiceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Gets a list of container services in the specified subscription and resource group. The - * operation returns properties of each container service including state, orchestrator, number of - * masters and agents, and FQDNs of masters and agents. - * @summary Gets a list of container services in the specified resource group. - * @param resourceGroupName The name of the resource group. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a container service with the specified configuration of orchestrator, - * masters, and agents. - * @summary Creates or updates a container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param parameters Parameters supplied to the Create or Update a Container Service operation. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, containerServiceName: string, parameters: Models.ContainerService, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - containerServiceName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes the specified container service in the specified subscription and resource group. The - * operation does not delete other resources created as part of creating a container service, - * including storage accounts, VMs, and availability sets. All the other resources created with the - * container service are part of the same resource group and can be deleted individually. - * @summary Deletes the specified container service. - * @param resourceGroupName The name of the resource group. - * @param containerServiceName The name of the container service in the specified subscription and - * resource group. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - containerServiceName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Gets a list of container services in the specified subscription. The operation returns - * properties of each container service including state, orchestrator, number of masters and - * agents, and FQDNs of masters and agents. - * @summary Gets a list of container services in the specified subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of container services in the specified subscription and resource group. The - * operation returns properties of each container service including state, orchestrator, number of - * masters and agents, and FQDNs of masters and agents. - * @summary Gets a list of container services in the specified resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerServiceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.containerServiceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerService - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerServiceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.containerServiceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ContainerService, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ContainerService - }, - 201: { - bodyMapper: Mappers.ContainerService - }, - 202: { - bodyMapper: Mappers.ContainerService - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.containerServiceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerServiceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ContainerServiceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts index 52c24be5bd99..e5470bb2a190 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -449,6 +448,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -470,6 +472,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index ae75b9bd3869..4ea103423d43 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -387,6 +386,9 @@ const listByHostGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index 840735b7139e..e19e6744a1f3 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -199,6 +198,119 @@ export class DiskAccesses { callback) as Promise; } + /** + * Approve or reject a private endpoint connection under disk access resource, this can't be used + * to create a new private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param privateEndpointConnection private endpoint connection object supplied in the body of the + * Put private endpoint connection operation. + * @param [options] The optional parameters + * @returns Promise + */ + updateAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateAPrivateEndpointConnection(resourceGroupName,diskAccessName,privateEndpointConnectionName,privateEndpointConnection,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets information about a private endpoint connection under a disk access resource. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param [options] The optional parameters + * @returns Promise + */ + getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param callback The callback + */ + getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param options The optional parameters + * @param callback The callback + */ + getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + options + }, + getAPrivateEndpointConnectionOperationSpec, + callback) as Promise; + } + + /** + * Deletes a private endpoint connection under a disk access resource. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param [options] The optional parameters + * @returns Promise + */ + deleteAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteAPrivateEndpointConnection(resourceGroupName,diskAccessName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * List information about private endpoint connections under a disk access resource + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param [options] The optional parameters + * @returns Promise + */ + listPrivateEndpointConnections(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param callback The callback + */ + listPrivateEndpointConnections(resourceGroupName: string, diskAccessName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param options The optional parameters + * @param callback The callback + */ + listPrivateEndpointConnections(resourceGroupName: string, diskAccessName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPrivateEndpointConnections(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + diskAccessName, + options + }, + listPrivateEndpointConnectionsOperationSpec, + callback) as Promise; + } + /** * Creates or updates a disk access resource * @param resourceGroupName The name of the resource group. @@ -263,6 +375,54 @@ export class DiskAccesses { options); } + /** + * Approve or reject a private endpoint connection under disk access resource, this can't be used + * to create a new private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param privateEndpointConnection private endpoint connection object supplied in the body of the + * Put private endpoint connection operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + privateEndpointConnection, + options + }, + beginUpdateAPrivateEndpointConnectionOperationSpec, + options); + } + + /** + * Deletes a private endpoint connection under a disk access resource. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + options + }, + beginDeleteAPrivateEndpointConnectionOperationSpec, + options); + } + /** * Lists all the disk access resources under a resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -318,6 +478,34 @@ export class DiskAccesses { listNextOperationSpec, callback) as Promise; } + + /** + * List information about private endpoint connections under a disk access resource + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPrivateEndpointConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPrivateEndpointConnectionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listPrivateEndpointConnectionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPrivateEndpointConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPrivateEndpointConnectionsNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -419,6 +607,57 @@ const getPrivateLinkResourcesOperationSpec: msRest.OperationSpec = { serializer }; +const getAPrivateEndpointConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPrivateEndpointConnectionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", @@ -514,6 +753,68 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginUpdateAPrivateEndpointConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "privateEndpointConnection", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteAPrivateEndpointConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -521,6 +822,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -542,6 +846,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -555,3 +862,27 @@ const listNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listPrivateEndpointConnectionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index 428767a6a919..9573d7617337 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -553,6 +552,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -574,6 +576,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -595,6 +600,9 @@ const listAssociatedResourcesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts new file mode 100644 index 000000000000..08ba31dab54a --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -0,0 +1,237 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/diskRestorePointOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a DiskRestorePointOperations. */ +export class DiskRestorePointOperations { + private readonly client: ComputeManagementClientContext; + + /** + * Create a DiskRestorePointOperations. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Get disk restorePoint resource + * @param resourceGroupName The name of the resource group. + * @param 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. + * @param 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. + * @param 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. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param 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. + * @param 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. + * @param 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. + * @param callback The callback + */ + get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param 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. + * @param 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. + * @param 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. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Lists diskRestorePoints under a vmRestorePoint. + * @param resourceGroupName The name of the resource group. + * @param 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. + * @param 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. + * @param [options] The optional parameters + * @returns Promise + */ + listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param 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. + * @param 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. + * @param callback The callback + */ + listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param 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. + * @param 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. + * @param options The optional parameters + * @param callback The callback + */ + listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + options + }, + listByRestorePointOperationSpec, + callback) as Promise; + } + + /** + * Lists diskRestorePoints under a vmRestorePoint. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByRestorePointNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByRestorePointNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByRestorePointNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRestorePointNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByRestorePointNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.restorePointCollectionName, + Parameters.vmRestorePointName, + Parameters.diskRestorePointName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiskRestorePoint + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByRestorePointOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.restorePointCollectionName, + Parameters.vmRestorePointName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiskRestorePointList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByRestorePointNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiskRestorePointList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index 97002da76ce8..ecc5543e49b3 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -586,6 +585,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -607,6 +609,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index f5b3dd565142..7bb6f9d49be8 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -444,6 +443,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -465,6 +467,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index 6f21204e3e9e..00cb290c934c 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -453,6 +452,9 @@ const listByGalleryApplicationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 08d78de63174..c98937542377 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -409,6 +408,9 @@ const listByGalleryNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index 0799bdde9106..7d6e01840af7 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -432,6 +431,9 @@ const listByGalleryImageNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index bdc5ac10b2ce..a362179062ca 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -407,6 +406,9 @@ const listByGalleryNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index 6187e85ab7f9..3cb8f8698344 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -443,6 +442,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -464,6 +466,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index be38385dadc1..12e1e7b2fac3 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -17,25 +16,27 @@ export * from "./sshPublicKeys"; export * from "./virtualMachineExtensionImages"; export * from "./virtualMachineExtensions"; export * from "./virtualMachineImages"; +export * from "./virtualMachineImagesEdgeZone"; export * from "./usageOperations"; export * from "./virtualMachines"; +export * from "./virtualMachineScaleSets"; export * from "./virtualMachineSizes"; export * from "./images"; -export * from "./virtualMachineScaleSets"; export * from "./virtualMachineScaleSetExtensions"; export * from "./virtualMachineScaleSetRollingUpgrades"; export * from "./virtualMachineScaleSetVMExtensions"; export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; +export * from "./virtualMachineScaleSetVMRunCommands"; export * from "./resourceSkus"; export * from "./disks"; export * from "./snapshots"; export * from "./diskEncryptionSets"; export * from "./diskAccesses"; +export * from "./diskRestorePointOperations"; export * from "./galleries"; export * from "./galleryImages"; export * from "./galleryImageVersions"; export * from "./galleryApplications"; export * from "./galleryApplicationVersions"; -export * from "./containerServices"; diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index 3734f06d68aa..6eb293790941 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/compute/arm-compute/src/operations/operations.ts b/sdk/compute/arm-compute/src/operations/operations.ts index 641f050bdd14..dec5eb098fc5 100644 --- a/sdk/compute/arm-compute/src/operations/operations.ts +++ b/sdk/compute/arm-compute/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts index 31fc32c8293e..dde78adc61f1 100644 --- a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -443,6 +442,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -464,6 +466,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts index db92867631a2..7cf76612ac89 100644 --- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -56,7 +55,7 @@ export class ResourceSkus { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ResourceSkusListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -67,8 +66,8 @@ export class ResourceSkus { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ResourceSkusListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ResourceSkusListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -112,6 +111,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index 5a5e9c9090c2..748f68b8c09d 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -588,6 +587,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -609,6 +611,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts index 5a109035ac24..e1abc960f854 100644 --- a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -506,6 +505,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -527,6 +529,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/usageOperations.ts b/sdk/compute/arm-compute/src/operations/usageOperations.ts index b6cae3039867..14f7a9d6406e 100644 --- a/sdk/compute/arm-compute/src/operations/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operations/usageOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -118,6 +117,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts index d429b13e72fe..b53521d45e15 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index 289e3d3134e9..a1d8b68fa3d8 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts index 273097af54aa..111aa91f7d8a 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts new file mode 100644 index 000000000000..c1ea54bba4af --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts @@ -0,0 +1,413 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualMachineImagesEdgeZoneMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a VirtualMachineImagesEdgeZone. */ +export class VirtualMachineImagesEdgeZone { + private readonly client: ComputeManagementClientContext; + + /** + * Create a VirtualMachineImagesEdgeZone. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a virtual machine image in an edge zone. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param callback The callback + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param version A valid image SKU version. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, version: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + skus, + version, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all virtual machine image versions for the specified location, edge zone, + * publisher, offer, and SKU. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options?: Models.VirtualMachineImagesEdgeZoneListOptionalParams): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param callback The callback + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param skus A valid image SKU. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options: Models.VirtualMachineImagesEdgeZoneListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, edgeZone: string, publisherName: string, offer: string, skus: string, options?: Models.VirtualMachineImagesEdgeZoneListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + skus, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image offers for the specified location, edge zone and publisher. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param [options] The optional parameters + * @returns Promise + */ + listOffers(location: string, edgeZone: string, publisherName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param callback The callback + */ + listOffers(location: string, edgeZone: string, publisherName: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param options The optional parameters + * @param callback The callback + */ + listOffers(location: string, edgeZone: string, publisherName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOffers(location: string, edgeZone: string, publisherName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + options + }, + listOffersOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image publishers for the specified Azure location and edge zone. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param [options] The optional parameters + * @returns Promise + */ + listPublishers(location: string, edgeZone: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param callback The callback + */ + listPublishers(location: string, edgeZone: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param options The optional parameters + * @param callback The callback + */ + listPublishers(location: string, edgeZone: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublishers(location: string, edgeZone: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + options + }, + listPublishersOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and + * offer. + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param [options] The optional parameters + * @returns Promise + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param callback The callback + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param publisherName A valid image publisher. + * @param offer A valid image publisher offer. + * @param options The optional parameters + * @param callback The callback + */ + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(location: string, edgeZone: string, publisherName: string, offer: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + edgeZone, + publisherName, + offer, + options + }, + listSkusOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.skus, + Parameters.version, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineImage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.skus, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOffersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublishersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + urlParameters: [ + Parameters.location0, + Parameters.edgeZone, + Parameters.publisherName, + Parameters.offer, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index 134182cee58b..db89b8bf21b2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/virtualMachineRunCommandsMappers"; import * as Parameters from "../models/parameters"; @@ -86,6 +86,181 @@ export class VirtualMachineRunCommands { callback) as Promise; } + /** + * The operation to create or update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be created or + * updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,vmName,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,vmName,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to delete the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be deleted. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, vmName: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,vmName,runCommandName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation to get the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options?: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param callback The callback + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param runCommandName The name of the virtual machine run command. + * @param options The optional parameters + * @param callback The callback + */ + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, callback: msRest.ServiceCallback): void; + getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options?: Models.VirtualMachineRunCommandsGetByVirtualMachineOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmName, + runCommandName, + options + }, + getByVirtualMachineOperationSpec, + callback) as Promise; + } + + /** + * The operation to get all run commands of a Virtual Machine. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param [options] The optional parameters + * @returns Promise + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param callback The callback + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine containing the run command. + * @param options The optional parameters + * @param callback The callback + */ + listByVirtualMachine(resourceGroupName: string, vmName: string, options: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams, callback: msRest.ServiceCallback): void; + listByVirtualMachine(resourceGroupName: string, vmName: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmName, + options + }, + listByVirtualMachineOperationSpec, + callback) as Promise; + } + + /** + * The operation to create or update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be created or + * updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + runCommand, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * The operation to update the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be updated. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + runCommand, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The operation to delete the run command. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine where the run command should be deleted. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, vmName: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + runCommandName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + /** * Lists all available run commands for a subscription in a location. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -113,6 +288,34 @@ export class VirtualMachineRunCommands { listNextOperationSpec, callback) as Promise; } + + /** + * The operation to get all run commands of a Virtual Machine. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByVirtualMachineNext(nextPageLink: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByVirtualMachineNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByVirtualMachineNext(nextPageLink: string, options: Models.VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams, callback: msRest.ServiceCallback): void; + listByVirtualMachineNext(nextPageLink: string, options?: Models.VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByVirtualMachineNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -166,6 +369,154 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const getByVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommand, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + 201: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommandUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -173,6 +524,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -186,3 +540,28 @@ const listNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByVirtualMachineNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index 8b61f0ccfc09..77d868e009f9 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -390,6 +389,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts index 77d3e791f36c..e4113e992fac 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts index 50181fa1a83a..7c7e580be969 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -38,7 +37,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtension, options?: msRest.RequestOptionsBase): Promise { + createOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineScaleSetVMExtension, options?: msRest.RequestOptionsBase): Promise { return this.beginCreateOrUpdate(resourceGroupName,vmScaleSetName,instanceId,vmExtensionName,extensionParameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -54,7 +53,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { + update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineScaleSetVMExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { return this.beginUpdate(resourceGroupName,vmScaleSetName,instanceId,vmExtensionName,extensionParameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -90,7 +89,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param vmExtensionName The name of the virtual machine extension. * @param callback The callback */ - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -99,8 +98,8 @@ export class VirtualMachineScaleSetVMExtensions { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -128,7 +127,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param instanceId The instance ID of the virtual machine. * @param callback The callback */ - list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -136,8 +135,8 @@ export class VirtualMachineScaleSetVMExtensions { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -160,7 +159,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtension, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineScaleSetVMExtension, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -185,7 +184,7 @@ export class VirtualMachineScaleSetVMExtensions { * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineScaleSetVMExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -243,7 +242,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension }, default: { bodyMapper: Mappers.CloudError @@ -270,7 +269,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtensionsListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMExtensionsListResult }, default: { bodyMapper: Mappers.CloudError @@ -298,16 +297,16 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "extensionParameters", mapper: { - ...Mappers.VirtualMachineExtension, + ...Mappers.VirtualMachineScaleSetVMExtension, required: true } }, responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension }, 201: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension }, default: { bodyMapper: Mappers.CloudError @@ -335,13 +334,13 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "extensionParameters", mapper: { - ...Mappers.VirtualMachineExtensionUpdate, + ...Mappers.VirtualMachineScaleSetVMExtensionUpdate, required: true } }, responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts new file mode 100644 index 000000000000..36e6c052757f --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -0,0 +1,426 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualMachineScaleSetVMRunCommandsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a VirtualMachineScaleSetVMRunCommands. */ +export class VirtualMachineScaleSetVMRunCommands { + private readonly client: ComputeManagementClientContext; + + /** + * Create a VirtualMachineScaleSetVMRunCommands. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * The operation to create or update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,vmScaleSetName,instanceId,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,vmScaleSetName,instanceId,runCommandName,runCommand,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to delete the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,instanceId,runCommandName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation to get the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param callback The callback + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: Models.VirtualMachineScaleSetVMRunCommandsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * The operation to get all run commands of an instance in Virtual Machine Scaleset. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param callback The callback + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * The operation to create or update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Create Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommand, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * The operation to update the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param runCommand Parameters supplied to the Update Virtual Machine RunCommand operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: Models.VirtualMachineRunCommandUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The operation to delete the VMSS VM run command. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param runCommandName The name of the virtual machine run command. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * The operation to get all run commands of an instance in Virtual Machine Scaleset. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.VirtualMachineScaleSetVMRunCommandsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMRunCommandsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommand, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + 201: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runCommand", + mapper: { + ...Mappers.VirtualMachineRunCommandUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommand + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.runCommandName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineRunCommandsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index 4bebe6e62fcb..9a6664c30959 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -92,7 +91,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,instanceId,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -450,7 +449,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -593,7 +592,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -604,8 +603,8 @@ export class VirtualMachineScaleSetVMs { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.VirtualMachineScaleSetVMsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualMachineScaleSetVMsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -878,6 +877,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1061,6 +1061,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.select, + Parameters.expand0, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index ddb59ba58530..c1232d0d43fc 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,6 +26,34 @@ export class VirtualMachineScaleSets { this.client = client; } + /** + * Gets all the VM scale sets under the specified subscription for the specified location. + * @param location The location for which VM scale sets under the subscription are queried. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocation(location: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The location for which VM scale sets under the subscription are queried. + * @param callback The callback + */ + listByLocation(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location The location for which VM scale sets under the subscription are queried. + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + /** * Create or update a VM scale set. * @param resourceGroupName The name of the resource group. @@ -60,7 +87,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -119,7 +146,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: msRest.RequestOptionsBase): Promise { + deleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: Models.VirtualMachineScaleSetsDeleteInstancesOptionalParams): Promise { return this.beginDeleteInstances(resourceGroupName,vmScaleSetName,vmInstanceIDs,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -518,7 +545,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -557,7 +584,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: msRest.RequestOptionsBase): Promise { + beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: Models.VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -744,6 +771,34 @@ export class VirtualMachineScaleSets { options); } + /** + * Gets all the VM scale sets under the specified subscription for the specified location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByLocationNextOperationSpec, + callback) as Promise; + } + /** * Gets a list of all VM scale sets under a resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -862,6 +917,30 @@ export class VirtualMachineScaleSets { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", + urlParameters: [ + Parameters.location1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineScaleSetListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", @@ -1141,6 +1220,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1197,6 +1277,7 @@ const beginDeleteInstancesOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1499,6 +1580,30 @@ const beginSetOrchestrationServiceStateOperationSpec: msRest.OperationSpec = { serializer }; +const listByLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineScaleSetListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -1506,6 +1611,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1527,6 +1635,9 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1548,6 +1659,9 @@ const listSkusNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1569,6 +1683,9 @@ const getOSUpgradeHistoryNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts index a5554fd0825b..5f3bd17109b3 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index ce51df188f82..0edafcf312f1 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -103,7 +102,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesDeleteMethodOptionalParams): Promise { return this.beginDeleteMethod(resourceGroupName,vmName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -482,6 +481,19 @@ export class VirtualMachines { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Installs patches on the VM. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param installPatchesInput Input for InstallPatches as directly received by the API + * @param [options] The optional parameters + * @returns Promise + */ + installPatches(resourceGroupName: string, vmName: string, installPatchesInput: Models.VirtualMachineInstallPatchesParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginInstallPatches(resourceGroupName,vmName,installPatchesInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Run command on the VM. * @param resourceGroupName The name of the resource group. @@ -564,7 +576,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -758,6 +770,26 @@ export class VirtualMachines { options); } + /** + * Installs patches on the VM. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param installPatchesInput Input for InstallPatches as directly received by the API + * @param [options] The optional parameters + * @returns Promise + */ + beginInstallPatches(resourceGroupName: string, vmName: string, installPatchesInput: Models.VirtualMachineInstallPatchesParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmName, + installPatchesInput, + options + }, + beginInstallPatchesOperationSpec, + options); + } + /** * Run command on the VM. * @param resourceGroupName The name of the resource group. @@ -842,7 +874,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -853,8 +885,8 @@ export class VirtualMachines { * @param options The optional parameters * @param callback The callback */ - listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAllNext(nextPageLink: string, options: Models.VirtualMachinesListAllNextOptionalParams, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -1180,9 +1212,6 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.VirtualMachine }, - 201: { - bodyMapper: Mappers.VirtualMachine - }, default: { bodyMapper: Mappers.CloudError } @@ -1199,6 +1228,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1465,6 +1495,39 @@ const beginAssessPatchesOperationSpec: msRest.OperationSpec = { serializer }; +const beginInstallPatchesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "installPatchesInput", + mapper: { + ...Mappers.VirtualMachineInstallPatchesParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstallPatchesResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginRunCommandOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", @@ -1505,6 +1568,9 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1526,6 +1592,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1547,6 +1616,10 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.statusOnly + ], headerParameters: [ Parameters.acceptLanguage ],