Skip to content
Draft
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
2 changes: 1 addition & 1 deletion sdk/labservices/arm-labservices/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 7 additions & 8 deletions sdk/labservices/arm-labservices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ npm install @azure/arm-labservices

### How to use

#### nodejs - Authentication, client creation and list providerOperations as an example written in TypeScript.
#### nodejs - client creation and list providerOperations as an example written in TypeScript.

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

- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
npm install @azure/ms-rest-nodeauth
npm install @azure/ms-rest-nodeauth@"^3.0.0"
```

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { ManagedLabsClient, ManagedLabsModels, ManagedLabsMappers } from "@azure/arm-labservices";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { ManagedLabsClient } = require("@azure/arm-labservices");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
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%2Fsdk%2Flabservices%2Farm-labservices%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/labservices/arm-labservices/README.png)
20 changes: 10 additions & 10 deletions sdk/labservices/arm-labservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "ManagedLabsClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.3.1",
"@azure/ms-rest-js": "^1.2.6",
"tslib": "^1.9.3"
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand All @@ -20,19 +20,19 @@
"module": "./esm/managedLabsClient.js",
"types": "./esm/managedLabsClient.d.ts",
"devDependencies": {
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"typescript": "^3.5.3",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/labservices/arm-labservices",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/labservices/arm-labservices",
"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
6 changes: 3 additions & 3 deletions sdk/labservices/arm-labservices/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/`
},
plugins: [
nodeResolve({ module: true }),
nodeResolve({ mainFields: ['module', 'main'] }),
sourcemaps()
]
};
Expand Down
5 changes: 2 additions & 3 deletions sdk/labservices/arm-labservices/src/managedLabsClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
178 changes: 166 additions & 12 deletions sdk/labservices/arm-labservices/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -1272,16 +1272,6 @@ export interface ResetPasswordPayload {
password?: string;
}

/**
* Represents the size configuration under the lab account
*/
export interface SizeConfigurationPropertiesFragment {
/**
* Represents a list of size categories supported by this Lab Account (Small, Medium, Large)
*/
environmentSizes?: EnvironmentSizeFragment[];
}

/**
* The User registered to a lab
*/
Expand Down Expand Up @@ -1326,6 +1316,16 @@ export interface User extends Resource {
readonly latestOperationResult?: LatestOperationResult;
}

/**
* Represents the size configuration under the lab account
*/
export interface SizeConfigurationPropertiesFragment {
/**
* Represents a list of size categories supported by this Lab Account (Small, Medium, Large)
*/
environmentSizes?: EnvironmentSizeFragment[];
}

/**
* The User registered to a lab
*/
Expand Down Expand Up @@ -1404,6 +1404,50 @@ export interface LabAccountsGetOptionalParams extends msRest.RequestOptionsBase
expand?: string;
}

/**
* Optional Parameters.
*/
export interface LabAccountsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase {
/**
* Specify the $expand query. Example: 'properties($expand=sizeConfiguration)'
*/
expand?: string;
/**
* The filter to apply to the operation.
*/
filter?: string;
/**
* The maximum number of resources to return from the operation.
*/
top?: number;
/**
* The ordering expression for the results, using OData notation.
*/
orderby?: string;
}

/**
* Optional Parameters.
*/
export interface LabAccountsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase {
/**
* Specify the $expand query. Example: 'properties($expand=sizeConfiguration)'
*/
expand?: string;
/**
* The filter to apply to the operation.
*/
filter?: string;
/**
* The maximum number of resources to return from the operation.
*/
top?: number;
/**
* The ordering expression for the results, using OData notation.
*/
orderby?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1436,6 +1480,28 @@ export interface GalleryImagesGetOptionalParams extends msRest.RequestOptionsBas
expand?: string;
}

/**
* Optional Parameters.
*/
export interface GalleryImagesListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* Specify the $expand query. Example: 'properties($select=author)'
*/
expand?: string;
/**
* The filter to apply to the operation.
*/
filter?: string;
/**
* The maximum number of resources to return from the operation.
*/
top?: number;
/**
* The ordering expression for the results, using OData notation.
*/
orderby?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1468,6 +1534,28 @@ export interface LabsGetOptionalParams extends msRest.RequestOptionsBase {
expand?: string;
}

/**
* Optional Parameters.
*/
export interface LabsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* Specify the $expand query. Example: 'properties($select=maxUsersInLab)'
*/
expand?: string;
/**
* The filter to apply to the operation.
*/
filter?: string;
/**
* The maximum number of resources to return from the operation.
*/
top?: number;
/**
* The ordering expression for the results, using OData notation.
*/
orderby?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1500,6 +1588,28 @@ export interface EnvironmentSettingsGetOptionalParams extends msRest.RequestOpti
expand?: string;
}

/**
* Optional Parameters.
*/
export interface EnvironmentSettingsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* Specify the $expand query. Example: 'properties($select=publishingState)'
*/
expand?: string;
/**
* The filter to apply to the operation.
*/
filter?: string;
/**
* The maximum number of resources to return from the operation.
*/
top?: number;
/**
* The ordering expression for the results, using OData notation.
*/
orderby?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1532,6 +1642,28 @@ export interface EnvironmentsGetOptionalParams extends msRest.RequestOptionsBase
expand?: string;
}

/**
* Optional Parameters.
*/
export interface EnvironmentsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* Specify the $expand query. Example: 'properties($expand=networkInterface)'
*/
expand?: string;
/**
* The filter to apply to the operation.
*/
filter?: string;
/**
* The maximum number of resources to return from the operation.
*/
top?: number;
/**
* The ordering expression for the results, using OData notation.
*/
orderby?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1564,6 +1696,28 @@ export interface UsersGetOptionalParams extends msRest.RequestOptionsBase {
expand?: string;
}

/**
* Optional Parameters.
*/
export interface UsersListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* Specify the $expand query. Example: 'properties($select=email)'
*/
expand?: string;
/**
* The filter to apply to the operation.
*/
filter?: string;
/**
* The maximum number of resources to return from the operation.
*/
top?: number;
/**
* The ordering expression for the results, using OData notation.
*/
orderby?: string;
}

/**
* An interface representing ManagedLabsClientOptions.
*/
Expand Down
Loading