From a1256ea6a85bcf388acbdfd1f64ece3306f9d683 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 20 Nov 2020 06:12:39 +0000 Subject: [PATCH] CodeGen from PR 11704 in Azure/azure-rest-api-specs Microsoft.Compute: Include CloudServices Resource Swagger under API Version 2020-10-01-preview (#11704) Co-authored-by: Sanchit Kumar --- sdk/compute/arm-compute/README.md | 9 +- sdk/compute/arm-compute/rollup.config.js | 4 +- .../src/computeManagementClient.ts | 23 +- .../src/computeManagementClientContext.ts | 5 +- .../src/models/availabilitySetsMappers.ts | 33 +- .../cloudServiceRoleInstancesMappers.ts | 227 + .../src/models/cloudServiceRolesMappers.ts | 18 + .../src/models/cloudServicesMappers.ts | 227 + .../cloudServicesUpdateDomainMappers.ts | 16 + .../src/models/containerServicesMappers.ts | 32 +- .../src/models/dedicatedHostGroupsMappers.ts | 33 +- .../src/models/dedicatedHostsMappers.ts | 33 +- .../src/models/diskAccessesMappers.ts | 32 +- .../src/models/diskEncryptionSetsMappers.ts | 32 +- .../arm-compute/src/models/disksMappers.ts | 32 +- .../src/models/galleriesMappers.ts | 32 +- .../galleryApplicationVersionsMappers.ts | 32 +- .../src/models/galleryApplicationsMappers.ts | 32 +- .../src/models/galleryImageVersionsMappers.ts | 32 +- .../src/models/galleryImagesMappers.ts | 32 +- .../models/gallerySharingProfileMappers.ts | 220 + .../arm-compute/src/models/imagesMappers.ts | 33 +- sdk/compute/arm-compute/src/models/index.ts | 5387 ++++++++++++----- .../src/models/logAnalyticsMappers.ts | 4 +- sdk/compute/arm-compute/src/models/mappers.ts | 2382 +++++++- .../src/models/operationsMappers.ts | 4 +- .../arm-compute/src/models/parameters.ts | 103 +- .../models/proximityPlacementGroupsMappers.ts | 33 +- .../src/models/resourceSkusMappers.ts | 4 +- .../src/models/sharedGalleriesMappers.ts | 26 + .../sharedGalleryImageVersionsMappers.ts | 26 + .../src/models/sharedGalleryImagesMappers.ts | 26 + .../src/models/snapshotsMappers.ts | 32 +- .../src/models/sshPublicKeysMappers.ts | 33 +- .../src/models/usageOperationsMappers.ts | 4 +- .../virtualMachineExtensionImagesMappers.ts | 32 +- .../models/virtualMachineExtensionsMappers.ts | 33 +- .../src/models/virtualMachineImagesMappers.ts | 32 +- .../virtualMachineRunCommandsMappers.ts | 232 +- ...virtualMachineScaleSetExtensionsMappers.ts | 32 +- ...alMachineScaleSetRollingUpgradesMappers.ts | 32 +- ...rtualMachineScaleSetVMExtensionsMappers.ts | 49 +- ...tualMachineScaleSetVMRunCommandsMappers.ts | 237 + .../virtualMachineScaleSetVMsMappers.ts | 31 +- .../models/virtualMachineScaleSetsMappers.ts | 33 +- .../src/models/virtualMachineSizesMappers.ts | 4 +- .../src/models/virtualMachinesMappers.ts | 32 +- .../src/operations/availabilitySets.ts | 18 +- .../operations/cloudServiceRoleInstances.ts | 578 ++ .../src/operations/cloudServiceRoles.ts | 202 + .../src/operations/cloudServices.ts | 899 +++ .../operations/cloudServicesUpdateDomain.ts | 278 + .../src/operations/containerServices.ts | 11 +- .../src/operations/dedicatedHostGroups.ts | 11 +- .../src/operations/dedicatedHosts.ts | 8 +- .../src/operations/diskAccesses.ts | 11 +- .../src/operations/diskEncryptionSets.ts | 14 +- .../arm-compute/src/operations/disks.ts | 11 +- .../arm-compute/src/operations/galleries.ts | 20 +- .../operations/galleryApplicationVersions.ts | 8 +- .../src/operations/galleryApplications.ts | 8 +- .../src/operations/galleryImageVersions.ts | 70 +- .../src/operations/galleryImages.ts | 40 +- .../src/operations/gallerySharingProfile.ts | 98 + .../arm-compute/src/operations/images.ts | 11 +- .../arm-compute/src/operations/index.ts | 14 +- .../src/operations/logAnalytics.ts | 5 +- .../arm-compute/src/operations/operations.ts | 5 +- .../operations/proximityPlacementGroups.ts | 11 +- .../src/operations/resourceSkus.ts | 15 +- .../src/operations/sharedGalleries.ts | 192 + .../operations/sharedGalleryImageVersions.ts | 224 + .../src/operations/sharedGalleryImages.ts | 205 + .../arm-compute/src/operations/snapshots.ts | 11 +- .../src/operations/sshPublicKeys.ts | 11 +- .../src/operations/usageOperations.ts | 8 +- .../virtualMachineExtensionImages.ts | 5 +- .../operations/virtualMachineExtensions.ts | 5 +- .../src/operations/virtualMachineImages.ts | 5 +- .../operations/virtualMachineRunCommands.ts | 385 +- .../virtualMachineScaleSetExtensions.ts | 8 +- .../virtualMachineScaleSetRollingUpgrades.ts | 5 +- .../virtualMachineScaleSetVMExtensions.ts | 39 +- .../virtualMachineScaleSetVMRunCommands.ts | 426 ++ .../operations/virtualMachineScaleSetVMs.ts | 17 +- .../src/operations/virtualMachineScaleSets.ts | 17 +- .../src/operations/virtualMachineSizes.ts | 5 +- .../src/operations/virtualMachines.ts | 26 +- 88 files changed, 12030 insertions(+), 1922 deletions(-) create mode 100644 sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/cloudServiceRolesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/cloudServicesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/cloudServicesUpdateDomainMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts create mode 100644 sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts create mode 100644 sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts create mode 100644 sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts create mode 100644 sdk/compute/arm-compute/src/operations/cloudServices.ts create mode 100644 sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts create mode 100644 sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleries.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts create mode 100644 sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts create mode 100644 sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts 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..3167c22896f6 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 @@ -37,6 +36,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs; logAnalytics: operations.LogAnalytics; virtualMachineRunCommands: operations.VirtualMachineRunCommands; + virtualMachineScaleSetVMRunCommands: operations.VirtualMachineScaleSetVMRunCommands; resourceSkus: operations.ResourceSkus; disks: operations.Disks; snapshots: operations.Snapshots; @@ -47,7 +47,15 @@ class ComputeManagementClient extends ComputeManagementClientContext { galleryImageVersions: operations.GalleryImageVersions; galleryApplications: operations.GalleryApplications; galleryApplicationVersions: operations.GalleryApplicationVersions; + gallerySharingProfile: operations.GallerySharingProfile; + sharedGalleries: operations.SharedGalleries; + sharedGalleryImages: operations.SharedGalleryImages; + sharedGalleryImageVersions: operations.SharedGalleryImageVersions; containerServices: operations.ContainerServices; + cloudServiceRoleInstances: operations.CloudServiceRoleInstances; + cloudServiceRoles: operations.CloudServiceRoles; + cloudServices: operations.CloudServices; + cloudServicesUpdateDomain: operations.CloudServicesUpdateDomain; /** * Initializes a new instance of the ComputeManagementClient class. @@ -78,6 +86,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { 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); @@ -88,7 +97,15 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.galleryImageVersions = new operations.GalleryImageVersions(this); this.galleryApplications = new operations.GalleryApplications(this); this.galleryApplicationVersions = new operations.GalleryApplicationVersions(this); + this.gallerySharingProfile = new operations.GallerySharingProfile(this); + this.sharedGalleries = new operations.SharedGalleries(this); + this.sharedGalleryImages = new operations.SharedGalleryImages(this); + this.sharedGalleryImageVersions = new operations.SharedGalleryImageVersions(this); this.containerServices = new operations.ContainerServices(this); + this.cloudServiceRoleInstances = new operations.CloudServiceRoleInstances(this); + this.cloudServiceRoles = new operations.CloudServiceRoles(this); + this.cloudServices = new operations.CloudServices(this); + this.cloudServicesUpdateDomain = new operations.CloudServicesUpdateDomain(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..21a8eb25b2b7 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,6 +24,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -66,6 +78,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -78,6 +91,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -104,6 +118,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,10 +147,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +172,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +192,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +224,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts new file mode 100644 index 000000000000..7ad50cc5abf1 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts @@ -0,0 +1,227 @@ +/* + * 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 { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + InnerError, + InstanceSku, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceInstanceViewStatus, + ResourceRange, + RoleInstance, + RoleInstanceInstanceView, + RoleInstanceListResult, + RoleInstanceNetworkProfile, + RoleInstanceProperties, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/cloudServiceRolesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServiceRolesMappers.ts new file mode 100644 index 000000000000..5c9b68780c58 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/cloudServiceRolesMappers.ts @@ -0,0 +1,18 @@ +/* + * 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, + CloudServiceRole, + CloudServiceRoleListResult, + CloudServiceRoleProperties, + CloudServiceRoleSku, + InnerError +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts new file mode 100644 index 000000000000..b3a101f951a8 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts @@ -0,0 +1,227 @@ +/* + * 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 { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceInstanceView, + CloudServiceListResult, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceUpdate, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + InnerError, + InstanceViewStatus, + InstanceViewStatusesSummary, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceInstanceViewStatus, + ResourceRange, + RoleInstances, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StatusCodeCount, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/cloudServicesUpdateDomainMappers.ts b/sdk/compute/arm-compute/src/models/cloudServicesUpdateDomainMappers.ts new file mode 100644 index 000000000000..263e5178c53a --- /dev/null +++ b/sdk/compute/arm-compute/src/models/cloudServicesUpdateDomainMappers.ts @@ -0,0 +1,16 @@ +/* + * 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, + InnerError, + UpdateDomain, + UpdateDomainListResult +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts index f51c43681cb0..d2e66d693182 100644 --- a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts +++ b/sdk/compute/arm-compute/src/models/containerServicesMappers.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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -63,6 +75,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -75,6 +88,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +114,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,10 +142,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +165,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +184,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +209,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, 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..41d33d2e2507 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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -66,6 +78,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -78,6 +91,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -104,6 +118,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,10 +147,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +172,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +192,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +224,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..5cb4f13f05e2 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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -66,6 +78,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -78,6 +91,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -104,6 +118,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,10 +147,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +172,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +192,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +224,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..a4e64c41e077 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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -64,6 +76,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -76,6 +89,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -101,6 +115,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -127,10 +145,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +168,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +187,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +212,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..79c217c07224 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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -64,6 +76,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -76,6 +89,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -101,6 +115,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -126,10 +144,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -145,6 +167,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -163,6 +186,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -185,6 +211,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index f4b1367453d6..ae07b65965fe 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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -65,6 +77,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +90,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +117,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -127,10 +145,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +168,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +187,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +212,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..9b208726112b 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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +114,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,10 +142,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +165,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +184,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +209,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..ec091def6308 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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -75,6 +88,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +114,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,10 +142,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +165,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +184,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +209,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..2e8062e707b8 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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationList, @@ -75,6 +88,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +114,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,10 +142,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +165,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +184,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +209,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..72212e09ea83 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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -100,6 +114,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,10 +142,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +165,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +184,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +209,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..a4924b6b6c16 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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageList, GalleryImageUpdate, @@ -100,6 +114,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -124,10 +142,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -143,6 +165,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -161,6 +184,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +209,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts new file mode 100644 index 000000000000..04b600e27e87 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts @@ -0,0 +1,220 @@ +/* + * 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 { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 69e44f43cd84..63b05bd1508d 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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -65,6 +77,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +90,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -104,6 +118,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,10 +147,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +172,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +192,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +224,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..b9a44a3d4f77 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. @@ -746,6 +746,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 +851,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 +914,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. */ @@ -2431,12 +2556,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; @@ -2577,12 +2704,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; @@ -3672,12 +3801,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; @@ -4373,12 +4504,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; @@ -4683,6 +4816,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. */ @@ -5663,6 +5959,39 @@ export interface GalleryIdentifier { readonly uniqueName?: string; } +/** + * Group of the gallery sharing profile + */ +export interface SharingProfileGroup { + /** + * This property allows you to specify the type of sharing group.

Possible values are: + *

**Subscriptions**

**AADTenants**. Possible values include: 'Subscriptions', + * 'AADTenants' + */ + type?: SharingProfileGroupTypes; + /** + * A list of subscription/tenant ids the gallery is aimed to be shared to. + */ + ids?: string[]; +} + +/** + * Profile for gallery sharing to subscription or tenant + */ +export interface SharingProfile { + /** + * This property allows you to specify the permission of sharing gallery.

Possible + * values are:

**Private**

**Groups**. Possible values include: 'Private', + * 'Groups' + */ + permissions?: GallerySharingPermissionTypes; + /** + * A list of sharing profile groups. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groups?: SharingProfileGroup[]; +} + /** * Specifies information about the Shared Image Gallery that you want to create or update. */ @@ -5679,6 +6008,7 @@ export interface Gallery extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; + sharingProfile?: SharingProfile; } /** @@ -5722,6 +6052,7 @@ export interface GalleryUpdate extends UpdateResourceDefinition { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; + sharingProfile?: SharingProfile; } /** @@ -5796,13 +6127,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; } /** @@ -5825,12 +6178,12 @@ export interface GalleryArtifactPublishingProfileBase { */ excludeFromLatest?: boolean; /** - * The timestamp for when the gallery Image Version is published. + * The timestamp for when the gallery image version is published. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly publishedDate?: Date; /** - * The end of life date of the gallery Image Version. This property can be used for + * The end of life date of the gallery image version. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -5842,15 +6195,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. */ @@ -5862,7 +6211,7 @@ export interface GalleryApplicationVersionPublishingProfile extends GalleryArtif */ export interface RegionalReplicationStatus { /** - * The region to which the gallery Image Version is being replicated to. + * The region to which the gallery image version is being replicated to. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly region?: string; @@ -5885,7 +6234,7 @@ export interface RegionalReplicationStatus { } /** - * This is the replication status of the gallery Image Version. + * This is the replication status of the gallery image version. */ export interface ReplicationStatus { /** @@ -5938,19 +6287,33 @@ export interface GalleryApplicationVersionUpdate extends UpdateResourceDefinitio } /** - * This is the gallery Image Definition identifier. + * A feature for gallery image. + */ +export interface GalleryImageFeature { + /** + * The name of the gallery image feature. + */ + name?: string; + /** + * The value of the gallery image feature. + */ + value?: string; +} + +/** + * This is the gallery image definition identifier. */ export interface GalleryImageIdentifier { /** - * The name of the gallery Image Definition publisher. + * The name of the gallery image definition publisher. */ publisher: string; /** - * The name of the gallery Image Definition offer. + * The name of the gallery image definition offer. */ offer: string; /** - * The name of the gallery Image Definition SKU. + * The name of the gallery image definition SKU. */ sku: string; } @@ -5989,7 +6352,7 @@ export interface Disallowed { } /** - * Describes the gallery Image Definition purchase plan. This is used by marketplace images. + * Describes the gallery image definition purchase plan. This is used by marketplace images. */ export interface ImagePurchasePlan { /** @@ -6007,15 +6370,15 @@ export interface ImagePurchasePlan { } /** - * Specifies information about the gallery Image Definition that you want to create or update. + * Specifies information about the gallery image definition that you want to create or update. */ export interface GalleryImage extends Resource { /** - * The description of this gallery Image Definition resource. This property is updatable. + * The description of this gallery image definition resource. This property is updatable. */ description?: string; /** - * The Eula agreement for the gallery Image Definition. + * The Eula agreement for the gallery image definition. */ eula?: string; /** @@ -6043,7 +6406,11 @@ export interface GalleryImage extends Resource { */ hyperVGeneration?: HyperVGeneration; /** - * The end of life date of the gallery Image Definition. This property can be used for + * A list of gallery image features. + */ + features?: GalleryImageFeature[]; + /** + * The end of life date of the gallery image definition. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -6052,7 +6419,7 @@ export interface GalleryImage extends Resource { disallowed?: Disallowed; purchasePlan?: ImagePurchasePlan; /** - * The current state of the gallery Image Definition. The provisioning state, which only appears + * The current state of the gallery image definition. The provisioning state, which only appears * in the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', * 'Deleting', 'Migrating' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -6061,15 +6428,15 @@ export interface GalleryImage extends Resource { } /** - * Specifies information about the gallery Image Definition that you want to update. + * Specifies information about the gallery image definition that you want to update. */ export interface GalleryImageUpdate extends UpdateResourceDefinition { /** - * The description of this gallery Image Definition resource. This property is updatable. + * The description of this gallery image definition resource. This property is updatable. */ description?: string; /** - * The Eula agreement for the gallery Image Definition. + * The Eula agreement for the gallery image definition. */ eula?: string; /** @@ -6097,7 +6464,11 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { */ hyperVGeneration?: HyperVGeneration; /** - * The end of life date of the gallery Image Definition. This property can be used for + * A list of gallery image features. + */ + features?: GalleryImageFeature[]; + /** + * The end of life date of the gallery image definition. This property can be used for * decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; @@ -6106,7 +6477,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { disallowed?: Disallowed; purchasePlan?: ImagePurchasePlan; /** - * The current state of the gallery Image Definition. The provisioning state, which only appears + * The current state of the gallery image definition. The provisioning state, which only appears * in the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', * 'Deleting', 'Migrating' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -6115,7 +6486,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { } /** - * The publishing profile of a gallery Image Version. + * The publishing profile of a gallery image Version. */ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { } @@ -6125,10 +6496,14 @@ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPub */ export interface GalleryArtifactVersionSource { /** - * The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user - * image. + * The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user + * image or storage account resource. */ id?: string; + /** + * The uri of the gallery artifact version source. Currently used to specify vhd/blob source. + */ + uri?: string; } /** @@ -6179,12 +6554,12 @@ export interface GalleryImageVersionStorageProfile { } /** - * Specifies information about the gallery Image Version that you want to create or update. + * Specifies information about the gallery image version that you want to create or update. */ export interface GalleryImageVersion extends Resource { publishingProfile?: GalleryImageVersionPublishingProfile; /** - * The current state of the gallery Image Version. The provisioning state, which only appears in + * The current state of the gallery image version. The provisioning state, which only appears in * the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', * 'Deleting', 'Migrating' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -6198,12 +6573,12 @@ export interface GalleryImageVersion extends Resource { } /** - * Specifies information about the gallery Image Version that you want to update. + * Specifies information about the gallery image version that you want to update. */ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { publishingProfile?: GalleryImageVersionPublishingProfile; /** - * The current state of the gallery Image Version. The provisioning state, which only appears in + * The current state of the gallery image version. The provisioning state, which only appears in * the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', * 'Deleting', 'Migrating' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -6294,6 +6669,105 @@ export interface GalleryArtifactSource { managedImage: ManagedArtifact; } +/** + * Specifies information about the gallery sharing profile update. + */ +export interface SharingUpdate extends BaseResource { + /** + * This property allows you to specify the operation type of gallery sharing update.

+ * Possible values are:

**Add**

**Remove**

**Reset**. Possible values + * include: 'Add', 'Remove', 'Reset' + */ + operationType: SharingUpdateOperationTypes; + /** + * A list of sharing profile groups. + */ + groups?: SharingProfileGroup[]; +} + +/** + * The Resource model definition. + */ +export interface PirResource { + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource location + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; +} + +/** + * Base information about the shared gallery resource in pir. + */ +export interface PirSharedGalleryResource extends PirResource { + /** + * The unique id of this shared gallery. + */ + uniqueId?: string; +} + +/** + * Specifies information about the Shared Gallery that you want to create or update. + */ +export interface SharedGallery extends PirSharedGalleryResource { +} + +/** + * Specifies information about the gallery image definition that you want to create or update. + */ +export interface SharedGalleryImage extends PirSharedGalleryResource { + /** + * This property allows you to specify the type of the OS that is included in the disk when + * creating a VM from a managed image.

Possible values are:

**Windows** + *

**Linux**. Possible values include: 'Windows', 'Linux' + */ + osType: OperatingSystemTypes; + /** + * This property allows the user to specify whether the virtual machines created under this image + * are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized' + */ + osState: OperatingSystemStateTypes; + /** + * The end of life date of the gallery image definition. This property can be used for + * decommissioning purposes. This property is updatable. + */ + endOfLifeDate?: Date; + identifier: GalleryImageIdentifier; + recommended?: RecommendedMachineConfiguration; + disallowed?: Disallowed; + /** + * The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values + * include: 'V1', 'V2' + */ + hyperVGeneration?: HyperVGeneration; + /** + * A list of gallery image features. + */ + features?: GalleryImageFeature[]; + purchasePlan?: ImagePurchasePlan; +} + +/** + * Specifies information about the gallery image version that you want to create or update. + */ +export interface SharedGalleryImageVersion extends PirSharedGalleryResource { + /** + * The published date of the gallery image version Definition. This property can be used for + * decommissioning purposes. This property is updatable. + */ + publishedDate?: Date; + /** + * The end of life date of the gallery image version Definition. This property can be used for + * decommissioning purposes. This property is updatable. + */ + endOfLifeDate?: Date; +} + /** * Properties to configure a custom container service cluster. */ @@ -6505,353 +6979,612 @@ export interface ContainerService extends Resource { } /** - * Optional Parameters. + * An interface representing InstanceSku. */ -export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface InstanceSku { /** - * The expand expression to apply to the operation. Allowed values are 'instanceView'. + * The sku name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + readonly name?: string; + /** + * The tier of the cloud service role instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tier?: string; } /** - * Optional Parameters. + * Describes the network profile for the role instance. */ -export interface ProximityPlacementGroupsGetOptionalParams extends msRest.RequestOptionsBase { +export interface RoleInstanceNetworkProfile { /** - * includeColocationStatus=true enables fetching the colocation status of all the resources in - * the proximity placement group. + * Specifies the list of resource Ids for the network interfaces associated with the role + * instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - includeColocationStatus?: string; + readonly networkInterfaces?: SubResource[]; } /** - * Optional Parameters. + * Instance view status. */ -export interface DedicatedHostGroupsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResourceInstanceViewStatus { /** - * 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 status code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: InstanceViewTypes; + readonly code?: string; + /** + * The short localizable label for the status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayStatus?: string; + /** + * The detailed status message, including for alerts and error messages. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The time of the status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly time?: Date; + /** + * The level code. Possible values include: 'Info', 'Warning', 'Error' + */ + level?: StatusLevelTypes; } /** - * Optional Parameters. + * The instance view of the role instance. */ -export interface DedicatedHostsGetOptionalParams extends msRest.RequestOptionsBase { +export interface RoleInstanceInstanceView { /** - * The expand expression to apply on the operation. Possible values include: 'instanceView' + * The Update Domain. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: InstanceViewTypes; + readonly platformUpdateDomain?: number; + /** + * The Fault Domain. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly platformFaultDomain?: number; + /** + * Specifies a unique identifier generated internally for the cloud service associated with this + * role instance.

NOTE: If you are using Azure Diagnostics extension, this property + * can be used as 'DeploymentId' for querying details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateId?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly statuses?: ResourceInstanceViewStatus[]; } /** - * Optional Parameters. + * An interface representing RoleInstanceProperties. */ -export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends msRest.RequestOptionsBase { - /** - * The filter to apply on the operation. - */ - filter?: string; - top?: number; - orderby?: string; +export interface RoleInstanceProperties { + networkProfile?: RoleInstanceNetworkProfile; + instanceView?: RoleInstanceInstanceView; } /** - * Optional Parameters. + * An interface representing RoleInstance. */ -export interface VirtualMachineExtensionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface RoleInstance { /** - * The expand expression to apply on the operation. + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + 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; + /** + * Resource Location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Resource tags. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tags?: { [propertyName: string]: string }; + sku?: InstanceSku; + properties?: RoleInstanceProperties; } /** - * Optional Parameters. + * Describes the cloud service role sku. */ -export interface VirtualMachineExtensionsListOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceRoleSku { /** - * The expand expression to apply on the operation. + * The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is + * currently on, you need to delete and recreate the cloud service or move back to the old sku. */ - expand?: string; + name?: string; + /** + * Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + */ + tier?: string; + /** + * Specifies the number of role instances in the cloud service. + */ + capacity?: number; } /** - * Optional Parameters. + * An interface representing CloudServiceRoleProperties. */ -export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceRoleProperties { /** - * The expand expression to apply on the operation. + * Specifies the ID which uniquely identifies a cloud service role. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; - top?: number; - orderby?: string; + readonly uniqueId?: string; } /** - * Optional Parameters. + * Describes a role of the cloud service. */ -export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceRole { /** - * The expand expression to apply on the operation. Possible values include: 'instanceView' + * Resource id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: InstanceViewTypes; + 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; + /** + * Resource location + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + sku?: CloudServiceRoleSku; + properties?: CloudServiceRoleProperties; } /** - * Optional Parameters. + * Describes the role properties. */ -export interface VirtualMachinesListAllOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceRoleProfileProperties { /** - * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. + * Resource name. */ - statusOnly?: string; + name?: string; + sku?: CloudServiceRoleSku; } /** - * Optional Parameters. + * Describes the role profile for the cloud service. */ -export interface VirtualMachinesPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceRoleProfile { /** - * The parameter to request non-graceful VM shutdown. True value for this flag indicates - * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false - * if not specified. Default value: false. + * List of roles for the cloud service. */ - skipShutdown?: boolean; + roles?: CloudServiceRoleProfileProperties[]; } /** - * Optional Parameters. + * Describes a single certificate reference in a Key Vault, and where the certificate should reside + * on the role instance. */ -export interface VirtualMachinesReimageOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceVaultCertificate { /** - * Parameters supplied to the Reimage Virtual Machine operation. + * This is the URL of a certificate that has been uploaded to Key Vault as a secret. */ - parameters?: VirtualMachineReimageParameters; + certificateUrl?: string; } /** - * Optional Parameters. + * Describes a set of certificates which are all in the same Key Vault. */ -export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceVaultSecretGroup { /** - * Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. - *

NOTE: If not specified, SAS URIs will be generated with a default expiration duration - * of 120 minutes. + * The relative URL of the Key Vault containing all of the certificates in VaultCertificates. */ - sasUriExpirationTimeInMinutes?: number; + sourceVault?: SubResource; + /** + * The list of key vault references in SourceVault which contain certificates. + */ + vaultCertificates?: CloudServiceVaultCertificate[]; } /** - * Optional Parameters. + * Describes the OS profile for the cloud service. */ -export interface VirtualMachinesBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceOsProfile { /** - * The parameter to request non-graceful VM shutdown. True value for this flag indicates - * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false - * if not specified. Default value: false. + * Specifies set of certificates that should be installed onto the role instances. */ - skipShutdown?: boolean; + secrets?: CloudServiceVaultSecretGroup[]; } /** - * Optional Parameters. + * Describes a cloud service IP Configuration */ -export interface VirtualMachinesBeginReimageOptionalParams extends msRest.RequestOptionsBase { +export interface LoadBalancerFrontendIPConfigurationProperties { + publicIPAddress?: SubResource; + subnet?: SubResource; /** - * Parameters supplied to the Reimage Virtual Machine operation. + * The private IP address referenced by the cloud service. */ - parameters?: VirtualMachineReimageParameters; + privateIPAddress?: string; } /** - * Optional Parameters. + * An interface representing LoadBalancerFrontendIPConfiguration. */ -export interface ImagesGetOptionalParams extends msRest.RequestOptionsBase { - /** - * The expand expression to apply on the operation. - */ - expand?: string; +export interface LoadBalancerFrontendIPConfiguration { + name?: string; + properties?: LoadBalancerFrontendIPConfigurationProperties; } /** - * Optional Parameters. + * An interface representing LoadBalancerConfigurationProperties. */ -export interface VirtualMachineScaleSetsDeallocateOptionalParams extends msRest.RequestOptionsBase { +export interface LoadBalancerConfigurationProperties { /** - * A list of virtual machine instance IDs from the VM scale set. + * List of IP */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + frontendIPConfigurations?: LoadBalancerFrontendIPConfiguration[]; } /** - * Optional Parameters. + * Describes the load balancer configuration. */ -export interface VirtualMachineScaleSetsPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface LoadBalancerConfiguration { /** - * A list of virtual machine instance IDs from the VM scale set. + * Resource Name */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + name?: string; + properties?: LoadBalancerConfigurationProperties; +} + +/** + * Network Profile for the cloud service. + */ +export interface CloudServiceNetworkProfile { /** - * The parameter to request non-graceful VM shutdown. True value for this flag indicates - * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false - * if not specified. Default value: false. + * The list of load balancer configurations for the cloud service. */ - skipShutdown?: boolean; + loadBalancerConfigurations?: LoadBalancerConfiguration[]; + swappableCloudService?: SubResource; } /** - * Optional Parameters. + * An interface representing CloudServiceVaultAndSecretReference. */ -export interface VirtualMachineScaleSetsRestartOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceVaultAndSecretReference { + sourceVault?: SubResource; + secretUrl?: string; +} + +/** + * Extension Properties. + */ +export interface CloudServiceExtensionProperties { /** - * A list of virtual machine instance IDs from the VM scale set. + * The name of the extension handler publisher. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + publisher?: string; + /** + * Specifies the type of the extension. + */ + type?: string; + /** + * Specifies the version of the extension. Specifies the version of the extension. If this + * element is not specified or an asterisk (*) is used as the value, the latest version of the + * extension is used. If the value is specified with a major version number and an asterisk as + * the minor version number (X.), the latest minor version of the specified major version is + * selected. If a major version number and a minor version number are specified (X.Y), the + * specific extension version is selected. If a version is specified, an auto-upgrade is + * performed on the role instance. + */ + typeHandlerVersion?: string; + /** + * Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher + * minor versions when they become available. + */ + autoUpgradeMinorVersion?: boolean; + /** + * Public settings for the extension. For JSON extensions, this is the JSON settings for the + * extension. For XML Extension (like RDP), this is the XML setting for the extension. + */ + settings?: string; + /** + * Protected settings for the extension which are encrypted before sent to the role instance. + */ + protectedSettings?: string; + protectedSettingsFromKeyVault?: CloudServiceVaultAndSecretReference; + /** + * Tag to force apply the provided public and protected settings. + * Changing the tag value allows for re-running the extension without changing any of the public + * or protected settings. + * If forceUpdateTag is not changed, updates to public or protected settings would still be + * applied by the handler. + * If neither forceUpdateTag nor any of public or protected settings change, extension would flow + * to the role instance with the same sequence-number, and + * it is up to handler implementation whether to re-run it or not + */ + forceUpdateTag?: string; + /** + * 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; + /** + * Optional list of roles to apply this extension. If property is not specified or '*' is + * specified, extension is applied to all roles in the cloud service. + */ + rolesAppliedTo?: string[]; } /** - * Optional Parameters. + * Describes a cloud service Extension. */ -export interface VirtualMachineScaleSetsStartOptionalParams extends msRest.RequestOptionsBase { +export interface Extension { /** - * A list of virtual machine instance IDs from the VM scale set. + * The name of the extension. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + name?: string; + properties?: CloudServiceExtensionProperties; } /** - * Optional Parameters. + * Describes a cloud service extension profile. */ -export interface VirtualMachineScaleSetsRedeployOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceExtensionProfile { /** - * A list of virtual machine instance IDs from the VM scale set. + * List of extensions for the cloud service. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + extensions?: Extension[]; } /** - * Optional Parameters. + * Cloud service properties */ -export interface VirtualMachineScaleSetsPerformMaintenanceOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceProperties { /** - * A list of virtual machine instance IDs from the VM scale set. + * Specifies a URL that refers to the location of the service package in the Blob service. The + * service package URL can be Shared Access Signature (SAS) URI from any storage account. + * This is a write-only property and is not returned in GET calls. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + packageUrl?: string; + /** + * Specifies the XML service configuration (.cscfg) for the cloud service. + */ + configuration?: string; + /** + * Specifies a URL that refers to the location of the service configuration in the Blob service. + * The service package URL can be Shared Access Signature (SAS) URI from any storage account. + * This is a write-only property and is not returned in GET calls. + */ + configurationUrl?: string; + /** + * (Optional) Indicates whether to start the cloud service immediately after it is created. The + * default value is `true`. + * If false, the service model is still deployed, but the code is not run immediately. Instead, + * the service is PoweredOff until you call Start, at which time the service will be started. A + * deployed service still incurs charges, even if it is poweredoff. + */ + startCloudService?: boolean; + /** + * Possible values include: 'Auto', 'Manual', 'Simultaneous' + */ + upgradeMode?: CloudServiceUpgradeMode; + roleProfile?: CloudServiceRoleProfile; + osProfile?: CloudServiceOsProfile; + networkProfile?: CloudServiceNetworkProfile; + extensionProfile?: CloudServiceExtensionProfile; + /** + * 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 unique identifier for the cloud service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly uniqueId?: string; } /** - * Optional Parameters. + * Describes the cloud service. */ -export interface VirtualMachineScaleSetsReimageOptionalParams extends msRest.RequestOptionsBase { +export interface CloudService extends BaseResource { /** - * Parameters for Reimaging VM ScaleSet. + * Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; + 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; + /** + * Resource location. + */ + location: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + properties?: CloudServiceProperties; } /** - * Optional Parameters. + * An interface representing CloudServiceUpdate. */ -export interface VirtualMachineScaleSetsReimageAllOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceUpdate { /** - * A list of virtual machine instance IDs from the VM scale set. + * Resource tags */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + tags?: { [propertyName: string]: string }; } /** - * Optional Parameters. + * An interface representing StatusCodeCount. */ -export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams extends msRest.RequestOptionsBase { +export interface StatusCodeCount { /** - * A list of virtual machine instance IDs from the VM scale set. + * The instance view status code + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + readonly code?: string; + /** + * Number of instances having this status code + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly count?: number; } /** - * Optional Parameters. + * Instance view statuses. */ -export interface VirtualMachineScaleSetsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface InstanceViewStatusesSummary { /** - * A list of virtual machine instance IDs from the VM scale set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + readonly statusesSummary?: StatusCodeCount[]; +} + +/** + * InstanceView of CloudService as a whole + */ +export interface CloudServiceInstanceView { + roleInstance?: InstanceViewStatusesSummary; /** - * The parameter to request non-graceful VM shutdown. True value for this flag indicates - * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false - * if not specified. Default value: false. + * The version of the SDK that was used to generate the package for the cloud service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - skipShutdown?: boolean; + readonly sdkVersion?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly statuses?: ResourceInstanceViewStatus[]; +} + +/** + * Specifies a list of role instances from the cloud service. + */ +export interface RoleInstances { + /** + * List of cloud service role instance names. Value of '*' will signify all role instances of the + * cloud service. + */ + roleInstances: string[]; +} + +/** + * Defines an update domain for the cloud service. + */ +export interface UpdateDomain { + /** + * 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; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginRestartOptionalParams extends msRest.RequestOptionsBase { +export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * A list of virtual machine instance IDs from the VM scale set. + * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + expand?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginStartOptionalParams extends msRest.RequestOptionsBase { +export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { /** - * A list of virtual machine instance IDs from the VM scale set. + * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + expand?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginRedeployOptionalParams extends msRest.RequestOptionsBase { +export interface ProximityPlacementGroupsGetOptionalParams extends msRest.RequestOptionsBase { /** - * A list of virtual machine instance IDs from the VM scale set. + * includeColocationStatus=true enables fetching the colocation status of all the resources in + * the proximity placement group. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + includeColocationStatus?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams extends msRest.RequestOptionsBase { +export interface DedicatedHostGroupsGetOptionalParams extends msRest.RequestOptionsBase { /** - * A list of virtual machine instance IDs from the VM scale set. + * 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' */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + expand?: InstanceViewTypes; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginReimageOptionalParams extends msRest.RequestOptionsBase { +export interface DedicatedHostsGetOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters for Reimaging VM ScaleSet. + * The expand expression to apply on the operation. Possible values include: 'instanceView' */ - vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; + expand?: InstanceViewTypes; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginReimageAllOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends msRest.RequestOptionsBase { /** - * A list of virtual machine instance IDs from the VM scale set. + * The filter to apply on the operation. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + filter?: string; + top?: number; + orderby?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetExtensionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineExtensionsGetOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -6861,7 +7594,7 @@ export interface VirtualMachineScaleSetExtensionsGetOptionalParams extends msRes /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineExtensionsListOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -6871,27 +7604,29 @@ export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams extends msR /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMExtensionsListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ expand?: string; + top?: number; + orderby?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsReimageOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters for the Reimaging Virtual machine in ScaleSet. + * Optional parameter to force delete virtual machines. */ - vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; + forceDeletion?: boolean; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. Possible values include: 'instanceView' */ @@ -6901,27 +7636,17 @@ export interface VirtualMachineScaleSetVMsGetOptionalParams extends msRest.Reque /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsListOptionalParams extends msRest.RequestOptionsBase { - /** - * 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; +export interface VirtualMachinesListAllOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply to the operation. Allowed values are 'instanceView'. + * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ - expand?: string; + statusOnly?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesPowerOffOptionalParams extends msRest.RequestOptionsBase { /** * The parameter to request non-graceful VM shutdown. True value for this flag indicates * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false @@ -6933,7 +7658,17 @@ export interface VirtualMachineScaleSetVMsPowerOffOptionalParams extends msRest. /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesReimageOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters supplied to the Reimage Virtual Machine operation. + */ + parameters?: VirtualMachineReimageParameters; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { /** * Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. *

NOTE: If not specified, SAS URIs will be generated with a default expiration duration @@ -6945,17 +7680,17 @@ export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalPar /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters for the Reimaging Virtual machine in ScaleSet. + * Optional parameter to force delete virtual machines. */ - vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; + forceDeletion?: boolean; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { /** * The parameter to request non-graceful VM shutdown. True value for this flag indicates * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false @@ -6967,991 +7702,2689 @@ export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends ms /** * Optional Parameters. */ -export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesBeginReimageOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Only **location** filter is supported currently. + * Parameters supplied to the Reimage Virtual Machine operation. */ - filter?: string; + parameters?: VirtualMachineReimageParameters; } /** * Optional Parameters. */ -export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesListAllNextOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ - expand?: ReplicationStatusTypes; + statusOnly?: string; } /** * Optional Parameters. */ -export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ImagesGetOptionalParams 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. - */ -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 + * Optional Parameters. */ -export interface AvailabilitySetListResult extends Array { +export interface VirtualMachineScaleSetsDeallocateOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the - * next page of AvailabilitySets. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineSizeListResult extends Array { +export interface VirtualMachineScaleSetsPowerOffOptionalParams extends msRest.RequestOptionsBase { + /** + * A list of virtual machine instance IDs from the VM scale set. + */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** + * The parameter to request non-graceful VM shutdown. True value for this flag indicates + * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false + * if not specified. Default value: false. + */ + skipShutdown?: boolean; } /** - * @interface - * The List Proximity Placement Group operation response. - * @extends Array + * Optional Parameters. */ -export interface ProximityPlacementGroupListResult extends Array { +export interface VirtualMachineScaleSetsRestartOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of proximity placement groups. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List Dedicated Host Group with resource group response. - * @extends Array + * Optional Parameters. */ -export interface DedicatedHostGroupListResult extends Array { +export interface VirtualMachineScaleSetsStartOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to - * fetch the next page of Dedicated Host Groups. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The list dedicated host operation response. - * @extends Array + * Optional Parameters. */ -export interface DedicatedHostListResult extends Array { +export interface VirtualMachineScaleSetsRedeployOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the - * next page of dedicated hosts. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The list SSH public keys operation response. - * @extends Array + * Optional Parameters. */ -export interface SshPublicKeysGroupListResult extends Array { +export interface VirtualMachineScaleSetsPerformMaintenanceOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the - * next page of SSH public keys. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List Usages operation response. - * @extends Array + * Optional Parameters. */ -export interface ListUsagesResult extends Array { +export interface VirtualMachineScaleSetsReimageOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of compute resource usage information. Call ListNext() with - * this to fetch the next page of compute resource usage information. + * Parameters for Reimaging VM ScaleSet. */ - nextLink?: string; + vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineListResult extends Array { +export interface VirtualMachineScaleSetsReimageAllOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of - * Virtual Machines. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List Image operation response. - * @extends Array + * Optional Parameters. */ -export interface ImageListResult extends Array { +export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of - * Images. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetListResult extends Array { +export interface VirtualMachineScaleSetsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to - * fetch the next page of VMSS. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** + * The parameter to request non-graceful VM shutdown. True value for this flag indicates + * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false + * if not specified. Default value: false. + */ + skipShutdown?: boolean; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetListWithLinkResult extends Array { +export interface VirtualMachineScaleSetsBeginRestartOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to - * fetch the next page of Virtual Machine Scale Sets. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The Virtual Machine Scale Set List Skus operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetListSkusResult extends Array { +export interface VirtualMachineScaleSetsBeginStartOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to - * fetch the next page of VMSS Skus. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * List of Virtual Machine Scale Set OS Upgrade History operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetListOSUpgradeHistory extends Array { +export interface VirtualMachineScaleSetsBeginRedeployOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the - * next page of history of upgrades. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List VM scale set extension operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetExtensionListResult extends Array { +export interface VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch - * the next page of VM scale set extensions. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List Virtual Machine Scale Set VMs operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetVMListResult extends Array { +export interface VirtualMachineScaleSetsBeginReimageOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to - * fetch the next page of VMSS VMs + * Parameters for Reimaging VM ScaleSet. */ - nextLink?: string; + vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface RunCommandListResult extends Array { +export interface VirtualMachineScaleSetsBeginReimageAllOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next - * page of run commands. + * A list of virtual machine instance IDs from the VM scale set. */ - nextLink?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List Resource Skus operation response. - * @extends Array + * Optional Parameters. */ -export interface ResourceSkusResult extends Array { +export interface VirtualMachineScaleSetExtensionsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the - * next page of Resource Skus + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Disks operation response. - * @extends Array + * Optional Parameters. */ -export interface DiskList extends Array { +export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of disks. Call ListNext() with this to fetch the next page of - * disks. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Snapshots operation response. - * @extends Array + * Optional Parameters. */ -export interface SnapshotList extends Array { +export interface VirtualMachineScaleSetVMExtensionsListOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page - * of snapshots. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List disk encryption set operation response. - * @extends Array + * Optional Parameters. */ -export interface DiskEncryptionSetList extends Array { +export interface VirtualMachineScaleSetVMsReimageOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the - * next page of disk encryption sets. + * Parameters for the Reimaging Virtual machine in ScaleSet. */ - nextLink?: string; + vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } /** - * @interface - * The List resources which are encrypted with the disk encryption set. - * @extends Array + * Optional Parameters. */ -export interface ResourceUriList extends Array { +export interface VirtualMachineScaleSetVMsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of encrypted resources. Call ListNext() with this to fetch the - * next page of encrypted resources. + * The expand expression to apply on the operation. Possible values include: 'instanceView' */ - nextLink?: string; + expand?: InstanceViewTypes; } /** - * @interface - * The List disk access operation response. - * @extends Array + * Optional Parameters. */ -export interface DiskAccessList extends Array { +export interface VirtualMachineScaleSetVMsListOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch - * the next page of disk access resources. + * 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'. */ - nextLink?: string; + 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; } /** - * @interface - * The List Galleries operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryList extends Array { +export interface VirtualMachineScaleSetVMsPowerOffOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page - * of galleries. + * The parameter to request non-graceful VM shutdown. True value for this flag indicates + * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false + * if not specified. Default value: false. */ - nextLink?: string; + skipShutdown?: boolean; } /** - * @interface - * The List Gallery Images operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryImageList extends Array { +export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call - * ListNext() with this to fetch the next page of gallery Image Definitions. + * Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. + *

NOTE: If not specified, SAS URIs will be generated with a default expiration duration + * of 120 minutes. */ - nextLink?: string; + sasUriExpirationTimeInMinutes?: number; } /** - * @interface - * The List Gallery Image version operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryImageVersionList extends Array { +export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of gallery Image Versions. Call ListNext() with this to fetch - * the next page of gallery Image Versions. + * Parameters for the Reimaging Virtual machine in ScaleSet. */ - nextLink?: string; + vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } /** - * @interface - * The List Gallery Applications operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryApplicationList extends Array { +export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of Application Definitions in the Application Gallery. Call - * ListNext() with this to fetch the next page of gallery Application Definitions. + * The parameter to request non-graceful VM shutdown. True value for this flag indicates + * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false + * if not specified. Default value: false. */ - nextLink?: string; + skipShutdown?: boolean; } /** - * @interface - * The List Gallery Application version operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryApplicationVersionList extends Array { +export interface VirtualMachineScaleSetVMsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to - * fetch the next page of gallery Application Versions. + * 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'. */ - nextLink?: string; + 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; } /** - * @interface - * The response from the List Container Services operation. - * @extends Array + * Optional Parameters. */ -export interface ContainerServiceListResult extends Array { +export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { /** - * The URL to get the next set of container service results. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * Defines values for VmDiskTypes. - * Possible values include: 'None', 'Unmanaged' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VmDiskTypes = 'None' | 'Unmanaged'; +export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} /** - * Defines values for HyperVGenerationTypes. - * Possible values include: 'V1', 'V2' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type HyperVGenerationTypes = 'V1' | 'V2'; +export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} /** - * Defines values for StatusLevelTypes. - * Possible values include: 'Info', 'Warning', 'Error' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; +export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} /** - * Defines values for AvailabilitySetSkuTypes. - * Possible values include: 'Classic', 'Aligned' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type AvailabilitySetSkuTypes = 'Classic' | 'Aligned'; +export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} /** - * Defines values for ProximityPlacementGroupType. - * Possible values include: 'Standard', 'Ultra' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; +export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} /** - * Defines values for DedicatedHostLicenseTypes. - * Possible values include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type DedicatedHostLicenseTypes = 'None' | 'Windows_Server_Hybrid' | 'Windows_Server_Perpetual'; +export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Only **location** filter is supported currently. + */ + filter?: string; +} /** - * Defines values for SoftwareUpdateRebootBehavior. - * Possible values include: 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type SoftwareUpdateRebootBehavior = 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; +export interface ResourceSkusListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Only **location** filter is supported currently. + */ + filter?: string; +} /** - * Defines values for PatchAssessmentState. - * Possible values include: 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending', - * 'Available' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type PatchAssessmentState = 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending' | 'Available'; +export interface GalleriesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The select expression to apply on the operation. Possible values include: 'Permissions' + */ + select?: SelectPermissions; +} /** - * Defines values for PatchOperationStatus. - * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type PatchOperationStatus = 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; +export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + */ + expand?: ReplicationStatusTypes; +} /** - * Defines values for OperatingSystemTypes. - * Possible values include: 'Windows', 'Linux' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type OperatingSystemTypes = 'Windows' | 'Linux'; +export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + */ + expand?: ReplicationStatusTypes; +} /** - * Defines values for VirtualMachineSizeTypes. - * 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' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VirtualMachineSizeTypes = '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'; +export interface SharedGalleriesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} /** - * Defines values for CachingTypes. - * Possible values include: 'None', 'ReadOnly', 'ReadWrite' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type CachingTypes = 'None' | 'ReadOnly' | 'ReadWrite'; +export interface SharedGalleriesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} /** - * Defines values for DiskCreateOptionTypes. - * Possible values include: 'FromImage', 'Empty', 'Attach' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type DiskCreateOptionTypes = 'FromImage' | 'Empty' | 'Attach'; +export interface SharedGalleryImagesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} /** - * Defines values for StorageAccountTypes. - * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type StorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS'; +export interface SharedGalleryImagesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} /** - * Defines values for DiffDiskOptions. - * Possible values include: 'Local' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type DiffDiskOptions = 'Local'; +export interface SharedGalleryImageVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} /** - * Defines values for DiffDiskPlacement. - * Possible values include: 'CacheDisk', 'ResourceDisk' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type DiffDiskPlacement = 'CacheDisk' | 'ResourceDisk'; +export interface SharedGalleryImageVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + * Possible values include: 'tenant' + */ + sharedTo?: SharedToValues; +} /** - * Defines values for PassNames. - * Possible values include: 'OobeSystem' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type PassNames = 'OobeSystem'; +export interface CloudServiceRoleInstancesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply to the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} /** - * Defines values for ComponentNames. - * Possible values include: 'Microsoft-Windows-Shell-Setup' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ComponentNames = 'Microsoft-Windows-Shell-Setup'; +export interface CloudServiceRoleInstancesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply to the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} /** - * Defines values for SettingNames. - * Possible values include: 'AutoLogon', 'FirstLogonCommands' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type SettingNames = 'AutoLogon' | 'FirstLogonCommands'; +export interface CloudServiceRoleInstancesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply to the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} /** - * Defines values for ProtocolTypes. - * Possible values include: 'Http', 'Https' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ProtocolTypes = 'Http' | 'Https'; +export interface CloudServicesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cloud service object. + */ + parameters?: CloudService; +} /** - * Defines values for InGuestPatchMode. - * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type InGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; +export interface CloudServicesUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cloud service object. + */ + parameters?: CloudServiceUpdate; +} /** - * Defines values for VirtualMachinePriorityTypes. - * Possible values include: 'Regular', 'Low', 'Spot' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VirtualMachinePriorityTypes = 'Regular' | 'Low' | 'Spot'; +export interface CloudServicesRestartOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for VirtualMachineEvictionPolicyTypes. - * Possible values include: 'Deallocate', 'Delete' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VirtualMachineEvictionPolicyTypes = 'Deallocate' | 'Delete'; +export interface CloudServicesReimageOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', - * 'None' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; +export interface CloudServicesRebuildOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for MaintenanceOperationResultCodeTypes. - * Possible values include: 'None', 'RetryLater', 'MaintenanceAborted', 'MaintenanceCompleted' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type MaintenanceOperationResultCodeTypes = 'None' | 'RetryLater' | 'MaintenanceAborted' | 'MaintenanceCompleted'; +export interface CloudServicesDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for HyperVGenerationType. - * Possible values include: 'V1', 'V2' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type HyperVGenerationType = 'V1' | 'V2'; +export interface CloudServicesBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cloud service object. + */ + parameters?: CloudService; +} /** - * Defines values for RebootStatus. - * Possible values include: 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type RebootStatus = 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; +export interface CloudServicesBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cloud service object. + */ + parameters?: CloudServiceUpdate; +} /** - * Defines values for UpgradeMode. - * Possible values include: 'Automatic', 'Manual', 'Rolling' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type UpgradeMode = 'Automatic' | 'Manual' | 'Rolling'; +export interface CloudServicesBeginRestartOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for VirtualMachineScaleSetScaleInRules. - * Possible values include: 'Default', 'OldestVM', 'NewestVM' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VirtualMachineScaleSetScaleInRules = 'Default' | 'OldestVM' | 'NewestVM'; +export interface CloudServicesBeginReimageOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for OperatingSystemStateTypes. - * Possible values include: 'Generalized', 'Specialized' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type OperatingSystemStateTypes = 'Generalized' | 'Specialized'; +export interface CloudServicesBeginRebuildOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for IPVersion. - * Possible values include: 'IPv4', 'IPv6' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type IPVersion = 'IPv4' | 'IPv6'; +export interface CloudServicesBeginDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for OrchestrationServiceNames. - * Possible values include: 'AutomaticRepairs' - * @readonly - * @enum {string} + * An interface representing ComputeManagementClientOptions. */ -export type OrchestrationServiceNames = 'AutomaticRepairs' ; +export interface ComputeManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** - * Defines values for OrchestrationServiceState. - * Possible values include: 'NotRunning', 'Running', 'Suspended' - * @readonly - * @enum {string} + * @interface + * The List Compute Operation operation response. + * @extends Array */ -export type OrchestrationServiceState = 'NotRunning' | 'Running' | 'Suspended'; +export interface ComputeOperationListResult extends Array { +} /** - * Defines values for VirtualMachineScaleSetSkuScaleType. - * Possible values include: 'Automatic', 'None' - * @readonly - * @enum {string} + * @interface + * The List Availability Set operation response. + * @extends Array */ -export type VirtualMachineScaleSetSkuScaleType = 'Automatic' | 'None'; +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; +} /** - * Defines values for UpgradeState. - * Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type UpgradeState = 'RollingForward' | 'Cancelled' | 'Completed' | 'Faulted'; +export interface VirtualMachineSizeListResult extends Array { +} /** - * Defines values for UpgradeOperationInvoker. - * Possible values include: 'Unknown', 'User', 'Platform' - * @readonly - * @enum {string} + * @interface + * The List Proximity Placement Group operation response. + * @extends Array */ -export type UpgradeOperationInvoker = 'Unknown' | 'User' | 'Platform'; +export interface ProximityPlacementGroupListResult extends Array { + /** + * The URI to fetch the next page of proximity placement groups. + */ + nextLink?: string; +} /** - * Defines values for RollingUpgradeStatusCode. - * Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' - * @readonly - * @enum {string} + * @interface + * The List Dedicated Host Group with resource group response. + * @extends Array */ -export type RollingUpgradeStatusCode = 'RollingForward' | 'Cancelled' | 'Completed' | 'Faulted'; +export interface DedicatedHostGroupListResult extends Array { + /** + * The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to + * fetch the next page of Dedicated Host Groups. + */ + nextLink?: string; +} /** - * Defines values for RollingUpgradeActionType. - * Possible values include: 'Start', 'Cancel' - * @readonly - * @enum {string} - */ -export type RollingUpgradeActionType = 'Start' | 'Cancel'; - -/** - * Defines values for IntervalInMins. - * Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' - * @readonly - * @enum {string} + * @interface + * The list dedicated host operation response. + * @extends Array */ -export type IntervalInMins = 'ThreeMins' | 'FiveMins' | 'ThirtyMins' | 'SixtyMins'; +export interface DedicatedHostListResult extends Array { + /** + * The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the + * next page of dedicated hosts. + */ + nextLink?: string; +} /** - * Defines values for OrchestrationServiceStateAction. - * Possible values include: 'Resume', 'Suspend' - * @readonly - * @enum {string} + * @interface + * The list SSH public keys operation response. + * @extends Array */ -export type OrchestrationServiceStateAction = 'Resume' | 'Suspend'; +export interface SshPublicKeysGroupListResult extends Array { + /** + * The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the + * next page of SSH public keys. + */ + nextLink?: string; +} /** - * Defines values for ResourceSkuCapacityScaleType. - * Possible values include: 'Automatic', 'Manual', 'None' - * @readonly - * @enum {string} + * @interface + * The List Usages operation response. + * @extends Array */ -export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; +export interface ListUsagesResult extends Array { + /** + * The URI to fetch the next page of compute resource usage information. Call ListNext() with + * this to fetch the next page of compute resource usage information. + */ + nextLink?: string; +} /** - * Defines values for ResourceSkuRestrictionsType. - * Possible values include: 'Location', 'Zone' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type ResourceSkuRestrictionsType = 'Location' | 'Zone'; +export interface VirtualMachineListResult extends Array { + /** + * The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of + * Virtual Machines. + */ + nextLink?: string; +} /** - * Defines values for ResourceSkuRestrictionsReasonCode. - * Possible values include: 'QuotaId', 'NotAvailableForSubscription' - * @readonly - * @enum {string} + * @interface + * The List Image operation response. + * @extends Array */ -export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; +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; +} /** - * Defines values for DiskStorageAccountTypes. - * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type DiskStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS'; +export interface VirtualMachineScaleSetListResult extends Array { + /** + * The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to + * fetch the next page of VMSS. + */ + nextLink?: string; +} /** - * Defines values for HyperVGeneration. - * Possible values include: 'V1', 'V2' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type HyperVGeneration = 'V1' | 'V2'; +export interface VirtualMachineScaleSetListWithLinkResult extends Array { + /** + * The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to + * fetch the next page of Virtual Machine Scale Sets. + */ + nextLink?: string; +} /** - * Defines values for DiskCreateOption. - * Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload' - * @readonly - * @enum {string} + * @interface + * The Virtual Machine Scale Set List Skus operation response. + * @extends Array */ -export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore' | 'Upload'; +export interface VirtualMachineScaleSetListSkusResult extends Array { + /** + * The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to + * fetch the next page of VMSS Skus. + */ + nextLink?: string; +} /** - * Defines values for DiskState. - * Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', - * 'ActiveUpload' - * @readonly - * @enum {string} + * @interface + * List of Virtual Machine Scale Set OS Upgrade History operation response. + * @extends Array */ -export type DiskState = 'Unattached' | 'Attached' | 'Reserved' | 'ActiveSAS' | 'ReadyToUpload' | 'ActiveUpload'; +export interface VirtualMachineScaleSetListOSUpgradeHistory extends Array { + /** + * The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the + * next page of history of upgrades. + */ + nextLink?: string; +} /** - * Defines values for EncryptionType. - * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', - * 'EncryptionAtRestWithPlatformAndCustomerKeys' - * @readonly - * @enum {string} + * @interface + * The List VM scale set extension operation response. + * @extends Array */ -export type EncryptionType = 'EncryptionAtRestWithPlatformKey' | 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; +export interface VirtualMachineScaleSetExtensionListResult extends Array { + /** + * The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch + * the next page of VM scale set extensions. + */ + nextLink?: string; +} /** - * Defines values for NetworkAccessPolicy. - * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine Scale Set VMs operation response. + * @extends Array */ -export type NetworkAccessPolicy = 'AllowAll' | 'AllowPrivate' | 'DenyAll'; +export interface VirtualMachineScaleSetVMListResult extends Array { + /** + * The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to + * fetch the next page of VMSS VMs + */ + nextLink?: string; +} /** - * Defines values for SnapshotStorageAccountTypes. - * Possible values include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type SnapshotStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'Standard_ZRS'; +export interface RunCommandListResult extends Array { + /** + * The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next + * page of run commands. + */ + nextLink?: string; +} /** - * Defines values for DiskEncryptionSetType. - * Possible values include: 'EncryptionAtRestWithCustomerKey', - * 'EncryptionAtRestWithPlatformAndCustomerKeys' - * @readonly - * @enum {string} + * @interface + * The List run command operation response + * @extends Array */ -export type DiskEncryptionSetType = 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; +export interface VirtualMachineRunCommandsListResult extends Array { + /** + * The uri to fetch the next page of run commands. + */ + nextLink?: string; +} /** - * Defines values for AccessLevel. - * Possible values include: 'None', 'Read', 'Write' - * @readonly - * @enum {string} + * @interface + * The List Resource Skus operation response. + * @extends Array */ -export type AccessLevel = 'None' | 'Read' | 'Write'; +export interface ResourceSkusResult extends Array { + /** + * The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the + * next page of Resource Skus + */ + nextLink?: string; +} /** - * Defines values for DiskEncryptionSetIdentityType. - * Possible values include: 'SystemAssigned' - * @readonly - * @enum {string} + * @interface + * The List Disks operation response. + * @extends Array */ -export type DiskEncryptionSetIdentityType = 'SystemAssigned'; +export interface DiskList extends Array { + /** + * The uri to fetch the next page of disks. Call ListNext() with this to fetch the next page of + * disks. + */ + nextLink?: string; +} /** - * Defines values for PrivateEndpointServiceConnectionStatus. - * Possible values include: 'Pending', 'Approved', 'Rejected' - * @readonly - * @enum {string} + * @interface + * The List Snapshots operation response. + * @extends Array */ -export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected'; +export interface SnapshotList extends Array { + /** + * The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page + * of snapshots. + */ + nextLink?: string; +} /** - * Defines values for PrivateEndpointConnectionProvisioningState. - * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' - * @readonly - * @enum {string} + * @interface + * The List disk encryption set operation response. + * @extends Array */ -export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; +export interface DiskEncryptionSetList extends Array { + /** + * The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the + * next page of disk encryption sets. + */ + nextLink?: string; +} /** - * Defines values for AggregatedReplicationState. - * Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' + * @interface + * The List resources which are encrypted with the disk encryption set. + * @extends Array + */ +export interface ResourceUriList extends Array { + /** + * The uri to fetch the next page of encrypted resources. Call ListNext() with this to fetch the + * next page of encrypted resources. + */ + nextLink?: string; +} + +/** + * @interface + * The List disk access operation response. + * @extends Array + */ +export interface DiskAccessList extends Array { + /** + * The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch + * the next page of disk access resources. + */ + nextLink?: string; +} + +/** + * @interface + * The List Galleries operation response. + * @extends Array + */ +export interface GalleryList extends Array { + /** + * The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page + * of galleries. + */ + nextLink?: string; +} + +/** + * @interface + * The List Gallery Images operation response. + * @extends Array + */ +export interface GalleryImageList extends Array { + /** + * The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call + * ListNext() with this to fetch the next page of gallery image definitions. + */ + nextLink?: string; +} + +/** + * @interface + * The List Gallery Image version operation response. + * @extends Array + */ +export interface GalleryImageVersionList extends Array { + /** + * The uri to fetch the next page of gallery image versions. Call ListNext() with this to fetch + * the next page of gallery image versions. + */ + nextLink?: string; +} + +/** + * @interface + * The List Gallery Applications operation response. + * @extends Array + */ +export interface GalleryApplicationList extends Array { + /** + * The uri to fetch the next page of Application Definitions in the Application Gallery. Call + * ListNext() with this to fetch the next page of gallery Application Definitions. + */ + nextLink?: string; +} + +/** + * @interface + * The List Gallery Application version operation response. + * @extends Array + */ +export interface GalleryApplicationVersionList extends Array { + /** + * The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to + * fetch the next page of gallery Application Versions. + */ + nextLink?: string; +} + +/** + * @interface + * The List Shared Galleries operation response. + * @extends Array + */ +export interface SharedGalleryList extends Array { + /** + * The uri to fetch the next page of shared galleries. Call ListNext() with this to fetch the + * next page of shared galleries. + */ + nextLink?: string; +} + +/** + * @interface + * The List Shared Gallery Images operation response. + * @extends Array + */ +export interface SharedGalleryImageList extends Array { + /** + * The uri to fetch the next page of shared gallery images. Call ListNext() with this to fetch + * the next page of shared gallery images. + */ + nextLink?: string; +} + +/** + * @interface + * The List Shared Gallery Image versions operation response. + * @extends Array + */ +export interface SharedGalleryImageVersionList extends Array { + /** + * The uri to fetch the next page of shared gallery image versions. Call ListNext() with this to + * fetch the next page of shared gallery image versions. + */ + nextLink?: string; +} + +/** + * @interface + * The response from the List Container Services operation. + * @extends Array + */ +export interface ContainerServiceListResult extends Array { + /** + * The URL to get the next set of container service results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the RoleInstanceListResult. + * @extends Array + */ +export interface RoleInstanceListResult extends Array { + nextLink?: string; +} + +/** + * @interface + * An interface representing the CloudServiceRoleListResult. + * @extends Array + */ +export interface CloudServiceRoleListResult extends Array { + nextLink?: string; +} + +/** + * @interface + * An interface representing the CloudServiceListResult. + * @extends Array + */ +export interface CloudServiceListResult extends Array { + nextLink?: string; +} + +/** + * @interface + * An interface representing the UpdateDomainListResult. + * @extends Array + */ +export interface UpdateDomainListResult extends Array { + nextLink?: string; +} + +/** + * Defines values for VmDiskTypes. + * Possible values include: 'None', 'Unmanaged' * @readonly * @enum {string} */ -export type AggregatedReplicationState = 'Unknown' | 'InProgress' | 'Completed' | 'Failed'; +export type VmDiskTypes = 'None' | 'Unmanaged'; /** - * Defines values for ReplicationState. - * Possible values include: 'Unknown', 'Replicating', 'Completed', 'Failed' + * Defines values for HyperVGenerationTypes. + * Possible values include: 'V1', 'V2' * @readonly * @enum {string} */ -export type ReplicationState = 'Unknown' | 'Replicating' | 'Completed' | 'Failed'; +export type HyperVGenerationTypes = 'V1' | 'V2'; /** - * Defines values for StorageAccountType. - * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Premium_LRS' + * Defines values for StatusLevelTypes. + * Possible values include: 'Info', 'Warning', 'Error' * @readonly * @enum {string} */ -export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS' | 'Premium_LRS'; +export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; /** - * Defines values for HostCaching. - * Possible values include: 'None', 'ReadOnly', 'ReadWrite' + * Defines values for AvailabilitySetSkuTypes. + * Possible values include: 'Classic', 'Aligned' * @readonly * @enum {string} */ -export type HostCaching = 'None' | 'ReadOnly' | 'ReadWrite'; +export type AvailabilitySetSkuTypes = 'Classic' | 'Aligned'; /** - * Defines values for ContainerServiceOrchestratorTypes. - * Possible values include: 'Swarm', 'DCOS', 'Custom', 'Kubernetes' + * Defines values for ProximityPlacementGroupType. + * Possible values include: 'Standard', 'Ultra' * @readonly * @enum {string} */ -export type ContainerServiceOrchestratorTypes = 'Swarm' | 'DCOS' | 'Custom' | 'Kubernetes'; +export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; /** - * 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' + * Defines values for DedicatedHostLicenseTypes. + * Possible values include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual' * @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'; +export type DedicatedHostLicenseTypes = 'None' | 'Windows_Server_Hybrid' | 'Windows_Server_Perpetual'; + +/** + * Defines values for SoftwareUpdateRebootBehavior. + * Possible values include: 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' + * @readonly + * @enum {string} + */ +export type SoftwareUpdateRebootBehavior = 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; + +/** + * Defines values for PatchAssessmentState. + * Possible values include: 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending', + * 'Available' + * @readonly + * @enum {string} + */ +export type PatchAssessmentState = 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending' | 'Available'; + +/** + * Defines values for PatchOperationStatus. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' + * @readonly + * @enum {string} + */ +export type PatchOperationStatus = 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; + +/** + * Defines values for OperatingSystemTypes. + * Possible values include: 'Windows', 'Linux' + * @readonly + * @enum {string} + */ +export type OperatingSystemTypes = 'Windows' | 'Linux'; + +/** + * Defines values for VirtualMachineSizeTypes. + * 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' + * @readonly + * @enum {string} + */ +export type VirtualMachineSizeTypes = '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'; + +/** + * Defines values for CachingTypes. + * Possible values include: 'None', 'ReadOnly', 'ReadWrite' + * @readonly + * @enum {string} + */ +export type CachingTypes = 'None' | 'ReadOnly' | 'ReadWrite'; + +/** + * Defines values for DiskCreateOptionTypes. + * Possible values include: 'FromImage', 'Empty', 'Attach' + * @readonly + * @enum {string} + */ +export type DiskCreateOptionTypes = 'FromImage' | 'Empty' | 'Attach'; + +/** + * Defines values for StorageAccountTypes. + * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * @readonly + * @enum {string} + */ +export type StorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS'; + +/** + * Defines values for DiffDiskOptions. + * Possible values include: 'Local' + * @readonly + * @enum {string} + */ +export type DiffDiskOptions = 'Local'; + +/** + * Defines values for DiffDiskPlacement. + * Possible values include: 'CacheDisk', 'ResourceDisk' + * @readonly + * @enum {string} + */ +export type DiffDiskPlacement = 'CacheDisk' | 'ResourceDisk'; + +/** + * Defines values for PassNames. + * Possible values include: 'OobeSystem' + * @readonly + * @enum {string} + */ +export type PassNames = 'OobeSystem'; + +/** + * Defines values for ComponentNames. + * Possible values include: 'Microsoft-Windows-Shell-Setup' + * @readonly + * @enum {string} + */ +export type ComponentNames = 'Microsoft-Windows-Shell-Setup'; + +/** + * Defines values for SettingNames. + * Possible values include: 'AutoLogon', 'FirstLogonCommands' + * @readonly + * @enum {string} + */ +export type SettingNames = 'AutoLogon' | 'FirstLogonCommands'; + +/** + * Defines values for ProtocolTypes. + * Possible values include: 'Http', 'Https' + * @readonly + * @enum {string} + */ +export type ProtocolTypes = 'Http' | 'Https'; + +/** + * Defines values for InGuestPatchMode. + * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' + * @readonly + * @enum {string} + */ +export type InGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; + +/** + * Defines values for VirtualMachinePriorityTypes. + * Possible values include: 'Regular', 'Low', 'Spot' + * @readonly + * @enum {string} + */ +export type VirtualMachinePriorityTypes = 'Regular' | 'Low' | 'Spot'; + +/** + * Defines values for VirtualMachineEvictionPolicyTypes. + * Possible values include: 'Deallocate', 'Delete' + * @readonly + * @enum {string} + */ +export type VirtualMachineEvictionPolicyTypes = 'Deallocate' | 'Delete'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', + * 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; + +/** + * Defines values for MaintenanceOperationResultCodeTypes. + * Possible values include: 'None', 'RetryLater', 'MaintenanceAborted', 'MaintenanceCompleted' + * @readonly + * @enum {string} + */ +export type MaintenanceOperationResultCodeTypes = 'None' | 'RetryLater' | 'MaintenanceAborted' | 'MaintenanceCompleted'; + +/** + * Defines values for HyperVGenerationType. + * Possible values include: 'V1', 'V2' + * @readonly + * @enum {string} + */ +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' + * @readonly + * @enum {string} + */ +export type UpgradeMode = 'Automatic' | 'Manual' | 'Rolling'; + +/** + * Defines values for VirtualMachineScaleSetScaleInRules. + * Possible values include: 'Default', 'OldestVM', 'NewestVM' + * @readonly + * @enum {string} + */ +export type VirtualMachineScaleSetScaleInRules = 'Default' | 'OldestVM' | 'NewestVM'; + +/** + * Defines values for OperatingSystemStateTypes. + * Possible values include: 'Generalized', 'Specialized' + * @readonly + * @enum {string} + */ +export type OperatingSystemStateTypes = 'Generalized' | 'Specialized'; + +/** + * Defines values for IPVersion. + * Possible values include: 'IPv4', 'IPv6' + * @readonly + * @enum {string} + */ +export type IPVersion = 'IPv4' | 'IPv6'; + +/** + * Defines values for OrchestrationServiceNames. + * Possible values include: 'AutomaticRepairs' + * @readonly + * @enum {string} + */ +export type OrchestrationServiceNames = 'AutomaticRepairs' ; + +/** + * Defines values for OrchestrationServiceState. + * Possible values include: 'NotRunning', 'Running', 'Suspended' + * @readonly + * @enum {string} + */ +export type OrchestrationServiceState = 'NotRunning' | 'Running' | 'Suspended'; + +/** + * Defines values for VirtualMachineScaleSetSkuScaleType. + * Possible values include: 'Automatic', 'None' + * @readonly + * @enum {string} + */ +export type VirtualMachineScaleSetSkuScaleType = 'Automatic' | 'None'; + +/** + * Defines values for UpgradeState. + * Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' + * @readonly + * @enum {string} + */ +export type UpgradeState = 'RollingForward' | 'Cancelled' | 'Completed' | 'Faulted'; + +/** + * Defines values for UpgradeOperationInvoker. + * Possible values include: 'Unknown', 'User', 'Platform' + * @readonly + * @enum {string} + */ +export type UpgradeOperationInvoker = 'Unknown' | 'User' | 'Platform'; + +/** + * Defines values for RollingUpgradeStatusCode. + * Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' + * @readonly + * @enum {string} + */ +export type RollingUpgradeStatusCode = 'RollingForward' | 'Cancelled' | 'Completed' | 'Faulted'; + +/** + * Defines values for RollingUpgradeActionType. + * Possible values include: 'Start', 'Cancel' + * @readonly + * @enum {string} + */ +export type RollingUpgradeActionType = 'Start' | 'Cancel'; + +/** + * Defines values for IntervalInMins. + * Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' + * @readonly + * @enum {string} + */ +export type IntervalInMins = 'ThreeMins' | 'FiveMins' | 'ThirtyMins' | 'SixtyMins'; + +/** + * Defines values for OrchestrationServiceStateAction. + * Possible values include: 'Resume', 'Suspend' + * @readonly + * @enum {string} + */ +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' + * @readonly + * @enum {string} + */ +export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; + +/** + * Defines values for ResourceSkuRestrictionsType. + * Possible values include: 'Location', 'Zone' + * @readonly + * @enum {string} + */ +export type ResourceSkuRestrictionsType = 'Location' | 'Zone'; + +/** + * Defines values for ResourceSkuRestrictionsReasonCode. + * Possible values include: 'QuotaId', 'NotAvailableForSubscription' + * @readonly + * @enum {string} + */ +export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; + +/** + * Defines values for DiskStorageAccountTypes. + * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * @readonly + * @enum {string} + */ +export type DiskStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS'; + +/** + * Defines values for HyperVGeneration. + * Possible values include: 'V1', 'V2' + * @readonly + * @enum {string} + */ +export type HyperVGeneration = 'V1' | 'V2'; + +/** + * Defines values for DiskCreateOption. + * Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload' + * @readonly + * @enum {string} + */ +export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore' | 'Upload'; + +/** + * Defines values for DiskState. + * Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', + * 'ActiveUpload' + * @readonly + * @enum {string} + */ +export type DiskState = 'Unattached' | 'Attached' | 'Reserved' | 'ActiveSAS' | 'ReadyToUpload' | 'ActiveUpload'; + +/** + * Defines values for EncryptionType. + * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', + * 'EncryptionAtRestWithPlatformAndCustomerKeys' + * @readonly + * @enum {string} + */ +export type EncryptionType = 'EncryptionAtRestWithPlatformKey' | 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; + +/** + * Defines values for NetworkAccessPolicy. + * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + * @readonly + * @enum {string} + */ +export type NetworkAccessPolicy = 'AllowAll' | 'AllowPrivate' | 'DenyAll'; + +/** + * Defines values for SnapshotStorageAccountTypes. + * Possible values include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS' + * @readonly + * @enum {string} + */ +export type SnapshotStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'Standard_ZRS'; + +/** + * Defines values for DiskEncryptionSetType. + * Possible values include: 'EncryptionAtRestWithCustomerKey', + * 'EncryptionAtRestWithPlatformAndCustomerKeys' + * @readonly + * @enum {string} + */ +export type DiskEncryptionSetType = 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; + +/** + * Defines values for AccessLevel. + * Possible values include: 'None', 'Read', 'Write' + * @readonly + * @enum {string} + */ +export type AccessLevel = 'None' | 'Read' | 'Write'; + +/** + * Defines values for DiskEncryptionSetIdentityType. + * Possible values include: 'SystemAssigned' + * @readonly + * @enum {string} + */ +export type DiskEncryptionSetIdentityType = 'SystemAssigned'; + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected' + * @readonly + * @enum {string} + */ +export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected'; + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; + +/** + * Defines values for GallerySharingPermissionTypes. + * Possible values include: 'Private', 'Groups' + * @readonly + * @enum {string} + */ +export type GallerySharingPermissionTypes = 'Private' | 'Groups'; + +/** + * Defines values for SharingProfileGroupTypes. + * Possible values include: 'Subscriptions', 'AADTenants' + * @readonly + * @enum {string} + */ +export type SharingProfileGroupTypes = 'Subscriptions' | 'AADTenants'; + +/** + * Defines values for AggregatedReplicationState. + * Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' + * @readonly + * @enum {string} + */ +export type AggregatedReplicationState = 'Unknown' | 'InProgress' | 'Completed' | 'Failed'; + +/** + * Defines values for ReplicationState. + * Possible values include: 'Unknown', 'Replicating', 'Completed', 'Failed' + * @readonly + * @enum {string} + */ +export type ReplicationState = 'Unknown' | 'Replicating' | 'Completed' | 'Failed'; + +/** + * Defines values for StorageAccountType. + * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Premium_LRS' + * @readonly + * @enum {string} + */ +export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS' | 'Premium_LRS'; + +/** + * Defines values for HostCaching. + * Possible values include: 'None', 'ReadOnly', 'ReadWrite' + * @readonly + * @enum {string} + */ +export type HostCaching = 'None' | 'ReadOnly' | 'ReadWrite'; + +/** + * Defines values for SharingUpdateOperationTypes. + * Possible values include: 'Add', 'Remove', 'Reset' + * @readonly + * @enum {string} + */ +export type SharingUpdateOperationTypes = 'Add' | 'Remove' | 'Reset'; + +/** + * 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 CloudServiceUpgradeMode. + * Possible values include: 'Auto', 'Manual', 'Simultaneous' + * @readonly + * @enum {string} + */ +export type CloudServiceUpgradeMode = 'Auto' | 'Manual' | 'Simultaneous'; + +/** + * Defines values for InstanceViewTypes. + * Possible values include: 'instanceView' + * @readonly + * @enum {string} + */ +export type InstanceViewTypes = 'instanceView'; + +/** + * Defines values for SelectPermissions. + * Possible values include: 'Permissions' + * @readonly + * @enum {string} + */ +export type SelectPermissions = 'Permissions'; + +/** + * Defines values for ReplicationStatusTypes. + * Possible values include: 'ReplicationStatus' + * @readonly + * @enum {string} + */ +export type ReplicationStatusTypes = 'ReplicationStatus'; + +/** + * Defines values for SharedToValues. + * Possible values include: 'tenant' + * @readonly + * @enum {string} + */ +export type SharedToValues = 'tenant'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; + +/** + * Defines values for ProvisioningState1. + * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' + * @readonly + * @enum {string} + */ +export type ProvisioningState1 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; + +/** + * Defines values for ProvisioningState2. + * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' + * @readonly + * @enum {string} + */ +export type ProvisioningState2 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; + +/** + * Defines values for ProvisioningState3. + * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' + * @readonly + * @enum {string} + */ +export type ProvisioningState3 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = ComputeOperationListResult & { + /** + * 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: ComputeOperationListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { + /** + * 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: AvailabilitySet; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AvailabilitySetsUpdateResponse = AvailabilitySet & { + /** + * 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: AvailabilitySet; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AvailabilitySetsGetResponse = AvailabilitySet & { + /** + * 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: AvailabilitySet; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult & { + /** + * 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: AvailabilitySetListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AvailabilitySetsListResponse = AvailabilitySetListResult & { + /** + * 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: AvailabilitySetListResult; + }; +}; + +/** + * Contains response data for the listAvailableSizes operation. + */ +export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult & { + /** + * 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: VirtualMachineSizeListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult & { + /** + * 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: AvailabilitySetListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { + /** + * 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: AvailabilitySetListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup & { + /** + * 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: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { + /** + * 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: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { + /** + * 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: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult & { + /** + * 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: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult & { + /** + * 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: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult & { + /** + * 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: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult & { + /** + * 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: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { + /** + * 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: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { + /** + * 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: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { + /** + * 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: 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; + }; +}; /** - * Defines values for InstanceViewTypes. - * Possible values include: 'instanceView' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type InstanceViewTypes = 'instanceView'; +export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ReplicationStatusTypes. - * Possible values include: 'ReplicationStatus' - * @readonly - * @enum {string} - */ -export type ReplicationStatusTypes = 'ReplicationStatus'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; + }; +}; /** - * Defines values for ProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ProvisioningState = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; +export type VirtualMachineExtensionsGetResponse = VirtualMachineExtension & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ProvisioningState1. - * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' - * @readonly - * @enum {string} - */ -export type ProvisioningState1 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; + }; +}; /** - * Defines values for ProvisioningState2. - * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ProvisioningState2 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; +export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult & { + /** + * 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: VirtualMachineExtensionsListResult; + }; +}; /** - * Defines values for ProvisioningState3. - * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type ProvisioningState3 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; +export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = 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 list operation. + * Contains response data for the beginUpdate operation. */ -export type OperationsListResponse = ComputeOperationListResult & { +export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -7964,14 +10397,14 @@ export type OperationsListResponse = ComputeOperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeOperationListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { +export type VirtualMachineImagesGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -7984,14 +10417,14 @@ export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: VirtualMachineImage; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type AvailabilitySetsUpdateResponse = AvailabilitySet & { +export type VirtualMachineImagesListResponse = Array & { /** * The underlying HTTP response. */ @@ -8004,14 +10437,14 @@ export type AvailabilitySetsUpdateResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listOffers operation. */ -export type AvailabilitySetsGetResponse = AvailabilitySet & { +export type VirtualMachineImagesListOffersResponse = Array & { /** * The underlying HTTP response. */ @@ -8024,14 +10457,14 @@ export type AvailabilitySetsGetResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listPublishers operation. */ -export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult & { +export type VirtualMachineImagesListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -8044,14 +10477,14 @@ export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResu /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listSkus operation. */ -export type AvailabilitySetsListResponse = AvailabilitySetListResult & { +export type VirtualMachineImagesListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -8064,14 +10497,14 @@ export type AvailabilitySetsListResponse = AvailabilitySetListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listAvailableSizes operation. + * Contains response data for the list operation. */ -export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult & { +export type UsageListResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -8084,14 +10517,14 @@ export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListR /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineSizeListResult; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listNext operation. */ -export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult & { +export type UsageListNextResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -8104,14 +10537,14 @@ export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetList /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByLocation operation. */ -export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { +export type VirtualMachinesListByLocationResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -8124,14 +10557,14 @@ export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the capture operation. */ -export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup & { +export type VirtualMachinesCaptureResponse = VirtualMachineCaptureResult & { /** * The underlying HTTP response. */ @@ -8144,14 +10577,14 @@ export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementG /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: VirtualMachineCaptureResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { +export type VirtualMachinesCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8164,14 +10597,14 @@ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { +export type VirtualMachinesUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8184,14 +10617,14 @@ export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the get operation. */ -export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult & { +export type VirtualMachinesGetResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8204,14 +10637,14 @@ export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacem /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the instanceView operation. */ -export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult & { +export type VirtualMachinesInstanceViewResponse = VirtualMachineInstanceView & { /** * The underlying HTTP response. */ @@ -8224,14 +10657,14 @@ export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlace /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachineInstanceView; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the list operation. */ -export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult & { +export type VirtualMachinesListResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -8244,14 +10677,14 @@ export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPl /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listAll operation. */ -export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult & { +export type VirtualMachinesListAllResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -8264,14 +10697,14 @@ export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityP /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listAvailableSizes operation. */ -export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { +export type VirtualMachinesListAvailableSizesResponse = VirtualMachineSizeListResult & { /** * The underlying HTTP response. */ @@ -8284,14 +10717,14 @@ export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: VirtualMachineSizeListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the retrieveBootDiagnosticsData operation. */ -export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { +export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult & { /** * The underlying HTTP response. */ @@ -8304,14 +10737,14 @@ export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: RetrieveBootDiagnosticsDataResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the assessPatches operation. */ -export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { +export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult & { /** * The underlying HTTP response. */ @@ -8324,14 +10757,14 @@ export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: VirtualMachineAssessPatchesResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the runCommand operation. */ -export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult & { +export type VirtualMachinesRunCommandResponse = RunCommandResult & { /** * The underlying HTTP response. */ @@ -8344,14 +10777,14 @@ export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupL /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: RunCommandResult; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the beginCapture operation. */ -export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult & { +export type VirtualMachinesBeginCaptureResponse = VirtualMachineCaptureResult & { /** * The underlying HTTP response. */ @@ -8364,14 +10797,14 @@ export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupLi /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineCaptureResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult & { +export type VirtualMachinesBeginCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8384,14 +10817,14 @@ export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGr /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the beginUpdate operation. */ -export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult & { +export type VirtualMachinesBeginUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -8404,14 +10837,14 @@ export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGro /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginAssessPatches operation. */ -export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { +export type VirtualMachinesBeginAssessPatchesResponse = VirtualMachineAssessPatchesResult & { /** * The underlying HTTP response. */ @@ -8424,14 +10857,14 @@ export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineAssessPatchesResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginRunCommand operation. */ -export type DedicatedHostsUpdateResponse = DedicatedHost & { +export type VirtualMachinesBeginRunCommandResponse = RunCommandResult & { /** * The underlying HTTP response. */ @@ -8444,14 +10877,14 @@ export type DedicatedHostsUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: RunCommandResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByLocationNext operation. */ -export type DedicatedHostsGetResponse = DedicatedHost & { +export type VirtualMachinesListByLocationNextResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -8464,14 +10897,14 @@ export type DedicatedHostsGetResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the listByHostGroup operation. + * Contains response data for the listNext operation. */ -export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { +export type VirtualMachinesListNextResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -8484,14 +10917,14 @@ export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostListResult; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listAllNext operation. */ -export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { +export type VirtualMachinesListAllNextResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -8504,14 +10937,14 @@ export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the list operation. */ -export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { /** * The underlying HTTP response. */ @@ -8524,14 +10957,14 @@ export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineSizeListResult; }; }; /** - * Contains response data for the listByHostGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult & { +export type ImagesCreateOrUpdateResponse = Image & { /** * The underlying HTTP response. */ @@ -8544,14 +10977,14 @@ export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostListResult; + parsedBody: Image; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the update operation. */ -export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult & { +export type ImagesUpdateResponse = Image & { /** * The underlying HTTP response. */ @@ -8564,14 +10997,14 @@ export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResu /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: Image; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult & { +export type ImagesGetResponse = Image & { /** * The underlying HTTP response. */ @@ -8584,14 +11017,14 @@ export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListRes /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: Image; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByResourceGroup operation. */ -export type SshPublicKeysCreateResponse = SshPublicKeyResource & { +export type ImagesListByResourceGroupResponse = ImageListResult & { /** * The underlying HTTP response. */ @@ -8604,14 +11037,14 @@ export type SshPublicKeysCreateResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: ImageListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { +export type ImagesListResponse = ImageListResult & { /** * The underlying HTTP response. */ @@ -8624,14 +11057,14 @@ export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: ImageListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type SshPublicKeysGetResponse = SshPublicKeyResource & { +export type ImagesBeginCreateOrUpdateResponse = Image & { /** * The underlying HTTP response. */ @@ -8644,14 +11077,14 @@ export type SshPublicKeysGetResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: Image; }; }; /** - * Contains response data for the generateKeyPair operation. + * Contains response data for the beginUpdate operation. */ -export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult & { +export type ImagesBeginUpdateResponse = Image & { /** * The underlying HTTP response. */ @@ -8664,14 +11097,14 @@ export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairRe /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyGenerateKeyPairResult; + parsedBody: Image; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult & { +export type ImagesListByResourceGroupNextResponse = ImageListResult & { /** * The underlying HTTP response. */ @@ -8684,14 +11117,14 @@ export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupList /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: ImageListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listNext operation. */ -export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult & { +export type ImagesListNextResponse = ImageListResult & { /** * The underlying HTTP response. */ @@ -8704,14 +11137,14 @@ export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupLis /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: ImageListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage & { +export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleSet & { /** * The underlying HTTP response. */ @@ -8724,14 +11157,14 @@ export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionIm /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtensionImage; + parsedBody: VirtualMachineScaleSet; }; }; /** - * Contains response data for the listTypes operation. + * Contains response data for the update operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachineScaleSetsUpdateResponse = VirtualMachineScaleSet & { /** * The underlying HTTP response. */ @@ -8744,14 +11177,14 @@ export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachineScaleSetsGetResponse = VirtualMachineScaleSet & { /** * The underlying HTTP response. */ @@ -8764,14 +11197,14 @@ export type VirtualMachineExtensionImagesListVersionsResponse = Array & { +export type VirtualMachineScaleSetsBeginUpdateResponse = VirtualMachineScaleSet & { /** * The underlying HTTP response. */ @@ -8924,14 +11357,14 @@ export type VirtualMachineImagesListResponse = Array & { +export type VirtualMachineScaleSetsListNextResponse = VirtualMachineScaleSetListResult & { /** * The underlying HTTP response. */ @@ -8944,14 +11377,14 @@ export type VirtualMachineImagesListOffersResponse = Array & { +export type VirtualMachineScaleSetsListAllNextResponse = VirtualMachineScaleSetListWithLinkResult & { /** * The underlying HTTP response. */ @@ -8964,14 +11397,14 @@ export type VirtualMachineImagesListPublishersResponse = Array & { +export type VirtualMachineScaleSetsListSkusNextResponse = VirtualMachineScaleSetListSkusResult & { /** * The underlying HTTP response. */ @@ -8984,14 +11417,14 @@ export type VirtualMachineImagesListSkusResponse = Array; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GalleryApplicationList; - }; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type GalleryApplicationsBeginCreateOrUpdateResponse = GalleryApplication & { +export type CloudServiceRoleInstancesListNextResponse = RoleInstanceListResult & { /** * The underlying HTTP response. */ @@ -11984,14 +14423,14 @@ export type GalleryApplicationsBeginCreateOrUpdateResponse = GalleryApplication /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplication; + parsedBody: RoleInstanceListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type GalleryApplicationsBeginUpdateResponse = GalleryApplication & { +export type CloudServiceRolesGetResponse = CloudServiceRole & { /** * The underlying HTTP response. */ @@ -12004,14 +14443,14 @@ export type GalleryApplicationsBeginUpdateResponse = GalleryApplication & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplication; + parsedBody: CloudServiceRole; }; }; /** - * Contains response data for the listByGalleryNext operation. + * Contains response data for the list operation. */ -export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationList & { +export type CloudServiceRolesListResponse = CloudServiceRoleListResult & { /** * The underlying HTTP response. */ @@ -12024,14 +14463,14 @@ export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationLis /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationList; + parsedBody: CloudServiceRoleListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type GalleryApplicationVersionsCreateOrUpdateResponse = GalleryApplicationVersion & { +export type CloudServiceRolesListNextResponse = CloudServiceRoleListResult & { /** * The underlying HTTP response. */ @@ -12044,14 +14483,14 @@ export type GalleryApplicationVersionsCreateOrUpdateResponse = GalleryApplicatio /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: CloudServiceRoleListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion & { +export type CloudServicesCreateOrUpdateResponse = CloudService & { /** * The underlying HTTP response. */ @@ -12064,14 +14503,14 @@ export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: CloudService; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type GalleryApplicationVersionsGetResponse = GalleryApplicationVersion & { +export type CloudServicesUpdateResponse = CloudService & { /** * The underlying HTTP response. */ @@ -12084,14 +14523,14 @@ export type GalleryApplicationVersionsGetResponse = GalleryApplicationVersion & /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: CloudService; }; }; /** - * Contains response data for the listByGalleryApplication operation. + * Contains response data for the get operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationResponse = GalleryApplicationVersionList & { +export type CloudServicesGetResponse = CloudService & { /** * The underlying HTTP response. */ @@ -12104,14 +14543,14 @@ export type GalleryApplicationVersionsListByGalleryApplicationResponse = Gallery /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersionList; + parsedBody: CloudService; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the getInstanceView operation. */ -export type GalleryApplicationVersionsBeginCreateOrUpdateResponse = GalleryApplicationVersion & { +export type CloudServicesGetInstanceViewResponse = CloudServiceInstanceView & { /** * The underlying HTTP response. */ @@ -12124,14 +14563,14 @@ export type GalleryApplicationVersionsBeginCreateOrUpdateResponse = GalleryAppli /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: CloudServiceInstanceView; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listAll operation. */ -export type GalleryApplicationVersionsBeginUpdateResponse = GalleryApplicationVersion & { +export type CloudServicesListAllResponse = CloudServiceListResult & { /** * The underlying HTTP response. */ @@ -12144,14 +14583,14 @@ export type GalleryApplicationVersionsBeginUpdateResponse = GalleryApplicationVe /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: CloudServiceListResult; }; }; /** - * Contains response data for the listByGalleryApplicationNext operation. + * Contains response data for the list operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList & { +export type CloudServicesListResponse = CloudServiceListResult & { /** * The underlying HTTP response. */ @@ -12164,14 +14603,14 @@ export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = Gal /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersionList; + parsedBody: CloudServiceListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ContainerServicesListResponse = ContainerServiceListResult & { +export type CloudServicesBeginCreateOrUpdateResponse = CloudService & { /** * The underlying HTTP response. */ @@ -12184,14 +14623,14 @@ export type ContainerServicesListResponse = ContainerServiceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ContainerServiceListResult; + parsedBody: CloudService; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type ContainerServicesCreateOrUpdateResponse = ContainerService & { +export type CloudServicesBeginUpdateResponse = CloudService & { /** * The underlying HTTP response. */ @@ -12204,14 +14643,14 @@ export type ContainerServicesCreateOrUpdateResponse = ContainerService & { /** * The response body as parsed JSON or XML */ - parsedBody: ContainerService; + parsedBody: CloudService; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listAllNext operation. */ -export type ContainerServicesGetResponse = ContainerService & { +export type CloudServicesListAllNextResponse = CloudServiceListResult & { /** * The underlying HTTP response. */ @@ -12224,14 +14663,14 @@ export type ContainerServicesGetResponse = ContainerService & { /** * The response body as parsed JSON or XML */ - parsedBody: ContainerService; + parsedBody: CloudServiceListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listNext operation. */ -export type ContainerServicesListByResourceGroupResponse = ContainerServiceListResult & { +export type CloudServicesListNextResponse = CloudServiceListResult & { /** * The underlying HTTP response. */ @@ -12244,14 +14683,14 @@ export type ContainerServicesListByResourceGroupResponse = ContainerServiceListR /** * The response body as parsed JSON or XML */ - parsedBody: ContainerServiceListResult; + parsedBody: CloudServiceListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the getUpdateDomain operation. */ -export type ContainerServicesBeginCreateOrUpdateResponse = ContainerService & { +export type CloudServicesUpdateDomainGetUpdateDomainResponse = UpdateDomain & { /** * The underlying HTTP response. */ @@ -12264,14 +14703,14 @@ export type ContainerServicesBeginCreateOrUpdateResponse = ContainerService & { /** * The response body as parsed JSON or XML */ - parsedBody: ContainerService; + parsedBody: UpdateDomain; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listUpdateDomains operation. */ -export type ContainerServicesListNextResponse = ContainerServiceListResult & { +export type CloudServicesUpdateDomainListUpdateDomainsResponse = UpdateDomainListResult & { /** * The underlying HTTP response. */ @@ -12284,14 +14723,14 @@ export type ContainerServicesListNextResponse = ContainerServiceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ContainerServiceListResult; + parsedBody: UpdateDomainListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listUpdateDomainsNext operation. */ -export type ContainerServicesListByResourceGroupNextResponse = ContainerServiceListResult & { +export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = UpdateDomainListResult & { /** * The underlying HTTP response. */ @@ -12304,6 +14743,6 @@ export type ContainerServicesListByResourceGroupNextResponse = ContainerServiceL /** * The response body as parsed JSON or XML */ - parsedBody: ContainerServiceListResult; + parsedBody: UpdateDomainListResult; }; }; diff --git a/sdk/compute/arm-compute/src/models/logAnalyticsMappers.ts b/sdk/compute/arm-compute/src/models/logAnalyticsMappers.ts index ae101dcf4cb7..6566a5c184ee 100644 --- a/sdk/compute/arm-compute/src/models/logAnalyticsMappers.ts +++ b/sdk/compute/arm-compute/src/models/logAnalyticsMappers.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. diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 0f992c30506b..a14560f36d25 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.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. @@ -1216,6 +1216,93 @@ export const VirtualMachineExtension: msRest.CompositeMapper = { } }; +export const VirtualMachineScaleSetVMExtension: msRest.CompositeMapper = { + serializedName: "VirtualMachineScaleSetVMExtension", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtension", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" + } + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + type1: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String" + } + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean" + } + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "properties.settings", + type: { + name: "Object" + } + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "Object" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView" + } + } + } + } +}; + export const VirtualMachineExtensionUpdate: msRest.CompositeMapper = { serializedName: "VirtualMachineExtensionUpdate", type: { @@ -1275,6 +1362,79 @@ export const VirtualMachineExtensionUpdate: msRest.CompositeMapper = { } }; +export const VirtualMachineScaleSetVMExtensionUpdate: msRest.CompositeMapper = { + serializedName: "VirtualMachineScaleSetVMExtensionUpdate", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionUpdate", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" + } + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + type1: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String" + } + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean" + } + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "properties.settings", + type: { + name: "Object" + } + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "Object" + } + } + } + } +}; + export const VirtualMachineExtensionsListResult: msRest.CompositeMapper = { serializedName: "VirtualMachineExtensionsListResult", type: { @@ -1297,6 +1457,28 @@ export const VirtualMachineExtensionsListResult: msRest.CompositeMapper = { } }; +export const VirtualMachineScaleSetVMExtensionsListResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineScaleSetVMExtensionsListResult", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtension" + } + } + } + } + } + } +}; + export const VirtualMachineSoftwarePatchProperties: msRest.CompositeMapper = { serializedName: "VirtualMachineSoftwarePatchProperties", type: { @@ -7093,72 +7275,90 @@ export const RunCommandResult: msRest.CompositeMapper = { } }; -export const ResourceSkuCapacity: msRest.CompositeMapper = { - serializedName: "ResourceSkuCapacity", +export const VirtualMachineRunCommandInstanceView: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandInstanceView", type: { name: "Composite", - className: "ResourceSkuCapacity", + className: "VirtualMachineRunCommandInstanceView", modelProperties: { - minimum: { - readOnly: true, - serializedName: "minimum", + executionState: { + serializedName: "executionState", type: { - name: "Number" + name: "String" } }, - maximum: { - readOnly: true, - serializedName: "maximum", + executionMessage: { + serializedName: "executionMessage", type: { - name: "Number" + name: "String" } }, - default: { - readOnly: true, - serializedName: "default", + exitCode: { + serializedName: "exitCode", type: { name: "Number" } }, - scaleType: { - readOnly: true, - serializedName: "scaleType", + output: { + serializedName: "output", type: { - name: "Enum", - allowedValues: [ - "Automatic", - "Manual", - "None" - ] + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const ResourceSkuCosts: msRest.CompositeMapper = { - serializedName: "ResourceSkuCosts", +export const VirtualMachineRunCommandScriptSource: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandScriptSource", type: { name: "Composite", - className: "ResourceSkuCosts", + className: "VirtualMachineRunCommandScriptSource", modelProperties: { - meterID: { - readOnly: true, - serializedName: "meterID", + script: { + serializedName: "script", type: { name: "String" } }, - quantity: { - readOnly: true, - serializedName: "quantity", + scriptUri: { + serializedName: "scriptUri", type: { - name: "Number" + name: "String" } }, - extendedUnit: { - readOnly: true, - serializedName: "extendedUnit", + commandId: { + serializedName: "commandId", type: { name: "String" } @@ -7167,15 +7367,277 @@ export const ResourceSkuCosts: msRest.CompositeMapper = { } }; -export const ResourceSkuCapabilities: msRest.CompositeMapper = { - serializedName: "ResourceSkuCapabilities", +export const VirtualMachineRunCommand: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommand", type: { name: "Composite", - className: "ResourceSkuCapabilities", + className: "VirtualMachineRunCommand", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + protectedParameters: { + serializedName: "properties.protectedParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + asyncExecution: { + serializedName: "properties.asyncExecution", + defaultValue: false, + type: { + name: "Boolean" + } + }, + runAsUser: { + serializedName: "properties.runAsUser", + type: { + name: "String" + } + }, + runAsPassword: { + serializedName: "properties.runAsPassword", + type: { + name: "String" + } + }, + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", + type: { + name: "Number" + } + }, + outputBlobUri: { + serializedName: "properties.outputBlobUri", + type: { + name: "String" + } + }, + errorBlobUri: { + serializedName: "properties.errorBlobUri", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + readOnly: true, + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" + } + } + } + } +}; + +export const VirtualMachineRunCommandUpdate: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandUpdate", + type: { + name: "Composite", + className: "VirtualMachineRunCommandUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + protectedParameters: { + serializedName: "properties.protectedParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } + } + }, + asyncExecution: { + serializedName: "properties.asyncExecution", + defaultValue: false, + type: { + name: "Boolean" + } + }, + runAsUser: { + serializedName: "properties.runAsUser", + type: { + name: "String" + } + }, + runAsPassword: { + serializedName: "properties.runAsPassword", + type: { + name: "String" + } + }, + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", + type: { + name: "Number" + } + }, + outputBlobUri: { + serializedName: "properties.outputBlobUri", + type: { + name: "String" + } + }, + errorBlobUri: { + serializedName: "properties.errorBlobUri", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + readOnly: true, + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" + } + } + } + } +}; + +export const ResourceSkuCapacity: msRest.CompositeMapper = { + serializedName: "ResourceSkuCapacity", + type: { + name: "Composite", + className: "ResourceSkuCapacity", + modelProperties: { + minimum: { + readOnly: true, + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + readOnly: true, + serializedName: "maximum", + type: { + name: "Number" + } + }, + default: { + readOnly: true, + serializedName: "default", + type: { + name: "Number" + } + }, + scaleType: { + readOnly: true, + serializedName: "scaleType", + type: { + name: "Enum", + allowedValues: [ + "Automatic", + "Manual", + "None" + ] + } + } + } + } +}; + +export const ResourceSkuCosts: msRest.CompositeMapper = { + serializedName: "ResourceSkuCosts", + type: { + name: "Composite", + className: "ResourceSkuCosts", + modelProperties: { + meterID: { + readOnly: true, + serializedName: "meterID", + type: { + name: "String" + } + }, + quantity: { + readOnly: true, + serializedName: "quantity", + type: { + name: "Number" + } + }, + extendedUnit: { + readOnly: true, + serializedName: "extendedUnit", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuCapabilities: msRest.CompositeMapper = { + serializedName: "ResourceSkuCapabilities", + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } @@ -8687,51 +9149,114 @@ export const GalleryIdentifier: msRest.CompositeMapper = { } }; -export const Gallery: msRest.CompositeMapper = { - serializedName: "Gallery", +export const SharingProfileGroup: msRest.CompositeMapper = { + serializedName: "SharingProfileGroup", type: { name: "Composite", - className: "Gallery", + className: "SharingProfileGroup", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + type: { + serializedName: "type", type: { name: "String" } }, - identifier: { - serializedName: "properties.identifier", - type: { - name: "Composite", - className: "GalleryIdentifier" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + ids: { + serializedName: "ids", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const UpdateResourceDefinition: msRest.CompositeMapper = { - serializedName: "UpdateResourceDefinition", +export const SharingProfile: msRest.CompositeMapper = { + serializedName: "SharingProfile", type: { name: "Composite", - className: "UpdateResourceDefinition", + className: "SharingProfile", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + permissions: { + serializedName: "permissions", type: { name: "String" } }, - name: { + groups: { + readOnly: true, + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } + } + } + } +}; + +export const Gallery: msRest.CompositeMapper = { + serializedName: "Gallery", + type: { + name: "Composite", + className: "Gallery", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + identifier: { + serializedName: "properties.identifier", + type: { + name: "Composite", + className: "GalleryIdentifier" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } + } + } + } +}; + +export const UpdateResourceDefinition: msRest.CompositeMapper = { + serializedName: "UpdateResourceDefinition", + type: { + name: "Composite", + className: "UpdateResourceDefinition", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { readOnly: true, serializedName: "name", type: { @@ -8786,6 +9311,13 @@ export const GalleryUpdate: msRest.CompositeMapper = { type: { name: "String" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "SharingProfile" + } } } } @@ -8901,16 +9433,45 @@ export const UserArtifactSource: msRest.CompositeMapper = { name: "Composite", className: "UserArtifactSource", modelProperties: { - fileName: { + mediaLink: { required: true, - serializedName: "fileName", + serializedName: "mediaLink", type: { name: "String" } }, - mediaLink: { + defaultConfigurationLink: { + serializedName: "defaultConfigurationLink", + type: { + name: "String" + } + } + } + } +}; + +export const UserArtifactManage: msRest.CompositeMapper = { + serializedName: "UserArtifactManage", + type: { + name: "Composite", + className: "UserArtifactManage", + modelProperties: { + install: { required: true, - serializedName: "mediaLink", + serializedName: "install", + type: { + name: "String" + } + }, + remove: { + required: true, + serializedName: "remove", + type: { + name: "String" + } + }, + update: { + serializedName: "update", type: { name: "String" } @@ -8987,10 +9548,11 @@ export const GalleryApplicationVersionPublishingProfile: msRest.CompositeMapper className: "UserArtifactSource" } }, - contentType: { - serializedName: "contentType", + manageActions: { + serializedName: "manageActions", type: { - name: "String" + name: "Composite", + className: "UserArtifactManage" } }, enableHealthCheck: { @@ -9139,6 +9701,28 @@ export const GalleryApplicationVersionUpdate: msRest.CompositeMapper = { } }; +export const GalleryImageFeature: msRest.CompositeMapper = { + serializedName: "GalleryImageFeature", + type: { + name: "Composite", + className: "GalleryImageFeature", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + export const GalleryImageIdentifier: msRest.CompositeMapper = { serializedName: "GalleryImageIdentifier", type: { @@ -9324,6 +9908,18 @@ export const GalleryImage: msRest.CompositeMapper = { name: "String" } }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } + }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { @@ -9429,6 +10025,18 @@ export const GalleryImageUpdate: msRest.CompositeMapper = { name: "String" } }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } + }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { @@ -9497,6 +10105,12 @@ export const GalleryArtifactVersionSource: msRest.CompositeMapper = { type: { name: "String" } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } } } } @@ -9829,39 +10443,51 @@ export const GalleryArtifactSource: msRest.CompositeMapper = { } }; -export const ContainerServiceCustomProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceCustomProfile", +export const SharingUpdate: msRest.CompositeMapper = { + serializedName: "SharingUpdate", type: { name: "Composite", - className: "ContainerServiceCustomProfile", + className: "SharingUpdate", modelProperties: { - orchestrator: { + operationType: { required: true, - serializedName: "orchestrator", + serializedName: "operationType", type: { name: "String" } + }, + groups: { + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } } } } }; -export const ContainerServiceServicePrincipalProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceServicePrincipalProfile", +export const PirResource: msRest.CompositeMapper = { + serializedName: "PirResource", type: { name: "Composite", - className: "ContainerServiceServicePrincipalProfile", + className: "PirResource", modelProperties: { - clientId: { - required: true, - serializedName: "clientId", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - secret: { - required: true, - serializedName: "secret", + location: { + readOnly: true, + serializedName: "location", type: { name: "String" } @@ -9870,107 +10496,285 @@ export const ContainerServiceServicePrincipalProfile: msRest.CompositeMapper = { } }; -export const ContainerServiceOrchestratorProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceOrchestratorProfile", +export const PirSharedGalleryResource: msRest.CompositeMapper = { + serializedName: "PirSharedGalleryResource", type: { name: "Composite", - className: "ContainerServiceOrchestratorProfile", + className: "PirSharedGalleryResource", modelProperties: { - orchestratorType: { - required: true, - serializedName: "orchestratorType", + ...PirResource.type.modelProperties, + uniqueId: { + serializedName: "identifier.uniqueId", type: { - name: "Enum", - allowedValues: [ - "Swarm", - "DCOS", - "Custom", - "Kubernetes" - ] + name: "String" } } } } }; -export const ContainerServiceMasterProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceMasterProfile", +export const SharedGallery: msRest.CompositeMapper = { + serializedName: "SharedGallery", type: { name: "Composite", - className: "ContainerServiceMasterProfile", + className: "SharedGallery", modelProperties: { - count: { - serializedName: "count", - defaultValue: 1, - type: { - name: "Number" - } - }, - dnsPrefix: { - required: true, - serializedName: "dnsPrefix", - type: { - name: "String" - } - }, - fqdn: { - readOnly: true, - serializedName: "fqdn", - type: { - name: "String" - } - } + ...PirSharedGalleryResource.type.modelProperties } } }; -export const ContainerServiceAgentPoolProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceAgentPoolProfile", +export const SharedGalleryImage: msRest.CompositeMapper = { + serializedName: "SharedGalleryImage", type: { name: "Composite", - className: "ContainerServiceAgentPoolProfile", + className: "SharedGalleryImage", modelProperties: { - name: { + ...PirSharedGalleryResource.type.modelProperties, + osType: { required: true, - serializedName: "name", + serializedName: "properties.osType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Windows", + "Linux" + ] } }, - count: { + osState: { required: true, - serializedName: "count", - defaultValue: 1, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 - }, + serializedName: "properties.osState", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Generalized", + "Specialized" + ] } }, - vmSize: { - required: true, - serializedName: "vmSize", + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", type: { - name: "String" + name: "DateTime" } }, - dnsPrefix: { + identifier: { required: true, - serializedName: "dnsPrefix", + serializedName: "properties.identifier", type: { - name: "String" + name: "Composite", + className: "GalleryImageIdentifier" } }, - fqdn: { - readOnly: true, - serializedName: "fqdn", + recommended: { + serializedName: "properties.recommended", type: { - name: "String" + name: "Composite", + className: "RecommendedMachineConfiguration" } - } - } + }, + disallowed: { + serializedName: "properties.disallowed", + type: { + name: "Composite", + className: "Disallowed" + } + }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } + }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } + } + }, + purchasePlan: { + serializedName: "properties.purchasePlan", + type: { + name: "Composite", + className: "ImagePurchasePlan" + } + } + } + } +}; + +export const SharedGalleryImageVersion: msRest.CompositeMapper = { + serializedName: "SharedGalleryImageVersion", + type: { + name: "Composite", + className: "SharedGalleryImageVersion", + modelProperties: { + ...PirSharedGalleryResource.type.modelProperties, + publishedDate: { + serializedName: "properties.publishedDate", + type: { + name: "DateTime" + } + }, + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ContainerServiceCustomProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceCustomProfile", + type: { + name: "Composite", + className: "ContainerServiceCustomProfile", + modelProperties: { + orchestrator: { + required: true, + serializedName: "orchestrator", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerServiceServicePrincipalProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceServicePrincipalProfile", + type: { + name: "Composite", + className: "ContainerServiceServicePrincipalProfile", + modelProperties: { + clientId: { + required: true, + serializedName: "clientId", + type: { + name: "String" + } + }, + secret: { + required: true, + serializedName: "secret", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerServiceOrchestratorProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceOrchestratorProfile", + type: { + name: "Composite", + className: "ContainerServiceOrchestratorProfile", + modelProperties: { + orchestratorType: { + required: true, + serializedName: "orchestratorType", + type: { + name: "Enum", + allowedValues: [ + "Swarm", + "DCOS", + "Custom", + "Kubernetes" + ] + } + } + } + } +}; + +export const ContainerServiceMasterProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceMasterProfile", + type: { + name: "Composite", + className: "ContainerServiceMasterProfile", + modelProperties: { + count: { + serializedName: "count", + defaultValue: 1, + type: { + name: "Number" + } + }, + dnsPrefix: { + required: true, + serializedName: "dnsPrefix", + type: { + name: "String" + } + }, + fqdn: { + readOnly: true, + serializedName: "fqdn", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerServiceAgentPoolProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceAgentPoolProfile", + type: { + name: "Composite", + className: "ContainerServiceAgentPoolProfile", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + count: { + required: true, + serializedName: "count", + defaultValue: 1, + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + vmSize: { + required: true, + serializedName: "vmSize", + type: { + name: "String" + } + }, + dnsPrefix: { + required: true, + serializedName: "dnsPrefix", + type: { + name: "String" + } + }, + fqdn: { + readOnly: true, + serializedName: "fqdn", + type: { + name: "String" + } + } + } } }; @@ -10153,43 +10957,1041 @@ export const ContainerService: msRest.CompositeMapper = { required: true, serializedName: "properties.masterProfile", type: { - name: "Composite", - className: "ContainerServiceMasterProfile" + name: "Composite", + className: "ContainerServiceMasterProfile" + } + }, + agentPoolProfiles: { + required: true, + serializedName: "properties.agentPoolProfiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerServiceAgentPoolProfile" + } + } + } + }, + windowsProfile: { + serializedName: "properties.windowsProfile", + type: { + name: "Composite", + className: "ContainerServiceWindowsProfile" + } + }, + linuxProfile: { + required: true, + serializedName: "properties.linuxProfile", + type: { + name: "Composite", + className: "ContainerServiceLinuxProfile" + } + }, + diagnosticsProfile: { + serializedName: "properties.diagnosticsProfile", + type: { + name: "Composite", + className: "ContainerServiceDiagnosticsProfile" + } + } + } + } +}; + +export const InstanceSku: msRest.CompositeMapper = { + serializedName: "InstanceSku", + type: { + name: "Composite", + className: "InstanceSku", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + readOnly: true, + serializedName: "tier", + type: { + name: "String" + } + } + } + } +}; + +export const RoleInstanceNetworkProfile: msRest.CompositeMapper = { + serializedName: "RoleInstanceNetworkProfile", + type: { + name: "Composite", + className: "RoleInstanceNetworkProfile", + modelProperties: { + networkInterfaces: { + readOnly: true, + serializedName: "networkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + } + } + } +}; + +export const ResourceInstanceViewStatus: msRest.CompositeMapper = { + serializedName: "ResourceInstanceViewStatus", + type: { + name: "Composite", + className: "ResourceInstanceViewStatus", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + displayStatus: { + readOnly: true, + serializedName: "displayStatus", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + time: { + readOnly: true, + serializedName: "time", + type: { + name: "DateTime" + } + }, + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: [ + "Info", + "Warning", + "Error" + ] + } + } + } + } +}; + +export const RoleInstanceInstanceView: msRest.CompositeMapper = { + serializedName: "RoleInstanceInstanceView", + type: { + name: "Composite", + className: "RoleInstanceInstanceView", + modelProperties: { + platformUpdateDomain: { + readOnly: true, + serializedName: "platformUpdateDomain", + type: { + name: "Number" + } + }, + platformFaultDomain: { + readOnly: true, + serializedName: "platformFaultDomain", + type: { + name: "Number" + } + }, + privateId: { + readOnly: true, + serializedName: "privateId", + type: { + name: "String" + } + }, + statuses: { + readOnly: true, + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceInstanceViewStatus" + } + } + } + } + } + } +}; + +export const RoleInstanceProperties: msRest.CompositeMapper = { + serializedName: "RoleInstanceProperties", + type: { + name: "Composite", + className: "RoleInstanceProperties", + modelProperties: { + networkProfile: { + serializedName: "networkProfile", + type: { + name: "Composite", + className: "RoleInstanceNetworkProfile" + } + }, + instanceView: { + serializedName: "instanceView", + type: { + name: "Composite", + className: "RoleInstanceInstanceView" + } + } + } + } +}; + +export const RoleInstance: msRest.CompositeMapper = { + serializedName: "RoleInstance", + type: { + name: "Composite", + className: "RoleInstance", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + readOnly: true, + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "InstanceSku" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "RoleInstanceProperties" + } + } + } + } +}; + +export const CloudServiceRoleSku: msRest.CompositeMapper = { + serializedName: "CloudServiceRoleSku", + type: { + name: "Composite", + className: "CloudServiceRoleSku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + +export const CloudServiceRoleProperties: msRest.CompositeMapper = { + serializedName: "CloudServiceRoleProperties", + type: { + name: "Composite", + className: "CloudServiceRoleProperties", + modelProperties: { + uniqueId: { + readOnly: true, + serializedName: "uniqueId", + type: { + name: "String" + } + } + } + } +}; + +export const CloudServiceRole: msRest.CompositeMapper = { + serializedName: "CloudServiceRole", + type: { + name: "Composite", + className: "CloudServiceRole", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "CloudServiceRoleSku" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CloudServiceRoleProperties" + } + } + } + } +}; + +export const CloudServiceRoleProfileProperties: msRest.CompositeMapper = { + serializedName: "CloudServiceRoleProfileProperties", + type: { + name: "Composite", + className: "CloudServiceRoleProfileProperties", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "CloudServiceRoleSku" + } + } + } + } +}; + +export const CloudServiceRoleProfile: msRest.CompositeMapper = { + serializedName: "CloudServiceRoleProfile", + type: { + name: "Composite", + className: "CloudServiceRoleProfile", + modelProperties: { + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceRoleProfileProperties" + } + } + } + } + } + } +}; + +export const CloudServiceVaultCertificate: msRest.CompositeMapper = { + serializedName: "CloudServiceVaultCertificate", + type: { + name: "Composite", + className: "CloudServiceVaultCertificate", + modelProperties: { + certificateUrl: { + serializedName: "certificateUrl", + type: { + name: "String" + } + } + } + } +}; + +export const CloudServiceVaultSecretGroup: msRest.CompositeMapper = { + serializedName: "CloudServiceVaultSecretGroup", + type: { + name: "Composite", + className: "CloudServiceVaultSecretGroup", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", + type: { + name: "Composite", + className: "SubResource" + } + }, + vaultCertificates: { + serializedName: "vaultCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceVaultCertificate" + } + } + } + } + } + } +}; + +export const CloudServiceOsProfile: msRest.CompositeMapper = { + serializedName: "CloudServiceOsProfile", + type: { + name: "Composite", + className: "CloudServiceOsProfile", + modelProperties: { + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceVaultSecretGroup" + } + } + } + } + } + } +}; + +export const LoadBalancerFrontendIPConfigurationProperties: msRest.CompositeMapper = { + serializedName: "LoadBalancerFrontendIPConfigurationProperties", + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfigurationProperties", + modelProperties: { + publicIPAddress: { + serializedName: "publicIPAddress", + type: { + name: "Composite", + className: "SubResource" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "SubResource" + } + }, + privateIPAddress: { + serializedName: "privateIPAddress", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancerFrontendIPConfiguration: msRest.CompositeMapper = { + serializedName: "LoadBalancerFrontendIPConfiguration", + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfigurationProperties" + } + } + } + } +}; + +export const LoadBalancerConfigurationProperties: msRest.CompositeMapper = { + serializedName: "LoadBalancerConfigurationProperties", + type: { + name: "Composite", + className: "LoadBalancerConfigurationProperties", + modelProperties: { + frontendIPConfigurations: { + serializedName: "frontendIPConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfiguration" + } + } + } + } + } + } +}; + +export const LoadBalancerConfiguration: msRest.CompositeMapper = { + serializedName: "LoadBalancerConfiguration", + type: { + name: "Composite", + className: "LoadBalancerConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "LoadBalancerConfigurationProperties" + } + } + } + } +}; + +export const CloudServiceNetworkProfile: msRest.CompositeMapper = { + serializedName: "CloudServiceNetworkProfile", + type: { + name: "Composite", + className: "CloudServiceNetworkProfile", + modelProperties: { + loadBalancerConfigurations: { + serializedName: "loadBalancerConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancerConfiguration" + } + } + } + }, + swappableCloudService: { + serializedName: "swappableCloudService", + type: { + name: "Composite", + className: "SubResource" + } + } + } + } +}; + +export const CloudServiceVaultAndSecretReference: msRest.CompositeMapper = { + serializedName: "CloudServiceVaultAndSecretReference", + type: { + name: "Composite", + className: "CloudServiceVaultAndSecretReference", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", + type: { + name: "Composite", + className: "SubResource" + } + }, + secretUrl: { + serializedName: "secretUrl", + type: { + name: "String" + } + } + } + } +}; + +export const CloudServiceExtensionProperties: msRest.CompositeMapper = { + serializedName: "CloudServiceExtensionProperties", + type: { + name: "Composite", + className: "CloudServiceExtensionProperties", + modelProperties: { + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + typeHandlerVersion: { + serializedName: "typeHandlerVersion", + type: { + name: "String" + } + }, + autoUpgradeMinorVersion: { + serializedName: "autoUpgradeMinorVersion", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "settings", + type: { + name: "String" + } + }, + protectedSettings: { + serializedName: "protectedSettings", + type: { + name: "String" + } + }, + protectedSettingsFromKeyVault: { + serializedName: "protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "CloudServiceVaultAndSecretReference" + } + }, + forceUpdateTag: { + serializedName: "forceUpdateTag", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + rolesAppliedTo: { + serializedName: "rolesAppliedTo", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Extension: msRest.CompositeMapper = { + serializedName: "Extension", + type: { + name: "Composite", + className: "Extension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CloudServiceExtensionProperties" + } + } + } + } +}; + +export const CloudServiceExtensionProfile: msRest.CompositeMapper = { + serializedName: "CloudServiceExtensionProfile", + type: { + name: "Composite", + className: "CloudServiceExtensionProfile", + modelProperties: { + extensions: { + serializedName: "extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Extension" + } + } + } + } + } + } +}; + +export const CloudServiceProperties: msRest.CompositeMapper = { + serializedName: "CloudServiceProperties", + type: { + name: "Composite", + className: "CloudServiceProperties", + modelProperties: { + packageUrl: { + serializedName: "packageUrl", + type: { + name: "String" + } + }, + configuration: { + serializedName: "configuration", + type: { + name: "String" + } + }, + configurationUrl: { + serializedName: "configurationUrl", + type: { + name: "String" + } + }, + startCloudService: { + serializedName: "startCloudService", + type: { + name: "Boolean" + } + }, + upgradeMode: { + serializedName: "upgradeMode", + type: { + name: "String" + } + }, + roleProfile: { + serializedName: "roleProfile", + type: { + name: "Composite", + className: "CloudServiceRoleProfile" + } + }, + osProfile: { + serializedName: "osProfile", + type: { + name: "Composite", + className: "CloudServiceOsProfile" + } + }, + networkProfile: { + serializedName: "networkProfile", + type: { + name: "Composite", + className: "CloudServiceNetworkProfile" + } + }, + extensionProfile: { + serializedName: "extensionProfile", + type: { + name: "Composite", + className: "CloudServiceExtensionProfile" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + uniqueId: { + readOnly: true, + serializedName: "uniqueId", + type: { + name: "String" + } + } + } + } +}; + +export const CloudService: msRest.CompositeMapper = { + serializedName: "CloudService", + type: { + name: "Composite", + className: "CloudService", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CloudServiceProperties" + } + } + } + } +}; + +export const CloudServiceUpdate: msRest.CompositeMapper = { + serializedName: "CloudServiceUpdate", + type: { + name: "Composite", + className: "CloudServiceUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const StatusCodeCount: msRest.CompositeMapper = { + serializedName: "StatusCodeCount", + type: { + name: "Composite", + className: "StatusCodeCount", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + count: { + readOnly: true, + serializedName: "count", + type: { + name: "Number" + } + } + } + } +}; + +export const InstanceViewStatusesSummary: msRest.CompositeMapper = { + serializedName: "InstanceViewStatusesSummary", + type: { + name: "Composite", + className: "InstanceViewStatusesSummary", + modelProperties: { + statusesSummary: { + readOnly: true, + serializedName: "statusesSummary", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusCodeCount" + } + } + } + } + } + } +}; + +export const CloudServiceInstanceView: msRest.CompositeMapper = { + serializedName: "CloudServiceInstanceView", + type: { + name: "Composite", + className: "CloudServiceInstanceView", + modelProperties: { + roleInstance: { + serializedName: "roleInstance", + type: { + name: "Composite", + className: "InstanceViewStatusesSummary" + } + }, + sdkVersion: { + readOnly: true, + serializedName: "sdkVersion", + type: { + name: "String" } }, - agentPoolProfiles: { - required: true, - serializedName: "properties.agentPoolProfiles", + statuses: { + readOnly: true, + serializedName: "statuses", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContainerServiceAgentPoolProfile" + className: "ResourceInstanceViewStatus" } } } - }, - windowsProfile: { - serializedName: "properties.windowsProfile", + } + } + } +}; + +export const RoleInstances: msRest.CompositeMapper = { + serializedName: "RoleInstances", + type: { + name: "Composite", + className: "RoleInstances", + modelProperties: { + roleInstances: { + required: true, + serializedName: "roleInstances", type: { - name: "Composite", - className: "ContainerServiceWindowsProfile" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - linuxProfile: { - required: true, - serializedName: "properties.linuxProfile", + } + } + } +}; + +export const UpdateDomain: msRest.CompositeMapper = { + serializedName: "UpdateDomain", + type: { + name: "Composite", + className: "UpdateDomain", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", type: { - name: "Composite", - className: "ContainerServiceLinuxProfile" + name: "String" } }, - diagnosticsProfile: { - serializedName: "properties.diagnosticsProfile", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Composite", - className: "ContainerServiceDiagnosticsProfile" + name: "String" } } } @@ -10676,6 +12478,35 @@ export const RunCommandListResult: msRest.CompositeMapper = { } }; +export const VirtualMachineRunCommandsListResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineRunCommandsListResult", + type: { + name: "Composite", + className: "VirtualMachineRunCommandsListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineRunCommand" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ResourceSkusResult: msRest.CompositeMapper = { serializedName: "ResourceSkusResult", type: { @@ -10994,6 +12825,93 @@ export const GalleryApplicationVersionList: msRest.CompositeMapper = { } }; +export const SharedGalleryList: msRest.CompositeMapper = { + serializedName: "SharedGalleryList", + type: { + name: "Composite", + className: "SharedGalleryList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGallery" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SharedGalleryImageList: msRest.CompositeMapper = { + serializedName: "SharedGalleryImageList", + type: { + name: "Composite", + className: "SharedGalleryImageList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryImage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SharedGalleryImageVersionList: msRest.CompositeMapper = { + serializedName: "SharedGalleryImageVersionList", + type: { + name: "Composite", + className: "SharedGalleryImageVersionList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryImageVersion" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ContainerServiceListResult: msRest.CompositeMapper = { serializedName: "ContainerServiceListResult", type: { @@ -11021,3 +12939,119 @@ export const ContainerServiceListResult: msRest.CompositeMapper = { } } }; + +export const RoleInstanceListResult: msRest.CompositeMapper = { + serializedName: "RoleInstanceListResult", + type: { + name: "Composite", + className: "RoleInstanceListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleInstance" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CloudServiceRoleListResult: msRest.CompositeMapper = { + serializedName: "CloudServiceRoleListResult", + type: { + name: "Composite", + className: "CloudServiceRoleListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceRole" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CloudServiceListResult: msRest.CompositeMapper = { + serializedName: "CloudServiceListResult", + type: { + name: "Composite", + className: "CloudServiceListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudService" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateDomainListResult: msRest.CompositeMapper = { + serializedName: "UpdateDomainListResult", + type: { + name: "Composite", + className: "UpdateDomainListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateDomain" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/compute/arm-compute/src/models/operationsMappers.ts b/sdk/compute/arm-compute/src/models/operationsMappers.ts index 6ba728fec8be..6b80c42b2d21 100644 --- a/sdk/compute/arm-compute/src/models/operationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/operationsMappers.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. diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 30115323b65c..6d3074ffe948 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.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 @@ -62,7 +61,7 @@ export const apiVersion3: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-12-01', + defaultValue: '2020-09-30', type: { name: "String" } @@ -80,6 +79,18 @@ export const apiVersion4: msRest.OperationQueryParameter = { } } }; +export const apiVersion5: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2020-10-01-preview', + type: { + name: "String" + } + } +}; export const availabilitySetName: msRest.OperationURLParameter = { parameterPath: "availabilitySetName", mapper: { @@ -90,6 +101,16 @@ export const availabilitySetName: msRest.OperationURLParameter = { } } }; +export const cloudServiceName: msRest.OperationURLParameter = { + parameterPath: "cloudServiceName", + mapper: { + required: true, + serializedName: "cloudServiceName", + type: { + name: "String" + } + } +}; export const commandId: msRest.OperationURLParameter = { parameterPath: "commandId", mapper: { @@ -179,6 +200,18 @@ export const filter: msRest.OperationQueryParameter = { } } }; +export const forceDeletion: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "forceDeletion" + ], + mapper: { + serializedName: "forceDeletion", + type: { + name: "Boolean" + } + } +}; export const galleryApplicationName: msRest.OperationURLParameter = { parameterPath: "galleryApplicationName", mapper: { @@ -229,6 +262,16 @@ export const galleryName: msRest.OperationURLParameter = { } } }; +export const galleryUniqueName: msRest.OperationURLParameter = { + parameterPath: "galleryUniqueName", + mapper: { + required: true, + serializedName: "galleryUniqueName", + type: { + name: "String" + } + } +}; export const hostGroupName: msRest.OperationURLParameter = { parameterPath: "hostGroupName", mapper: { @@ -377,6 +420,36 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const roleInstanceName: msRest.OperationURLParameter = { + parameterPath: "roleInstanceName", + mapper: { + required: true, + serializedName: "roleInstanceName", + type: { + name: "String" + } + } +}; +export const roleName: msRest.OperationURLParameter = { + parameterPath: "roleName", + mapper: { + required: true, + serializedName: "roleName", + type: { + name: "String" + } + } +}; +export const runCommandName: msRest.OperationURLParameter = { + parameterPath: "runCommandName", + mapper: { + required: true, + serializedName: "runCommandName", + type: { + name: "String" + } + } +}; export const sasUriExpirationTimeInMinutes: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -401,6 +474,18 @@ export const select: msRest.OperationQueryParameter = { } } }; +export const sharedTo: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "sharedTo" + ], + mapper: { + serializedName: "sharedTo", + type: { + name: "String" + } + } +}; export const skipShutdown: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -488,6 +573,16 @@ export const type: msRest.OperationURLParameter = { } } }; +export const updateDomain: msRest.OperationURLParameter = { + parameterPath: "updateDomain", + mapper: { + required: true, + serializedName: "updateDomain", + type: { + name: "Number" + } + } +}; export const version: msRest.OperationURLParameter = { parameterPath: "version", mapper: { diff --git a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts index c95b98da90af..3ea778fd0945 100644 --- a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -65,6 +77,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +90,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +117,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -129,10 +147,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -150,6 +172,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +192,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +224,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts b/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts index ff328d2b9d4d..2f02dae60cc5 100644 --- a/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts +++ b/sdk/compute/arm-compute/src/models/resourceSkusMappers.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. diff --git a/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts new file mode 100644 index 000000000000..ce674aba8515 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleriesMappers.ts @@ -0,0 +1,26 @@ +/* + * 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, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageVersion, + SharedGalleryList +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts new file mode 100644 index 000000000000..45b623b19c9d --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleryImageVersionsMappers.ts @@ -0,0 +1,26 @@ +/* + * 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, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageVersion, + SharedGalleryImageVersionList +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts new file mode 100644 index 000000000000..b5cecede4fdd --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sharedGalleryImagesMappers.ts @@ -0,0 +1,26 @@ +/* + * 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, + Disallowed, + GalleryImageFeature, + GalleryImageIdentifier, + ImagePurchasePlan, + InnerError, + PirResource, + PirSharedGalleryResource, + RecommendedMachineConfiguration, + ResourceRange, + SharedGallery, + SharedGalleryImage, + SharedGalleryImageList, + SharedGalleryImageVersion +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts index b3701a644ec9..5eefc7c81dcc 100644 --- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts +++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -63,6 +75,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -75,6 +88,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -101,6 +115,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -125,10 +143,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotList, @@ -146,6 +168,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -164,6 +187,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -186,6 +212,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts index 634c39bf3870..e9d378719e12 100644 --- a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts +++ b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -65,6 +77,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +90,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +117,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -128,10 +146,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -151,6 +173,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -170,6 +193,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -198,6 +225,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/usageOperationsMappers.ts b/sdk/compute/arm-compute/src/models/usageOperationsMappers.ts index 22de4a8bc142..2bb344ff0880 100644 --- a/sdk/compute/arm-compute/src/models/usageOperationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/usageOperationsMappers.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. diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts index 94265b583cca..04b600e27e87 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +113,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -123,10 +141,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +164,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +183,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -182,6 +208,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index 6299932f5dcc..b3bd15983849 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -65,6 +77,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +90,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +117,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -128,10 +146,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -149,6 +171,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -169,6 +192,10 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -197,6 +224,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index 94265b583cca..04b600e27e87 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +113,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -123,10 +141,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +164,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +183,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -182,6 +208,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts index 2bcbd6209547..e1a6d7048e15 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts @@ -1,15 +1,241 @@ /* - * 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. */ export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, RunCommandDocument, RunCommandDocumentBase, + RunCommandInputParameter, RunCommandListResult, - RunCommandParameterDefinition + RunCommandParameterDefinition, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandsListResult, + VirtualMachineRunCommandUpdate, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index b97e1690a27a..11a5aaa6b043 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +113,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -123,10 +141,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +164,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +183,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -183,6 +209,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index 94265b583cca..04b600e27e87 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +113,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -123,10 +141,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -142,6 +164,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,6 +183,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -182,6 +208,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts index 6299932f5dcc..2a4073dcb2c1 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.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. @@ -16,13 +16,24 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, AvailablePatchSummary, BaseResource, BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -44,10 +55,8 @@ export { DedicatedHostAvailableCapacity, DedicatedHostGroup, DedicatedHostGroupInstanceView, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, DedicatedHostInstanceViewWithName, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -65,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -94,7 +105,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -103,6 +113,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -117,7 +131,6 @@ export { PrivateEndpointConnection, PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -128,10 +141,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -139,16 +156,15 @@ export { SshConfiguration, SshPublicKey, SshPublicKeyResource, - SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -160,8 +176,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionsListResult, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -169,6 +183,9 @@ export { VirtualMachineImageResource, VirtualMachineInstanceView, VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -187,21 +204,17 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionsListResult, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts new file mode 100644 index 000000000000..f42496119475 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.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. + */ + +export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachinePatchStatus, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandsListResult, + VirtualMachineRunCommandUpdate, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts index 5a4992a8918f..0d0776ce9d8c 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.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,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -62,6 +74,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -74,6 +87,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -99,6 +113,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -131,6 +149,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -146,6 +167,7 @@ export { TerminateNotificationProfile, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -165,6 +187,9 @@ export { VirtualMachineInstanceView, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -188,6 +213,8 @@ export { VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMListResult, VirtualMachineScaleSetVMNetworkProfileConfiguration, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index 7ada9068e03d..5f7b48b452fc 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -65,6 +77,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +90,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +117,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -132,10 +150,14 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + RunCommandInputParameter, ScaleInPolicy, ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -156,6 +178,7 @@ export { UpgradeOperationHistoricalStatusInfoProperties, UpgradeOperationHistoryStatus, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -176,6 +199,10 @@ export { VirtualMachineInstanceView, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -213,7 +240,9 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, VirtualMachineScaleSetVMExtensionsSummary, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetVMInstanceRequiredIDs, VirtualMachineScaleSetVMInstanceView, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineSizesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineSizesMappers.ts index 8ec98784bc24..28fe9cbb2f07 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineSizesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineSizesMappers.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. diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts index d2ce653f6004..845964a1d02e 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.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,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, ContainerService, ContainerServiceAgentPoolProfile, ContainerServiceCustomProfile, @@ -65,6 +77,7 @@ export { EncryptionSetIdentity, EncryptionSettingsCollection, EncryptionSettingsElement, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -77,6 +90,7 @@ export { GalleryDiskImage, GalleryIdentifier, GalleryImage, + GalleryImageFeature, GalleryImageIdentifier, GalleryImageUpdate, GalleryImageVersion, @@ -103,6 +117,10 @@ export { KeyVaultSecretReference, LastPatchInstallationSummary, LinuxConfiguration, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, @@ -136,6 +154,9 @@ export { ScheduledEventsProfile, SecurityProfile, ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, Sku, Snapshot, SnapshotSku, @@ -153,6 +174,7 @@ export { UpdateResource, UpdateResourceDefinition, UpgradePolicy, + UserArtifactManage, UserArtifactSource, VaultCertificate, VaultSecretGroup, @@ -176,6 +198,10 @@ export { VirtualMachineListResult, VirtualMachinePatchStatus, VirtualMachineReimageParameters, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, VirtualMachineScaleSet, VirtualMachineScaleSetDataDisk, VirtualMachineScaleSetExtension, @@ -205,6 +231,8 @@ export { VirtualMachineScaleSetUpdateStorageProfile, VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, diff --git a/sdk/compute/arm-compute/src/operations/availabilitySets.ts b/sdk/compute/arm-compute/src/operations/availabilitySets.ts index 8eeeef9361ab..9f7df2e368c4 100644 --- a/sdk/compute/arm-compute/src/operations/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operations/availabilitySets.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 @@ -253,7 +252,7 @@ export class AvailabilitySets { * @param [options] The optional parameters * @returns Promise */ - 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/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts new file mode 100644 index 000000000000..1cb9a5784344 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -0,0 +1,578 @@ +/* + * 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/cloudServiceRoleInstancesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a CloudServiceRoleInstances. */ +export class CloudServiceRoleInstances { + private readonly client: ComputeManagementClientContext; + + /** + * Create a CloudServiceRoleInstances. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Deletes a role instance from a cloud service. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(roleInstanceName,resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets a role instance from a cloud service. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServiceRoleInstancesGetOptionalParams): Promise; + /** + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param callback The callback + */ + get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param options The optional parameters + * @param callback The callback + */ + get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options: Models.CloudServiceRoleInstancesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServiceRoleInstancesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + roleInstanceName, + resourceGroupName, + cloudServiceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieves information about the run-time state of a role instance in a cloud service. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param callback The callback + */ + getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param options The optional parameters + * @param callback The callback + */ + getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + roleInstanceName, + resourceGroupName, + cloudServiceName, + options + }, + getInstanceViewOperationSpec, + callback) as Promise; + } + + /** + * Gets the list of all role instances in a cloud service. Use nextLink property in the response to + * get the next page of role instances. Do this till nextLink is null to fetch all the role + * instances. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServiceRoleInstancesListOptionalParams): Promise; + /** + * @param resourceGroupName + * @param cloudServiceName + * @param callback The callback + */ + list(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName + * @param cloudServiceName + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, cloudServiceName: string, options: Models.CloudServiceRoleInstancesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServiceRoleInstancesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + cloudServiceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the + * cloud service. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + restart(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestart(roleInstanceName,resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of + * web roles or worker roles. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + reimage(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginReimage(roleInstanceName,resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of + * web roles or worker roles and initializes the storage resources that are used by them. If you do + * not want to initialize storage resources, you can use Reimage Role Instance. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + rebuild(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRebuild(roleInstanceName,resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets a remote desktop file for a role instance in a cloud service. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param callback The callback + */ + getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param options The optional parameters + * @param callback The callback + */ + getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + roleInstanceName, + resourceGroupName, + cloudServiceName, + options + }, + getRemoteDesktopFileOperationSpec, + callback) as Promise; + } + + /** + * Deletes a role instance from a cloud service. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleInstanceName, + resourceGroupName, + cloudServiceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the + * cloud service. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + beginRestart(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleInstanceName, + resourceGroupName, + cloudServiceName, + options + }, + beginRestartOperationSpec, + options); + } + + /** + * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of + * web roles or worker roles. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + beginReimage(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleInstanceName, + resourceGroupName, + cloudServiceName, + options + }, + beginReimageOperationSpec, + options); + } + + /** + * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of + * web roles or worker roles and initializes the storage resources that are used by them. If you do + * not want to initialize storage resources, you can use Reimage Role Instance. + * @param roleInstanceName Name of the role instance. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + beginRebuild(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleInstanceName, + resourceGroupName, + cloudServiceName, + options + }, + beginRebuildOperationSpec, + options); + } + + /** + * Gets the list of all role instances in a cloud service. Use nextLink property in the response to + * get the next page of role instances. Do this till nextLink is null to fetch all the role + * instances. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.CloudServiceRoleInstancesListNextOptionalParams): 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.CloudServiceRoleInstancesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.CloudServiceRoleInstancesListNextOptionalParams | 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/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + urlParameters: [ + Parameters.roleInstanceName, + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.expand1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RoleInstance + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceViewOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", + urlParameters: [ + Parameters.roleInstanceName, + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RoleInstanceInstanceView + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.expand1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RoleInstanceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getRemoteDesktopFileOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", + urlParameters: [ + Parameters.roleInstanceName, + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + urlParameters: [ + Parameters.roleInstanceName, + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", + urlParameters: [ + Parameters.roleInstanceName, + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginReimageOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", + urlParameters: [ + Parameters.roleInstanceName, + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRebuildOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", + urlParameters: [ + Parameters.roleInstanceName, + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.expand1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RoleInstanceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts new file mode 100644 index 000000000000..d7053b0b0391 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts @@ -0,0 +1,202 @@ +/* + * 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/cloudServiceRolesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a CloudServiceRoles. */ +export class CloudServiceRoles { + private readonly client: ComputeManagementClientContext; + + /** + * Create a CloudServiceRoles. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a role from a cloud service. + * @param roleName Name of the role. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + get(roleName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param roleName Name of the role. + * @param resourceGroupName + * @param cloudServiceName + * @param callback The callback + */ + get(roleName: string, resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param roleName Name of the role. + * @param resourceGroupName + * @param cloudServiceName + * @param options The optional parameters + * @param callback The callback + */ + get(roleName: string, resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(roleName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + roleName, + resourceGroupName, + cloudServiceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all roles in a cloud service. Use nextLink property in the response to get the + * next page of roles. Do this till nextLink is null to fetch all the roles. + * @param resourceGroupName + * @param cloudServiceName + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName + * @param cloudServiceName + * @param callback The callback + */ + list(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName + * @param cloudServiceName + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + cloudServiceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all roles in a cloud service. Use nextLink property in the response to get the + * next page of roles. Do this till nextLink is null to fetch all the roles. + * @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; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", + urlParameters: [ + Parameters.roleName, + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudServiceRole + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudServiceRoleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudServiceRoleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts new file mode 100644 index 000000000000..7aca4b81cd96 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -0,0 +1,899 @@ +/* + * 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/cloudServicesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a CloudServices. */ +export class CloudServices { + private readonly client: ComputeManagementClientContext; + + /** + * Create a CloudServices. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Create or update a cloud service. Please note some properties can be set only during cloud + * service creation. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesUpdateOptionalParams): Promise { + return this.beginUpdate(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Display information about a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param callback The callback + */ + get(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + cloudServiceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the status of a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceView(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param callback The callback + */ + getInstanceView(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param options The optional parameters + * @param callback The callback + */ + getInstanceView(resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceView(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + cloudServiceName, + options + }, + getInstanceViewOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all cloud services in the subscription, regardless of the associated resource + * group. Use nextLink property in the response to get the next page of Cloud Services. Do this + * till nextLink is null to fetch all the Cloud Services. + * @param [options] The optional parameters + * @returns Promise + */ + listAll(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAll(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAllOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all cloud services under a resource group. Use nextLink property in the response + * to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud + * Services. + * @param resourceGroupName Name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Starts the cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + start(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Power off the cloud service. Note that resources are still attached and you are getting charged + * for the resources. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + powerOff(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginPowerOff(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Restarts one or more role instances in a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + restart(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesRestartOptionalParams): Promise { + return this.beginRestart(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Reimage asynchronous operation reinstalls the operating system on instances of web roles or + * worker roles. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + reimage(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesReimageOptionalParams): Promise { + return this.beginReimage(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles + * and initializes the storage resources that are used by them. If you do not want to initialize + * storage resources, you can use Reimage Role Instances. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + rebuild(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesRebuildOptionalParams): Promise { + return this.beginRebuild(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Deletes role instances in a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + deleteInstances(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesDeleteInstancesOptionalParams): Promise { + return this.beginDeleteInstances(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update a cloud service. Please note some properties can be set only during cloud + * service creation. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Update a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Deletes a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Starts the cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginStart(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginStartOperationSpec, + options); + } + + /** + * Power off the cloud service. Note that resources are still attached and you are getting charged + * for the resources. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginPowerOff(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginPowerOffOperationSpec, + options); + } + + /** + * Restarts one or more role instances in a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestart(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginRestartOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginRestartOperationSpec, + options); + } + + /** + * Reimage asynchronous operation reinstalls the operating system on instances of web roles or + * worker roles. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginReimage(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginReimageOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginReimageOperationSpec, + options); + } + + /** + * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles + * and initializes the storage resources that are used by them. If you do not want to initialize + * storage resources, you can use Reimage Role Instances. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginRebuild(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginRebuildOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginRebuildOperationSpec, + options); + } + + /** + * Deletes role instances in a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteInstances(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginDeleteInstancesOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + options + }, + beginDeleteInstancesOperationSpec, + options); + } + + /** + * Gets a list of all cloud services in the subscription, regardless of the associated resource + * group. Use nextLink property in the response to get the next page of Cloud Services. Do this + * till nextLink is null to fetch all the Cloud Services. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAllNext(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 + */ + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAllNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all cloud services under a resource group. Use nextLink property in the response + * to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud + * Services. + * @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; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceViewOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudServiceInstanceView + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.CloudService + }, + responses: { + 200: { + bodyMapper: Mappers.CloudService + }, + 201: { + bodyMapper: Mappers.CloudService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.CloudServiceUpdate + }, + responses: { + 200: { + bodyMapper: Mappers.CloudService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginStartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginPowerOffOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.RoleInstances + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginReimageOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.RoleInstances + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRebuildOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.RoleInstances + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteInstancesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.RoleInstances + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts new file mode 100644 index 000000000000..b8d39b7001c2 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -0,0 +1,278 @@ +/* + * 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/cloudServicesUpdateDomainMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a CloudServicesUpdateDomain. */ +export class CloudServicesUpdateDomain { + private readonly client: ComputeManagementClientContext; + + /** + * Create a CloudServicesUpdateDomain. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Updates the role instances in the specified update domain. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param updateDomain Specifies an integer value that identifies the update domain. Update domains + * are identified with a zero-based index: the first update domain has an ID of 0, the second has + * an ID of 1, and so on. + * @param [options] The optional parameters + * @returns Promise + */ + walkUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: msRest.RequestOptionsBase): Promise { + return this.beginWalkUpdateDomain(resourceGroupName,cloudServiceName,updateDomain,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified update domain of a cloud service. Use nextLink property in the response to + * get the next page of update domains. Do this till nextLink is null to fetch all the update + * domains. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param updateDomain Specifies an integer value that identifies the update domain. Update domains + * are identified with a zero-based index: the first update domain has an ID of 0, the second has + * an ID of 1, and so on. + * @param [options] The optional parameters + * @returns Promise + */ + getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param updateDomain Specifies an integer value that identifies the update domain. Update domains + * are identified with a zero-based index: the first update domain has an ID of 0, the second has + * an ID of 1, and so on. + * @param callback The callback + */ + getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param updateDomain Specifies an integer value that identifies the update domain. Update domains + * are identified with a zero-based index: the first update domain has an ID of 0, the second has + * an ID of 1, and so on. + * @param options The optional parameters + * @param callback The callback + */ + getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + cloudServiceName, + updateDomain, + options + }, + getUpdateDomainOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all update domains in a cloud service. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param [options] The optional parameters + * @returns Promise + */ + listUpdateDomains(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param callback The callback + */ + listUpdateDomains(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param options The optional parameters + * @param callback The callback + */ + listUpdateDomains(resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUpdateDomains(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + cloudServiceName, + options + }, + listUpdateDomainsOperationSpec, + callback) as Promise; + } + + /** + * Updates the role instances in the specified update domain. + * @param resourceGroupName Name of the resource group. + * @param cloudServiceName Name of the cloud service. + * @param updateDomain Specifies an integer value that identifies the update domain. Update domains + * are identified with a zero-based index: the first update domain has an ID of 0, the second has + * an ID of 1, and so on. + * @param [options] The optional parameters + * @returns Promise + */ + beginWalkUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + cloudServiceName, + updateDomain, + options + }, + beginWalkUpdateDomainOperationSpec, + options); + } + + /** + * Gets a list of all update domains in a cloud service. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listUpdateDomainsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listUpdateDomainsNext(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 + */ + listUpdateDomainsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUpdateDomainsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listUpdateDomainsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getUpdateDomainOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.updateDomain, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UpdateDomain + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listUpdateDomainsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UpdateDomainListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginWalkUpdateDomainOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.cloudServiceName, + Parameters.updateDomain, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.UpdateDomain + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listUpdateDomainsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UpdateDomainListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/containerServices.ts b/sdk/compute/arm-compute/src/operations/containerServices.ts index a0b681fc5406..db3125479a2a 100644 --- a/sdk/compute/arm-compute/src/operations/containerServices.ts +++ b/sdk/compute/arm-compute/src/operations/containerServices.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 @@ -408,6 +407,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -429,6 +431,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], 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..e95dffd704d5 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 @@ -521,6 +520,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -542,6 +544,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], 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/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..c0cf922219a8 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 @@ -62,7 +61,7 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, galleryName: string, options?: Models.GalleriesGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery. @@ -75,8 +74,8 @@ export class Galleries { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, galleryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, galleryName: string, options: Models.GalleriesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, galleryName: string, options?: Models.GalleriesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -279,7 +278,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion3, + Parameters.select ], headerParameters: [ Parameters.acceptLanguage @@ -444,6 +444,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -465,6 +468,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..d06c2e45e1b1 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 @@ -28,15 +27,15 @@ export class GalleryImageVersions { } /** - * Create or update a gallery Image Version. + * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be created. - * @param galleryImageVersionName The name of the gallery Image Version to be created. Needs to + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the create or update gallery Image Version + * @param galleryImageVersion Parameters supplied to the create or update gallery image version * operation. * @param [options] The optional parameters * @returns Promise @@ -47,15 +46,15 @@ export class GalleryImageVersions { } /** - * Update a gallery Image Version. + * Update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be updated. - * @param galleryImageVersionName The name of the gallery Image Version to be updated. Needs to + * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the update gallery Image Version operation. + * @param galleryImageVersion Parameters supplied to the update gallery image version operation. * @param [options] The optional parameters * @returns Promise */ @@ -65,12 +64,12 @@ export class GalleryImageVersions { } /** - * Retrieves information about a gallery Image Version. + * Retrieves information about a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param [options] The optional parameters * @returns Promise */ @@ -78,18 +77,18 @@ export class GalleryImageVersions { /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param callback The callback */ get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be retrieved. + * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param options The optional parameters * @param callback The callback */ @@ -108,12 +107,12 @@ export class GalleryImageVersions { } /** - * Delete a gallery Image Version. + * Delete a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be deleted. + * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -123,7 +122,7 @@ export class GalleryImageVersions { } /** - * List gallery Image Versions in a gallery Image Definition. + * List gallery image versions in a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the Shared Image Gallery Image Definition from which the @@ -162,15 +161,15 @@ export class GalleryImageVersions { } /** - * Create or update a gallery Image Version. + * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be created. - * @param galleryImageVersionName The name of the gallery Image Version to be created. Needs to + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the create or update gallery Image Version + * @param galleryImageVersion Parameters supplied to the create or update gallery image version * operation. * @param [options] The optional parameters * @returns Promise @@ -190,15 +189,15 @@ export class GalleryImageVersions { } /** - * Update a gallery Image Version. + * Update a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version is + * @param galleryImageName The name of the gallery image definition in which the Image Version is * to be updated. - * @param galleryImageVersionName The name of the gallery Image Version to be updated. Needs to + * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to * follow semantic version name pattern: The allowed characters are digit and period. Digits must * be within the range of a 32-bit integer. Format: .. - * @param galleryImageVersion Parameters supplied to the update gallery Image Version operation. + * @param galleryImageVersion Parameters supplied to the update gallery image version operation. * @param [options] The optional parameters * @returns Promise */ @@ -217,12 +216,12 @@ export class GalleryImageVersions { } /** - * Delete a gallery Image Version. + * Delete a gallery image version. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. - * @param galleryImageName The name of the gallery Image Definition in which the Image Version + * @param galleryImageName The name of the gallery image definition in which the Image Version * resides. - * @param galleryImageVersionName The name of the gallery Image Version to be deleted. + * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -240,7 +239,7 @@ export class GalleryImageVersions { } /** - * List gallery Image Versions in a gallery Image Definition. + * List gallery image versions in a gallery image definition. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -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..ff28c14c9530 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 @@ -28,11 +27,11 @@ export class GalleryImages { } /** - * Create or update a gallery Image Definition. + * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * created. - * @param galleryImageName The name of the gallery Image Definition to be created or updated. The + * @param galleryImageName The name of the gallery image definition to be created or updated. The * allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the * middle. The maximum length is 80 characters. * @param galleryImage Parameters supplied to the create or update gallery image operation. @@ -45,11 +44,11 @@ export class GalleryImages { } /** - * Update a gallery Image Definition. + * Update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * updated. - * @param galleryImageName The name of the gallery Image Definition to be updated. The allowed + * @param galleryImageName The name of the gallery image definition to be updated. The allowed * characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The * maximum length is 80 characters. * @param galleryImage Parameters supplied to the update gallery image operation. @@ -62,11 +61,11 @@ export class GalleryImages { } /** - * Retrieves information about a gallery Image Definition. + * Retrieves information about a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param [options] The optional parameters * @returns Promise */ @@ -75,7 +74,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param callback The callback */ get(resourceGroupName: string, galleryName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; @@ -83,7 +82,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to * be retrieved. - * @param galleryImageName The name of the gallery Image Definition to be retrieved. + * @param galleryImageName The name of the gallery image definition to be retrieved. * @param options The optional parameters * @param callback The callback */ @@ -105,7 +104,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * deleted. - * @param galleryImageName The name of the gallery Image Definition to be deleted. + * @param galleryImageName The name of the gallery image definition to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -115,7 +114,7 @@ export class GalleryImages { } /** - * List gallery Image Definitions in a gallery. + * List gallery image definitions in a gallery. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be * listed. @@ -150,11 +149,11 @@ export class GalleryImages { } /** - * Create or update a gallery Image Definition. + * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * created. - * @param galleryImageName The name of the gallery Image Definition to be created or updated. The + * @param galleryImageName The name of the gallery image definition to be created or updated. The * allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the * middle. The maximum length is 80 characters. * @param galleryImage Parameters supplied to the create or update gallery image operation. @@ -175,11 +174,11 @@ export class GalleryImages { } /** - * Update a gallery Image Definition. + * Update a gallery image definition. * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * updated. - * @param galleryImageName The name of the gallery Image Definition to be updated. The allowed + * @param galleryImageName The name of the gallery image definition to be updated. The allowed * characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The * maximum length is 80 characters. * @param galleryImage Parameters supplied to the update gallery image operation. @@ -204,7 +203,7 @@ export class GalleryImages { * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be * deleted. - * @param galleryImageName The name of the gallery Image Definition to be deleted. + * @param galleryImageName The name of the gallery image definition to be deleted. * @param [options] The optional parameters * @returns Promise */ @@ -221,7 +220,7 @@ export class GalleryImages { } /** - * List gallery Image Definitions in a gallery. + * List gallery image definitions in a gallery. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -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/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts new file mode 100644 index 000000000000..8707b78f4968 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -0,0 +1,98 @@ +/* + * 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/gallerySharingProfileMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a GallerySharingProfile. */ +export class GallerySharingProfile { + private readonly client: ComputeManagementClientContext; + + /** + * Create a GallerySharingProfile. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Update sharing profile of a gallery. + * @param resourceGroupName The name of the resource group. + * @param galleryName The name of the Shared Image Gallery. + * @param sharingUpdate Parameters supplied to the update gallery sharing profile. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, galleryName: string, sharingUpdate: Models.SharingUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,sharingUpdate,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update sharing profile of a gallery. + * @param resourceGroupName The name of the resource group. + * @param galleryName The name of the Shared Image Gallery. + * @param sharingUpdate Parameters supplied to the update gallery sharing profile. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, galleryName: string, sharingUpdate: Models.SharingUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + galleryName, + sharingUpdate, + options + }, + beginUpdateOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "sharingUpdate", + mapper: { + ...Mappers.SharingUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SharingUpdate + }, + 202: { + bodyMapper: Mappers.SharingUpdate + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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..3824f04d7822 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 @@ -28,6 +27,7 @@ export * from "./virtualMachineScaleSetVMExtensions"; export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; +export * from "./virtualMachineScaleSetVMRunCommands"; export * from "./resourceSkus"; export * from "./disks"; export * from "./snapshots"; @@ -38,4 +38,12 @@ export * from "./galleryImages"; export * from "./galleryImageVersions"; export * from "./galleryApplications"; export * from "./galleryApplicationVersions"; +export * from "./gallerySharingProfile"; +export * from "./sharedGalleries"; +export * from "./sharedGalleryImages"; +export * from "./sharedGalleryImageVersions"; export * from "./containerServices"; +export * from "./cloudServiceRoleInstances"; +export * from "./cloudServiceRoles"; +export * from "./cloudServices"; +export * from "./cloudServicesUpdateDomain"; 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/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts new file mode 100644 index 000000000000..130870bcc711 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -0,0 +1,192 @@ +/* + * 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/sharedGalleriesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleries. */ +export class SharedGalleries { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleries. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared galleries by subscription id or tenant id. + * @param location Resource location. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, options?: Models.SharedGalleriesListOptionalParams): Promise; + /** + * @param location Resource location. + * @param callback The callback + */ + list(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, options: Models.SharedGalleriesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, options?: Models.SharedGalleriesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared galleries by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams): 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.SharedGalleriesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams | 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 listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0 + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGallery + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts new file mode 100644 index 000000000000..b525cc524e01 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -0,0 +1,224 @@ +/* + * 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/sharedGalleryImageVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleryImageVersions. */ +export class SharedGalleryImageVersions { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleryImageVersions. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared gallery image versions by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, options?: Models.SharedGalleryImageVersionsListOptionalParams): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, galleryImageName: string, options: Models.SharedGalleryImageVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, galleryUniqueName: string, galleryImageName: string, options?: Models.SharedGalleryImageVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery image version by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param galleryImageVersionName The name of the gallery image version to be created. Needs to + * follow semantic version name pattern: The allowed characters are digit and period. Digits must + * be within the range of a 32-bit integer. Format: .. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + galleryImageVersionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared gallery image versions by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleryImageVersionsListNextOptionalParams): 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.SharedGalleryImageVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleryImageVersionsListNextOptionalParams | 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 listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName, + Parameters.galleryImageName + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageVersionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName, + Parameters.galleryImageName, + Parameters.galleryImageVersionName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageVersion + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageVersionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts new file mode 100644 index 000000000000..de7328480938 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -0,0 +1,205 @@ +/* + * 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/sharedGalleryImagesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SharedGalleryImages. */ +export class SharedGalleryImages { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SharedGalleryImages. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * List shared gallery images by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, galleryUniqueName: string, options?: Models.SharedGalleryImagesListOptionalParams): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, galleryUniqueName: string, options: Models.SharedGalleryImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, galleryUniqueName: string, options?: Models.SharedGalleryImagesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a shared gallery image by subscription id or tenant id. + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param galleryUniqueName The unique name of the Shared Gallery. + * @param galleryImageName The name of the Shared Gallery Image Definition from which the Image + * Versions are to be listed. + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, galleryUniqueName: string, galleryImageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + galleryUniqueName, + galleryImageName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List shared gallery images by subscription id or tenant id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleryImagesListNextOptionalParams): 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.SharedGalleryImagesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleryImagesListNextOptionalParams | 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 listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName, + Parameters.galleryImageName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryImageList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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/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..41a28e294d42 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 @@ -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, @@ -1061,6 +1060,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..90dd03e60375 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 @@ -1506,6 +1505,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1527,6 +1529,9 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1548,6 +1553,9 @@ const listSkusNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1569,6 +1577,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..6dd62837008a 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()); } @@ -564,7 +563,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, @@ -842,7 +841,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 +852,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, @@ -1199,6 +1198,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.forceDeletion, Parameters.apiVersion0 ], headerParameters: [ @@ -1505,6 +1505,9 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1526,6 +1529,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1547,6 +1553,10 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.statusOnly + ], headerParameters: [ Parameters.acceptLanguage ],