import * as coreClient from "@azure/core-client" ; import * as coreAuth from "@azure/core-auth" ; import { OperationsImpl , AvailabilitySetsImpl , ProximityPlacementGroupsImpl , DedicatedHostGroupsImpl , DedicatedHostsImpl , SshPublicKeysImpl , VirtualMachineExtensionImagesImpl , VirtualMachineExtensionsImpl , VirtualMachineImagesImpl , VirtualMachineImagesEdgeZoneImpl , UsageOperationsImpl , VirtualMachinesImpl , VirtualMachineScaleSetsImpl , VirtualMachineSizesImpl , ImagesImpl , RestorePointCollectionsImpl , RestorePointsImpl , CapacityReservationGroupsImpl , CapacityReservationsImpl , VirtualMachineScaleSetExtensionsImpl , VirtualMachineScaleSetRollingUpgradesImpl , VirtualMachineScaleSetVMExtensionsImpl , VirtualMachineScaleSetVMsImpl , LogAnalyticsImpl , VirtualMachineRunCommandsImpl , VirtualMachineScaleSetVMRunCommandsImpl , ResourceSkusImpl , DisksImpl , SnapshotsImpl , DiskEncryptionSetsImpl , DiskAccessesImpl , DiskRestorePointOperationsImpl , GalleriesImpl , GalleryImagesImpl , GalleryImageVersionsImpl , GalleryApplicationsImpl , GalleryApplicationVersionsImpl , GallerySharingProfileImpl , SharedGalleriesImpl , SharedGalleryImagesImpl , SharedGalleryImageVersionsImpl , CommunityGalleriesImpl , CommunityGalleryImagesImpl , CommunityGalleryImageVersionsImpl , CloudServiceRoleInstancesImpl , CloudServiceRolesImpl , CloudServicesImpl , CloudServicesUpdateDomainImpl , CloudServiceOperatingSystemsImpl } from "./operations" ; import { Operations , AvailabilitySets , ProximityPlacementGroups , DedicatedHostGroups , DedicatedHosts , SshPublicKeys , VirtualMachineExtensionImages , VirtualMachineExtensions , VirtualMachineImages , VirtualMachineImagesEdgeZone , UsageOperations , VirtualMachines , VirtualMachineScaleSets , VirtualMachineSizes , Images , RestorePointCollections , RestorePoints , CapacityReservationGroups , CapacityReservations , VirtualMachineScaleSetExtensions , VirtualMachineScaleSetRollingUpgrades , VirtualMachineScaleSetVMExtensions , VirtualMachineScaleSetVMs , LogAnalytics , VirtualMachineRunCommands , VirtualMachineScaleSetVMRunCommands , ResourceSkus , Disks , Snapshots , DiskEncryptionSets , DiskAccesses , DiskRestorePointOperations , Galleries , GalleryImages , GalleryImageVersions , GalleryApplications , GalleryApplicationVersions , GallerySharingProfile , SharedGalleries , SharedGalleryImages , SharedGalleryImageVersions , CommunityGalleries , CommunityGalleryImages , CommunityGalleryImageVersions , CloudServiceRoleInstances , CloudServiceRoles , CloudServices , CloudServicesUpdateDomain , CloudServiceOperatingSystems } from "./operationsInterfaces" ; import { ComputeManagementClientOptionalParams } from "./models" ; export class ComputeManagementClient extends coreClient . ServiceClient { $host : string ; subscriptionId : string ; param credentials param subscriptionId param options constructor ( credentials , subscriptionId , options ? ) { if ( credentials === undefined ) { throw new Error ( "'credentials' cannot be null" ) ; } if ( subscriptionId === undefined ) { throw new Error ( "'subscriptionId' cannot be null" ) ; } if ( ! options ) { options = { } ; } const defaults = { requestContentType : "application/json; charset=utf-8" , credential : credentials } ; const packageDetails = `azsdk-js-compute-resource-manager/1.0.0-beta.1` ; const userAgentPrefix = options . userAgentOptions && options . userAgentOptions . userAgentPrefix ? `${ options . userAgentOptions . userAgentPrefix } ${ packageDetails }` : `${ packageDetails }` ; const optionsWithDefaults = { ... defaults , ... options , userAgentOptions : { userAgentPrefix } , baseUri : options . endpoint || "https://management.azure.com" } ; super ( optionsWithDefaults ) ; this . subscriptionId = subscriptionId ; this . $host = options . $host || "https://management.azure.com" ; this . operations = new OperationsImpl ( this ) ; this . availabilitySets = new AvailabilitySetsImpl ( this ) ; this . proximityPlacementGroups = new ProximityPlacementGroupsImpl ( this ) ; this . dedicatedHostGroups = new DedicatedHostGroupsImpl ( this ) ; this . dedicatedHosts = new DedicatedHostsImpl ( this ) ; this . sshPublicKeys = new SshPublicKeysImpl ( this ) ; this . virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl ( this ) ; this . virtualMachineExtensions = new VirtualMachineExtensionsImpl ( this ) ; this . virtualMachineImages = new VirtualMachineImagesImpl ( this ) ; this . virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl ( this ) ; this . usageOperations = new UsageOperationsImpl ( this ) ; this . virtualMachines = new VirtualMachinesImpl ( this ) ; this . virtualMachineScaleSets = new VirtualMachineScaleSetsImpl ( this ) ; this . virtualMachineSizes = new VirtualMachineSizesImpl ( this ) ; this . images = new ImagesImpl ( this ) ; this . restorePointCollections = new RestorePointCollectionsImpl ( this ) ; this . restorePoints = new RestorePointsImpl ( this ) ; this . capacityReservationGroups = new CapacityReservationGroupsImpl ( this ) ; this . capacityReservations = new CapacityReservationsImpl ( this ) ; this . virtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsImpl ( this ) ; this . virtualMachineScaleSetRollingUpgrades = new VirtualMachineScaleSetRollingUpgradesImpl ( this ) ; this . virtualMachineScaleSetVMExtensions = new VirtualMachineScaleSetVMExtensionsImpl ( this ) ; this . virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl ( this ) ; this . logAnalytics = new LogAnalyticsImpl ( this ) ; this . virtualMachineRunCommands = new VirtualMachineRunCommandsImpl ( this ) ; this . virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl ( this ) ; this . resourceSkus = new ResourceSkusImpl ( this ) ; this . disks = new DisksImpl ( this ) ; this . snapshots = new SnapshotsImpl ( this ) ; this . diskEncryptionSets = new DiskEncryptionSetsImpl ( this ) ; this . diskAccesses = new DiskAccessesImpl ( this ) ; this . diskRestorePointOperations = new DiskRestorePointOperationsImpl ( this ) ; this . galleries = new GalleriesImpl ( this ) ; this . galleryImages = new GalleryImagesImpl ( this ) ; this . galleryImageVersions = new GalleryImageVersionsImpl ( this ) ; this . galleryApplications = new GalleryApplicationsImpl ( this ) ; this . galleryApplicationVersions = new GalleryApplicationVersionsImpl ( this ) ; this . gallerySharingProfile = new GallerySharingProfileImpl ( this ) ; this . sharedGalleries = new SharedGalleriesImpl ( this ) ; this . sharedGalleryImages = new SharedGalleryImagesImpl ( this ) ; this . sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl ( this ) ; this . communityGalleries = new CommunityGalleriesImpl ( this ) ; this . communityGalleryImages = new CommunityGalleryImagesImpl ( this ) ; this . communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl ( this ) ; this . cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl ( this ) ; this . cloudServiceRoles = new CloudServiceRolesImpl ( this ) ; this . cloudServices = new CloudServicesImpl ( this ) ; this . cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl ( this ) ; this . cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl ( this ) ; } operations : Operations ; availabilitySets : AvailabilitySets ; proximityPlacementGroups : ProximityPlacementGroups ; dedicatedHostGroups : DedicatedHostGroups ; dedicatedHosts : DedicatedHosts ; sshPublicKeys : SshPublicKeys ; virtualMachineExtensionImages : VirtualMachineExtensionImages ; virtualMachineExtensions : VirtualMachineExtensions ; virtualMachineImages : VirtualMachineImages ; virtualMachineImagesEdgeZone : VirtualMachineImagesEdgeZone ; usageOperations : UsageOperations ; virtualMachines : VirtualMachines ; virtualMachineScaleSets : VirtualMachineScaleSets ; virtualMachineSizes : VirtualMachineSizes ; images : Images ; restorePointCollections : RestorePointCollections ; restorePoints : RestorePoints ; capacityReservationGroups : CapacityReservationGroups ; capacityReservations : CapacityReservations ; virtualMachineScaleSetExtensions : VirtualMachineScaleSetExtensions ; virtualMachineScaleSetRollingUpgrades : VirtualMachineScaleSetRollingUpgrades ; virtualMachineScaleSetVMExtensions : VirtualMachineScaleSetVMExtensions ; virtualMachineScaleSetVMs : VirtualMachineScaleSetVMs ; logAnalytics : LogAnalytics ; virtualMachineRunCommands : VirtualMachineRunCommands ; virtualMachineScaleSetVMRunCommands : VirtualMachineScaleSetVMRunCommands ; resourceSkus : ResourceSkus ; disks : Disks ; snapshots : Snapshots ; diskEncryptionSets : DiskEncryptionSets ; diskAccesses : DiskAccesses ; diskRestorePointOperations : DiskRestorePointOperations ; galleries : Galleries ; galleryImages : GalleryImages ; galleryImageVersions : GalleryImageVersions ; galleryApplications : GalleryApplications ; galleryApplicationVersions : GalleryApplicationVersions ; gallerySharingProfile : GallerySharingProfile ; sharedGalleries : SharedGalleries ; sharedGalleryImages : SharedGalleryImages ; sharedGalleryImageVersions : SharedGalleryImageVersions ; communityGalleries : CommunityGalleries ; communityGalleryImages : CommunityGalleryImages ; communityGalleryImageVersions : CommunityGalleryImageVersions ; cloudServiceRoleInstances : CloudServiceRoleInstances ; cloudServiceRoles : CloudServiceRoles ; cloudServices : CloudServices ; cloudServicesUpdateDomain : CloudServicesUpdateDomain ; cloudServiceOperatingSystems : CloudServiceOperatingSystems ; }