Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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
42 changes: 21 additions & 21 deletions lib/services/devTestLabs/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
80 changes: 40 additions & 40 deletions lib/services/devTestLabs/README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
---
uid: azure-arm-devtestlabs
summary: *content

---
# Microsoft Azure SDK for Node.js - DevTestLabsClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**

## Features


## How to Install

```bash
npm install azure-arm-devtestlabs
```

## How to use

### Authentication, client creation and list providerOperations as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const DevTestLabsClient = require("azure-arm-devtestlabs");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new DevTestLabsClient(creds, subscriptionId);
return client.providerOperations.list().then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.log('An error ocurred:');
console.dir(err, {depth: null, colors: true});
});

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
---
uid: azure-arm-devtestlabs
summary: *content
---
# Microsoft Azure SDK for Node.js - DevTestLabsClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**
## Features
## How to Install
```bash
npm install azure-arm-devtestlabs
```
## How to use
### Authentication, client creation and list providerOperations as an example.
```javascript
const msRestAzure = require("ms-rest-azure");
const DevTestLabsClient = require("azure-arm-devtestlabs");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new DevTestLabsClient(creds, subscriptionId);
return client.providerOperations.list().then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.log('An error occurred:');
console.dir(err, {depth: null, colors: true});
});
## Related projects
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
8 changes: 5 additions & 3 deletions lib/services/devTestLabs/lib/devTestLabsClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export default class DevTestLabsClient extends AzureServiceClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
Expand Down Expand Up @@ -76,6 +76,8 @@ export default class DevTestLabsClient extends AzureServiceClient {
disks: operations.Disks;
environments: operations.Environments;
secrets: operations.Secrets;
serviceFabrics: operations.ServiceFabrics;
serviceFabricSchedules: operations.ServiceFabricSchedules;
virtualMachines: operations.VirtualMachines;
virtualMachineSchedules: operations.VirtualMachineSchedules;
virtualNetworks: operations.VirtualNetworks;
Expand Down
10 changes: 6 additions & 4 deletions lib/services/devTestLabs/lib/devTestLabsClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class DevTestLabsClient extends ServiceClient {
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
Expand All @@ -50,7 +50,7 @@ class DevTestLabsClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2016-05-15';
this.apiVersion = '2018-09-15';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand Down Expand Up @@ -92,6 +92,8 @@ class DevTestLabsClient extends ServiceClient {
this.disks = new operations.Disks(this);
this.environments = new operations.Environments(this);
this.secrets = new operations.Secrets(this);
this.serviceFabrics = new operations.ServiceFabrics(this);
this.serviceFabricSchedules = new operations.ServiceFabricSchedules(this);
this.virtualMachines = new operations.VirtualMachines(this);
this.virtualMachineSchedules = new operations.VirtualMachineSchedules(this);
this.virtualNetworks = new operations.VirtualNetworks(this);
Expand Down
16 changes: 14 additions & 2 deletions lib/services/devTestLabs/lib/models/applicableSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,17 @@ class ApplicableSchedule extends models['Resource'] {
* settings.
* @member {string} [labVmsShutdown.notificationSettings.status] If
* notifications are enabled for this schedule (i.e. Enabled, Disabled).
* Possible values include: 'Disabled', 'Enabled'
* Possible values include: 'Enabled', 'Disabled'
* @member {number} [labVmsShutdown.notificationSettings.timeInMinutes] Time
* in minutes before event at which notification will be sent.
* @member {string} [labVmsShutdown.notificationSettings.webhookUrl] The
* webhook URL to which the notification will be sent.
* @member {string} [labVmsShutdown.notificationSettings.emailRecipient] The
* email recipient to send notifications to (can be a list of semi-colon
* seperated email addresses).
* @member {string} [labVmsShutdown.notificationSettings.notificationLocale]
* The locale to use when sending a notification (fallback for unsupported
* languages is EN).
* @member {date} [labVmsShutdown.createdDate] The creation date of the
* schedule.
* @member {string} [labVmsShutdown.targetResourceId] The resource ID to
Expand Down Expand Up @@ -86,11 +92,17 @@ class ApplicableSchedule extends models['Resource'] {
* settings.
* @member {string} [labVmsStartup.notificationSettings.status] If
* notifications are enabled for this schedule (i.e. Enabled, Disabled).
* Possible values include: 'Disabled', 'Enabled'
* Possible values include: 'Enabled', 'Disabled'
* @member {number} [labVmsStartup.notificationSettings.timeInMinutes] Time
* in minutes before event at which notification will be sent.
* @member {string} [labVmsStartup.notificationSettings.webhookUrl] The
* webhook URL to which the notification will be sent.
* @member {string} [labVmsStartup.notificationSettings.emailRecipient] The
* email recipient to send notifications to (can be a list of semi-colon
* seperated email addresses).
* @member {string} [labVmsStartup.notificationSettings.notificationLocale]
* The locale to use when sending a notification (fallback for unsupported
* languages is EN).
* @member {date} [labVmsStartup.createdDate] The creation date of the
* schedule.
* @member {string} [labVmsStartup.targetResourceId] The resource ID to which
Expand Down
59 changes: 16 additions & 43 deletions lib/services/devTestLabs/lib/models/applicableScheduleFragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const models = require('./index');
* Schedules applicable to a virtual machine. The schedules may have been
* defined on a VM or on lab level.
*
* @extends models['Resource']
* @extends models['UpdateResource']
*/
class ApplicableScheduleFragment extends models['Resource'] {
class ApplicableScheduleFragment extends models['UpdateResource'] {
/**
* Create a ApplicableScheduleFragment.
* @member {object} [labVmsShutdown] The auto-shutdown schedule, if one has
Expand Down Expand Up @@ -47,17 +47,19 @@ class ApplicableScheduleFragment extends models['Resource'] {
* settings.
* @member {string} [labVmsShutdown.notificationSettings.status] If
* notifications are enabled for this schedule (i.e. Enabled, Disabled).
* Possible values include: 'Disabled', 'Enabled'
* Possible values include: 'Enabled', 'Disabled'
* @member {number} [labVmsShutdown.notificationSettings.timeInMinutes] Time
* in minutes before event at which notification will be sent.
* @member {string} [labVmsShutdown.notificationSettings.webhookUrl] The
* webhook URL to which the notification will be sent.
* @member {string} [labVmsShutdown.notificationSettings.emailRecipient] The
* email recipient to send notifications to (can be a list of semi-colon
* seperated email addresses).
* @member {string} [labVmsShutdown.notificationSettings.notificationLocale]
* The locale to use when sending a notification (fallback for unsupported
* languages is EN).
* @member {string} [labVmsShutdown.targetResourceId] The resource ID to
* which the schedule belongs
* @member {string} [labVmsShutdown.provisioningState] The provisioning
* status of the resource.
* @member {string} [labVmsShutdown.uniqueIdentifier] The unique immutable
* identifier of a resource (Guid).
* @member {object} [labVmsStartup] The auto-startup schedule, if one has
* been set at the lab or lab resource level.
* @member {string} [labVmsStartup.status] The status of the schedule (i.e.
Expand All @@ -84,17 +86,19 @@ class ApplicableScheduleFragment extends models['Resource'] {
* settings.
* @member {string} [labVmsStartup.notificationSettings.status] If
* notifications are enabled for this schedule (i.e. Enabled, Disabled).
* Possible values include: 'Disabled', 'Enabled'
* Possible values include: 'Enabled', 'Disabled'
* @member {number} [labVmsStartup.notificationSettings.timeInMinutes] Time
* in minutes before event at which notification will be sent.
* @member {string} [labVmsStartup.notificationSettings.webhookUrl] The
* webhook URL to which the notification will be sent.
* @member {string} [labVmsStartup.notificationSettings.emailRecipient] The
* email recipient to send notifications to (can be a list of semi-colon
* seperated email addresses).
* @member {string} [labVmsStartup.notificationSettings.notificationLocale]
* The locale to use when sending a notification (fallback for unsupported
* languages is EN).
* @member {string} [labVmsStartup.targetResourceId] The resource ID to which
* the schedule belongs
* @member {string} [labVmsStartup.provisioningState] The provisioning status
* of the resource.
* @member {string} [labVmsStartup.uniqueIdentifier] The unique immutable
* identifier of a resource (Guid).
*/
constructor() {
super();
Expand All @@ -114,37 +118,6 @@ class ApplicableScheduleFragment extends models['Resource'] {
name: 'Composite',
className: 'ApplicableScheduleFragment',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
location: {
required: false,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
Expand Down
2 changes: 0 additions & 2 deletions lib/services/devTestLabs/lib/models/applyArtifactsRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Request body for applying artifacts to a virtual machine.
*
Expand Down
10 changes: 10 additions & 0 deletions lib/services/devTestLabs/lib/models/armTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class ArmTemplate extends models['Resource'] {
* @member {date} [createdDate] The creation date of the armTemplate.
* @member {array} [parametersValueFilesInfo] File name and parameter values
* information from all azuredeploy.*.parameters.json for the ARM template.
* @member {boolean} [enabled] Whether or not ARM template is enabled for use
* by lab user.
*/
constructor() {
super();
Expand Down Expand Up @@ -155,6 +157,14 @@ class ArmTemplate extends models['Resource'] {
}
}
}
},
enabled: {
required: false,
readOnly: true,
serializedName: 'properties.enabled',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Loading