@azure/arm-compute 22.3.0 → 22.3.1-alpha.20250128.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/dist/browser/computeManagementClient.js +1 -1
- package/dist/browser/computeManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +0 -7
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/commonjs/computeManagementClient.js +1 -1
- package/dist/commonjs/computeManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +0 -7
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/esm/computeManagementClient.js +1 -1
- package/dist/esm/computeManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +0 -7
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/react-native/computeManagementClient.js +1 -1
- package/dist/react-native/computeManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +0 -7
- package/dist/react-native/lroImpl.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -32,7 +32,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials,
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-compute/22.3.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-compute/22.3.1`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeManagementClient.js","sourceRoot":"","sources":["../../src/computeManagementClient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I,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,6BAA6B,GAAG,IAAI,iCAAiC,CACxE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;IACJ,CAAC;CAsDF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n UsageOperationsImpl,\n VirtualMachineSizesImpl,\n VirtualMachineScaleSetsImpl,\n VirtualMachineScaleSetExtensionsImpl,\n VirtualMachineScaleSetRollingUpgradesImpl,\n VirtualMachineScaleSetVMExtensionsImpl,\n VirtualMachineScaleSetVMsImpl,\n VirtualMachineExtensionsImpl,\n VirtualMachinesImpl,\n VirtualMachineImagesImpl,\n VirtualMachineImagesEdgeZoneImpl,\n VirtualMachineExtensionImagesImpl,\n AvailabilitySetsImpl,\n ProximityPlacementGroupsImpl,\n DedicatedHostGroupsImpl,\n DedicatedHostsImpl,\n SshPublicKeysImpl,\n ImagesImpl,\n RestorePointCollectionsImpl,\n RestorePointsImpl,\n CapacityReservationGroupsImpl,\n CapacityReservationsImpl,\n LogAnalyticsImpl,\n VirtualMachineRunCommandsImpl,\n VirtualMachineScaleSetVMRunCommandsImpl,\n DisksImpl,\n DiskAccessesImpl,\n DiskEncryptionSetsImpl,\n DiskRestorePointOperationsImpl,\n SnapshotsImpl,\n ResourceSkusImpl,\n GalleriesImpl,\n GalleryImagesImpl,\n GalleryImageVersionsImpl,\n GalleryApplicationsImpl,\n GalleryApplicationVersionsImpl,\n SoftDeletedResourceImpl,\n GallerySharingProfileImpl,\n GalleryInVMAccessControlProfilesImpl,\n GalleryInVMAccessControlProfileVersionsImpl,\n SharedGalleriesImpl,\n SharedGalleryImagesImpl,\n SharedGalleryImageVersionsImpl,\n CommunityGalleriesImpl,\n CommunityGalleryImagesImpl,\n CommunityGalleryImageVersionsImpl,\n CloudServiceRoleInstancesImpl,\n CloudServiceRolesImpl,\n CloudServicesImpl,\n CloudServicesUpdateDomainImpl,\n CloudServiceOperatingSystemsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n UsageOperations,\n VirtualMachineSizes,\n VirtualMachineScaleSets,\n VirtualMachineScaleSetExtensions,\n VirtualMachineScaleSetRollingUpgrades,\n VirtualMachineScaleSetVMExtensions,\n VirtualMachineScaleSetVMs,\n VirtualMachineExtensions,\n VirtualMachines,\n VirtualMachineImages,\n VirtualMachineImagesEdgeZone,\n VirtualMachineExtensionImages,\n AvailabilitySets,\n ProximityPlacementGroups,\n DedicatedHostGroups,\n DedicatedHosts,\n SshPublicKeys,\n Images,\n RestorePointCollections,\n RestorePoints,\n CapacityReservationGroups,\n CapacityReservations,\n LogAnalytics,\n VirtualMachineRunCommands,\n VirtualMachineScaleSetVMRunCommands,\n Disks,\n DiskAccesses,\n DiskEncryptionSets,\n DiskRestorePointOperations,\n Snapshots,\n ResourceSkus,\n Galleries,\n GalleryImages,\n GalleryImageVersions,\n GalleryApplications,\n GalleryApplicationVersions,\n SoftDeletedResource,\n GallerySharingProfile,\n GalleryInVMAccessControlProfiles,\n GalleryInVMAccessControlProfileVersions,\n SharedGalleries,\n SharedGalleryImages,\n SharedGalleryImageVersions,\n CommunityGalleries,\n CommunityGalleryImages,\n CommunityGalleryImageVersions,\n CloudServiceRoleInstances,\n CloudServiceRoles,\n CloudServices,\n CloudServicesUpdateDomain,\n CloudServiceOperatingSystems,\n} from \"./operationsInterfaces/index.js\";\nimport { ComputeManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ComputeManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ComputeManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ComputeManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ComputeManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-compute/22.3.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.operations = new OperationsImpl(this);\n this.usageOperations = new UsageOperationsImpl(this);\n this.virtualMachineSizes = new VirtualMachineSizesImpl(this);\n this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);\n this.virtualMachineScaleSetExtensions =\n new VirtualMachineScaleSetExtensionsImpl(this);\n this.virtualMachineScaleSetRollingUpgrades =\n new VirtualMachineScaleSetRollingUpgradesImpl(this);\n this.virtualMachineScaleSetVMExtensions =\n new VirtualMachineScaleSetVMExtensionsImpl(this);\n this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);\n this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.virtualMachineImages = new VirtualMachineImagesImpl(this);\n this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(\n this,\n );\n this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(\n this,\n );\n this.availabilitySets = new AvailabilitySetsImpl(this);\n this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);\n this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);\n this.dedicatedHosts = new DedicatedHostsImpl(this);\n this.sshPublicKeys = new SshPublicKeysImpl(this);\n this.images = new ImagesImpl(this);\n this.restorePointCollections = new RestorePointCollectionsImpl(this);\n this.restorePoints = new RestorePointsImpl(this);\n this.capacityReservationGroups = new CapacityReservationGroupsImpl(this);\n this.capacityReservations = new CapacityReservationsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);\n this.virtualMachineScaleSetVMRunCommands =\n new VirtualMachineScaleSetVMRunCommandsImpl(this);\n this.disks = new DisksImpl(this);\n this.diskAccesses = new DiskAccessesImpl(this);\n this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);\n this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this);\n this.snapshots = new SnapshotsImpl(this);\n this.resourceSkus = new ResourceSkusImpl(this);\n this.galleries = new GalleriesImpl(this);\n this.galleryImages = new GalleryImagesImpl(this);\n this.galleryImageVersions = new GalleryImageVersionsImpl(this);\n this.galleryApplications = new GalleryApplicationsImpl(this);\n this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);\n this.softDeletedResource = new SoftDeletedResourceImpl(this);\n this.gallerySharingProfile = new GallerySharingProfileImpl(this);\n this.galleryInVMAccessControlProfiles =\n new GalleryInVMAccessControlProfilesImpl(this);\n this.galleryInVMAccessControlProfileVersions =\n new GalleryInVMAccessControlProfileVersionsImpl(this);\n this.sharedGalleries = new SharedGalleriesImpl(this);\n this.sharedGalleryImages = new SharedGalleryImagesImpl(this);\n this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);\n this.communityGalleries = new CommunityGalleriesImpl(this);\n this.communityGalleryImages = new CommunityGalleryImagesImpl(this);\n this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(\n this,\n );\n this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);\n this.cloudServiceRoles = new CloudServiceRolesImpl(this);\n this.cloudServices = new CloudServicesImpl(this);\n this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);\n this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(\n this,\n );\n }\n\n operations: Operations;\n usageOperations: UsageOperations;\n virtualMachineSizes: VirtualMachineSizes;\n virtualMachineScaleSets: VirtualMachineScaleSets;\n virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions;\n virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades;\n virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions;\n virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs;\n virtualMachineExtensions: VirtualMachineExtensions;\n virtualMachines: VirtualMachines;\n virtualMachineImages: VirtualMachineImages;\n virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone;\n virtualMachineExtensionImages: VirtualMachineExtensionImages;\n availabilitySets: AvailabilitySets;\n proximityPlacementGroups: ProximityPlacementGroups;\n dedicatedHostGroups: DedicatedHostGroups;\n dedicatedHosts: DedicatedHosts;\n sshPublicKeys: SshPublicKeys;\n images: Images;\n restorePointCollections: RestorePointCollections;\n restorePoints: RestorePoints;\n capacityReservationGroups: CapacityReservationGroups;\n capacityReservations: CapacityReservations;\n logAnalytics: LogAnalytics;\n virtualMachineRunCommands: VirtualMachineRunCommands;\n virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands;\n disks: Disks;\n diskAccesses: DiskAccesses;\n diskEncryptionSets: DiskEncryptionSets;\n diskRestorePointOperations: DiskRestorePointOperations;\n snapshots: Snapshots;\n resourceSkus: ResourceSkus;\n galleries: Galleries;\n galleryImages: GalleryImages;\n galleryImageVersions: GalleryImageVersions;\n galleryApplications: GalleryApplications;\n galleryApplicationVersions: GalleryApplicationVersions;\n softDeletedResource: SoftDeletedResource;\n gallerySharingProfile: GallerySharingProfile;\n galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles;\n galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions;\n sharedGalleries: SharedGalleries;\n sharedGalleryImages: SharedGalleryImages;\n sharedGalleryImageVersions: SharedGalleryImageVersions;\n communityGalleries: CommunityGalleries;\n communityGalleryImages: CommunityGalleryImages;\n communityGalleryImageVersions: CommunityGalleryImageVersions;\n cloudServiceRoleInstances: CloudServiceRoleInstances;\n cloudServiceRoles: CloudServiceRoles;\n cloudServices: CloudServices;\n cloudServicesUpdateDomain: CloudServicesUpdateDomain;\n cloudServiceOperatingSystems: CloudServiceOperatingSystems;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"computeManagementClient.js","sourceRoot":"","sources":["../../src/computeManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,yCAAyC,EACzC,sCAAsC,EACtC,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,wBAAwB,EACxB,gCAAgC,EAChC,iCAAiC,EACjC,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,2BAA2B,EAC3B,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB,EAChB,6BAA6B,EAC7B,uCAAuC,EACvC,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,oCAAoC,EACpC,2CAA2C,EAC3C,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,6BAA6B,EAC7B,qBAAqB,EACrB,iBAAiB,EACjB,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,uBAAuB,CAAC;AAyD/B,MAAM,OAAO,uBAAwB,SAAQ,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C,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,6BAA6B,GAAG,IAAI,iCAAiC,CACxE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;IACJ,CAAC;CAsDF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n UsageOperationsImpl,\n VirtualMachineSizesImpl,\n VirtualMachineScaleSetsImpl,\n VirtualMachineScaleSetExtensionsImpl,\n VirtualMachineScaleSetRollingUpgradesImpl,\n VirtualMachineScaleSetVMExtensionsImpl,\n VirtualMachineScaleSetVMsImpl,\n VirtualMachineExtensionsImpl,\n VirtualMachinesImpl,\n VirtualMachineImagesImpl,\n VirtualMachineImagesEdgeZoneImpl,\n VirtualMachineExtensionImagesImpl,\n AvailabilitySetsImpl,\n ProximityPlacementGroupsImpl,\n DedicatedHostGroupsImpl,\n DedicatedHostsImpl,\n SshPublicKeysImpl,\n ImagesImpl,\n RestorePointCollectionsImpl,\n RestorePointsImpl,\n CapacityReservationGroupsImpl,\n CapacityReservationsImpl,\n LogAnalyticsImpl,\n VirtualMachineRunCommandsImpl,\n VirtualMachineScaleSetVMRunCommandsImpl,\n DisksImpl,\n DiskAccessesImpl,\n DiskEncryptionSetsImpl,\n DiskRestorePointOperationsImpl,\n SnapshotsImpl,\n ResourceSkusImpl,\n GalleriesImpl,\n GalleryImagesImpl,\n GalleryImageVersionsImpl,\n GalleryApplicationsImpl,\n GalleryApplicationVersionsImpl,\n SoftDeletedResourceImpl,\n GallerySharingProfileImpl,\n GalleryInVMAccessControlProfilesImpl,\n GalleryInVMAccessControlProfileVersionsImpl,\n SharedGalleriesImpl,\n SharedGalleryImagesImpl,\n SharedGalleryImageVersionsImpl,\n CommunityGalleriesImpl,\n CommunityGalleryImagesImpl,\n CommunityGalleryImageVersionsImpl,\n CloudServiceRoleInstancesImpl,\n CloudServiceRolesImpl,\n CloudServicesImpl,\n CloudServicesUpdateDomainImpl,\n CloudServiceOperatingSystemsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n UsageOperations,\n VirtualMachineSizes,\n VirtualMachineScaleSets,\n VirtualMachineScaleSetExtensions,\n VirtualMachineScaleSetRollingUpgrades,\n VirtualMachineScaleSetVMExtensions,\n VirtualMachineScaleSetVMs,\n VirtualMachineExtensions,\n VirtualMachines,\n VirtualMachineImages,\n VirtualMachineImagesEdgeZone,\n VirtualMachineExtensionImages,\n AvailabilitySets,\n ProximityPlacementGroups,\n DedicatedHostGroups,\n DedicatedHosts,\n SshPublicKeys,\n Images,\n RestorePointCollections,\n RestorePoints,\n CapacityReservationGroups,\n CapacityReservations,\n LogAnalytics,\n VirtualMachineRunCommands,\n VirtualMachineScaleSetVMRunCommands,\n Disks,\n DiskAccesses,\n DiskEncryptionSets,\n DiskRestorePointOperations,\n Snapshots,\n ResourceSkus,\n Galleries,\n GalleryImages,\n GalleryImageVersions,\n GalleryApplications,\n GalleryApplicationVersions,\n SoftDeletedResource,\n GallerySharingProfile,\n GalleryInVMAccessControlProfiles,\n GalleryInVMAccessControlProfileVersions,\n SharedGalleries,\n SharedGalleryImages,\n SharedGalleryImageVersions,\n CommunityGalleries,\n CommunityGalleryImages,\n CommunityGalleryImageVersions,\n CloudServiceRoleInstances,\n CloudServiceRoles,\n CloudServices,\n CloudServicesUpdateDomain,\n CloudServiceOperatingSystems,\n} from \"./operationsInterfaces/index.js\";\nimport { ComputeManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ComputeManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ComputeManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ComputeManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ComputeManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-compute/22.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.operations = new OperationsImpl(this);\n this.usageOperations = new UsageOperationsImpl(this);\n this.virtualMachineSizes = new VirtualMachineSizesImpl(this);\n this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);\n this.virtualMachineScaleSetExtensions =\n new VirtualMachineScaleSetExtensionsImpl(this);\n this.virtualMachineScaleSetRollingUpgrades =\n new VirtualMachineScaleSetRollingUpgradesImpl(this);\n this.virtualMachineScaleSetVMExtensions =\n new VirtualMachineScaleSetVMExtensionsImpl(this);\n this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);\n this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.virtualMachineImages = new VirtualMachineImagesImpl(this);\n this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(\n this,\n );\n this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(\n this,\n );\n this.availabilitySets = new AvailabilitySetsImpl(this);\n this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);\n this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);\n this.dedicatedHosts = new DedicatedHostsImpl(this);\n this.sshPublicKeys = new SshPublicKeysImpl(this);\n this.images = new ImagesImpl(this);\n this.restorePointCollections = new RestorePointCollectionsImpl(this);\n this.restorePoints = new RestorePointsImpl(this);\n this.capacityReservationGroups = new CapacityReservationGroupsImpl(this);\n this.capacityReservations = new CapacityReservationsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);\n this.virtualMachineScaleSetVMRunCommands =\n new VirtualMachineScaleSetVMRunCommandsImpl(this);\n this.disks = new DisksImpl(this);\n this.diskAccesses = new DiskAccessesImpl(this);\n this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);\n this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this);\n this.snapshots = new SnapshotsImpl(this);\n this.resourceSkus = new ResourceSkusImpl(this);\n this.galleries = new GalleriesImpl(this);\n this.galleryImages = new GalleryImagesImpl(this);\n this.galleryImageVersions = new GalleryImageVersionsImpl(this);\n this.galleryApplications = new GalleryApplicationsImpl(this);\n this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);\n this.softDeletedResource = new SoftDeletedResourceImpl(this);\n this.gallerySharingProfile = new GallerySharingProfileImpl(this);\n this.galleryInVMAccessControlProfiles =\n new GalleryInVMAccessControlProfilesImpl(this);\n this.galleryInVMAccessControlProfileVersions =\n new GalleryInVMAccessControlProfileVersionsImpl(this);\n this.sharedGalleries = new SharedGalleriesImpl(this);\n this.sharedGalleryImages = new SharedGalleryImagesImpl(this);\n this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);\n this.communityGalleries = new CommunityGalleriesImpl(this);\n this.communityGalleryImages = new CommunityGalleryImagesImpl(this);\n this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(\n this,\n );\n this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);\n this.cloudServiceRoles = new CloudServiceRolesImpl(this);\n this.cloudServices = new CloudServicesImpl(this);\n this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);\n this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(\n this,\n );\n }\n\n operations: Operations;\n usageOperations: UsageOperations;\n virtualMachineSizes: VirtualMachineSizes;\n virtualMachineScaleSets: VirtualMachineScaleSets;\n virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions;\n virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades;\n virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions;\n virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs;\n virtualMachineExtensions: VirtualMachineExtensions;\n virtualMachines: VirtualMachines;\n virtualMachineImages: VirtualMachineImages;\n virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone;\n virtualMachineExtensionImages: VirtualMachineExtensionImages;\n availabilitySets: AvailabilitySets;\n proximityPlacementGroups: ProximityPlacementGroups;\n dedicatedHostGroups: DedicatedHostGroups;\n dedicatedHosts: DedicatedHosts;\n sshPublicKeys: SshPublicKeys;\n images: Images;\n restorePointCollections: RestorePointCollections;\n restorePoints: RestorePoints;\n capacityReservationGroups: CapacityReservationGroups;\n capacityReservations: CapacityReservations;\n logAnalytics: LogAnalytics;\n virtualMachineRunCommands: VirtualMachineRunCommands;\n virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands;\n disks: Disks;\n diskAccesses: DiskAccesses;\n diskEncryptionSets: DiskEncryptionSets;\n diskRestorePointOperations: DiskRestorePointOperations;\n snapshots: Snapshots;\n resourceSkus: ResourceSkus;\n galleries: Galleries;\n galleryImages: GalleryImages;\n galleryImageVersions: GalleryImageVersions;\n galleryApplications: GalleryApplications;\n galleryApplicationVersions: GalleryApplicationVersions;\n softDeletedResource: SoftDeletedResource;\n gallerySharingProfile: GallerySharingProfile;\n galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles;\n galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions;\n sharedGalleries: SharedGalleries;\n sharedGalleryImages: SharedGalleryImages;\n sharedGalleryImageVersions: SharedGalleryImageVersions;\n communityGalleries: CommunityGalleries;\n communityGalleryImages: CommunityGalleryImages;\n communityGalleryImageVersions: CommunityGalleryImageVersions;\n cloudServiceRoleInstances: CloudServiceRoleInstances;\n cloudServiceRoles: CloudServiceRoles;\n cloudServices: CloudServices;\n cloudServicesUpdateDomain: CloudServicesUpdateDomain;\n cloudServiceOperatingSystems: CloudServiceOperatingSystems;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
package/dist/browser/lroImpl.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
1
|
import { __rest } from "tslib";
|
|
9
2
|
export function createLroSpec(inputs) {
|
|
10
3
|
const { args, spec, sendOperationFn } = inputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
|
@@ -36,7 +36,7 @@ class ComputeManagementClient extends coreClient.ServiceClient {
|
|
|
36
36
|
requestContentType: "application/json; charset=utf-8",
|
|
37
37
|
credential: credentials,
|
|
38
38
|
};
|
|
39
|
-
const packageDetails = `azsdk-js-arm-compute/22.3.
|
|
39
|
+
const packageDetails = `azsdk-js-arm-compute/22.3.1`;
|
|
40
40
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
41
41
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
42
42
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeManagementClient.js","sourceRoot":"","sources":["../../src/computeManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAqD+B;AAyD/B,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAInE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CA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AC,CAAC;QAC7D,IAAI,CAAC,0BAA0B,GAAG,IAAI,yCAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,kBAAkB,GAAG,IAAI,iCAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,sBAAsB,GAAG,IAAI,qCAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,6BAA6B,GAAG,IAAI,4CAAiC,CACxE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,wCAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,iBAAiB,GAAG,IAAI,gCAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,IAAI,4BAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,yBAAyB,GAAG,IAAI,wCAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,4BAA4B,GAAG,IAAI,2CAAgC,CACtE,IAAI,CACL,CAAC;IACJ,CAAC;CAsDF;AA9MD,0DA8MC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n UsageOperationsImpl,\n VirtualMachineSizesImpl,\n VirtualMachineScaleSetsImpl,\n VirtualMachineScaleSetExtensionsImpl,\n VirtualMachineScaleSetRollingUpgradesImpl,\n VirtualMachineScaleSetVMExtensionsImpl,\n VirtualMachineScaleSetVMsImpl,\n VirtualMachineExtensionsImpl,\n VirtualMachinesImpl,\n VirtualMachineImagesImpl,\n VirtualMachineImagesEdgeZoneImpl,\n VirtualMachineExtensionImagesImpl,\n AvailabilitySetsImpl,\n ProximityPlacementGroupsImpl,\n DedicatedHostGroupsImpl,\n DedicatedHostsImpl,\n SshPublicKeysImpl,\n ImagesImpl,\n RestorePointCollectionsImpl,\n RestorePointsImpl,\n CapacityReservationGroupsImpl,\n CapacityReservationsImpl,\n LogAnalyticsImpl,\n VirtualMachineRunCommandsImpl,\n VirtualMachineScaleSetVMRunCommandsImpl,\n DisksImpl,\n DiskAccessesImpl,\n DiskEncryptionSetsImpl,\n DiskRestorePointOperationsImpl,\n SnapshotsImpl,\n ResourceSkusImpl,\n GalleriesImpl,\n GalleryImagesImpl,\n GalleryImageVersionsImpl,\n GalleryApplicationsImpl,\n GalleryApplicationVersionsImpl,\n SoftDeletedResourceImpl,\n GallerySharingProfileImpl,\n GalleryInVMAccessControlProfilesImpl,\n GalleryInVMAccessControlProfileVersionsImpl,\n SharedGalleriesImpl,\n SharedGalleryImagesImpl,\n SharedGalleryImageVersionsImpl,\n CommunityGalleriesImpl,\n CommunityGalleryImagesImpl,\n CommunityGalleryImageVersionsImpl,\n CloudServiceRoleInstancesImpl,\n CloudServiceRolesImpl,\n CloudServicesImpl,\n CloudServicesUpdateDomainImpl,\n CloudServiceOperatingSystemsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n UsageOperations,\n VirtualMachineSizes,\n VirtualMachineScaleSets,\n VirtualMachineScaleSetExtensions,\n VirtualMachineScaleSetRollingUpgrades,\n VirtualMachineScaleSetVMExtensions,\n VirtualMachineScaleSetVMs,\n VirtualMachineExtensions,\n VirtualMachines,\n VirtualMachineImages,\n VirtualMachineImagesEdgeZone,\n VirtualMachineExtensionImages,\n AvailabilitySets,\n ProximityPlacementGroups,\n DedicatedHostGroups,\n DedicatedHosts,\n SshPublicKeys,\n Images,\n RestorePointCollections,\n RestorePoints,\n CapacityReservationGroups,\n CapacityReservations,\n LogAnalytics,\n VirtualMachineRunCommands,\n VirtualMachineScaleSetVMRunCommands,\n Disks,\n DiskAccesses,\n DiskEncryptionSets,\n DiskRestorePointOperations,\n Snapshots,\n ResourceSkus,\n Galleries,\n GalleryImages,\n GalleryImageVersions,\n GalleryApplications,\n GalleryApplicationVersions,\n SoftDeletedResource,\n GallerySharingProfile,\n GalleryInVMAccessControlProfiles,\n GalleryInVMAccessControlProfileVersions,\n SharedGalleries,\n SharedGalleryImages,\n SharedGalleryImageVersions,\n CommunityGalleries,\n CommunityGalleryImages,\n CommunityGalleryImageVersions,\n CloudServiceRoleInstances,\n CloudServiceRoles,\n CloudServices,\n CloudServicesUpdateDomain,\n CloudServiceOperatingSystems,\n} from \"./operationsInterfaces/index.js\";\nimport { ComputeManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ComputeManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ComputeManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ComputeManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ComputeManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-compute/22.3.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.operations = new OperationsImpl(this);\n this.usageOperations = new UsageOperationsImpl(this);\n this.virtualMachineSizes = new VirtualMachineSizesImpl(this);\n this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);\n this.virtualMachineScaleSetExtensions =\n new VirtualMachineScaleSetExtensionsImpl(this);\n this.virtualMachineScaleSetRollingUpgrades =\n new VirtualMachineScaleSetRollingUpgradesImpl(this);\n this.virtualMachineScaleSetVMExtensions =\n new VirtualMachineScaleSetVMExtensionsImpl(this);\n this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);\n this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.virtualMachineImages = new VirtualMachineImagesImpl(this);\n this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(\n this,\n );\n this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(\n this,\n );\n this.availabilitySets = new AvailabilitySetsImpl(this);\n this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);\n this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);\n this.dedicatedHosts = new DedicatedHostsImpl(this);\n this.sshPublicKeys = new SshPublicKeysImpl(this);\n this.images = new ImagesImpl(this);\n this.restorePointCollections = new RestorePointCollectionsImpl(this);\n this.restorePoints = new RestorePointsImpl(this);\n this.capacityReservationGroups = new CapacityReservationGroupsImpl(this);\n this.capacityReservations = new CapacityReservationsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);\n this.virtualMachineScaleSetVMRunCommands =\n new VirtualMachineScaleSetVMRunCommandsImpl(this);\n this.disks = new DisksImpl(this);\n this.diskAccesses = new DiskAccessesImpl(this);\n this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);\n this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this);\n this.snapshots = new SnapshotsImpl(this);\n this.resourceSkus = new ResourceSkusImpl(this);\n this.galleries = new GalleriesImpl(this);\n this.galleryImages = new GalleryImagesImpl(this);\n this.galleryImageVersions = new GalleryImageVersionsImpl(this);\n this.galleryApplications = new GalleryApplicationsImpl(this);\n this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);\n this.softDeletedResource = new SoftDeletedResourceImpl(this);\n this.gallerySharingProfile = new GallerySharingProfileImpl(this);\n this.galleryInVMAccessControlProfiles =\n new GalleryInVMAccessControlProfilesImpl(this);\n this.galleryInVMAccessControlProfileVersions =\n new GalleryInVMAccessControlProfileVersionsImpl(this);\n this.sharedGalleries = new SharedGalleriesImpl(this);\n this.sharedGalleryImages = new SharedGalleryImagesImpl(this);\n this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);\n this.communityGalleries = new CommunityGalleriesImpl(this);\n this.communityGalleryImages = new CommunityGalleryImagesImpl(this);\n this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(\n this,\n );\n this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);\n this.cloudServiceRoles = new CloudServiceRolesImpl(this);\n this.cloudServices = new CloudServicesImpl(this);\n this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);\n this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(\n this,\n );\n }\n\n operations: Operations;\n usageOperations: UsageOperations;\n virtualMachineSizes: VirtualMachineSizes;\n virtualMachineScaleSets: VirtualMachineScaleSets;\n virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions;\n virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades;\n virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions;\n virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs;\n virtualMachineExtensions: VirtualMachineExtensions;\n virtualMachines: VirtualMachines;\n virtualMachineImages: VirtualMachineImages;\n virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone;\n virtualMachineExtensionImages: VirtualMachineExtensionImages;\n availabilitySets: AvailabilitySets;\n proximityPlacementGroups: ProximityPlacementGroups;\n dedicatedHostGroups: DedicatedHostGroups;\n dedicatedHosts: DedicatedHosts;\n sshPublicKeys: SshPublicKeys;\n images: Images;\n restorePointCollections: RestorePointCollections;\n restorePoints: RestorePoints;\n capacityReservationGroups: CapacityReservationGroups;\n capacityReservations: CapacityReservations;\n logAnalytics: LogAnalytics;\n virtualMachineRunCommands: VirtualMachineRunCommands;\n virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands;\n disks: Disks;\n diskAccesses: DiskAccesses;\n diskEncryptionSets: DiskEncryptionSets;\n diskRestorePointOperations: DiskRestorePointOperations;\n snapshots: Snapshots;\n resourceSkus: ResourceSkus;\n galleries: Galleries;\n galleryImages: GalleryImages;\n galleryImageVersions: GalleryImageVersions;\n galleryApplications: GalleryApplications;\n galleryApplicationVersions: GalleryApplicationVersions;\n softDeletedResource: SoftDeletedResource;\n gallerySharingProfile: GallerySharingProfile;\n galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles;\n galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions;\n sharedGalleries: SharedGalleries;\n sharedGalleryImages: SharedGalleryImages;\n sharedGalleryImageVersions: SharedGalleryImageVersions;\n communityGalleries: CommunityGalleries;\n communityGalleryImages: CommunityGalleryImages;\n communityGalleryImageVersions: CommunityGalleryImageVersions;\n cloudServiceRoleInstances: CloudServiceRoleInstances;\n cloudServiceRoles: CloudServiceRoles;\n cloudServices: CloudServices;\n cloudServicesUpdateDomain: CloudServicesUpdateDomain;\n cloudServiceOperatingSystems: CloudServiceOperatingSystems;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"computeManagementClient.js","sourceRoot":"","sources":["../../src/computeManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAqD+B;AAyD/B,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAInE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA0C;YACtD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6BAA6B,CAAC;QACrD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,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G,IAAI,wCAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,4BAA4B,GAAG,IAAI,2CAAgC,CACtE,IAAI,CACL,CAAC;IACJ,CAAC;CAsDF;AA9MD,0DA8MC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n UsageOperationsImpl,\n VirtualMachineSizesImpl,\n VirtualMachineScaleSetsImpl,\n VirtualMachineScaleSetExtensionsImpl,\n VirtualMachineScaleSetRollingUpgradesImpl,\n VirtualMachineScaleSetVMExtensionsImpl,\n VirtualMachineScaleSetVMsImpl,\n VirtualMachineExtensionsImpl,\n VirtualMachinesImpl,\n VirtualMachineImagesImpl,\n VirtualMachineImagesEdgeZoneImpl,\n VirtualMachineExtensionImagesImpl,\n AvailabilitySetsImpl,\n ProximityPlacementGroupsImpl,\n DedicatedHostGroupsImpl,\n DedicatedHostsImpl,\n SshPublicKeysImpl,\n ImagesImpl,\n RestorePointCollectionsImpl,\n RestorePointsImpl,\n CapacityReservationGroupsImpl,\n CapacityReservationsImpl,\n LogAnalyticsImpl,\n VirtualMachineRunCommandsImpl,\n VirtualMachineScaleSetVMRunCommandsImpl,\n DisksImpl,\n DiskAccessesImpl,\n DiskEncryptionSetsImpl,\n DiskRestorePointOperationsImpl,\n SnapshotsImpl,\n ResourceSkusImpl,\n GalleriesImpl,\n GalleryImagesImpl,\n GalleryImageVersionsImpl,\n GalleryApplicationsImpl,\n GalleryApplicationVersionsImpl,\n SoftDeletedResourceImpl,\n GallerySharingProfileImpl,\n GalleryInVMAccessControlProfilesImpl,\n GalleryInVMAccessControlProfileVersionsImpl,\n SharedGalleriesImpl,\n SharedGalleryImagesImpl,\n SharedGalleryImageVersionsImpl,\n CommunityGalleriesImpl,\n CommunityGalleryImagesImpl,\n CommunityGalleryImageVersionsImpl,\n CloudServiceRoleInstancesImpl,\n CloudServiceRolesImpl,\n CloudServicesImpl,\n CloudServicesUpdateDomainImpl,\n CloudServiceOperatingSystemsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n UsageOperations,\n VirtualMachineSizes,\n VirtualMachineScaleSets,\n VirtualMachineScaleSetExtensions,\n VirtualMachineScaleSetRollingUpgrades,\n VirtualMachineScaleSetVMExtensions,\n VirtualMachineScaleSetVMs,\n VirtualMachineExtensions,\n VirtualMachines,\n VirtualMachineImages,\n VirtualMachineImagesEdgeZone,\n VirtualMachineExtensionImages,\n AvailabilitySets,\n ProximityPlacementGroups,\n DedicatedHostGroups,\n DedicatedHosts,\n SshPublicKeys,\n Images,\n RestorePointCollections,\n RestorePoints,\n CapacityReservationGroups,\n CapacityReservations,\n LogAnalytics,\n VirtualMachineRunCommands,\n VirtualMachineScaleSetVMRunCommands,\n Disks,\n DiskAccesses,\n DiskEncryptionSets,\n DiskRestorePointOperations,\n Snapshots,\n ResourceSkus,\n Galleries,\n GalleryImages,\n GalleryImageVersions,\n GalleryApplications,\n GalleryApplicationVersions,\n SoftDeletedResource,\n GallerySharingProfile,\n GalleryInVMAccessControlProfiles,\n GalleryInVMAccessControlProfileVersions,\n SharedGalleries,\n SharedGalleryImages,\n SharedGalleryImageVersions,\n CommunityGalleries,\n CommunityGalleryImages,\n CommunityGalleryImageVersions,\n CloudServiceRoleInstances,\n CloudServiceRoles,\n CloudServices,\n CloudServicesUpdateDomain,\n CloudServiceOperatingSystems,\n} from \"./operationsInterfaces/index.js\";\nimport { ComputeManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ComputeManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ComputeManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ComputeManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ComputeManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-compute/22.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.operations = new OperationsImpl(this);\n this.usageOperations = new UsageOperationsImpl(this);\n this.virtualMachineSizes = new VirtualMachineSizesImpl(this);\n this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);\n this.virtualMachineScaleSetExtensions =\n new VirtualMachineScaleSetExtensionsImpl(this);\n this.virtualMachineScaleSetRollingUpgrades =\n new VirtualMachineScaleSetRollingUpgradesImpl(this);\n this.virtualMachineScaleSetVMExtensions =\n new VirtualMachineScaleSetVMExtensionsImpl(this);\n this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);\n this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.virtualMachineImages = new VirtualMachineImagesImpl(this);\n this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(\n this,\n );\n this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(\n this,\n );\n this.availabilitySets = new AvailabilitySetsImpl(this);\n this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);\n this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);\n this.dedicatedHosts = new DedicatedHostsImpl(this);\n this.sshPublicKeys = new SshPublicKeysImpl(this);\n this.images = new ImagesImpl(this);\n this.restorePointCollections = new RestorePointCollectionsImpl(this);\n this.restorePoints = new RestorePointsImpl(this);\n this.capacityReservationGroups = new CapacityReservationGroupsImpl(this);\n this.capacityReservations = new CapacityReservationsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);\n this.virtualMachineScaleSetVMRunCommands =\n new VirtualMachineScaleSetVMRunCommandsImpl(this);\n this.disks = new DisksImpl(this);\n this.diskAccesses = new DiskAccessesImpl(this);\n this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);\n this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this);\n this.snapshots = new SnapshotsImpl(this);\n this.resourceSkus = new ResourceSkusImpl(this);\n this.galleries = new GalleriesImpl(this);\n this.galleryImages = new GalleryImagesImpl(this);\n this.galleryImageVersions = new GalleryImageVersionsImpl(this);\n this.galleryApplications = new GalleryApplicationsImpl(this);\n this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);\n this.softDeletedResource = new SoftDeletedResourceImpl(this);\n this.gallerySharingProfile = new GallerySharingProfileImpl(this);\n this.galleryInVMAccessControlProfiles =\n new GalleryInVMAccessControlProfilesImpl(this);\n this.galleryInVMAccessControlProfileVersions =\n new GalleryInVMAccessControlProfileVersionsImpl(this);\n this.sharedGalleries = new SharedGalleriesImpl(this);\n this.sharedGalleryImages = new SharedGalleryImagesImpl(this);\n this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);\n this.communityGalleries = new CommunityGalleriesImpl(this);\n this.communityGalleryImages = new CommunityGalleryImagesImpl(this);\n this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(\n this,\n );\n this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);\n this.cloudServiceRoles = new CloudServiceRolesImpl(this);\n this.cloudServices = new CloudServicesImpl(this);\n this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);\n this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(\n this,\n );\n }\n\n operations: Operations;\n usageOperations: UsageOperations;\n virtualMachineSizes: VirtualMachineSizes;\n virtualMachineScaleSets: VirtualMachineScaleSets;\n virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions;\n virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades;\n virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions;\n virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs;\n virtualMachineExtensions: VirtualMachineExtensions;\n virtualMachines: VirtualMachines;\n virtualMachineImages: VirtualMachineImages;\n virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone;\n virtualMachineExtensionImages: VirtualMachineExtensionImages;\n availabilitySets: AvailabilitySets;\n proximityPlacementGroups: ProximityPlacementGroups;\n dedicatedHostGroups: DedicatedHostGroups;\n dedicatedHosts: DedicatedHosts;\n sshPublicKeys: SshPublicKeys;\n images: Images;\n restorePointCollections: RestorePointCollections;\n restorePoints: RestorePoints;\n capacityReservationGroups: CapacityReservationGroups;\n capacityReservations: CapacityReservations;\n logAnalytics: LogAnalytics;\n virtualMachineRunCommands: VirtualMachineRunCommands;\n virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands;\n disks: Disks;\n diskAccesses: DiskAccesses;\n diskEncryptionSets: DiskEncryptionSets;\n diskRestorePointOperations: DiskRestorePointOperations;\n snapshots: Snapshots;\n resourceSkus: ResourceSkus;\n galleries: Galleries;\n galleryImages: GalleryImages;\n galleryImageVersions: GalleryImageVersions;\n galleryApplications: GalleryApplications;\n galleryApplicationVersions: GalleryApplicationVersions;\n softDeletedResource: SoftDeletedResource;\n gallerySharingProfile: GallerySharingProfile;\n galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles;\n galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions;\n sharedGalleries: SharedGalleries;\n sharedGalleryImages: SharedGalleryImages;\n sharedGalleryImageVersions: SharedGalleryImageVersions;\n communityGalleries: CommunityGalleries;\n communityGalleryImages: CommunityGalleryImages;\n communityGalleryImageVersions: CommunityGalleryImageVersions;\n cloudServiceRoleInstances: CloudServiceRoleInstances;\n cloudServiceRoles: CloudServiceRoles;\n cloudServices: CloudServices;\n cloudServicesUpdateDomain: CloudServicesUpdateDomain;\n cloudServiceOperatingSystems: CloudServiceOperatingSystems;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.createLroSpec = createLroSpec;
|
|
11
4
|
const tslib_1 = require("tslib");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
|
@@ -32,7 +32,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials,
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-compute/22.3.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-compute/22.3.1`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeManagementClient.js","sourceRoot":"","sources":["../../src/computeManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,yCAAyC,EACzC,sCAAsC,EACtC,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,wBAAwB,EACxB,gCAAgC,EAChC,iCAAiC,EACjC,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,2BAA2B,EAC3B,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB,EAChB,6BAA6B,EAC7B,uCAAuC,EACvC,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,oCAAoC,EACpC,2CAA2C,EAC3C,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,6B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C,IAAI,oCAAoC,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,uCAAuC;YAC1C,IAAI,2CAA2C,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,6BAA6B,GAAG,IAAI,iCAAiC,CACxE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;IACJ,CAAC;CAsDF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n UsageOperationsImpl,\n VirtualMachineSizesImpl,\n VirtualMachineScaleSetsImpl,\n VirtualMachineScaleSetExtensionsImpl,\n VirtualMachineScaleSetRollingUpgradesImpl,\n VirtualMachineScaleSetVMExtensionsImpl,\n VirtualMachineScaleSetVMsImpl,\n VirtualMachineExtensionsImpl,\n VirtualMachinesImpl,\n VirtualMachineImagesImpl,\n VirtualMachineImagesEdgeZoneImpl,\n VirtualMachineExtensionImagesImpl,\n AvailabilitySetsImpl,\n ProximityPlacementGroupsImpl,\n DedicatedHostGroupsImpl,\n DedicatedHostsImpl,\n SshPublicKeysImpl,\n ImagesImpl,\n RestorePointCollectionsImpl,\n RestorePointsImpl,\n CapacityReservationGroupsImpl,\n CapacityReservationsImpl,\n LogAnalyticsImpl,\n VirtualMachineRunCommandsImpl,\n VirtualMachineScaleSetVMRunCommandsImpl,\n DisksImpl,\n DiskAccessesImpl,\n DiskEncryptionSetsImpl,\n DiskRestorePointOperationsImpl,\n SnapshotsImpl,\n ResourceSkusImpl,\n GalleriesImpl,\n GalleryImagesImpl,\n GalleryImageVersionsImpl,\n GalleryApplicationsImpl,\n GalleryApplicationVersionsImpl,\n SoftDeletedResourceImpl,\n GallerySharingProfileImpl,\n GalleryInVMAccessControlProfilesImpl,\n GalleryInVMAccessControlProfileVersionsImpl,\n SharedGalleriesImpl,\n SharedGalleryImagesImpl,\n SharedGalleryImageVersionsImpl,\n CommunityGalleriesImpl,\n CommunityGalleryImagesImpl,\n CommunityGalleryImageVersionsImpl,\n CloudServiceRoleInstancesImpl,\n CloudServiceRolesImpl,\n CloudServicesImpl,\n CloudServicesUpdateDomainImpl,\n CloudServiceOperatingSystemsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n UsageOperations,\n VirtualMachineSizes,\n VirtualMachineScaleSets,\n VirtualMachineScaleSetExtensions,\n VirtualMachineScaleSetRollingUpgrades,\n VirtualMachineScaleSetVMExtensions,\n VirtualMachineScaleSetVMs,\n VirtualMachineExtensions,\n VirtualMachines,\n VirtualMachineImages,\n VirtualMachineImagesEdgeZone,\n VirtualMachineExtensionImages,\n AvailabilitySets,\n ProximityPlacementGroups,\n DedicatedHostGroups,\n DedicatedHosts,\n SshPublicKeys,\n Images,\n RestorePointCollections,\n RestorePoints,\n CapacityReservationGroups,\n CapacityReservations,\n LogAnalytics,\n VirtualMachineRunCommands,\n VirtualMachineScaleSetVMRunCommands,\n Disks,\n DiskAccesses,\n DiskEncryptionSets,\n DiskRestorePointOperations,\n Snapshots,\n ResourceSkus,\n Galleries,\n GalleryImages,\n GalleryImageVersions,\n GalleryApplications,\n GalleryApplicationVersions,\n SoftDeletedResource,\n GallerySharingProfile,\n GalleryInVMAccessControlProfiles,\n GalleryInVMAccessControlProfileVersions,\n SharedGalleries,\n SharedGalleryImages,\n SharedGalleryImageVersions,\n CommunityGalleries,\n CommunityGalleryImages,\n CommunityGalleryImageVersions,\n CloudServiceRoleInstances,\n CloudServiceRoles,\n CloudServices,\n CloudServicesUpdateDomain,\n CloudServiceOperatingSystems,\n} from \"./operationsInterfaces/index.js\";\nimport { ComputeManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ComputeManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ComputeManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ComputeManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ComputeManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-compute/22.3.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.operations = new OperationsImpl(this);\n this.usageOperations = new UsageOperationsImpl(this);\n this.virtualMachineSizes = new VirtualMachineSizesImpl(this);\n this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);\n this.virtualMachineScaleSetExtensions =\n new VirtualMachineScaleSetExtensionsImpl(this);\n this.virtualMachineScaleSetRollingUpgrades =\n new VirtualMachineScaleSetRollingUpgradesImpl(this);\n this.virtualMachineScaleSetVMExtensions =\n new VirtualMachineScaleSetVMExtensionsImpl(this);\n this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);\n this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.virtualMachineImages = new VirtualMachineImagesImpl(this);\n this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(\n this,\n );\n this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(\n this,\n );\n this.availabilitySets = new AvailabilitySetsImpl(this);\n this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);\n this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);\n this.dedicatedHosts = new DedicatedHostsImpl(this);\n this.sshPublicKeys = new SshPublicKeysImpl(this);\n this.images = new ImagesImpl(this);\n this.restorePointCollections = new RestorePointCollectionsImpl(this);\n this.restorePoints = new RestorePointsImpl(this);\n this.capacityReservationGroups = new CapacityReservationGroupsImpl(this);\n this.capacityReservations = new CapacityReservationsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);\n this.virtualMachineScaleSetVMRunCommands =\n new VirtualMachineScaleSetVMRunCommandsImpl(this);\n this.disks = new DisksImpl(this);\n this.diskAccesses = new DiskAccessesImpl(this);\n this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);\n this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this);\n this.snapshots = new SnapshotsImpl(this);\n this.resourceSkus = new ResourceSkusImpl(this);\n this.galleries = new GalleriesImpl(this);\n this.galleryImages = new GalleryImagesImpl(this);\n this.galleryImageVersions = new GalleryImageVersionsImpl(this);\n this.galleryApplications = new GalleryApplicationsImpl(this);\n this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);\n this.softDeletedResource = new SoftDeletedResourceImpl(this);\n this.gallerySharingProfile = new GallerySharingProfileImpl(this);\n this.galleryInVMAccessControlProfiles =\n new GalleryInVMAccessControlProfilesImpl(this);\n this.galleryInVMAccessControlProfileVersions =\n new GalleryInVMAccessControlProfileVersionsImpl(this);\n this.sharedGalleries = new SharedGalleriesImpl(this);\n this.sharedGalleryImages = new SharedGalleryImagesImpl(this);\n this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);\n this.communityGalleries = new CommunityGalleriesImpl(this);\n this.communityGalleryImages = new CommunityGalleryImagesImpl(this);\n this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(\n this,\n );\n this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);\n this.cloudServiceRoles = new CloudServiceRolesImpl(this);\n this.cloudServices = new CloudServicesImpl(this);\n this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);\n this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(\n this,\n );\n }\n\n operations: Operations;\n usageOperations: UsageOperations;\n virtualMachineSizes: VirtualMachineSizes;\n virtualMachineScaleSets: VirtualMachineScaleSets;\n virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions;\n virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades;\n virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions;\n virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs;\n virtualMachineExtensions: VirtualMachineExtensions;\n virtualMachines: VirtualMachines;\n virtualMachineImages: VirtualMachineImages;\n virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone;\n virtualMachineExtensionImages: VirtualMachineExtensionImages;\n availabilitySets: AvailabilitySets;\n proximityPlacementGroups: ProximityPlacementGroups;\n dedicatedHostGroups: DedicatedHostGroups;\n dedicatedHosts: DedicatedHosts;\n sshPublicKeys: SshPublicKeys;\n images: Images;\n restorePointCollections: RestorePointCollections;\n restorePoints: RestorePoints;\n capacityReservationGroups: CapacityReservationGroups;\n capacityReservations: CapacityReservations;\n logAnalytics: LogAnalytics;\n virtualMachineRunCommands: VirtualMachineRunCommands;\n virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands;\n disks: Disks;\n diskAccesses: DiskAccesses;\n diskEncryptionSets: DiskEncryptionSets;\n diskRestorePointOperations: DiskRestorePointOperations;\n snapshots: Snapshots;\n resourceSkus: ResourceSkus;\n galleries: Galleries;\n galleryImages: GalleryImages;\n galleryImageVersions: GalleryImageVersions;\n galleryApplications: GalleryApplications;\n galleryApplicationVersions: GalleryApplicationVersions;\n softDeletedResource: SoftDeletedResource;\n gallerySharingProfile: GallerySharingProfile;\n galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles;\n galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions;\n sharedGalleries: SharedGalleries;\n sharedGalleryImages: SharedGalleryImages;\n sharedGalleryImageVersions: SharedGalleryImageVersions;\n communityGalleries: CommunityGalleries;\n communityGalleryImages: CommunityGalleryImages;\n communityGalleryImageVersions: CommunityGalleryImageVersions;\n cloudServiceRoleInstances: CloudServiceRoleInstances;\n cloudServiceRoles: CloudServiceRoles;\n cloudServices: CloudServices;\n cloudServicesUpdateDomain: CloudServicesUpdateDomain;\n cloudServiceOperatingSystems: CloudServiceOperatingSystems;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"computeManagementClient.js","sourceRoot":"","sources":["../../src/computeManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,yCAAyC,EACzC,sCAAsC,EACtC,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,wBAAwB,EACxB,gCAAgC,EAChC,iCAAiC,EACjC,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,2BAA2B,EAC3B,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB,EAChB,6BAA6B,EAC7B,uCAAuC,EACvC,SAAS,EACT,gBAAgB,EA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under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n UsageOperationsImpl,\n VirtualMachineSizesImpl,\n VirtualMachineScaleSetsImpl,\n VirtualMachineScaleSetExtensionsImpl,\n VirtualMachineScaleSetRollingUpgradesImpl,\n VirtualMachineScaleSetVMExtensionsImpl,\n VirtualMachineScaleSetVMsImpl,\n VirtualMachineExtensionsImpl,\n VirtualMachinesImpl,\n VirtualMachineImagesImpl,\n VirtualMachineImagesEdgeZoneImpl,\n VirtualMachineExtensionImagesImpl,\n AvailabilitySetsImpl,\n ProximityPlacementGroupsImpl,\n DedicatedHostGroupsImpl,\n DedicatedHostsImpl,\n SshPublicKeysImpl,\n ImagesImpl,\n RestorePointCollectionsImpl,\n RestorePointsImpl,\n CapacityReservationGroupsImpl,\n CapacityReservationsImpl,\n LogAnalyticsImpl,\n VirtualMachineRunCommandsImpl,\n VirtualMachineScaleSetVMRunCommandsImpl,\n DisksImpl,\n DiskAccessesImpl,\n DiskEncryptionSetsImpl,\n DiskRestorePointOperationsImpl,\n SnapshotsImpl,\n ResourceSkusImpl,\n GalleriesImpl,\n GalleryImagesImpl,\n GalleryImageVersionsImpl,\n GalleryApplicationsImpl,\n GalleryApplicationVersionsImpl,\n SoftDeletedResourceImpl,\n GallerySharingProfileImpl,\n GalleryInVMAccessControlProfilesImpl,\n GalleryInVMAccessControlProfileVersionsImpl,\n SharedGalleriesImpl,\n SharedGalleryImagesImpl,\n SharedGalleryImageVersionsImpl,\n CommunityGalleriesImpl,\n CommunityGalleryImagesImpl,\n CommunityGalleryImageVersionsImpl,\n CloudServiceRoleInstancesImpl,\n CloudServiceRolesImpl,\n CloudServicesImpl,\n CloudServicesUpdateDomainImpl,\n CloudServiceOperatingSystemsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n UsageOperations,\n VirtualMachineSizes,\n VirtualMachineScaleSets,\n VirtualMachineScaleSetExtensions,\n VirtualMachineScaleSetRollingUpgrades,\n VirtualMachineScaleSetVMExtensions,\n VirtualMachineScaleSetVMs,\n VirtualMachineExtensions,\n VirtualMachines,\n VirtualMachineImages,\n VirtualMachineImagesEdgeZone,\n VirtualMachineExtensionImages,\n AvailabilitySets,\n ProximityPlacementGroups,\n DedicatedHostGroups,\n DedicatedHosts,\n SshPublicKeys,\n Images,\n RestorePointCollections,\n RestorePoints,\n CapacityReservationGroups,\n CapacityReservations,\n LogAnalytics,\n VirtualMachineRunCommands,\n VirtualMachineScaleSetVMRunCommands,\n Disks,\n DiskAccesses,\n DiskEncryptionSets,\n DiskRestorePointOperations,\n Snapshots,\n ResourceSkus,\n Galleries,\n GalleryImages,\n GalleryImageVersions,\n GalleryApplications,\n GalleryApplicationVersions,\n SoftDeletedResource,\n GallerySharingProfile,\n GalleryInVMAccessControlProfiles,\n GalleryInVMAccessControlProfileVersions,\n SharedGalleries,\n SharedGalleryImages,\n SharedGalleryImageVersions,\n CommunityGalleries,\n CommunityGalleryImages,\n CommunityGalleryImageVersions,\n CloudServiceRoleInstances,\n CloudServiceRoles,\n CloudServices,\n CloudServicesUpdateDomain,\n CloudServiceOperatingSystems,\n} from \"./operationsInterfaces/index.js\";\nimport { ComputeManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ComputeManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ComputeManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ComputeManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ComputeManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-compute/22.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.operations = new OperationsImpl(this);\n this.usageOperations = new UsageOperationsImpl(this);\n this.virtualMachineSizes = new VirtualMachineSizesImpl(this);\n this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);\n this.virtualMachineScaleSetExtensions =\n new VirtualMachineScaleSetExtensionsImpl(this);\n this.virtualMachineScaleSetRollingUpgrades =\n new VirtualMachineScaleSetRollingUpgradesImpl(this);\n this.virtualMachineScaleSetVMExtensions =\n new VirtualMachineScaleSetVMExtensionsImpl(this);\n this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);\n this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.virtualMachineImages = new VirtualMachineImagesImpl(this);\n this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(\n this,\n );\n this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(\n this,\n );\n this.availabilitySets = new AvailabilitySetsImpl(this);\n this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);\n this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);\n this.dedicatedHosts = new DedicatedHostsImpl(this);\n this.sshPublicKeys = new SshPublicKeysImpl(this);\n this.images = new ImagesImpl(this);\n this.restorePointCollections = new RestorePointCollectionsImpl(this);\n this.restorePoints = new RestorePointsImpl(this);\n this.capacityReservationGroups = new CapacityReservationGroupsImpl(this);\n this.capacityReservations = new CapacityReservationsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);\n this.virtualMachineScaleSetVMRunCommands =\n new VirtualMachineScaleSetVMRunCommandsImpl(this);\n this.disks = new DisksImpl(this);\n this.diskAccesses = new DiskAccessesImpl(this);\n this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);\n this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this);\n this.snapshots = new SnapshotsImpl(this);\n this.resourceSkus = new ResourceSkusImpl(this);\n this.galleries = new GalleriesImpl(this);\n this.galleryImages = new GalleryImagesImpl(this);\n this.galleryImageVersions = new GalleryImageVersionsImpl(this);\n this.galleryApplications = new GalleryApplicationsImpl(this);\n this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);\n this.softDeletedResource = new SoftDeletedResourceImpl(this);\n this.gallerySharingProfile = new GallerySharingProfileImpl(this);\n this.galleryInVMAccessControlProfiles =\n new GalleryInVMAccessControlProfilesImpl(this);\n this.galleryInVMAccessControlProfileVersions =\n new GalleryInVMAccessControlProfileVersionsImpl(this);\n this.sharedGalleries = new SharedGalleriesImpl(this);\n this.sharedGalleryImages = new SharedGalleryImagesImpl(this);\n this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);\n this.communityGalleries = new CommunityGalleriesImpl(this);\n this.communityGalleryImages = new CommunityGalleryImagesImpl(this);\n this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(\n this,\n );\n this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);\n this.cloudServiceRoles = new CloudServiceRolesImpl(this);\n this.cloudServices = new CloudServicesImpl(this);\n this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);\n this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(\n this,\n );\n }\n\n operations: Operations;\n usageOperations: UsageOperations;\n virtualMachineSizes: VirtualMachineSizes;\n virtualMachineScaleSets: VirtualMachineScaleSets;\n virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions;\n virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades;\n virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions;\n virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs;\n virtualMachineExtensions: VirtualMachineExtensions;\n virtualMachines: VirtualMachines;\n virtualMachineImages: VirtualMachineImages;\n virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone;\n virtualMachineExtensionImages: VirtualMachineExtensionImages;\n availabilitySets: AvailabilitySets;\n proximityPlacementGroups: ProximityPlacementGroups;\n dedicatedHostGroups: DedicatedHostGroups;\n dedicatedHosts: DedicatedHosts;\n sshPublicKeys: SshPublicKeys;\n images: Images;\n restorePointCollections: RestorePointCollections;\n restorePoints: RestorePoints;\n capacityReservationGroups: CapacityReservationGroups;\n capacityReservations: CapacityReservations;\n logAnalytics: LogAnalytics;\n virtualMachineRunCommands: VirtualMachineRunCommands;\n virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands;\n disks: Disks;\n diskAccesses: DiskAccesses;\n diskEncryptionSets: DiskEncryptionSets;\n diskRestorePointOperations: DiskRestorePointOperations;\n snapshots: Snapshots;\n resourceSkus: ResourceSkus;\n galleries: Galleries;\n galleryImages: GalleryImages;\n galleryImageVersions: GalleryImageVersions;\n galleryApplications: GalleryApplications;\n galleryApplicationVersions: GalleryApplicationVersions;\n softDeletedResource: SoftDeletedResource;\n gallerySharingProfile: GallerySharingProfile;\n galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles;\n galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions;\n sharedGalleries: SharedGalleries;\n sharedGalleryImages: SharedGalleryImages;\n sharedGalleryImageVersions: SharedGalleryImageVersions;\n communityGalleries: CommunityGalleries;\n communityGalleryImages: CommunityGalleryImages;\n communityGalleryImageVersions: CommunityGalleryImageVersions;\n cloudServiceRoleInstances: CloudServiceRoleInstances;\n cloudServiceRoles: CloudServiceRoles;\n cloudServices: CloudServices;\n cloudServicesUpdateDomain: CloudServicesUpdateDomain;\n cloudServiceOperatingSystems: CloudServiceOperatingSystems;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
package/dist/esm/lroImpl.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
1
|
import { __rest } from "tslib";
|
|
9
2
|
export function createLroSpec(inputs) {
|
|
10
3
|
const { args, spec, sendOperationFn } = inputs;
|
package/dist/esm/lroImpl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
|
@@ -32,7 +32,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials,
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-compute/22.3.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-compute/22.3.1`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeManagementClient.js","sourceRoot":"","sources":["../../src/computeManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,yCAAyC,EACzC,sCAAsC,EACtC,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,wBAAwB,EACxB,gCAAgC,EAChC,iCAAiC,EACjC,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,2BAA2B,EAC3B,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB,EAChB,6BAA6B,EAC7B,uCAAuC,EACvC,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,oCAAoC,EACpC,2CAA2C,EAC3C,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,6BAA6B,EAC7B,qBAAqB,EACrB,iBAAiB,EACjB,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,uBAAuB,CAAC;AAyD/B,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAInE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C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,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,6BAA6B,GAAG,IAAI,iCAAiC,CACxE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;IACJ,CAAC;CAsDF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n UsageOperationsImpl,\n VirtualMachineSizesImpl,\n VirtualMachineScaleSetsImpl,\n VirtualMachineScaleSetExtensionsImpl,\n VirtualMachineScaleSetRollingUpgradesImpl,\n VirtualMachineScaleSetVMExtensionsImpl,\n VirtualMachineScaleSetVMsImpl,\n VirtualMachineExtensionsImpl,\n VirtualMachinesImpl,\n VirtualMachineImagesImpl,\n VirtualMachineImagesEdgeZoneImpl,\n VirtualMachineExtensionImagesImpl,\n AvailabilitySetsImpl,\n ProximityPlacementGroupsImpl,\n DedicatedHostGroupsImpl,\n DedicatedHostsImpl,\n SshPublicKeysImpl,\n ImagesImpl,\n RestorePointCollectionsImpl,\n RestorePointsImpl,\n CapacityReservationGroupsImpl,\n CapacityReservationsImpl,\n LogAnalyticsImpl,\n VirtualMachineRunCommandsImpl,\n VirtualMachineScaleSetVMRunCommandsImpl,\n DisksImpl,\n DiskAccessesImpl,\n DiskEncryptionSetsImpl,\n DiskRestorePointOperationsImpl,\n SnapshotsImpl,\n ResourceSkusImpl,\n GalleriesImpl,\n GalleryImagesImpl,\n GalleryImageVersionsImpl,\n GalleryApplicationsImpl,\n GalleryApplicationVersionsImpl,\n SoftDeletedResourceImpl,\n GallerySharingProfileImpl,\n GalleryInVMAccessControlProfilesImpl,\n GalleryInVMAccessControlProfileVersionsImpl,\n SharedGalleriesImpl,\n SharedGalleryImagesImpl,\n SharedGalleryImageVersionsImpl,\n CommunityGalleriesImpl,\n CommunityGalleryImagesImpl,\n CommunityGalleryImageVersionsImpl,\n CloudServiceRoleInstancesImpl,\n CloudServiceRolesImpl,\n CloudServicesImpl,\n CloudServicesUpdateDomainImpl,\n CloudServiceOperatingSystemsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n UsageOperations,\n VirtualMachineSizes,\n VirtualMachineScaleSets,\n VirtualMachineScaleSetExtensions,\n VirtualMachineScaleSetRollingUpgrades,\n VirtualMachineScaleSetVMExtensions,\n VirtualMachineScaleSetVMs,\n VirtualMachineExtensions,\n VirtualMachines,\n VirtualMachineImages,\n VirtualMachineImagesEdgeZone,\n VirtualMachineExtensionImages,\n AvailabilitySets,\n ProximityPlacementGroups,\n DedicatedHostGroups,\n DedicatedHosts,\n SshPublicKeys,\n Images,\n RestorePointCollections,\n RestorePoints,\n CapacityReservationGroups,\n CapacityReservations,\n LogAnalytics,\n VirtualMachineRunCommands,\n VirtualMachineScaleSetVMRunCommands,\n Disks,\n DiskAccesses,\n DiskEncryptionSets,\n DiskRestorePointOperations,\n Snapshots,\n ResourceSkus,\n Galleries,\n GalleryImages,\n GalleryImageVersions,\n GalleryApplications,\n GalleryApplicationVersions,\n SoftDeletedResource,\n GallerySharingProfile,\n GalleryInVMAccessControlProfiles,\n GalleryInVMAccessControlProfileVersions,\n SharedGalleries,\n SharedGalleryImages,\n SharedGalleryImageVersions,\n CommunityGalleries,\n CommunityGalleryImages,\n CommunityGalleryImageVersions,\n CloudServiceRoleInstances,\n CloudServiceRoles,\n CloudServices,\n CloudServicesUpdateDomain,\n CloudServiceOperatingSystems,\n} from \"./operationsInterfaces/index.js\";\nimport { ComputeManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ComputeManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ComputeManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ComputeManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ComputeManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-compute/22.3.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.operations = new OperationsImpl(this);\n this.usageOperations = new UsageOperationsImpl(this);\n this.virtualMachineSizes = new VirtualMachineSizesImpl(this);\n this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);\n this.virtualMachineScaleSetExtensions =\n new VirtualMachineScaleSetExtensionsImpl(this);\n this.virtualMachineScaleSetRollingUpgrades =\n new VirtualMachineScaleSetRollingUpgradesImpl(this);\n this.virtualMachineScaleSetVMExtensions =\n new VirtualMachineScaleSetVMExtensionsImpl(this);\n this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);\n this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.virtualMachineImages = new VirtualMachineImagesImpl(this);\n this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(\n this,\n );\n this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(\n this,\n );\n this.availabilitySets = new AvailabilitySetsImpl(this);\n this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);\n this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);\n this.dedicatedHosts = new DedicatedHostsImpl(this);\n this.sshPublicKeys = new SshPublicKeysImpl(this);\n this.images = new ImagesImpl(this);\n this.restorePointCollections = new RestorePointCollectionsImpl(this);\n this.restorePoints = new RestorePointsImpl(this);\n this.capacityReservationGroups = new CapacityReservationGroupsImpl(this);\n this.capacityReservations = new CapacityReservationsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);\n this.virtualMachineScaleSetVMRunCommands =\n new VirtualMachineScaleSetVMRunCommandsImpl(this);\n this.disks = new DisksImpl(this);\n this.diskAccesses = new DiskAccessesImpl(this);\n this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);\n this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this);\n this.snapshots = new SnapshotsImpl(this);\n this.resourceSkus = new ResourceSkusImpl(this);\n this.galleries = new GalleriesImpl(this);\n this.galleryImages = new GalleryImagesImpl(this);\n this.galleryImageVersions = new GalleryImageVersionsImpl(this);\n this.galleryApplications = new GalleryApplicationsImpl(this);\n this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);\n this.softDeletedResource = new SoftDeletedResourceImpl(this);\n this.gallerySharingProfile = new GallerySharingProfileImpl(this);\n this.galleryInVMAccessControlProfiles =\n new GalleryInVMAccessControlProfilesImpl(this);\n this.galleryInVMAccessControlProfileVersions =\n new GalleryInVMAccessControlProfileVersionsImpl(this);\n this.sharedGalleries = new SharedGalleriesImpl(this);\n this.sharedGalleryImages = new SharedGalleryImagesImpl(this);\n this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);\n this.communityGalleries = new CommunityGalleriesImpl(this);\n this.communityGalleryImages = new CommunityGalleryImagesImpl(this);\n this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(\n this,\n );\n this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);\n this.cloudServiceRoles = new CloudServiceRolesImpl(this);\n this.cloudServices = new CloudServicesImpl(this);\n this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);\n this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(\n this,\n );\n }\n\n operations: Operations;\n usageOperations: UsageOperations;\n virtualMachineSizes: VirtualMachineSizes;\n virtualMachineScaleSets: VirtualMachineScaleSets;\n virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions;\n virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades;\n virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions;\n virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs;\n virtualMachineExtensions: VirtualMachineExtensions;\n virtualMachines: VirtualMachines;\n virtualMachineImages: VirtualMachineImages;\n virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone;\n virtualMachineExtensionImages: VirtualMachineExtensionImages;\n availabilitySets: AvailabilitySets;\n proximityPlacementGroups: ProximityPlacementGroups;\n dedicatedHostGroups: DedicatedHostGroups;\n dedicatedHosts: DedicatedHosts;\n sshPublicKeys: SshPublicKeys;\n images: Images;\n restorePointCollections: RestorePointCollections;\n restorePoints: RestorePoints;\n capacityReservationGroups: CapacityReservationGroups;\n capacityReservations: CapacityReservations;\n logAnalytics: LogAnalytics;\n virtualMachineRunCommands: VirtualMachineRunCommands;\n virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands;\n disks: Disks;\n diskAccesses: DiskAccesses;\n diskEncryptionSets: DiskEncryptionSets;\n diskRestorePointOperations: DiskRestorePointOperations;\n snapshots: Snapshots;\n resourceSkus: ResourceSkus;\n galleries: Galleries;\n galleryImages: GalleryImages;\n galleryImageVersions: GalleryImageVersions;\n galleryApplications: GalleryApplications;\n galleryApplicationVersions: GalleryApplicationVersions;\n softDeletedResource: SoftDeletedResource;\n gallerySharingProfile: GallerySharingProfile;\n galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles;\n galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions;\n sharedGalleries: SharedGalleries;\n sharedGalleryImages: SharedGalleryImages;\n sharedGalleryImageVersions: SharedGalleryImageVersions;\n communityGalleries: CommunityGalleries;\n communityGalleryImages: CommunityGalleryImages;\n communityGalleryImageVersions: CommunityGalleryImageVersions;\n cloudServiceRoleInstances: CloudServiceRoleInstances;\n cloudServiceRoles: CloudServiceRoles;\n cloudServices: CloudServices;\n cloudServicesUpdateDomain: CloudServicesUpdateDomain;\n cloudServiceOperatingSystems: CloudServiceOperatingSystems;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"computeManagementClient.js","sourceRoot":"","sources":["../../src/computeManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,yCAAyC,EACzC,sCAAsC,EACtC,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,wBAAwB,EACxB,gCAAgC,EAChC,iCAAiC,EACjC,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,2BAA2B,EAC3B,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB,EAChB,6BAA6B,EAC7B,uCAAuC,EACvC,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,oCAAoC,EACpC,2CAA2C,EAC3C,mBAAmB,EACnB,uBAA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AG,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,gCAAgC;YACnC,IAAI,oCAAoC,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,uCAAuC;YAC1C,IAAI,2CAA2C,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,6BAA6B,GAAG,IAAI,iCAAiC,CACxE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;IACJ,CAAC;CAsDF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n UsageOperationsImpl,\n VirtualMachineSizesImpl,\n VirtualMachineScaleSetsImpl,\n VirtualMachineScaleSetExtensionsImpl,\n VirtualMachineScaleSetRollingUpgradesImpl,\n VirtualMachineScaleSetVMExtensionsImpl,\n VirtualMachineScaleSetVMsImpl,\n VirtualMachineExtensionsImpl,\n VirtualMachinesImpl,\n VirtualMachineImagesImpl,\n VirtualMachineImagesEdgeZoneImpl,\n VirtualMachineExtensionImagesImpl,\n AvailabilitySetsImpl,\n ProximityPlacementGroupsImpl,\n DedicatedHostGroupsImpl,\n DedicatedHostsImpl,\n SshPublicKeysImpl,\n ImagesImpl,\n RestorePointCollectionsImpl,\n RestorePointsImpl,\n CapacityReservationGroupsImpl,\n CapacityReservationsImpl,\n LogAnalyticsImpl,\n VirtualMachineRunCommandsImpl,\n VirtualMachineScaleSetVMRunCommandsImpl,\n DisksImpl,\n DiskAccessesImpl,\n DiskEncryptionSetsImpl,\n DiskRestorePointOperationsImpl,\n SnapshotsImpl,\n ResourceSkusImpl,\n GalleriesImpl,\n GalleryImagesImpl,\n GalleryImageVersionsImpl,\n GalleryApplicationsImpl,\n GalleryApplicationVersionsImpl,\n SoftDeletedResourceImpl,\n GallerySharingProfileImpl,\n GalleryInVMAccessControlProfilesImpl,\n GalleryInVMAccessControlProfileVersionsImpl,\n SharedGalleriesImpl,\n SharedGalleryImagesImpl,\n SharedGalleryImageVersionsImpl,\n CommunityGalleriesImpl,\n CommunityGalleryImagesImpl,\n CommunityGalleryImageVersionsImpl,\n CloudServiceRoleInstancesImpl,\n CloudServiceRolesImpl,\n CloudServicesImpl,\n CloudServicesUpdateDomainImpl,\n CloudServiceOperatingSystemsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n UsageOperations,\n VirtualMachineSizes,\n VirtualMachineScaleSets,\n VirtualMachineScaleSetExtensions,\n VirtualMachineScaleSetRollingUpgrades,\n VirtualMachineScaleSetVMExtensions,\n VirtualMachineScaleSetVMs,\n VirtualMachineExtensions,\n VirtualMachines,\n VirtualMachineImages,\n VirtualMachineImagesEdgeZone,\n VirtualMachineExtensionImages,\n AvailabilitySets,\n ProximityPlacementGroups,\n DedicatedHostGroups,\n DedicatedHosts,\n SshPublicKeys,\n Images,\n RestorePointCollections,\n RestorePoints,\n CapacityReservationGroups,\n CapacityReservations,\n LogAnalytics,\n VirtualMachineRunCommands,\n VirtualMachineScaleSetVMRunCommands,\n Disks,\n DiskAccesses,\n DiskEncryptionSets,\n DiskRestorePointOperations,\n Snapshots,\n ResourceSkus,\n Galleries,\n GalleryImages,\n GalleryImageVersions,\n GalleryApplications,\n GalleryApplicationVersions,\n SoftDeletedResource,\n GallerySharingProfile,\n GalleryInVMAccessControlProfiles,\n GalleryInVMAccessControlProfileVersions,\n SharedGalleries,\n SharedGalleryImages,\n SharedGalleryImageVersions,\n CommunityGalleries,\n CommunityGalleryImages,\n CommunityGalleryImageVersions,\n CloudServiceRoleInstances,\n CloudServiceRoles,\n CloudServices,\n CloudServicesUpdateDomain,\n CloudServiceOperatingSystems,\n} from \"./operationsInterfaces/index.js\";\nimport { ComputeManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ComputeManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ComputeManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ComputeManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ComputeManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-compute/22.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.operations = new OperationsImpl(this);\n this.usageOperations = new UsageOperationsImpl(this);\n this.virtualMachineSizes = new VirtualMachineSizesImpl(this);\n this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this);\n this.virtualMachineScaleSetExtensions =\n new VirtualMachineScaleSetExtensionsImpl(this);\n this.virtualMachineScaleSetRollingUpgrades =\n new VirtualMachineScaleSetRollingUpgradesImpl(this);\n this.virtualMachineScaleSetVMExtensions =\n new VirtualMachineScaleSetVMExtensionsImpl(this);\n this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this);\n this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this);\n this.virtualMachines = new VirtualMachinesImpl(this);\n this.virtualMachineImages = new VirtualMachineImagesImpl(this);\n this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl(\n this,\n );\n this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl(\n this,\n );\n this.availabilitySets = new AvailabilitySetsImpl(this);\n this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this);\n this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this);\n this.dedicatedHosts = new DedicatedHostsImpl(this);\n this.sshPublicKeys = new SshPublicKeysImpl(this);\n this.images = new ImagesImpl(this);\n this.restorePointCollections = new RestorePointCollectionsImpl(this);\n this.restorePoints = new RestorePointsImpl(this);\n this.capacityReservationGroups = new CapacityReservationGroupsImpl(this);\n this.capacityReservations = new CapacityReservationsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this);\n this.virtualMachineScaleSetVMRunCommands =\n new VirtualMachineScaleSetVMRunCommandsImpl(this);\n this.disks = new DisksImpl(this);\n this.diskAccesses = new DiskAccessesImpl(this);\n this.diskEncryptionSets = new DiskEncryptionSetsImpl(this);\n this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this);\n this.snapshots = new SnapshotsImpl(this);\n this.resourceSkus = new ResourceSkusImpl(this);\n this.galleries = new GalleriesImpl(this);\n this.galleryImages = new GalleryImagesImpl(this);\n this.galleryImageVersions = new GalleryImageVersionsImpl(this);\n this.galleryApplications = new GalleryApplicationsImpl(this);\n this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this);\n this.softDeletedResource = new SoftDeletedResourceImpl(this);\n this.gallerySharingProfile = new GallerySharingProfileImpl(this);\n this.galleryInVMAccessControlProfiles =\n new GalleryInVMAccessControlProfilesImpl(this);\n this.galleryInVMAccessControlProfileVersions =\n new GalleryInVMAccessControlProfileVersionsImpl(this);\n this.sharedGalleries = new SharedGalleriesImpl(this);\n this.sharedGalleryImages = new SharedGalleryImagesImpl(this);\n this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this);\n this.communityGalleries = new CommunityGalleriesImpl(this);\n this.communityGalleryImages = new CommunityGalleryImagesImpl(this);\n this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl(\n this,\n );\n this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this);\n this.cloudServiceRoles = new CloudServiceRolesImpl(this);\n this.cloudServices = new CloudServicesImpl(this);\n this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this);\n this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl(\n this,\n );\n }\n\n operations: Operations;\n usageOperations: UsageOperations;\n virtualMachineSizes: VirtualMachineSizes;\n virtualMachineScaleSets: VirtualMachineScaleSets;\n virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions;\n virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades;\n virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions;\n virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs;\n virtualMachineExtensions: VirtualMachineExtensions;\n virtualMachines: VirtualMachines;\n virtualMachineImages: VirtualMachineImages;\n virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone;\n virtualMachineExtensionImages: VirtualMachineExtensionImages;\n availabilitySets: AvailabilitySets;\n proximityPlacementGroups: ProximityPlacementGroups;\n dedicatedHostGroups: DedicatedHostGroups;\n dedicatedHosts: DedicatedHosts;\n sshPublicKeys: SshPublicKeys;\n images: Images;\n restorePointCollections: RestorePointCollections;\n restorePoints: RestorePoints;\n capacityReservationGroups: CapacityReservationGroups;\n capacityReservations: CapacityReservations;\n logAnalytics: LogAnalytics;\n virtualMachineRunCommands: VirtualMachineRunCommands;\n virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands;\n disks: Disks;\n diskAccesses: DiskAccesses;\n diskEncryptionSets: DiskEncryptionSets;\n diskRestorePointOperations: DiskRestorePointOperations;\n snapshots: Snapshots;\n resourceSkus: ResourceSkus;\n galleries: Galleries;\n galleryImages: GalleryImages;\n galleryImageVersions: GalleryImageVersions;\n galleryApplications: GalleryApplications;\n galleryApplicationVersions: GalleryApplicationVersions;\n softDeletedResource: SoftDeletedResource;\n gallerySharingProfile: GallerySharingProfile;\n galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles;\n galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions;\n sharedGalleries: SharedGalleries;\n sharedGalleryImages: SharedGalleryImages;\n sharedGalleryImageVersions: SharedGalleryImageVersions;\n communityGalleries: CommunityGalleries;\n communityGalleryImages: CommunityGalleryImages;\n communityGalleryImageVersions: CommunityGalleryImageVersions;\n cloudServiceRoleInstances: CloudServiceRoleInstances;\n cloudServiceRoles: CloudServiceRoles;\n cloudServices: CloudServices;\n cloudServicesUpdateDomain: CloudServicesUpdateDomain;\n cloudServiceOperatingSystems: CloudServiceOperatingSystems;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
1
|
import { __rest } from "tslib";
|
|
9
2
|
export function createLroSpec(inputs) {
|
|
10
3
|
const { args, spec, sendOperationFn } = inputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ComputeManagementClient.",
|
|
6
|
-
"version": "22.3.
|
|
6
|
+
"version": "22.3.1-alpha.20250128.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18.0.0"
|
|
9
9
|
},
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"types": "./dist/commonjs/index.d.ts",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@azure-tools/test-credential": "^2.0.0",
|
|
33
|
-
"@azure-tools/test-recorder": "
|
|
34
|
-
"@azure-tools/test-utils-vitest": "
|
|
33
|
+
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
|
34
|
+
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
35
35
|
"@azure/arm-network": "^32.2.0",
|
|
36
|
-
"@azure/dev-tool": "
|
|
36
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
37
37
|
"@azure/identity": "^4.5.0",
|
|
38
38
|
"@azure/logger": "^1.1.4",
|
|
39
39
|
"@types/node": "^18.0.0",
|