diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index f68b80674622..23b3a6624ee8 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -49,6 +49,11 @@ class ComputeManagementClient extends ComputeManagementClientContext { galleryImageVersions: operations.GalleryImageVersions; galleryApplications: operations.GalleryApplications; galleryApplicationVersions: operations.GalleryApplicationVersions; + cloudServiceRoleInstances: operations.CloudServiceRoleInstances; + cloudServiceRoles: operations.CloudServiceRoles; + cloudServices: operations.CloudServices; + cloudServicesUpdateDomain: operations.CloudServicesUpdateDomain; + cloudServiceOperatingSystems: operations.CloudServiceOperatingSystems; /** * Initializes a new instance of the ComputeManagementClient class. @@ -92,6 +97,11 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.galleryImageVersions = new operations.GalleryImageVersions(this); this.galleryApplications = new operations.GalleryApplications(this); this.galleryApplicationVersions = new operations.GalleryApplicationVersions(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); + this.cloudServiceOperatingSystems = new operations.CloudServiceOperatingSystems(this); } } diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index 5a4fab80e431..bf811a9890a5 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -24,6 +24,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -55,6 +67,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -95,6 +108,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/cloudServiceOperatingSystemsMappers.ts b/sdk/compute/arm-compute/src/models/cloudServiceOperatingSystemsMappers.ts new file mode 100644 index 000000000000..97ea70de5c8a --- /dev/null +++ b/sdk/compute/arm-compute/src/models/cloudServiceOperatingSystemsMappers.ts @@ -0,0 +1,21 @@ +/* + * 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, + OSFamily, + OSFamilyListResult, + OSFamilyProperties, + OSVersion, + OSVersionListResult, + OSVersionProperties, + OSVersionPropertiesBase +} from "../models/mappers"; 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..2077a0827eec --- /dev/null +++ b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts @@ -0,0 +1,216 @@ +/* + * 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, + 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, + ExtendedLocation, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + InnerError, + InstanceSku, + InstanceViewStatus, + KeyForDiskEncryptionSet, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LinuxPatchSettings, + 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, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UefiSettings, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageFeature, + 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..e15fff86a822 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts @@ -0,0 +1,216 @@ +/* + * 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, + 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, + ExtendedLocation, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + InnerError, + InstanceViewStatus, + InstanceViewStatusesSummary, + KeyForDiskEncryptionSet, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LinuxPatchSettings, + 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, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StatusCodeCount, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UefiSettings, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageFeature, + 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/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index 81e6a37c4544..e0d6f4077f95 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -55,6 +67,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -95,6 +108,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index 1431344a7438..0e3a1471eb21 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -55,6 +67,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -95,6 +108,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts index 50b49cf8ca0e..6ee129898f8e 100644 --- a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -53,6 +65,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -92,6 +105,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index f49c3f08d45f..643f90e8483a 100644 --- a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -53,6 +65,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -92,6 +105,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index 53c12b4d1721..06f50950ecf7 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,6 +107,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index a0a6d3def6eb..2bde6a7ece8c 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -91,6 +104,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index fe805401b42b..dd041c4c1847 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -91,6 +104,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index 40c7ddc91126..3e1c42394e52 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationList, @@ -91,6 +104,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index 0fd8c34471a9..0a6233d062b6 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -91,6 +104,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 0bfd34e8b713..4b4cf796ba65 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -91,6 +104,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 1a33484c208d..6e98038d0dcd 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -95,6 +108,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index de74c59d66b1..6533c7488e1a 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -1685,7 +1685,7 @@ export interface ManagedDiskParameters extends SubResource { /** * Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used * with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', - * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS' */ storageAccountType?: StorageAccountTypes; /** @@ -1817,18 +1817,6 @@ export interface DataDisk { * VirtualMachine/VirtualMachineScaleset */ toBeDetached?: boolean; - /** - * Specifies the detach behavior to be used while detaching a disk or which is already in the - * process of detachment from the virtual machine. Supported values: **ForceDetach**.

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

This feature is still in preview mode and is not - * supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to - * 'true' along with setting detachOption: 'ForceDetach'. Possible values include: 'ForceDetach' - */ - detachOption?: DiskDetachOptionTypes; /** * Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. * Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the @@ -1843,6 +1831,18 @@ export interface DataDisk { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly diskMBpsReadWrite?: number; + /** + * Specifies the detach behavior to be used while detaching a disk or which is already in the + * process of detachment from the virtual machine. Supported values: **ForceDetach**.

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

This feature is still in preview mode and is not + * supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to + * 'true' along with setting detachOption: 'ForceDetach'. Possible values include: 'ForceDetach' + */ + detachOption?: DiskDetachOptionTypes; } /** @@ -1993,10 +1993,10 @@ export interface PatchSettings { * You do this by applying patches manually inside the VM. In this mode, automatic updates are * disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false

* **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property - * WindowsConfiguration.enableAutomaticUpdates must be true.

** - * AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The - * properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. - * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' + * WindowsConfiguration.enableAutomaticUpdates must be true.

**AutomaticByPlatform** + * - the virtual machine will automatically updated by the platform. The properties + * provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. Possible values + * include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' */ patchMode?: WindowsVMGuestPatchMode; /** @@ -2793,16 +2793,6 @@ export interface VirtualMachine extends Resource { * assigned to.

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

    Minimum api‐version: 2020‐12‐01 - */ - platformFaultDomain?: number; /** * Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01. * Possible values include: 'Regular', 'Low', 'Spot' @@ -2866,6 +2856,16 @@ export interface VirtualMachine extends Resource { * value is 90 minutes (PT1H30M).

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

    Minimum api‐version: 2020‐12‐01 + */ + platformFaultDomain?: number; /** * The virtual machine child extension resources. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2955,16 +2955,6 @@ export interface VirtualMachineUpdate extends UpdateResource { * assigned to.

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

    Minimum api‐version: 2020‐12‐01 - */ - platformFaultDomain?: number; /** * Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01. * Possible values include: 'Regular', 'Low', 'Spot' @@ -3028,6 +3018,16 @@ export interface VirtualMachineUpdate extends UpdateResource { * value is 90 minutes (PT1H30M).

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

    Minimum api‐version: 2020‐12‐01 + */ + platformFaultDomain?: number; /** * The identity of the virtual machine, if configured. */ @@ -3172,7 +3172,7 @@ export interface ImageDisk { /** * Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used * with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', - * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS' */ storageAccountType?: StorageAccountTypes; /** @@ -3251,8 +3251,11 @@ export interface Image extends Resource { */ readonly provisioningState?: string; /** - * Gets the HyperVGenerationType of the VirtualMachine created from the image. Possible values - * include: 'V1', 'V2' + * Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API + * Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, + * if the source is managed resource like disk or snapshot, we may require the user to specify + * the property if we cannot deduce it from the source managed resource. Possible values include: + * 'V1', 'V2' */ hyperVGeneration?: HyperVGenerationTypes; /** @@ -3279,8 +3282,11 @@ export interface ImageUpdate extends UpdateResource { */ readonly provisioningState?: string; /** - * Gets the HyperVGenerationType of the VirtualMachine created from the image. Possible values - * include: 'V1', 'V2' + * Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API + * Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, + * if the source is managed resource like disk or snapshot, we may require the user to specify + * the property if we cannot deduce it from the source managed resource. Possible values include: + * 'V1', 'V2' */ hyperVGeneration?: HyperVGenerationTypes; } @@ -3429,7 +3435,7 @@ export interface VirtualMachineScaleSetManagedDiskParameters { /** * Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used * with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', - * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' + * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS' */ storageAccountType?: StorageAccountTypes; /** @@ -7066,453 +7072,790 @@ export interface GalleryArtifactSource { } /** - * 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; -} - -/** - * Optional Parameters. - */ -export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + readonly name?: string; /** - * The expand expression to apply to the operation. Allowed values are 'instanceView'. + * The tier of the cloud service role instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + 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 VirtualMachineImagesEdgeZoneListOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceRole { /** - * 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; /** - * An integer value specifying the number of images to return that matches supplied values. + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - top?: number; + readonly name?: string; /** - * Specifies the order of the results returned. Formatted as an OData query. + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - orderby?: string; + 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 VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceRoleProfileProperties { /** - * Optional parameter to force delete virtual machines.(Feature in Preview) + * Resource name. */ - forceDeletion?: boolean; + name?: string; + sku?: CloudServiceRoleSku; } /** - * Optional Parameters. + * Describes the role profile for the cloud service. */ -export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceRoleProfile { /** - * The expand expression to apply on the operation. Possible values include: 'instanceView' + * List of roles for the cloud service. */ - expand?: InstanceViewTypes; + 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 VirtualMachinesListAllOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceVaultCertificate { /** - * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. + * This is the URL of a certificate that has been uploaded to Key Vault as a secret. */ - statusOnly?: string; + certificateUrl?: string; } /** - * Optional Parameters. + * Describes a set of certificates which are all in the same Key Vault. */ -export interface VirtualMachinesPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceVaultSecretGroup { /** - * 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 relative URL of the Key Vault containing all of the certificates in VaultCertificates. */ - skipShutdown?: boolean; + 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 VirtualMachinesReimageOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceOsProfile { /** - * Parameters supplied to the Reimage Virtual Machine operation. + * Specifies set of certificates that should be installed onto the role instances. */ - parameters?: VirtualMachineReimageParameters; + secrets?: CloudServiceVaultSecretGroup[]; } /** - * Optional Parameters. + * Describes a cloud service IP Configuration */ -export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { +export interface LoadBalancerFrontendIPConfigurationProperties { /** - * 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 reference to the public ip address resource. */ - sasUriExpirationTimeInMinutes?: number; + publicIPAddress?: SubResource; + /** + * The reference to the virtual network subnet resource. + */ + subnet?: SubResource; + /** + * The virtual network private IP address of the IP configuration. + */ + privateIPAddress?: string; } /** - * Optional Parameters. + * An interface representing LoadBalancerFrontendIPConfiguration. */ -export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { +export interface LoadBalancerFrontendIPConfiguration { /** - * Optional parameter to force delete virtual machines.(Feature in Preview) + * The name of the resource that is unique within the set of frontend IP configurations used by + * the load balancer. This name can be used to access the resource. */ - forceDeletion?: boolean; + name: string; + /** + * Properties of load balancer frontend ip configuration. + */ + properties: LoadBalancerFrontendIPConfigurationProperties; } /** - * Optional Parameters. + * An interface representing LoadBalancerConfigurationProperties. */ -export interface VirtualMachinesBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface LoadBalancerConfigurationProperties { /** - * 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 the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is + * supported. Each load balancer configuration must have exactly one frontend IP configuration. */ - skipShutdown?: boolean; + frontendIPConfigurations: LoadBalancerFrontendIPConfiguration[]; } /** - * Optional Parameters. + * Describes the load balancer configuration. */ -export interface VirtualMachinesBeginReimageOptionalParams extends msRest.RequestOptionsBase { +export interface LoadBalancerConfiguration { /** - * Parameters supplied to the Reimage Virtual Machine operation. + * Resource Id */ - parameters?: VirtualMachineReimageParameters; + id?: string; + /** + * The name of the Load balancer + */ + name: string; + /** + * Properties of the load balancer configuration. + */ + properties: LoadBalancerConfigurationProperties; } /** - * Optional Parameters. + * Network Profile for the cloud service. */ -export interface VirtualMachinesListAllNextOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceNetworkProfile { /** - * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. + * List of Load balancer configurations. Cloud service can have up to two load balancer + * configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. */ - statusOnly?: string; + loadBalancerConfigurations?: LoadBalancerConfiguration[]; + /** + * The id reference of the cloud service containing the target IP with which the subject cloud + * service can perform a swap. This property cannot be updated once it is set. The swappable + * cloud service referred by this id must be present otherwise an error will be thrown. + */ + swappableCloudService?: SubResource; } /** - * Optional Parameters. + * An interface representing CloudServiceVaultAndSecretReference. */ -export interface VirtualMachineScaleSetsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { - /** - * Optional parameter to force delete a VM scale set. (Feature in Preview) - */ - forceDeletion?: boolean; +export interface CloudServiceVaultAndSecretReference { + sourceVault?: SubResource; + secretUrl?: string; } /** - * Optional Parameters. + * Extension Properties. */ -export interface VirtualMachineScaleSetsDeallocateOptionalParams extends msRest.RequestOptionsBase { +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 VirtualMachineScaleSetsDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { +export interface Extension { /** - * Optional parameter to force delete virtual machines from the VM scale set. (Feature in - * Preview) + * The name of the extension. */ - forceDeletion?: boolean; + name?: string; + properties?: CloudServiceExtensionProperties; } /** - * Optional Parameters. + * Describes a cloud service extension profile. */ -export interface VirtualMachineScaleSetsPowerOffOptionalParams extends msRest.RequestOptionsBase { - /** - * A list of virtual machine instance IDs from the VM scale set. - */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; +export interface CloudServiceExtensionProfile { /** - * 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 extensions for the cloud service. */ - skipShutdown?: boolean; + extensions?: Extension[]; } /** - * Optional Parameters. + * Cloud service properties */ -export interface VirtualMachineScaleSetsRestartOptionalParams 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; + /** + * (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the + * model/template should override the role instance count and vm size specified in the .cscfg and + * .csdef respectively. + * The default value is `false`. + */ + allowModelOverride?: 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 VirtualMachineScaleSetsStartOptionalParams extends msRest.RequestOptionsBase { +export interface CloudService extends BaseResource { /** - * A list of virtual machine instance IDs from the VM scale set. + * Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + 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 VirtualMachineScaleSetsRedeployOptionalParams 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 VirtualMachineScaleSetsPerformMaintenanceOptionalParams 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 VirtualMachineScaleSetsReimageOptionalParams extends msRest.RequestOptionsBase { +export interface InstanceViewStatusesSummary { /** - * Parameters for Reimaging VM ScaleSet. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; + readonly statusesSummary?: StatusCodeCount[]; } /** - * Optional Parameters. + * InstanceView of CloudService as a whole */ -export interface VirtualMachineScaleSetsReimageAllOptionalParams extends msRest.RequestOptionsBase { +export interface CloudServiceInstanceView { + roleInstance?: InstanceViewStatusesSummary; /** - * A list of virtual machine instance IDs from the VM scale set. + * 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.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + readonly sdkVersion?: string; + /** + * Specifies a list of unique identifiers generated internally for the cloud service.

    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 privateIds?: string[]; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly statuses?: ResourceInstanceViewStatus[]; } /** - * Optional Parameters. + * Specifies a list of role instances from the cloud service. */ -export interface VirtualMachineScaleSetsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { +export interface RoleInstances { /** - * Optional parameter to force delete a VM scale set. (Feature in Preview) + * List of cloud service role instance names. Value of '*' will signify all role instances of the + * cloud service. */ - forceDeletion?: boolean; + roleInstances: string[]; } /** - * Optional Parameters. + * Defines an update domain for the cloud service. */ -export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams extends msRest.RequestOptionsBase { +export interface UpdateDomain { /** - * A list of virtual machine instance IDs from the VM scale set. + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + 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. + * OS version properties. */ -export interface VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { +export interface OSVersionProperties { /** - * Optional parameter to force delete virtual machines from the VM scale set. (Feature in - * Preview) + * The family of this OS version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - forceDeletion?: boolean; + readonly family?: string; + /** + * The family label of this OS version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly familyLabel?: string; + /** + * The OS version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; + /** + * The OS version label. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly label?: string; + /** + * Specifies whether this is the default OS version for its family. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isDefault?: boolean; + /** + * Specifies whether this OS version is active. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isActive?: boolean; } /** - * Optional Parameters. + * Describes a cloud service OS version. */ -export interface VirtualMachineScaleSetsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { +export interface OSVersion { /** - * A list of virtual machine instance IDs from the VM scale set. + * Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + readonly id?: string; /** - * 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. + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - skipShutdown?: boolean; + 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; + properties?: OSVersionProperties; } /** - * Optional Parameters. + * Configuration view of an OS version. */ -export interface VirtualMachineScaleSetsBeginRestartOptionalParams extends msRest.RequestOptionsBase { +export interface OSVersionPropertiesBase { /** - * A list of virtual machine instance IDs from the VM scale set. + * The OS version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + readonly version?: string; + /** + * The OS version label. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly label?: string; + /** + * Specifies whether this is the default OS version for its family. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isDefault?: boolean; + /** + * Specifies whether this OS version is active. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isActive?: boolean; } /** - * Optional Parameters. + * OS family properties. */ -export interface VirtualMachineScaleSetsBeginStartOptionalParams extends msRest.RequestOptionsBase { +export interface OSFamilyProperties { /** - * A list of virtual machine instance IDs from the VM scale set. + * The OS family name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + readonly name?: string; + /** + * The OS family label. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly label?: string; + /** + * List of OS versions belonging to this family. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly versions?: OSVersionPropertiesBase[]; } /** - * Optional Parameters. + * Describes a cloud service OS family. */ -export interface VirtualMachineScaleSetsBeginRedeployOptionalParams extends msRest.RequestOptionsBase { +export interface OSFamily { /** - * A list of virtual machine instance IDs from the VM scale set. + * Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + 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; + properties?: OSFamilyProperties; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams 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 VirtualMachineScaleSetsBeginReimageOptionalParams extends msRest.RequestOptionsBase { +export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters for Reimaging VM ScaleSet. + * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; + expand?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginReimageAllOptionalParams 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 ImagesGetOptionalParams extends msRest.RequestOptionsBase { +export interface DedicatedHostGroupsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * 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' */ - expand?: string; + expand?: InstanceViewTypes; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetExtensionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface DedicatedHostsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. + */ + filter?: string; + top?: number; + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineExtensionsGetOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -7522,7 +7865,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. */ @@ -7532,29 +7875,39 @@ 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 VirtualMachineImagesEdgeZoneListOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters for the Reimaging Virtual machine in ScaleSet. + * The expand expression to apply on the operation. */ - vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; + expand?: string; + /** + * An integer value specifying the number of images to return that matches supplied values. + */ + top?: number; + /** + * Specifies the order of the results returned. Formatted as an OData query. + */ + orderby?: string; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + * Optional parameter to force delete virtual machines.(Feature in Preview) */ forceDeletion?: boolean; } @@ -7562,7 +7915,7 @@ export interface VirtualMachineScaleSetVMsDeleteMethodOptionalParams extends msR /** * 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' */ @@ -7572,27 +7925,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 @@ -7604,31 +7947,31 @@ export interface VirtualMachineScaleSetVMsPowerOffOptionalParams extends msRest. /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesReimageOptionalParams 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 - * of 120 minutes. + * Parameters supplied to the Reimage Virtual Machine operation. */ - sasUriExpirationTimeInMinutes?: number; + parameters?: VirtualMachineReimageParameters; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters for the Reimaging Virtual machine in ScaleSet. + * 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. */ - vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; + sasUriExpirationTimeInMinutes?: number; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) + * Optional parameter to force delete virtual machines.(Feature in Preview) */ forceDeletion?: boolean; } @@ -7636,7 +7979,7 @@ export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams extend /** * 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 @@ -7648,1164 +7991,2257 @@ export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends ms /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsListNextOptionalParams 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 VirtualMachinesBeginReimageOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply to the operation. Allowed values are 'instanceView'. + * Parameters supplied to the Reimage Virtual Machine operation. */ - expand?: string; + parameters?: VirtualMachineReimageParameters; } /** * Optional Parameters. */ -export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesListAllNextOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ - expand?: string; + statusOnly?: string; } /** * Optional Parameters. */ -export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * Optional parameter to force delete a VM scale set. (Feature in Preview) */ - expand?: string; + forceDeletion?: boolean; } /** * Optional Parameters. */ -export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsDeallocateOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * A list of virtual machine instance IDs from the VM scale set. */ - expand?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * Optional parameter to force delete virtual machines from the VM scale set. (Feature in + * Preview) */ - expand?: string; + forceDeletion?: boolean; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsPowerOffOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * A list of virtual machine instance IDs from the VM scale set. */ - expand?: 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; } /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsRestartOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. + * A list of virtual machine instance IDs from the VM scale set. */ - expand?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** * Optional Parameters. */ -export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsStartOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Only **location** filter is supported currently. + * A list of virtual machine instance IDs from the VM scale set. */ - filter?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** * Optional Parameters. */ -export interface ResourceSkusListNextOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsRedeployOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. Only **location** filter is supported currently. + * A list of virtual machine instance IDs from the VM scale set. */ - filter?: string; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** * Optional Parameters. */ -export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsPerformMaintenanceOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * A list of virtual machine instance IDs from the VM scale set. */ - expand?: ReplicationStatusTypes; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** * Optional Parameters. */ -export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsReimageOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + * Parameters for Reimaging VM ScaleSet. */ - expand?: ReplicationStatusTypes; + vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; } /** - * An interface representing ComputeManagementClientOptions. + * Optional Parameters. */ -export interface ComputeManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface VirtualMachineScaleSetsReimageAllOptionalParams extends msRest.RequestOptionsBase { + /** + * A list of virtual machine instance IDs from the VM scale set. + */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } /** - * @interface - * The List Compute Operation operation response. - * @extends Array + * Optional Parameters. */ -export interface ComputeOperationListResult extends Array { +export interface VirtualMachineScaleSetsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete a VM scale set. (Feature in Preview) + */ + forceDeletion?: boolean; } /** - * @interface - * The List Availability Set operation response. - * @extends Array + * Optional Parameters. */ -export interface AvailabilitySetListResult extends Array { +export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams 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 VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to force delete virtual machines from the VM scale set. (Feature in + * Preview) + */ + forceDeletion?: boolean; } /** - * @interface - * The List Proximity Placement Group operation response. - * @extends Array + * Optional Parameters. */ -export interface ProximityPlacementGroupListResult extends Array { +export interface VirtualMachineScaleSetsBeginPowerOffOptionalParams 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; + /** + * 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 Dedicated Host Group with resource group response. - * @extends Array + * Optional Parameters. */ -export interface DedicatedHostGroupListResult extends Array { +export interface VirtualMachineScaleSetsBeginRestartOptionalParams 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 VirtualMachineScaleSetsBeginStartOptionalParams 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 VirtualMachineScaleSetsBeginRedeployOptionalParams 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 VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams 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. + * 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 VirtualMachineListResult extends Array { +export interface VirtualMachineScaleSetsBeginReimageOptionalParams 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. + * Parameters for Reimaging VM ScaleSet. */ - nextLink?: string; + vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetListResult extends Array { +export interface VirtualMachineScaleSetsBeginReimageAllOptionalParams 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; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetListWithLinkResult extends Array { +export interface ImagesGetOptionalParams 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. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The Virtual Machine Scale Set List Skus operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetListSkusResult extends Array { +export interface VirtualMachineScaleSetExtensionsGetOptionalParams 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. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * List of Virtual Machine Scale Set OS Upgrade History operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetListOSUpgradeHistory extends Array { +export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams 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. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Image operation response. - * @extends Array + * Optional Parameters. */ -export interface ImageListResult extends Array { +export interface VirtualMachineScaleSetVMExtensionsListOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of - * Images. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List VM scale set extension operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetExtensionListResult extends Array { +export interface VirtualMachineScaleSetVMsReimageOptionalParams 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. + * Parameters for the Reimaging Virtual machine in ScaleSet. */ - nextLink?: string; + vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } /** - * @interface - * The List Virtual Machine Scale Set VMs operation response. - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineScaleSetVMListResult extends Array { +export interface VirtualMachineScaleSetVMsDeleteMethodOptionalParams 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 + * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) */ - nextLink?: string; + forceDeletion?: boolean; } /** - * @interface - * The List Virtual Machine operation response. - * @extends Array + * Optional Parameters. */ -export interface RunCommandListResult extends Array { +export interface VirtualMachineScaleSetVMsGetOptionalParams 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. + * The expand expression to apply on the operation. Possible values include: 'instanceView' */ - nextLink?: string; + expand?: InstanceViewTypes; } /** - * @interface - * The List run command operation response - * @extends Array + * Optional Parameters. */ -export interface VirtualMachineRunCommandsListResult extends Array { +export interface VirtualMachineScaleSetVMsListOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of run commands. + * 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 Resource Skus operation response. - * @extends Array + * Optional Parameters. */ -export interface ResourceSkusResult extends Array { +export interface VirtualMachineScaleSetVMsPowerOffOptionalParams 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 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 Disks operation response. - * @extends Array + * Optional Parameters. */ -export interface DiskList extends Array { +export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of disks. Call ListNext() with this to fetch the next page of - * disks. + * 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 Snapshots operation response. - * @extends Array + * Optional Parameters. */ -export interface SnapshotList extends Array { +export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page - * of snapshots. + * Parameters for the Reimaging Virtual machine in ScaleSet. */ - nextLink?: string; + vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } /** - * @interface - * The List disk encryption set operation response. - * @extends Array + * Optional Parameters. */ -export interface DiskEncryptionSetList extends Array { +export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams 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. + * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) */ - nextLink?: string; + forceDeletion?: boolean; } /** - * @interface - * The List resources which are encrypted with the disk encryption set. - * @extends Array + * Optional Parameters. */ -export interface ResourceUriList extends Array { +export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams 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 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 disk access operation response. - * @extends Array + * Optional Parameters. */ -export interface DiskAccessList extends Array { +export interface VirtualMachineScaleSetVMsListNextOptionalParams 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 - * A list of private link resources - * @extends Array + * Optional Parameters. */ -export interface PrivateEndpointConnectionListResult extends Array { +export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams 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 Restore Points operation response. - * @extends Array + * Optional Parameters. */ -export interface DiskRestorePointList extends Array { +export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the - * next page of disk restore points. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Galleries operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryList extends Array { +export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends msRest.RequestOptionsBase { /** - * The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page - * of galleries. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Gallery Images operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryImageList extends Array { +export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams 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. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Gallery Image version operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryImageVersionList extends Array { +export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams 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. + * The expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Gallery Applications operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryApplicationList extends Array { +export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams 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 expand expression to apply on the operation. */ - nextLink?: string; + expand?: string; } /** - * @interface - * The List Gallery Application version operation response. - * @extends Array + * Optional Parameters. */ -export interface GalleryApplicationVersionList extends Array { +export interface ResourceSkusListOptionalParams 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 on the operation. Only **location** filter is supported currently. */ - nextLink?: string; + filter?: string; } /** - * Defines values for VmDiskTypes. - * Possible values include: 'None', 'Unmanaged' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VmDiskTypes = 'None' | 'Unmanaged'; +export interface ResourceSkusListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. Only **location** filter is supported currently. + */ + filter?: string; +} /** - * Defines values for HyperVGenerationTypes. - * Possible values include: 'V1', 'V2' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type HyperVGenerationTypes = 'V1' | 'V2'; +export interface GalleryImageVersionsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + */ + expand?: ReplicationStatusTypes; +} /** - * Defines values for StatusLevelTypes. - * Possible values include: 'Info', 'Warning', 'Error' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; +export interface GalleryApplicationVersionsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'ReplicationStatus' + */ + expand?: ReplicationStatusTypes; +} /** - * Defines values for AvailabilitySetSkuTypes. - * Possible values include: 'Classic', 'Aligned' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type AvailabilitySetSkuTypes = 'Classic' | 'Aligned'; +export interface CloudServiceRoleInstancesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply to the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} /** - * Defines values for ProximityPlacementGroupType. - * Possible values include: 'Standard', 'Ultra' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; +export interface CloudServiceRoleInstancesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply to the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} /** - * 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 CloudServiceRoleInstancesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply to the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} /** - * Defines values for ExtendedLocationTypes. - * Possible values include: 'EdgeZone' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ExtendedLocationTypes = 'EdgeZone'; +export interface CloudServicesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cloud service object. + */ + parameters?: CloudService; +} /** - * Defines values for VMGuestPatchRebootBehavior. - * Possible values include: 'Unknown', 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VMGuestPatchRebootBehavior = 'Unknown' | 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; +export interface CloudServicesUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cloud service object. + */ + parameters?: CloudServiceUpdate; +} /** - * Defines values for PatchAssessmentState. - * Possible values include: 'Unknown', 'Available' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type PatchAssessmentState = 'Unknown' | 'Available'; +export interface CloudServicesRestartOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for PatchOperationStatus. - * Possible values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type PatchOperationStatus = 'Unknown' | 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; +export interface CloudServicesReimageOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for VMGuestPatchRebootSetting. - * Possible values include: 'IfRequired', 'Never', 'Always' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VMGuestPatchRebootSetting = 'IfRequired' | 'Never' | 'Always'; +export interface CloudServicesRebuildOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for VMGuestPatchClassificationWindows. - * Possible values include: 'Critical', 'Security', 'UpdateRollUp', 'FeaturePack', 'ServicePack', - * 'Definition', 'Tools', 'Updates' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VMGuestPatchClassificationWindows = 'Critical' | 'Security' | 'UpdateRollUp' | 'FeaturePack' | 'ServicePack' | 'Definition' | 'Tools' | 'Updates'; +export interface CloudServicesDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for VMGuestPatchClassificationLinux. - * Possible values include: 'Critical', 'Security', 'Other' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VMGuestPatchClassificationLinux = 'Critical' | 'Security' | 'Other'; +export interface CloudServicesBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cloud service object. + */ + parameters?: CloudService; +} /** - * Defines values for VMGuestPatchRebootStatus. - * Possible values include: 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VMGuestPatchRebootStatus = 'Unknown' | 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; +export interface CloudServicesBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cloud service object. + */ + parameters?: CloudServiceUpdate; +} /** - * Defines values for PatchInstallationState. - * Possible values include: 'Unknown', 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type PatchInstallationState = 'Unknown' | 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending'; +export interface CloudServicesBeginRestartOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for OperatingSystemTypes. - * Possible values include: 'Windows', 'Linux' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type OperatingSystemTypes = 'Windows' | 'Linux'; +export interface CloudServicesBeginReimageOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * 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 CloudServicesBeginRebuildOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for CachingTypes. - * Possible values include: 'None', 'ReadOnly', 'ReadWrite' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type CachingTypes = 'None' | 'ReadOnly' | 'ReadWrite'; +export interface CloudServicesBeginDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { + /** + * List of cloud service role instance names. + */ + parameters?: RoleInstances; +} /** - * Defines values for DiskCreateOptionTypes. - * Possible values include: 'FromImage', 'Empty', 'Attach' - * @readonly - * @enum {string} + * An interface representing ComputeManagementClientOptions. */ -export type DiskCreateOptionTypes = 'FromImage' | 'Empty' | 'Attach'; +export interface ComputeManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** - * Defines values for DiskDetachOptionTypes. - * Possible values include: 'ForceDetach' - * @readonly - * @enum {string} + * @interface + * The List Compute Operation operation response. + * @extends Array */ -export type DiskDetachOptionTypes = 'ForceDetach'; +export interface ComputeOperationListResult extends Array { +} /** - * Defines values for StorageAccountTypes. - * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' - * @readonly - * @enum {string} + * @interface + * The List Availability Set operation response. + * @extends Array */ -export type StorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS'; +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 DiffDiskOptions. - * Possible values include: 'Local' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type DiffDiskOptions = 'Local'; +export interface VirtualMachineSizeListResult extends Array { +} /** - * Defines values for DiffDiskPlacement. - * Possible values include: 'CacheDisk', 'ResourceDisk' - * @readonly - * @enum {string} + * @interface + * The List Proximity Placement Group operation response. + * @extends Array */ -export type DiffDiskPlacement = 'CacheDisk' | 'ResourceDisk'; +export interface ProximityPlacementGroupListResult extends Array { + /** + * The URI to fetch the next page of proximity placement groups. + */ + nextLink?: string; +} /** - * Defines values for SecurityTypes. - * Possible values include: 'TrustedLaunch' - * @readonly - * @enum {string} + * @interface + * The List Dedicated Host Group with resource group response. + * @extends Array */ -export type SecurityTypes = 'TrustedLaunch'; +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 PassNames. - * Possible values include: 'OobeSystem' - * @readonly - * @enum {string} + * @interface + * The list dedicated host operation response. + * @extends Array */ -export type PassNames = 'OobeSystem'; +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 ComponentNames. - * Possible values include: 'Microsoft-Windows-Shell-Setup' - * @readonly - * @enum {string} + * @interface + * The list SSH public keys operation response. + * @extends Array */ -export type ComponentNames = 'Microsoft-Windows-Shell-Setup'; +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 SettingNames. - * Possible values include: 'AutoLogon', 'FirstLogonCommands' - * @readonly - * @enum {string} + * @interface + * The List Usages operation response. + * @extends Array */ -export type SettingNames = 'AutoLogon' | 'FirstLogonCommands'; +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 ProtocolTypes. - * Possible values include: 'Http', 'Https' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type ProtocolTypes = 'Http' | 'Https'; +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 WindowsVMGuestPatchMode. - * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type WindowsVMGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; +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 LinuxVMGuestPatchMode. - * Possible values include: 'ImageDefault', 'AutomaticByPlatform' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -export type LinuxVMGuestPatchMode = 'ImageDefault' | 'AutomaticByPlatform'; +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 VirtualMachinePriorityTypes. - * Possible values include: 'Regular', 'Low', 'Spot' - * @readonly - * @enum {string} + * @interface + * The Virtual Machine Scale Set List Skus operation response. + * @extends Array */ -export type VirtualMachinePriorityTypes = 'Regular' | 'Low' | 'Spot'; +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 VirtualMachineEvictionPolicyTypes. - * Possible values include: 'Deallocate', 'Delete' - * @readonly - * @enum {string} + * @interface + * List of Virtual Machine Scale Set OS Upgrade History operation response. + * @extends Array */ -export type VirtualMachineEvictionPolicyTypes = 'Deallocate' | 'Delete'; +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 ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', - * 'None' - * @readonly - * @enum {string} + * @interface + * The List Image operation response. + * @extends Array */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; +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 MaintenanceOperationResultCodeTypes. - * Possible values include: 'None', 'RetryLater', 'MaintenanceAborted', 'MaintenanceCompleted' - * @readonly - * @enum {string} + * @interface + * The List VM scale set extension operation response. + * @extends Array */ -export type MaintenanceOperationResultCodeTypes = 'None' | 'RetryLater' | 'MaintenanceAborted' | 'MaintenanceCompleted'; +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 HyperVGenerationType. - * Possible values include: 'V1', 'V2' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine Scale Set VMs operation response. + * @extends Array */ -export type HyperVGenerationType = 'V1' | 'V2'; +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 UpgradeMode. - * Possible values include: 'Automatic', 'Manual', 'Rolling' - * @readonly - * @enum {string} + * @interface + * The List Virtual Machine operation response. + * @extends Array */ -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'; +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 OrchestrationMode. - * Possible values include: 'Uniform', 'Flexible' - * @readonly - * @enum {string} + * @interface + * The List run command operation response + * @extends Array */ -export type OrchestrationMode = 'Uniform' | 'Flexible'; +export interface VirtualMachineRunCommandsListResult extends Array { + /** + * The uri to fetch the next page of run commands. + */ + nextLink?: string; +} /** - * Defines values for OperatingSystemStateTypes. - * Possible values include: 'Generalized', 'Specialized' - * @readonly - * @enum {string} + * @interface + * The List Resource Skus operation response. + * @extends Array */ -export type OperatingSystemStateTypes = 'Generalized' | 'Specialized'; +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 IPVersion. - * Possible values include: 'IPv4', 'IPv6' - * @readonly - * @enum {string} + * @interface + * The List Disks operation response. + * @extends Array */ -export type IPVersion = 'IPv4' | 'IPv6'; +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 OrchestrationServiceNames. - * Possible values include: 'AutomaticRepairs' - * @readonly - * @enum {string} + * @interface + * The List Snapshots operation response. + * @extends Array */ -export type OrchestrationServiceNames = 'AutomaticRepairs' ; +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 OrchestrationServiceState. - * Possible values include: 'NotRunning', 'Running', 'Suspended' - * @readonly - * @enum {string} + * @interface + * The List disk encryption set operation response. + * @extends Array */ -export type OrchestrationServiceState = 'NotRunning' | 'Running' | 'Suspended'; +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 VirtualMachineScaleSetSkuScaleType. - * Possible values include: 'Automatic', 'None' - * @readonly - * @enum {string} + * @interface + * The List resources which are encrypted with the disk encryption set. + * @extends Array */ -export type VirtualMachineScaleSetSkuScaleType = 'Automatic' | 'None'; +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; +} /** - * Defines values for UpgradeState. - * Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' - * @readonly - * @enum {string} + * @interface + * The List disk access operation response. + * @extends Array */ -export type UpgradeState = 'RollingForward' | 'Cancelled' | 'Completed' | 'Faulted'; +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; +} /** - * Defines values for UpgradeOperationInvoker. - * Possible values include: 'Unknown', 'User', 'Platform' - * @readonly - * @enum {string} + * @interface + * A list of private link resources + * @extends Array */ -export type UpgradeOperationInvoker = 'Unknown' | 'User' | 'Platform'; +export interface PrivateEndpointConnectionListResult extends Array { + /** + * The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page + * of snapshots. + */ + nextLink?: string; +} /** - * Defines values for RollingUpgradeStatusCode. - * Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted' - * @readonly - * @enum {string} + * @interface + * The List Disk Restore Points operation response. + * @extends Array */ -export type RollingUpgradeStatusCode = 'RollingForward' | 'Cancelled' | 'Completed' | 'Faulted'; +export interface DiskRestorePointList extends Array { + /** + * The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the + * next page of disk restore points. + */ + nextLink?: string; +} /** - * Defines values for RollingUpgradeActionType. - * Possible values include: 'Start', 'Cancel' - * @readonly - * @enum {string} + * @interface + * The List Galleries operation response. + * @extends Array */ -export type RollingUpgradeActionType = 'Start' | 'Cancel'; +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; +} /** - * Defines values for IntervalInMins. - * Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins' - * @readonly - * @enum {string} + * @interface + * The List Gallery Images operation response. + * @extends Array */ -export type IntervalInMins = 'ThreeMins' | 'FiveMins' | 'ThirtyMins' | 'SixtyMins'; +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; +} /** - * Defines values for OrchestrationServiceStateAction. - * Possible values include: 'Resume', 'Suspend' - * @readonly - * @enum {string} + * @interface + * The List Gallery Image version operation response. + * @extends Array */ -export type OrchestrationServiceStateAction = 'Resume' | 'Suspend'; +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; +} /** - * Defines values for ExecutionState. - * Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', - * 'Canceled' - * @readonly - * @enum {string} + * @interface + * The List Gallery Applications operation response. + * @extends Array */ -export type ExecutionState = 'Unknown' | 'Pending' | 'Running' | 'Failed' | 'Succeeded' | 'TimedOut' | 'Canceled'; +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; +} /** - * Defines values for ResourceSkuCapacityScaleType. - * Possible values include: 'Automatic', 'Manual', 'None' - * @readonly - * @enum {string} + * @interface + * The List Gallery Application version operation response. + * @extends Array */ -export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; +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; +} /** - * Defines values for ResourceSkuRestrictionsType. - * Possible values include: 'Location', 'Zone' - * @readonly - * @enum {string} + * @interface + * An interface representing the RoleInstanceListResult. + * @extends Array */ -export type ResourceSkuRestrictionsType = 'Location' | 'Zone'; +export interface RoleInstanceListResult extends Array { + nextLink?: string; +} /** - * Defines values for ResourceSkuRestrictionsReasonCode. - * Possible values include: 'QuotaId', 'NotAvailableForSubscription' - * @readonly - * @enum {string} + * @interface + * An interface representing the CloudServiceRoleListResult. + * @extends Array */ -export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; +export interface CloudServiceRoleListResult extends Array { + nextLink?: string; +} /** - * Defines values for DiskStorageAccountTypes. - * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' - * @readonly - * @enum {string} + * @interface + * An interface representing the CloudServiceListResult. + * @extends Array */ -export type DiskStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS'; +export interface CloudServiceListResult extends Array { + nextLink?: string; +} /** - * Defines values for HyperVGeneration. - * Possible values include: 'V1', 'V2' - * @readonly - * @enum {string} + * @interface + * An interface representing the UpdateDomainListResult. + * @extends Array */ -export type HyperVGeneration = 'V1' | 'V2'; +export interface UpdateDomainListResult extends Array { + nextLink?: string; +} /** - * Defines values for DiskCreateOption. - * Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload' - * @readonly + * @interface + * An interface representing the OSVersionListResult. + * @extends Array + */ +export interface OSVersionListResult extends Array { + nextLink?: string; +} + +/** + * @interface + * An interface representing the OSFamilyListResult. + * @extends Array + */ +export interface OSFamilyListResult extends Array { + nextLink?: string; +} + +/** + * Defines values for VmDiskTypes. + * Possible values include: 'None', 'Unmanaged' + * @readonly * @enum {string} */ -export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore' | 'Upload'; +export type VmDiskTypes = 'None' | 'Unmanaged'; /** - * Defines values for DiskState. - * Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', - * 'ActiveUpload' + * Defines values for HyperVGenerationTypes. + * Possible values include: 'V1', 'V2' * @readonly * @enum {string} */ -export type DiskState = 'Unattached' | 'Attached' | 'Reserved' | 'ActiveSAS' | 'ReadyToUpload' | 'ActiveUpload'; +export type HyperVGenerationTypes = 'V1' | 'V2'; /** - * Defines values for EncryptionType. - * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', - * 'EncryptionAtRestWithPlatformAndCustomerKeys' + * Defines values for StatusLevelTypes. + * Possible values include: 'Info', 'Warning', 'Error' * @readonly * @enum {string} */ -export type EncryptionType = 'EncryptionAtRestWithPlatformKey' | 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; +export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; /** - * Defines values for NetworkAccessPolicy. - * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + * Defines values for AvailabilitySetSkuTypes. + * Possible values include: 'Classic', 'Aligned' * @readonly * @enum {string} */ -export type NetworkAccessPolicy = 'AllowAll' | 'AllowPrivate' | 'DenyAll'; +export type AvailabilitySetSkuTypes = 'Classic' | 'Aligned'; /** - * Defines values for SnapshotStorageAccountTypes. - * Possible values include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS' + * Defines values for ProximityPlacementGroupType. + * Possible values include: 'Standard', 'Ultra' * @readonly * @enum {string} */ -export type SnapshotStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'Standard_ZRS'; +export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; /** - * Defines values for DiskEncryptionSetType. - * Possible values include: 'EncryptionAtRestWithCustomerKey', - * 'EncryptionAtRestWithPlatformAndCustomerKeys' + * Defines values for DedicatedHostLicenseTypes. + * Possible values include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual' * @readonly * @enum {string} */ -export type DiskEncryptionSetType = 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; +export type DedicatedHostLicenseTypes = 'None' | 'Windows_Server_Hybrid' | 'Windows_Server_Perpetual'; /** - * Defines values for AccessLevel. - * Possible values include: 'None', 'Read', 'Write' + * Defines values for ExtendedLocationTypes. + * Possible values include: 'EdgeZone' * @readonly * @enum {string} */ -export type AccessLevel = 'None' | 'Read' | 'Write'; +export type ExtendedLocationTypes = 'EdgeZone'; /** - * Defines values for DiskEncryptionSetIdentityType. - * Possible values include: 'SystemAssigned', 'None' + * Defines values for VMGuestPatchRebootBehavior. + * Possible values include: 'Unknown', 'NeverReboots', 'AlwaysRequiresReboot', 'CanRequestReboot' * @readonly * @enum {string} */ -export type DiskEncryptionSetIdentityType = 'SystemAssigned' | 'None'; +export type VMGuestPatchRebootBehavior = 'Unknown' | 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; /** - * Defines values for PrivateEndpointServiceConnectionStatus. - * Possible values include: 'Pending', 'Approved', 'Rejected' + * Defines values for PatchAssessmentState. + * Possible values include: 'Unknown', 'Available' * @readonly * @enum {string} */ -export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected'; +export type PatchAssessmentState = 'Unknown' | 'Available'; /** - * Defines values for PrivateEndpointConnectionProvisioningState. - * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + * Defines values for PatchOperationStatus. + * Possible values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings' * @readonly * @enum {string} */ -export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; +export type PatchOperationStatus = 'Unknown' | 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; /** - * Defines values for AggregatedReplicationState. - * Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' + * Defines values for VMGuestPatchRebootSetting. + * Possible values include: 'IfRequired', 'Never', 'Always' * @readonly * @enum {string} */ -export type AggregatedReplicationState = 'Unknown' | 'InProgress' | 'Completed' | 'Failed'; +export type VMGuestPatchRebootSetting = 'IfRequired' | 'Never' | 'Always'; /** - * Defines values for ReplicationState. - * Possible values include: 'Unknown', 'Replicating', 'Completed', 'Failed' + * Defines values for VMGuestPatchClassificationWindows. + * Possible values include: 'Critical', 'Security', 'UpdateRollUp', 'FeaturePack', 'ServicePack', + * 'Definition', 'Tools', 'Updates' * @readonly * @enum {string} */ -export type ReplicationState = 'Unknown' | 'Replicating' | 'Completed' | 'Failed'; +export type VMGuestPatchClassificationWindows = 'Critical' | 'Security' | 'UpdateRollUp' | 'FeaturePack' | 'ServicePack' | 'Definition' | 'Tools' | 'Updates'; + +/** + * Defines values for VMGuestPatchClassificationLinux. + * Possible values include: 'Critical', 'Security', 'Other' + * @readonly + * @enum {string} + */ +export type VMGuestPatchClassificationLinux = 'Critical' | 'Security' | 'Other'; + +/** + * Defines values for VMGuestPatchRebootStatus. + * Possible values include: 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed' + * @readonly + * @enum {string} + */ +export type VMGuestPatchRebootStatus = 'Unknown' | 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; + +/** + * Defines values for PatchInstallationState. + * Possible values include: 'Unknown', 'Installed', 'Failed', 'Excluded', 'NotSelected', 'Pending' + * @readonly + * @enum {string} + */ +export type PatchInstallationState = 'Unknown' | 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending'; + +/** + * Defines values for OperatingSystemTypes. + * 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 DiskDetachOptionTypes. + * Possible values include: 'ForceDetach' + * @readonly + * @enum {string} + */ +export type DiskDetachOptionTypes = 'ForceDetach'; + +/** + * Defines values for StorageAccountTypes. + * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', + * 'Premium_ZRS', 'StandardSSD_ZRS' + * @readonly + * @enum {string} + */ +export type StorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS' | 'Premium_ZRS' | 'StandardSSD_ZRS'; + +/** + * 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 SecurityTypes. + * Possible values include: 'TrustedLaunch' + * @readonly + * @enum {string} + */ +export type SecurityTypes = 'TrustedLaunch'; + +/** + * 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 WindowsVMGuestPatchMode. + * Possible values include: 'Manual', 'AutomaticByOS', 'AutomaticByPlatform' + * @readonly + * @enum {string} + */ +export type WindowsVMGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; + +/** + * Defines values for LinuxVMGuestPatchMode. + * Possible values include: 'ImageDefault', 'AutomaticByPlatform' + * @readonly + * @enum {string} + */ +export type LinuxVMGuestPatchMode = 'ImageDefault' | 'AutomaticByPlatform'; + +/** + * Defines values for VirtualMachinePriorityTypes. + * 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 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 OrchestrationMode. + * Possible values include: 'Uniform', 'Flexible' + * @readonly + * @enum {string} + */ +export type OrchestrationMode = 'Uniform' | 'Flexible'; + +/** + * 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', 'None' + * @readonly + * @enum {string} + */ +export type DiskEncryptionSetIdentityType = 'SystemAssigned' | 'None'; + +/** + * 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 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 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 ReplicationStatusTypes. + * Possible values include: 'ReplicationStatus' + * @readonly + * @enum {string} + */ +export type ReplicationStatusTypes = 'ReplicationStatus'; + +/** + * 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; + }; +}; /** - * Defines values for StorageAccountType. - * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Premium_LRS' - * @readonly - * @enum {string} + * Contains response data for the listBySubscription operation. */ -export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS' | 'Premium_LRS'; +export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for HostCaching. - * Possible values include: 'None', 'ReadOnly', 'ReadWrite' - * @readonly - * @enum {string} - */ -export type HostCaching = 'None' | 'ReadOnly' | 'ReadWrite'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; /** - * Defines values for InstanceViewTypes. - * Possible values include: 'instanceView' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroupNext operation. */ -export type InstanceViewTypes = 'instanceView'; +export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult & { + /** + * 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: DedicatedHostGroupListResult; + }; +}; /** - * Defines values for ProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' - * @readonly - * @enum {string} + * Contains response data for the listBySubscriptionNext operation. */ -export type ProvisioningState = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; +export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult & { + /** + * 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: DedicatedHostGroupListResult; + }; +}; /** - * Defines values for ProvisioningState2. - * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type ProvisioningState2 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; +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; + }; +}; /** - * Defines values for ProvisioningState3. - * Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type ProvisioningState3 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; +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 list operation. + * Contains response data for the get operation. */ -export type OperationsListResponse = ComputeOperationListResult & { +export type DedicatedHostsGetResponse = DedicatedHost & { /** * The underlying HTTP response. */ @@ -8818,14 +10254,14 @@ export type OperationsListResponse = ComputeOperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeOperationListResult; + parsedBody: DedicatedHost; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByHostGroup operation. */ -export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { +export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { /** * The underlying HTTP response. */ @@ -8838,14 +10274,14 @@ export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: DedicatedHostListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type AvailabilitySetsUpdateResponse = AvailabilitySet & { +export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { /** * The underlying HTTP response. */ @@ -8858,14 +10294,14 @@ export type AvailabilitySetsUpdateResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: DedicatedHost; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type AvailabilitySetsGetResponse = AvailabilitySet & { +export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { /** * The underlying HTTP response. */ @@ -8878,14 +10314,14 @@ export type AvailabilitySetsGetResponse = AvailabilitySet & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySet; + parsedBody: DedicatedHost; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listByHostGroupNext operation. */ -export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult & { +export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult & { /** * The underlying HTTP response. */ @@ -8898,14 +10334,14 @@ export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResu /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: DedicatedHostListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listBySubscription operation. */ -export type AvailabilitySetsListResponse = AvailabilitySetListResult & { +export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -8918,14 +10354,14 @@ export type AvailabilitySetsListResponse = AvailabilitySetListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listAvailableSizes operation. + * Contains response data for the listByResourceGroup operation. */ -export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult & { +export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -8938,14 +10374,14 @@ export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListR /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineSizeListResult; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the create operation. */ -export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult & { +export type SshPublicKeysCreateResponse = SshPublicKeyResource & { /** * The underlying HTTP response. */ @@ -8958,14 +10394,14 @@ export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetList /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: SshPublicKeyResource; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { +export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { /** * The underlying HTTP response. */ @@ -8978,14 +10414,14 @@ export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailabilitySetListResult; + parsedBody: SshPublicKeyResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup & { +export type SshPublicKeysGetResponse = SshPublicKeyResource & { /** * The underlying HTTP response. */ @@ -8998,14 +10434,14 @@ export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementG /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: SshPublicKeyResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the generateKeyPair operation. */ -export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { +export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult & { /** * The underlying HTTP response. */ @@ -9018,14 +10454,14 @@ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: SshPublicKeyGenerateKeyPairResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { +export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -9038,14 +10474,14 @@ export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroup; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult & { +export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -9058,14 +10494,14 @@ export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacem /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult & { +export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage & { /** * The underlying HTTP response. */ @@ -9078,14 +10514,14 @@ export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlace /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachineExtensionImage; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listTypes operation. */ -export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult & { +export type VirtualMachineExtensionImagesListTypesResponse = Array & { /** * The underlying HTTP response. */ @@ -9098,14 +10534,14 @@ export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPl /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachineExtensionImage[]; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listVersions operation. */ -export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult & { +export type VirtualMachineExtensionImagesListVersionsResponse = Array & { /** * The underlying HTTP response. */ @@ -9118,14 +10554,14 @@ export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityP /** * The response body as parsed JSON or XML */ - parsedBody: ProximityPlacementGroupListResult; + parsedBody: VirtualMachineExtensionImage[]; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { +export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -9138,14 +10574,14 @@ export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: VirtualMachineExtension; }; }; /** * Contains response data for the update operation. */ -export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { +export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -9158,14 +10594,14 @@ export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: VirtualMachineExtension; }; }; /** * Contains response data for the get operation. */ -export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { +export type VirtualMachineExtensionsGetResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -9178,14 +10614,34 @@ export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroup; + parsedBody: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the list operation. + */ +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; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -9198,14 +10654,14 @@ export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupL /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the beginUpdate operation. */ -export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult & { +export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtension & { /** * The underlying HTTP response. */ @@ -9218,14 +10674,14 @@ export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupLi /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineExtension; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult & { +export type VirtualMachineImagesGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -9238,14 +10694,14 @@ export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGr /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineImage; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the list operation. */ -export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult & { +export type VirtualMachineImagesListResponse = Array & { /** * The underlying HTTP response. */ @@ -9258,14 +10714,14 @@ export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGro /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostGroupListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listOffers operation. */ -export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesListOffersResponse = Array & { /** * The underlying HTTP response. */ @@ -9278,14 +10734,14 @@ export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listPublishers operation. */ -export type DedicatedHostsUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -9298,14 +10754,14 @@ export type DedicatedHostsUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listSkus operation. */ -export type DedicatedHostsGetResponse = DedicatedHost & { +export type VirtualMachineImagesListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -9318,14 +10774,14 @@ export type DedicatedHostsGetResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listByHostGroup operation. + * Contains response data for the get operation. */ -export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { +export type VirtualMachineImagesEdgeZoneGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -9338,14 +10794,14 @@ export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostListResult; + parsedBody: VirtualMachineImage; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesEdgeZoneListResponse = Array & { /** * The underlying HTTP response. */ @@ -9358,14 +10814,14 @@ export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listOffers operation. */ -export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { +export type VirtualMachineImagesEdgeZoneListOffersResponse = Array & { /** * The underlying HTTP response. */ @@ -9378,14 +10834,14 @@ export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHost; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listByHostGroupNext operation. + * Contains response data for the listPublishers operation. */ -export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult & { +export type VirtualMachineImagesEdgeZoneListPublishersResponse = Array & { /** * The underlying HTTP response. */ @@ -9398,14 +10854,14 @@ export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult /** * The response body as parsed JSON or XML */ - parsedBody: DedicatedHostListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listSkus operation. */ -export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult & { +export type VirtualMachineImagesEdgeZoneListSkusResponse = Array & { /** * The underlying HTTP response. */ @@ -9418,14 +10874,14 @@ export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResu /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachineImageResource[]; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult & { +export type UsageListResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -9438,14 +10894,14 @@ export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListRes /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listNext operation. */ -export type SshPublicKeysCreateResponse = SshPublicKeyResource & { +export type UsageListNextResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -9458,14 +10914,14 @@ export type SshPublicKeysCreateResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByLocation operation. */ -export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { +export type VirtualMachinesListByLocationResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -9478,14 +10934,14 @@ export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: VirtualMachineListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the capture operation. */ -export type SshPublicKeysGetResponse = SshPublicKeyResource & { +export type VirtualMachinesCaptureResponse = VirtualMachineCaptureResult & { /** * The underlying HTTP response. */ @@ -9498,14 +10954,14 @@ export type SshPublicKeysGetResponse = SshPublicKeyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyResource; + parsedBody: VirtualMachineCaptureResult; }; }; /** - * Contains response data for the generateKeyPair operation. + * Contains response data for the createOrUpdate operation. */ -export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult & { +export type VirtualMachinesCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -9518,14 +10974,14 @@ export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairRe /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeyGenerateKeyPairResult; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the update operation. */ -export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult & { +export type VirtualMachinesUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -9538,14 +10994,14 @@ export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupList /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult & { +export type VirtualMachinesGetResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -9558,14 +11014,14 @@ export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupLis /** * The response body as parsed JSON or XML */ - parsedBody: SshPublicKeysGroupListResult; + parsedBody: VirtualMachine; }; }; /** - * Contains response data for the get operation. + * Contains response data for the instanceView operation. */ -export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage & { +export type VirtualMachinesInstanceViewResponse = VirtualMachineInstanceView & { /** * The underlying HTTP response. */ @@ -9578,14 +11034,14 @@ export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionIm /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtensionImage; + parsedBody: VirtualMachineInstanceView; }; }; /** - * Contains response data for the listTypes operation. + * Contains response data for the list operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachinesListResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -9598,14 +11054,14 @@ export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachinesListAllResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -9618,14 +11074,14 @@ export type VirtualMachineExtensionImagesListVersionsResponse = Array & { +export type VirtualMachinesBeginUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -9778,14 +11234,14 @@ export type VirtualMachineImagesListResponse = Array & { +export type VirtualMachinesBeginAssessPatchesResponse = VirtualMachineAssessPatchesResult & { /** * The underlying HTTP response. */ @@ -9798,14 +11254,14 @@ export type VirtualMachineImagesListOffersResponse = Array & { +export type VirtualMachinesBeginInstallPatchesResponse = VirtualMachineInstallPatchesResult & { /** * The underlying HTTP response. */ @@ -9818,14 +11274,14 @@ export type VirtualMachineImagesListPublishersResponse = Array & { +export type VirtualMachinesBeginRunCommandResponse = RunCommandResult & { /** * The underlying HTTP response. */ @@ -9838,14 +11294,14 @@ export type VirtualMachineImagesListSkusResponse = Array & { +export type VirtualMachinesListNextResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -9878,14 +11334,14 @@ export type VirtualMachineImagesEdgeZoneListResponse = Array & { +export type VirtualMachinesListAllNextResponse = VirtualMachineListResult & { /** * The underlying HTTP response. */ @@ -9898,14 +11354,14 @@ export type VirtualMachineImagesEdgeZoneListOffersResponse = Array & { +export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleSetListResult & { /** * The underlying HTTP response. */ @@ -9918,14 +11374,14 @@ export type VirtualMachineImagesEdgeZoneListPublishersResponse = Array & { +export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleSet & { /** * The underlying HTTP response. */ @@ -9938,14 +11394,14 @@ export type VirtualMachineImagesEdgeZoneListSkusResponse = Array; + + /** + * 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 listNext operation. + */ +export type CloudServiceRoleInstancesListNextResponse = RoleInstanceListResult & { /** * The underlying HTTP response. */ @@ -13198,14 +14680,14 @@ export type GalleryImagesBeginUpdateResponse = GalleryImage & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImage; + parsedBody: RoleInstanceListResult; }; }; /** - * Contains response data for the listByGalleryNext operation. + * Contains response data for the get operation. */ -export type GalleryImagesListByGalleryNextResponse = GalleryImageList & { +export type CloudServiceRolesGetResponse = CloudServiceRole & { /** * The underlying HTTP response. */ @@ -13218,14 +14700,14 @@ export type GalleryImagesListByGalleryNextResponse = GalleryImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageList; + parsedBody: CloudServiceRole; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type GalleryImageVersionsCreateOrUpdateResponse = GalleryImageVersion & { +export type CloudServiceRolesListResponse = CloudServiceRoleListResult & { /** * The underlying HTTP response. */ @@ -13238,14 +14720,14 @@ export type GalleryImageVersionsCreateOrUpdateResponse = GalleryImageVersion & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageVersion; + parsedBody: CloudServiceRoleListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type GalleryImageVersionsUpdateResponse = GalleryImageVersion & { +export type CloudServiceRolesListNextResponse = CloudServiceRoleListResult & { /** * The underlying HTTP response. */ @@ -13258,14 +14740,14 @@ export type GalleryImageVersionsUpdateResponse = GalleryImageVersion & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageVersion; + parsedBody: CloudServiceRoleListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type GalleryImageVersionsGetResponse = GalleryImageVersion & { +export type CloudServicesCreateOrUpdateResponse = CloudService & { /** * The underlying HTTP response. */ @@ -13278,14 +14760,14 @@ export type GalleryImageVersionsGetResponse = GalleryImageVersion & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageVersion; + parsedBody: CloudService; }; }; /** - * Contains response data for the listByGalleryImage operation. + * Contains response data for the update operation. */ -export type GalleryImageVersionsListByGalleryImageResponse = GalleryImageVersionList & { +export type CloudServicesUpdateResponse = CloudService & { /** * The underlying HTTP response. */ @@ -13298,14 +14780,14 @@ export type GalleryImageVersionsListByGalleryImageResponse = GalleryImageVersion /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageVersionList; + parsedBody: CloudService; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type GalleryImageVersionsBeginCreateOrUpdateResponse = GalleryImageVersion & { +export type CloudServicesGetResponse = CloudService & { /** * The underlying HTTP response. */ @@ -13318,14 +14800,14 @@ export type GalleryImageVersionsBeginCreateOrUpdateResponse = GalleryImageVersio /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageVersion; + parsedBody: CloudService; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the getInstanceView operation. */ -export type GalleryImageVersionsBeginUpdateResponse = GalleryImageVersion & { +export type CloudServicesGetInstanceViewResponse = CloudServiceInstanceView & { /** * The underlying HTTP response. */ @@ -13338,14 +14820,14 @@ export type GalleryImageVersionsBeginUpdateResponse = GalleryImageVersion & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageVersion; + parsedBody: CloudServiceInstanceView; }; }; /** - * Contains response data for the listByGalleryImageNext operation. + * Contains response data for the listAll operation. */ -export type GalleryImageVersionsListByGalleryImageNextResponse = GalleryImageVersionList & { +export type CloudServicesListAllResponse = CloudServiceListResult & { /** * The underlying HTTP response. */ @@ -13358,14 +14840,14 @@ export type GalleryImageVersionsListByGalleryImageNextResponse = GalleryImageVer /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageVersionList; + parsedBody: CloudServiceListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type GalleryApplicationsCreateOrUpdateResponse = GalleryApplication & { +export type CloudServicesListResponse = CloudServiceListResult & { /** * The underlying HTTP response. */ @@ -13378,14 +14860,14 @@ export type GalleryApplicationsCreateOrUpdateResponse = GalleryApplication & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplication; + parsedBody: CloudServiceListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type GalleryApplicationsUpdateResponse = GalleryApplication & { +export type CloudServicesBeginCreateOrUpdateResponse = CloudService & { /** * The underlying HTTP response. */ @@ -13398,14 +14880,14 @@ export type GalleryApplicationsUpdateResponse = GalleryApplication & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplication; + parsedBody: CloudService; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type GalleryApplicationsGetResponse = GalleryApplication & { +export type CloudServicesBeginUpdateResponse = CloudService & { /** * The underlying HTTP response. */ @@ -13418,14 +14900,14 @@ export type GalleryApplicationsGetResponse = GalleryApplication & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplication; + parsedBody: CloudService; }; }; /** - * Contains response data for the listByGallery operation. + * Contains response data for the listAllNext operation. */ -export type GalleryApplicationsListByGalleryResponse = GalleryApplicationList & { +export type CloudServicesListAllNextResponse = CloudServiceListResult & { /** * The underlying HTTP response. */ @@ -13438,14 +14920,14 @@ export type GalleryApplicationsListByGalleryResponse = GalleryApplicationList & /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationList; + parsedBody: CloudServiceListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type GalleryApplicationsBeginCreateOrUpdateResponse = GalleryApplication & { +export type CloudServicesListNextResponse = CloudServiceListResult & { /** * The underlying HTTP response. */ @@ -13458,14 +14940,14 @@ export type GalleryApplicationsBeginCreateOrUpdateResponse = GalleryApplication /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplication; + parsedBody: CloudServiceListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the getUpdateDomain operation. */ -export type GalleryApplicationsBeginUpdateResponse = GalleryApplication & { +export type CloudServicesUpdateDomainGetUpdateDomainResponse = UpdateDomain & { /** * The underlying HTTP response. */ @@ -13478,14 +14960,14 @@ export type GalleryApplicationsBeginUpdateResponse = GalleryApplication & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplication; + parsedBody: UpdateDomain; }; }; /** - * Contains response data for the listByGalleryNext operation. + * Contains response data for the listUpdateDomains operation. */ -export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationList & { +export type CloudServicesUpdateDomainListUpdateDomainsResponse = UpdateDomainListResult & { /** * The underlying HTTP response. */ @@ -13498,14 +14980,14 @@ export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationLis /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationList; + parsedBody: UpdateDomainListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listUpdateDomainsNext operation. */ -export type GalleryApplicationVersionsCreateOrUpdateResponse = GalleryApplicationVersion & { +export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = UpdateDomainListResult & { /** * The underlying HTTP response. */ @@ -13518,14 +15000,14 @@ export type GalleryApplicationVersionsCreateOrUpdateResponse = GalleryApplicatio /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: UpdateDomainListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getOSVersion operation. */ -export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion & { +export type CloudServiceOperatingSystemsGetOSVersionResponse = OSVersion & { /** * The underlying HTTP response. */ @@ -13538,14 +15020,14 @@ export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: OSVersion; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listOSVersions operation. */ -export type GalleryApplicationVersionsGetResponse = GalleryApplicationVersion & { +export type CloudServiceOperatingSystemsListOSVersionsResponse = OSVersionListResult & { /** * The underlying HTTP response. */ @@ -13558,14 +15040,14 @@ export type GalleryApplicationVersionsGetResponse = GalleryApplicationVersion & /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: OSVersionListResult; }; }; /** - * Contains response data for the listByGalleryApplication operation. + * Contains response data for the getOSFamily operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationResponse = GalleryApplicationVersionList & { +export type CloudServiceOperatingSystemsGetOSFamilyResponse = OSFamily & { /** * The underlying HTTP response. */ @@ -13578,14 +15060,14 @@ export type GalleryApplicationVersionsListByGalleryApplicationResponse = Gallery /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersionList; + parsedBody: OSFamily; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listOSFamilies operation. */ -export type GalleryApplicationVersionsBeginCreateOrUpdateResponse = GalleryApplicationVersion & { +export type CloudServiceOperatingSystemsListOSFamiliesResponse = OSFamilyListResult & { /** * The underlying HTTP response. */ @@ -13598,14 +15080,14 @@ export type GalleryApplicationVersionsBeginCreateOrUpdateResponse = GalleryAppli /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: OSFamilyListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listOSVersionsNext operation. */ -export type GalleryApplicationVersionsBeginUpdateResponse = GalleryApplicationVersion & { +export type CloudServiceOperatingSystemsListOSVersionsNextResponse = OSVersionListResult & { /** * The underlying HTTP response. */ @@ -13618,14 +15100,14 @@ export type GalleryApplicationVersionsBeginUpdateResponse = GalleryApplicationVe /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersion; + parsedBody: OSVersionListResult; }; }; /** - * Contains response data for the listByGalleryApplicationNext operation. + * Contains response data for the listOSFamiliesNext operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList & { +export type CloudServiceOperatingSystemsListOSFamiliesNextResponse = OSFamilyListResult & { /** * The underlying HTTP response. */ @@ -13638,6 +15120,6 @@ export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = Gal /** * The response body as parsed JSON or XML */ - parsedBody: GalleryApplicationVersionList; + parsedBody: OSFamilyListResult; }; }; diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 1cd0b89b332c..06f0d8b6650c 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -2812,12 +2812,6 @@ export const DataDisk: msRest.CompositeMapper = { name: "Boolean" } }, - detachOption: { - serializedName: "detachOption", - type: { - name: "String" - } - }, diskIOPSReadWrite: { readOnly: true, serializedName: "diskIOPSReadWrite", @@ -2831,6 +2825,12 @@ export const DataDisk: msRest.CompositeMapper = { type: { name: "Number" } + }, + detachOption: { + serializedName: "detachOption", + type: { + name: "String" + } } } } @@ -4141,12 +4141,6 @@ export const VirtualMachine: msRest.CompositeMapper = { className: "SubResource" } }, - platformFaultDomain: { - serializedName: "properties.platformFaultDomain", - type: { - name: "Number" - } - }, priority: { serializedName: "properties.priority", type: { @@ -4214,6 +4208,12 @@ export const VirtualMachine: msRest.CompositeMapper = { name: "String" } }, + platformFaultDomain: { + serializedName: "properties.platformFaultDomain", + type: { + name: "Number" + } + }, resources: { readOnly: true, serializedName: "resources", @@ -4340,12 +4340,6 @@ export const VirtualMachineUpdate: msRest.CompositeMapper = { className: "SubResource" } }, - platformFaultDomain: { - serializedName: "properties.platformFaultDomain", - type: { - name: "Number" - } - }, priority: { serializedName: "properties.priority", type: { @@ -4413,6 +4407,12 @@ export const VirtualMachineUpdate: msRest.CompositeMapper = { name: "String" } }, + platformFaultDomain: { + serializedName: "properties.platformFaultDomain", + type: { + name: "Number" + } + }, identity: { serializedName: "identity", type: { @@ -6345,11 +6345,7 @@ export const VirtualMachineScaleSet: msRest.CompositeMapper = { orchestrationMode: { serializedName: "properties.orchestrationMode", type: { - name: "Enum", - allowedValues: [ - "Uniform", - "Flexible" - ] + name: "String" } }, identity: { @@ -11014,50 +11010,22 @@ export const GalleryArtifactSource: msRest.CompositeMapper = { } }; -export const ComputeOperationListResult: msRest.CompositeMapper = { - serializedName: "ComputeOperationListResult", +export const InstanceSku: msRest.CompositeMapper = { + serializedName: "InstanceSku", type: { name: "Composite", - className: "ComputeOperationListResult", + className: "InstanceSku", modelProperties: { - value: { + name: { readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeOperationValue" - } - } - } - } - } - } -}; - -export const AvailabilitySetListResult: msRest.CompositeMapper = { - serializedName: "AvailabilitySetListResult", - type: { - name: "Composite", - className: "AvailabilitySetListResult", - modelProperties: { - value: { - required: true, - serializedName: "", + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AvailabilitySet" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + tier: { + readOnly: true, + serializedName: "tier", type: { name: "String" } @@ -11066,20 +11034,21 @@ export const AvailabilitySetListResult: msRest.CompositeMapper = { } }; -export const VirtualMachineSizeListResult: msRest.CompositeMapper = { - serializedName: "VirtualMachineSizeListResult", +export const RoleInstanceNetworkProfile: msRest.CompositeMapper = { + serializedName: "RoleInstanceNetworkProfile", type: { name: "Composite", - className: "VirtualMachineSizeListResult", + className: "RoleInstanceNetworkProfile", modelProperties: { - value: { - serializedName: "", + networkInterfaces: { + readOnly: true, + serializedName: "networkInterfaces", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineSize" + className: "SubResource" } } } @@ -11088,177 +11057,1448 @@ export const VirtualMachineSizeListResult: msRest.CompositeMapper = { } }; -export const ProximityPlacementGroupListResult: msRest.CompositeMapper = { - serializedName: "ProximityPlacementGroupListResult", +export const ResourceInstanceViewStatus: msRest.CompositeMapper = { + serializedName: "ResourceInstanceViewStatus", type: { name: "Composite", - className: "ProximityPlacementGroupListResult", + className: "ResourceInstanceViewStatus", modelProperties: { - value: { - required: true, - serializedName: "", + code: { + readOnly: true, + serializedName: "code", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ProximityPlacementGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + displayStatus: { + readOnly: true, + serializedName: "displayStatus", type: { name: "String" } - } - } - } -}; - -export const DedicatedHostGroupListResult: msRest.CompositeMapper = { - serializedName: "DedicatedHostGroupListResult", - type: { - name: "Composite", - className: "DedicatedHostGroupListResult", - modelProperties: { - value: { - required: true, - serializedName: "", + }, + message: { + readOnly: true, + serializedName: "message", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHostGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + time: { + readOnly: true, + serializedName: "time", type: { - name: "String" + name: "DateTime" + } + }, + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: [ + "Info", + "Warning", + "Error" + ] } } } } }; -export const DedicatedHostListResult: msRest.CompositeMapper = { - serializedName: "DedicatedHostListResult", +export const RoleInstanceInstanceView: msRest.CompositeMapper = { + serializedName: "RoleInstanceInstanceView", type: { name: "Composite", - className: "DedicatedHostListResult", + className: "RoleInstanceInstanceView", modelProperties: { - value: { - required: true, - serializedName: "", + platformUpdateDomain: { + readOnly: true, + serializedName: "platformUpdateDomain", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHost" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + platformFaultDomain: { + readOnly: true, + serializedName: "platformFaultDomain", + type: { + name: "Number" + } + }, + privateId: { + readOnly: true, + serializedName: "privateId", type: { name: "String" } - } - } - } -}; - -export const SshPublicKeysGroupListResult: msRest.CompositeMapper = { - serializedName: "SshPublicKeysGroupListResult", - type: { - name: "Composite", - className: "SshPublicKeysGroupListResult", - modelProperties: { - value: { - required: true, - serializedName: "", + }, + statuses: { + readOnly: true, + serializedName: "statuses", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SshPublicKeyResource" + className: "ResourceInstanceViewStatus" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ListUsagesResult: msRest.CompositeMapper = { - serializedName: "ListUsagesResult", +export const RoleInstanceProperties: msRest.CompositeMapper = { + serializedName: "RoleInstanceProperties", type: { name: "Composite", - className: "ListUsagesResult", + className: "RoleInstanceProperties", modelProperties: { - value: { - required: true, - serializedName: "", + networkProfile: { + serializedName: "networkProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage" - } - } + name: "Composite", + className: "RoleInstanceNetworkProfile" } }, - nextLink: { - serializedName: "nextLink", + instanceView: { + serializedName: "instanceView", type: { - name: "String" + name: "Composite", + className: "RoleInstanceInstanceView" } } } } }; -export const VirtualMachineListResult: msRest.CompositeMapper = { - serializedName: "VirtualMachineListResult", +export const RoleInstance: msRest.CompositeMapper = { + serializedName: "RoleInstance", type: { name: "Composite", - className: "VirtualMachineListResult", + className: "RoleInstance", modelProperties: { - value: { - required: true, - serializedName: "", + id: { + readOnly: true, + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachine" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + 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: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfigurationProperties" + } + } + } + } +}; + +export const LoadBalancerConfigurationProperties: msRest.CompositeMapper = { + serializedName: "LoadBalancerConfigurationProperties", + type: { + name: "Composite", + className: "LoadBalancerConfigurationProperties", + modelProperties: { + frontendIPConfigurations: { + required: true, + serializedName: "frontendIPConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfiguration" + } + } + } + } + } + } +}; + +export const LoadBalancerConfiguration: msRest.CompositeMapper = { + serializedName: "LoadBalancerConfiguration", + type: { + name: "Composite", + className: "LoadBalancerConfiguration", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + properties: { + required: true, + 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" + } + }, + allowModelOverride: { + serializedName: "allowModelOverride", + 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" + } + }, + privateIds: { + readOnly: true, + serializedName: "privateIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + statuses: { + readOnly: true, + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceInstanceViewStatus" + } + } + } + } + } + } +}; + +export const RoleInstances: msRest.CompositeMapper = { + serializedName: "RoleInstances", + type: { + name: "Composite", + className: "RoleInstances", + modelProperties: { + roleInstances: { + required: true, + serializedName: "roleInstances", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const UpdateDomain: msRest.CompositeMapper = { + serializedName: "UpdateDomain", + type: { + name: "Composite", + className: "UpdateDomain", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const OSVersionProperties: msRest.CompositeMapper = { + serializedName: "OSVersionProperties", + type: { + name: "Composite", + className: "OSVersionProperties", + modelProperties: { + family: { + readOnly: true, + serializedName: "family", + type: { + name: "String" + } + }, + familyLabel: { + readOnly: true, + serializedName: "familyLabel", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + label: { + readOnly: true, + serializedName: "label", + type: { + name: "String" + } + }, + isDefault: { + readOnly: true, + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + isActive: { + readOnly: true, + serializedName: "isActive", + type: { + name: "Boolean" + } + } + } + } +}; + +export const OSVersion: msRest.CompositeMapper = { + serializedName: "OSVersion", + type: { + name: "Composite", + className: "OSVersion", + 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" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OSVersionProperties" + } + } + } + } +}; + +export const OSVersionPropertiesBase: msRest.CompositeMapper = { + serializedName: "OSVersionPropertiesBase", + type: { + name: "Composite", + className: "OSVersionPropertiesBase", + modelProperties: { + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + label: { + readOnly: true, + serializedName: "label", + type: { + name: "String" + } + }, + isDefault: { + readOnly: true, + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + isActive: { + readOnly: true, + serializedName: "isActive", + type: { + name: "Boolean" + } + } + } + } +}; + +export const OSFamilyProperties: msRest.CompositeMapper = { + serializedName: "OSFamilyProperties", + type: { + name: "Composite", + className: "OSFamilyProperties", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + label: { + readOnly: true, + serializedName: "label", + type: { + name: "String" + } + }, + versions: { + readOnly: true, + serializedName: "versions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OSVersionPropertiesBase" + } + } + } + } + } + } +}; + +export const OSFamily: msRest.CompositeMapper = { + serializedName: "OSFamily", + type: { + name: "Composite", + className: "OSFamily", + 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" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OSFamilyProperties" + } + } + } + } +}; + +export const ComputeOperationListResult: msRest.CompositeMapper = { + serializedName: "ComputeOperationListResult", + type: { + name: "Composite", + className: "ComputeOperationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeOperationValue" + } + } + } + } + } + } +}; + +export const AvailabilitySetListResult: msRest.CompositeMapper = { + serializedName: "AvailabilitySetListResult", + type: { + name: "Composite", + className: "AvailabilitySetListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AvailabilitySet" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineSizeListResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineSizeListResult", + type: { + name: "Composite", + className: "VirtualMachineSizeListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineSize" + } + } + } + } + } + } +}; + +export const ProximityPlacementGroupListResult: msRest.CompositeMapper = { + serializedName: "ProximityPlacementGroupListResult", + type: { + name: "Composite", + className: "ProximityPlacementGroupListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProximityPlacementGroup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DedicatedHostGroupListResult: msRest.CompositeMapper = { + serializedName: "DedicatedHostGroupListResult", + type: { + name: "Composite", + className: "DedicatedHostGroupListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DedicatedHostGroup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DedicatedHostListResult: msRest.CompositeMapper = { + serializedName: "DedicatedHostListResult", + type: { + name: "Composite", + className: "DedicatedHostListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DedicatedHost" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SshPublicKeysGroupListResult: msRest.CompositeMapper = { + serializedName: "SshPublicKeysGroupListResult", + type: { + name: "Composite", + className: "SshPublicKeysGroupListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKeyResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListUsagesResult: msRest.CompositeMapper = { + serializedName: "ListUsagesResult", + type: { + name: "Composite", + className: "ListUsagesResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineListResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineListResult", + type: { + name: "Composite", + className: "VirtualMachineListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachine" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } } }; @@ -11897,3 +13137,177 @@ export const GalleryApplicationVersionList: 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" + } + } + } + } +}; + +export const OSVersionListResult: msRest.CompositeMapper = { + serializedName: "OSVersionListResult", + type: { + name: "Composite", + className: "OSVersionListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OSVersion" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OSFamilyListResult: msRest.CompositeMapper = { + serializedName: "OSFamilyListResult", + type: { + name: "Composite", + className: "OSFamilyListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OSFamily" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 5d388e1222e1..357ab4598242 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -67,6 +67,18 @@ export const apiVersion3: msRest.OperationQueryParameter = { } } }; +export const apiVersion4: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-03-01', + type: { + name: "String" + } + } +}; export const availabilitySetName: msRest.OperationURLParameter = { parameterPath: "availabilitySetName", mapper: { @@ -77,6 +89,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: { @@ -346,6 +368,26 @@ export const orderby: msRest.OperationQueryParameter = { } } }; +export const osFamilyName: msRest.OperationURLParameter = { + parameterPath: "osFamilyName", + mapper: { + required: true, + serializedName: "osFamilyName", + type: { + name: "String" + } + } +}; +export const osVersionName: msRest.OperationURLParameter = { + parameterPath: "osVersionName", + mapper: { + required: true, + serializedName: "osVersionName", + type: { + name: "String" + } + } +}; export const platformUpdateDomain: msRest.OperationQueryParameter = { parameterPath: "platformUpdateDomain", mapper: { @@ -406,6 +448,26 @@ export const restorePointCollectionName: 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: { @@ -527,6 +589,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 c3bca77d63b4..5b6236d57ae6 100644 --- a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,6 +107,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts index d3ba6d310b0c..fc4d5d806864 100644 --- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts +++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -52,6 +64,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -92,6 +105,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts index 550b4646253b..10878062051f 100644 --- a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts +++ b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,6 +107,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts index c3d99d39e8ff..01be0b9b93d9 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -90,6 +103,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index 1eb94f965d54..078a966e3c4e 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,6 +107,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts index c3d99d39e8ff..01be0b9b93d9 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -90,6 +103,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index c3d99d39e8ff..01be0b9b93d9 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -90,6 +103,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts index d62b5199ad8b..1b72713d45d7 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,6 +107,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index 1204512c928b..bcb7923a2681 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -90,6 +103,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index c3d99d39e8ff..01be0b9b93d9 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -90,6 +103,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts index a8f4db06b6c2..63b3607e96fd 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -90,6 +103,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts index 0cb4e5fd4226..f629ead647b2 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,6 +107,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts index 593a26ba4c44..70842157a38e 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts @@ -22,6 +22,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -51,6 +63,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -90,6 +103,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index c9a2a3c30329..4c34c86a7a48 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -94,6 +107,10 @@ export { LastPatchInstallationSummary, LinuxConfiguration, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts index 4af4f95ebcaa..0c8dd138859d 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts @@ -23,6 +23,18 @@ export { BootDiagnostics, BootDiagnosticsInstanceView, CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, CreationData, DataDisk, DataDiskImage, @@ -54,6 +66,7 @@ export { EncryptionSettingsCollection, EncryptionSettingsElement, ExtendedLocation, + Extension, Gallery, GalleryApplication, GalleryApplicationUpdate, @@ -95,6 +108,10 @@ export { LinuxConfiguration, LinuxParameters, LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, MaintenanceRedeployStatus, ManagedDiskParameters, NetworkInterfaceReference, diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts new file mode 100644 index 000000000000..e717de284ebb --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts @@ -0,0 +1,361 @@ +/* + * 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/cloudServiceOperatingSystemsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a CloudServiceOperatingSystems. */ +export class CloudServiceOperatingSystems { + private readonly client: ComputeManagementClientContext; + + /** + * Create a CloudServiceOperatingSystems. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets properties of a guest operating system version that can be specified in the XML service + * configuration (.cscfg) for a cloud service. + * @param location Name of the location that the OS version pertains to. + * @param osVersionName Name of the OS version. + * @param [options] The optional parameters + * @returns Promise + */ + getOSVersion(location: string, osVersionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Name of the location that the OS version pertains to. + * @param osVersionName Name of the OS version. + * @param callback The callback + */ + getOSVersion(location: string, osVersionName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Name of the location that the OS version pertains to. + * @param osVersionName Name of the OS version. + * @param options The optional parameters + * @param callback The callback + */ + getOSVersion(location: string, osVersionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOSVersion(location: string, osVersionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + osVersionName, + options + }, + getOSVersionOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all guest operating system versions available to be specified in the XML service + * configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the + * next page of OS versions. Do this till nextLink is null to fetch all the OS versions. + * @param location Name of the location that the OS versions pertain to. + * @param [options] The optional parameters + * @returns Promise + */ + listOSVersions(location: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Name of the location that the OS versions pertain to. + * @param callback The callback + */ + listOSVersions(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location Name of the location that the OS versions pertain to. + * @param options The optional parameters + * @param callback The callback + */ + listOSVersions(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOSVersions(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listOSVersionsOperationSpec, + callback) as Promise; + } + + /** + * Gets properties of a guest operating system family that can be specified in the XML service + * configuration (.cscfg) for a cloud service. + * @param location Name of the location that the OS family pertains to. + * @param osFamilyName Name of the OS family. + * @param [options] The optional parameters + * @returns Promise + */ + getOSFamily(location: string, osFamilyName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Name of the location that the OS family pertains to. + * @param osFamilyName Name of the OS family. + * @param callback The callback + */ + getOSFamily(location: string, osFamilyName: string, callback: msRest.ServiceCallback): void; + /** + * @param location Name of the location that the OS family pertains to. + * @param osFamilyName Name of the OS family. + * @param options The optional parameters + * @param callback The callback + */ + getOSFamily(location: string, osFamilyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOSFamily(location: string, osFamilyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + osFamilyName, + options + }, + getOSFamilyOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all guest operating system families available to be specified in the XML service + * configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the + * next page of OS Families. Do this till nextLink is null to fetch all the OS Families. + * @param location Name of the location that the OS families pertain to. + * @param [options] The optional parameters + * @returns Promise + */ + listOSFamilies(location: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Name of the location that the OS families pertain to. + * @param callback The callback + */ + listOSFamilies(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location Name of the location that the OS families pertain to. + * @param options The optional parameters + * @param callback The callback + */ + listOSFamilies(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOSFamilies(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listOSFamiliesOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all guest operating system versions available to be specified in the XML service + * configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the + * next page of OS versions. Do this till nextLink is null to fetch all the OS versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listOSVersionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listOSVersionsNext(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 + */ + listOSVersionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOSVersionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listOSVersionsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of all guest operating system families available to be specified in the XML service + * configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the + * next page of OS Families. Do this till nextLink is null to fetch all the OS Families. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listOSFamiliesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listOSFamiliesNext(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 + */ + listOSFamiliesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOSFamiliesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listOSFamiliesNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOSVersionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", + urlParameters: [ + Parameters.location0, + Parameters.osVersionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OSVersion + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOSVersionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", + urlParameters: [ + Parameters.location0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OSVersionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOSFamilyOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", + urlParameters: [ + Parameters.location0, + Parameters.osFamilyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OSFamily + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOSFamiliesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", + urlParameters: [ + Parameters.location0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OSFamilyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOSVersionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OSVersionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOSFamiliesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OSFamilyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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..fba11c0a2770 --- /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.apiVersion4, + 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.apiVersion4 + ], + 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.apiVersion4, + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4, + 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..baa01ee0f574 --- /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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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..79853c5effb6 --- /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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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..42563572d56d --- /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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + 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.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UpdateDomainListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index 12e1e7b2fac3..10091beec86b 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -40,3 +40,8 @@ export * from "./galleryImages"; export * from "./galleryImageVersions"; export * from "./galleryApplications"; export * from "./galleryApplicationVersions"; +export * from "./cloudServiceRoleInstances"; +export * from "./cloudServiceRoles"; +export * from "./cloudServices"; +export * from "./cloudServicesUpdateDomain"; +export * from "./cloudServiceOperatingSystems";