Skip to content

Commit 453d092

Browse files
author
SDK Automation
committed
Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8
Merge pull request #6 from Khushboo-Baheti/master merge
1 parent 0453ec6 commit 453d092

16 files changed

+397
-443
lines changed

sdk/devspaces/arm-devspaces/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/devspaces/arm-devspaces/README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@ This package contains an isomorphic SDK for DevSpacesManagementClient.
99

1010
### How to Install
1111

12-
```
12+
```bash
1313
npm install @azure/arm-devspaces
1414
```
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and get controllers as an example written in TypeScript.
18+
#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

22-
```
23-
npm install @azure/ms-rest-nodeauth
22+
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
23+
```bash
24+
npm install @azure/ms-rest-nodeauth@"^3.0.0"
2425
```
2526

2627
##### Sample code
2728

28-
```ts
29+
```typescript
2930
import * as msRest from "@azure/ms-rest-js";
3031
import * as msRestAzure from "@azure/ms-rest-azure-js";
3132
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
@@ -34,9 +35,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3435

3536
msRestNodeAuth.interactiveLogin().then((creds) => {
3637
const client = new DevSpacesManagementClient(creds, subscriptionId);
37-
const resourceGroupName = "testresourceGroupName";
38-
const name = "testname";
39-
client.controllers.get(resourceGroupName, name).then((result) => {
38+
client.operations.list().then((result) => {
4039
console.log("The result is:");
4140
console.log(result);
4241
});
@@ -45,11 +44,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
4544
});
4645
```
4746

48-
#### browser - Authentication, client creation and get controllers as an example written in JavaScript.
47+
#### browser - Authentication, client creation and list operations as an example written in JavaScript.
4948

5049
##### Install @azure/ms-rest-browserauth
5150

52-
```
51+
```bash
5352
npm install @azure/ms-rest-browserauth
5453
```
5554

@@ -79,9 +78,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
7978
authManager.login();
8079
}
8180
const client = new Azure.ArmDevspaces.DevSpacesManagementClient(res.creds, subscriptionId);
82-
const resourceGroupName = "testresourceGroupName";
83-
const name = "testname";
84-
client.controllers.get(resourceGroupName, name).then((result) => {
81+
client.operations.list().then((result) => {
8582
console.log("The result is:");
8683
console.log(result);
8784
}).catch((err) => {
@@ -99,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9996

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

102-
103-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdevspaces%2Farm-devspaces%2FREADME.png)
99+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/devspaces/arm-devspaces/README.png)

sdk/devspaces/arm-devspaces/package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "DevSpacesManagementClient Library with typescript type definitions for node.js and browser.",
55
"version": "1.1.0",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^1.1.0",
8-
"@azure/ms-rest-js": "^1.1.0",
9-
"tslib": "^1.9.3"
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
9+
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
1212
"node",
@@ -20,18 +20,19 @@
2020
"module": "./esm/devSpacesManagementClient.js",
2121
"types": "./esm/devSpacesManagementClient.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
26-
"uglify-js": "^3.4.9"
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
26+
"rollup-plugin-sourcemaps": "^0.4.2",
27+
"uglify-js": "^3.6.0"
2728
},
28-
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/devspaces/arm-devspaces",
29+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/devspaces/arm-devspaces",
2930
"repository": {
3031
"type": "git",
31-
"url": "https://github.com/azure/azure-sdk-for-js.git"
32+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
3233
},
3334
"bugs": {
34-
"url": "https://github.com/azure/azure-sdk-for-js/issues"
35+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
3536
},
3637
"files": [
3738
"dist/**/*.js",
@@ -43,6 +44,7 @@
4344
"esm/**/*.d.ts",
4445
"esm/**/*.d.ts.map",
4546
"src/**/*.ts",
47+
"README.md",
4648
"rollup.config.js",
4749
"tsconfig.json"
4850
],
@@ -52,5 +54,5 @@
5254
"prepack": "npm install && npm run build"
5355
},
5456
"sideEffects": false,
55-
"authPublish": true
57+
"autoPublish": true
5658
}
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
import rollup from "rollup";
12
import nodeResolve from "rollup-plugin-node-resolve";
3+
import sourcemaps from "rollup-plugin-sourcemaps";
4+
25
/**
3-
* @type {import('rollup').RollupFileOptions}
6+
* @type {rollup.RollupFileOptions}
47
*/
58
const config = {
6-
input: './esm/devSpacesManagementClient.js',
7-
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
9+
input: "./esm/devSpacesManagementClient.js",
10+
external: [
11+
"@azure/ms-rest-js",
12+
"@azure/ms-rest-azure-js"
13+
],
814
output: {
915
file: "./dist/arm-devspaces.js",
1016
format: "umd",
@@ -16,16 +22,16 @@ const config = {
1622
},
1723
banner: `/*
1824
* Copyright (c) Microsoft Corporation. All rights reserved.
19-
* Licensed under the MIT License. See License.txt in the project root for
20-
* license information.
25+
* Licensed under the MIT License. See License.txt in the project root for license information.
2126
*
2227
* Code generated by Microsoft (R) AutoRest Code Generator.
23-
* Changes may cause incorrect behavior and will be lost if the code is
24-
* regenerated.
28+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
2529
*/`
2630
},
2731
plugins: [
28-
nodeResolve({ module: true })
32+
nodeResolve({ mainFields: ['module', 'main'] }),
33+
sourcemaps()
2934
]
3035
};
36+
3137
export default config;

sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { DevSpacesManagementClientContext } from "./devSpacesManagementClientCon
1818
class DevSpacesManagementClient extends DevSpacesManagementClientContext {
1919
// Operation groups
2020
containerHostMappings: operations.ContainerHostMappings;
21-
controllers: operations.Controllers;
2221
operations: operations.Operations;
22+
controllers: operations.Controllers;
2323

2424
/**
2525
* Initializes a new instance of the DevSpacesManagementClient class.
@@ -30,8 +30,8 @@ class DevSpacesManagementClient extends DevSpacesManagementClientContext {
3030
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.DevSpacesManagementClientOptions) {
3131
super(credentials, subscriptionId, options);
3232
this.containerHostMappings = new operations.ContainerHostMappings(this);
33-
this.controllers = new operations.Controllers(this);
3433
this.operations = new operations.Operations(this);
34+
this.controllers = new operations.Controllers(this);
3535
}
3636
}
3737

sdk/devspaces/arm-devspaces/src/devSpacesManagementClientContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
1313
import * as msRestAzure from "@azure/ms-rest-azure-js";
1414

1515
const packageName = "@azure/arm-devspaces";
16-
const packageVersion = "0.1.0";
16+
const packageVersion = "1.1.0";
1717

1818
export class DevSpacesManagementClientContext extends msRestAzure.AzureServiceClient {
1919
credentials: msRest.ServiceClientCredentials;
@@ -44,7 +44,7 @@ export class DevSpacesManagementClientContext extends msRestAzure.AzureServiceCl
4444

4545
super(credentials, options);
4646

47-
this.apiVersion = '2018-06-01-preview';
47+
this.apiVersion = '2019-04-01';
4848
this.acceptLanguage = 'en-US';
4949
this.longRunningOperationRetryTimeout = 30;
5050
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
/*
22
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
7-
* Changes may cause incorrect behavior and will be lost if the code is
8-
* regenerated.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
97
*/
108

119
export {
1210
discriminators,
1311
ContainerHostMapping,
14-
CloudError
12+
DevSpacesErrorResponse,
13+
ErrorDetails
1514
} from "../models/mappers";
16-
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
/*
22
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
7-
* Changes may cause incorrect behavior and will be lost if the code is
8-
* regenerated.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
97
*/
108

119
export {
1210
discriminators,
13-
Controller,
14-
TrackedResource,
15-
Resource,
1611
BaseResource,
17-
Sku,
18-
ErrorResponse,
19-
ErrorDetails,
20-
ControllerUpdateParameters,
21-
ControllerList,
22-
ControllerConnectionDetailsList,
12+
Controller,
2313
ControllerConnectionDetails,
14+
ControllerConnectionDetailsList,
15+
ControllerList,
16+
ControllerUpdateParameters,
17+
DevSpacesErrorResponse,
18+
ErrorDetails,
19+
KubernetesConnectionDetails,
20+
ListConnectionDetailsParameters,
2421
OrchestratorSpecificConnectionDetails,
25-
KubernetesConnectionDetails
22+
Resource,
23+
Sku,
24+
TrackedResource
2625
} from "../models/mappers";
27-

0 commit comments

Comments
 (0)