Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions sdk/compute/arm-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ npm install @azure/ms-rest-nodeauth
##### Sample code

```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as coreHttp from "@azure/core-http";
import * as coreArm from "@azure/core-arm";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { ComputeManagementClient, ComputeManagementModels, ComputeManagementMappers } from "@azure/arm-compute";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
Expand Down Expand Up @@ -61,8 +61,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
<html lang="en">
<head>
<title>@azure/arm-compute sample</title>
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/@azure/core-http/dist/coreHttp.browser.js"></script>
<script src="node_modules/@azure/core-arm/dist/coreArm.js"></script>
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-compute/dist/arm-compute.js"></script>
<script type="text/javascript">
Expand Down Expand Up @@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/compute/arm-compute/README.png)
10 changes: 5 additions & 5 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "ComputeManagementClient Library with typescript type definitions for node.js and browser.",
"version": "10.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.8.1",
"@azure/core-arm": "^1.0.0-preview.1",
"@azure/core-http": "^1.0.0-preview.1",
"tslib": "^1.9.3"
},
"keywords": [
Expand All @@ -26,13 +26,13 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/compute/arm-compute",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/compute/arm-compute",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand Down
8 changes: 4 additions & 4 deletions sdk/compute/arm-compute/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import sourcemaps from "rollup-plugin-sourcemaps";
const config = {
input: "./esm/computeManagementClient.js",
external: [
"@azure/ms-rest-js",
"@azure/ms-rest-azure-js"
"@azure/core-http",
"@azure/core-arm"
],
output: {
file: "./dist/arm-compute.js",
format: "umd",
name: "Azure.ArmCompute",
sourcemap: true,
globals: {
"@azure/ms-rest-js": "msRest",
"@azure/ms-rest-azure-js": "msRestAzure"
"@azure/core-http": "coreHttp",
"@azure/core-arm": "coreArm"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down
12 changes: 8 additions & 4 deletions sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as coreHttp from "@azure/core-http";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
Expand All @@ -19,6 +19,9 @@ class ComputeManagementClient extends ComputeManagementClientContext {
// Operation groups
operations: operations.Operations;
availabilitySets: operations.AvailabilitySets;
proximityPlacementGroups: operations.ProximityPlacementGroups;
dedicatedHostGroups: operations.DedicatedHostGroups;
dedicatedHosts: operations.DedicatedHosts;
virtualMachineExtensionImages: operations.VirtualMachineExtensionImages;
virtualMachineExtensions: operations.VirtualMachineExtensions;
virtualMachineImages: operations.VirtualMachineImages;
Expand All @@ -29,7 +32,6 @@ class ComputeManagementClient extends ComputeManagementClientContext {
virtualMachineScaleSets: operations.VirtualMachineScaleSets;
virtualMachineScaleSetExtensions: operations.VirtualMachineScaleSetExtensions;
virtualMachineScaleSetRollingUpgrades: operations.VirtualMachineScaleSetRollingUpgrades;
virtualMachineScaleSet: operations.VirtualMachineScaleSetOperations;
virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs;
logAnalytics: operations.LogAnalytics;
virtualMachineRunCommands: operations.VirtualMachineRunCommands;
Expand All @@ -48,10 +50,13 @@ class ComputeManagementClient extends ComputeManagementClientContext {
* subscription. The subscription ID forms part of the URI for every service call.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ComputeManagementClientOptions) {
constructor(credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials, subscriptionId: string, options?: Models.ComputeManagementClientOptions) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.availabilitySets = new operations.AvailabilitySets(this);
this.proximityPlacementGroups = new operations.ProximityPlacementGroups(this);
this.dedicatedHostGroups = new operations.DedicatedHostGroups(this);
this.dedicatedHosts = new operations.DedicatedHosts(this);
this.virtualMachineExtensionImages = new operations.VirtualMachineExtensionImages(this);
this.virtualMachineExtensions = new operations.VirtualMachineExtensions(this);
this.virtualMachineImages = new operations.VirtualMachineImages(this);
Expand All @@ -62,7 +67,6 @@ class ComputeManagementClient extends ComputeManagementClientContext {
this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this);
this.virtualMachineScaleSetExtensions = new operations.VirtualMachineScaleSetExtensions(this);
this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades(this);
this.virtualMachineScaleSet = new operations.VirtualMachineScaleSetOperations(this);
this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this);
this.logAnalytics = new operations.LogAnalytics(this);
this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this);
Expand Down
12 changes: 6 additions & 6 deletions sdk/compute/arm-compute/src/computeManagementClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
*/

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as coreHttp from "@azure/core-http";
import * as coreArm from "@azure/core-arm";

const packageName = "@azure/arm-compute";
const packageVersion = "10.0.0";

export class ComputeManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
export class ComputeManagementClientContext extends coreArm.AzureServiceClient {
credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials;
subscriptionId: string;

/**
Expand All @@ -26,7 +26,7 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie
* subscription. The subscription ID forms part of the URI for every service call.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ComputeManagementClientOptions) {
constructor(credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials, subscriptionId: string, options?: Models.ComputeManagementClientOptions) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
}
Expand All @@ -38,7 +38,7 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie
options = {};
}
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
const defaultUserAgent = coreArm.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

Expand Down
12 changes: 10 additions & 2 deletions sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ export {
CreationData,
DataDisk,
DataDiskImage,
DedicatedHost,
DedicatedHostAllocatableVM,
DedicatedHostAvailableCapacity,
DedicatedHostGroup,
DedicatedHostGroupUpdate,
DedicatedHostInstanceView,
DedicatedHostUpdate,
DiagnosticsProfile,
DiffDiskSettings,
Disallowed,
Expand All @@ -47,7 +54,7 @@ export {
EncryptionSettingsElement,
Gallery,
GalleryArtifactPublishingProfileBase,
GalleryArtifactSource,
GalleryArtifactVersionSource,
GalleryDataDiskImage,
GalleryDiskImage,
GalleryIdentifier,
Expand All @@ -74,14 +81,15 @@ export {
KeyVaultSecretReference,
LinuxConfiguration,
MaintenanceRedeployStatus,
ManagedArtifact,
ManagedDiskParameters,
NetworkInterfaceReference,
NetworkProfile,
OSDisk,
OSDiskImage,
OSProfile,
Plan,
ProximityPlacementGroup,
ProximityPlacementGroupUpdate,
PurchasePlan,
RecommendedMachineConfiguration,
RegionalReplicationStatus,
Expand Down
12 changes: 10 additions & 2 deletions sdk/compute/arm-compute/src/models/containerServicesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ export {
CreationData,
DataDisk,
DataDiskImage,
DedicatedHost,
DedicatedHostAllocatableVM,
DedicatedHostAvailableCapacity,
DedicatedHostGroup,
DedicatedHostGroupUpdate,
DedicatedHostInstanceView,
DedicatedHostUpdate,
DiagnosticsProfile,
DiffDiskSettings,
Disallowed,
Expand All @@ -47,7 +54,7 @@ export {
EncryptionSettingsElement,
Gallery,
GalleryArtifactPublishingProfileBase,
GalleryArtifactSource,
GalleryArtifactVersionSource,
GalleryDataDiskImage,
GalleryDiskImage,
GalleryIdentifier,
Expand All @@ -74,14 +81,15 @@ export {
KeyVaultSecretReference,
LinuxConfiguration,
MaintenanceRedeployStatus,
ManagedArtifact,
ManagedDiskParameters,
NetworkInterfaceReference,
NetworkProfile,
OSDisk,
OSDiskImage,
OSProfile,
Plan,
ProximityPlacementGroup,
ProximityPlacementGroupUpdate,
PurchasePlan,
RecommendedMachineConfiguration,
RegionalReplicationStatus,
Expand Down
Loading