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/batchaiManagement/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/batchaiManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
---
uid: azure-arm-batchai
summary: *content

---
# Microsoft Azure SDK for Node.js - BatchAIManagementClient
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-batchai
```

## How to use

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

```javascript
const msRestAzure = require("ms-rest-azure");
const BatchAIManagementClient = require("azure-arm-batchai");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new BatchAIManagementClient(creds, subscriptionId);
return client.operations.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)
---
uid: azure-arm-batchai
summary: *content
---
# Microsoft Azure SDK for Node.js - BatchAIManagementClient
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-batchai
```
## How to use
### Authentication, client creation and list operations as an example.
```javascript
const msRestAzure = require("ms-rest-azure");
const BatchAIManagementClient = require("azure-arm-batchai");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new BatchAIManagementClient(creds, subscriptionId);
return client.operations.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)
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ export default class BatchAIManagementClient extends AzureServiceClient {

// Operation groups
operations: operations.Operations;
usageOperations: operations.UsageOperations;
usages: operations.Usages;
clusters: operations.Clusters;
jobs: operations.Jobs;
fileServers: operations.FileServers;
workspaces: operations.Workspaces;
experiments: operations.Experiments;
jobs: operations.Jobs;
}

export { BatchAIManagementClient, models as BatchAIManagementModels };
8 changes: 5 additions & 3 deletions lib/services/batchaiManagement/lib/batchAIManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BatchAIManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2018-03-01';
this.apiVersion = '2018-05-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand All @@ -73,10 +73,12 @@ class BatchAIManagementClient extends ServiceClient {
this.generateClientRequestId = options.generateClientRequestId;
}
this.operations = new operations.Operations(this);
this.usageOperations = new operations.UsageOperations(this);
this.usages = new operations.Usages(this);
this.clusters = new operations.Clusters(this);
this.jobs = new operations.Jobs(this);
this.fileServers = new operations.FileServers(this);
this.workspaces = new operations.Workspaces(this);
this.experiments = new operations.Experiments(this);
this.jobs = new operations.Jobs(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/services/batchaiManagement/lib/models/batchAIError.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,23 @@ class BatchAIError {
modelProperties: {
code: {
required: false,
readOnly: true,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
readOnly: true,
serializedName: 'message',
type: {
name: 'String'
}
},
details: {
required: false,
readOnly: true,
serializedName: 'details',
type: {
name: 'Sequence',
Expand Down
16 changes: 7 additions & 9 deletions lib/services/batchaiManagement/lib/models/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Cluster extends models['Resource'] {
* target.
* @member {string} [scaleSettings.manual.nodeDeallocationOption] The default
* value is requeue. Possible values include: 'requeue', 'terminate',
* 'waitforjobcompletion', 'unknown'
* 'waitforjobcompletion'
* @member {object} [scaleSettings.autoScale]
* @member {number} [scaleSettings.autoScale.minimumNodeCount]
* @member {number} [scaleSettings.autoScale.maximumNodeCount]
Expand All @@ -62,13 +62,12 @@ class Cluster extends models['Resource'] {
* @member {object} [nodeSetup] Setup to be done on all compute nodes in the
* Cluster.
* @member {object} [nodeSetup.setupTask]
* @member {string} [nodeSetup.setupTask.commandLine]
* @member {string} [nodeSetup.setupTask.commandLine] Command line to be
* executed on each cluster's node after it being allocated or rebooted. The
* command is executed in a bash subshell as a root.
* @member {array} [nodeSetup.setupTask.environmentVariables]
* @member {array} [nodeSetup.setupTask.secrets] Server will never report
* values of these variables back.
* @member {boolean} [nodeSetup.setupTask.runElevated] Note. Non-elevated
* tasks are run under an account added into sudoer list and can perform sudo
* when required.
* @member {string} [nodeSetup.setupTask.stdOutErrPathPrefix] The prefix of a
* path where the Batch AI service will upload the stdout and stderr of the
* setup task.
Expand Down Expand Up @@ -284,8 +283,7 @@ class Cluster extends models['Resource'] {
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
name: 'Enum',
allowedValues: [ 'creating', 'succeeded', 'failed', 'deleting' ]
name: 'String'
}
},
provisioningStateTransitionTime: {
Expand All @@ -301,8 +299,7 @@ class Cluster extends models['Resource'] {
readOnly: true,
serializedName: 'properties.allocationState',
type: {
name: 'Enum',
allowedValues: [ 'steady', 'resizing' ]
name: 'String'
}
},
allocationStateTransitionTime: {
Expand All @@ -315,6 +312,7 @@ class Cluster extends models['Resource'] {
},
errors: {
required: false,
readOnly: true,
serializedName: 'properties.errors',
type: {
name: 'Sequence',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ClusterCreateParameters {
* target.
* @member {string} [scaleSettings.manual.nodeDeallocationOption] The default
* value is requeue. Possible values include: 'requeue', 'terminate',
* 'waitforjobcompletion', 'unknown'
* 'waitforjobcompletion'
* @member {object} [scaleSettings.autoScale]
* @member {number} [scaleSettings.autoScale.minimumNodeCount]
* @member {number} [scaleSettings.autoScale.maximumNodeCount]
Expand All @@ -62,13 +62,12 @@ class ClusterCreateParameters {
* @member {object} [nodeSetup] Setup to be done on all compute nodes in the
* cluster.
* @member {object} [nodeSetup.setupTask]
* @member {string} [nodeSetup.setupTask.commandLine]
* @member {string} [nodeSetup.setupTask.commandLine] Command line to be
* executed on each cluster's node after it being allocated or rebooted. The
* command is executed in a bash subshell as a root.
* @member {array} [nodeSetup.setupTask.environmentVariables]
* @member {array} [nodeSetup.setupTask.secrets] Server will never report
* values of these variables back.
* @member {boolean} [nodeSetup.setupTask.runElevated] Note. Non-elevated
* tasks are run under an account added into sudoer list and can perform sudo
* when required.
* @member {string} [nodeSetup.setupTask.stdOutErrPathPrefix] The prefix of a
* path where the Batch AI service will upload the stdout and stderr of the
* setup task.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class ClusterListResult extends Array {
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
Expand All @@ -53,6 +54,7 @@ class ClusterListResult extends Array {
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ClusterUpdateParameters {
* target.
* @member {string} [scaleSettings.manual.nodeDeallocationOption] The default
* value is requeue. Possible values include: 'requeue', 'terminate',
* 'waitforjobcompletion', 'unknown'
* 'waitforjobcompletion'
* @member {object} [scaleSettings.autoScale]
* @member {number} [scaleSettings.autoScale.minimumNodeCount]
* @member {number} [scaleSettings.autoScale.maximumNodeCount]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
class ClustersListByResourceGroupOptions {
/**
* Create a ClustersListByResourceGroupOptions.
* @member {string} [filter] An OData $filter clause.. Used to filter results
* that are returned in the GET respnose.
* @member {string} [select] An OData $select clause. Used to select the
* properties to be returned in the GET respnose.
* @member {number} [maxResults] The maximum number of items to return in the
* response. A maximum of 1000 files can be returned. Default value: 1000 .
*/
Expand All @@ -40,18 +36,6 @@ class ClustersListByResourceGroupOptions {
name: 'Composite',
className: 'ClustersListByResourceGroupOptions',
modelProperties: {
filter: {
required: false,
type: {
name: 'String'
}
},
select: {
required: false,
type: {
name: 'String'
}
},
maxResults: {
required: false,
defaultValue: 1000,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Additional parameters for listByWorkspace operation.
*
*/
class ClustersListByWorkspaceOptions {
/**
* Create a ClustersListByWorkspaceOptions.
* @member {number} [maxResults] The maximum number of items to return in the
* response. A maximum of 1000 files can be returned. Default value: 1000 .
*/
constructor() {
}

/**
* Defines the metadata of ClustersListByWorkspaceOptions
*
* @returns {object} metadata of ClustersListByWorkspaceOptions
*
*/
mapper() {
return {
required: false,
type: {
name: 'Composite',
className: 'ClustersListByWorkspaceOptions',
modelProperties: {
maxResults: {
required: false,
defaultValue: 1000,
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = ClustersListByWorkspaceOptions;
Loading