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 @@ -34,11 +34,11 @@ export default class BatchAIManagementClient 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
6 changes: 3 additions & 3 deletions lib/services/batchaiManagement/lib/batchAIManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class BatchAIManagementClient 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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Azure Application Insights information for performance counters reporting.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AutoScaleSettings {
* of compute nodes the cluster can have.
* @member {number} [initialNodeCount] Initial node count. The number of
* compute nodes to allocate on cluster creation. Note that this value is
* used only during cluster creation. Default value: 0 .
* used only during cluster creation. Default: 0. Default value: 0 .
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Azure Blob Storage Container mounting configuration.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Azure File Share mounting configuration.
*
Expand Down Expand Up @@ -44,7 +42,7 @@ class AzureFileShareReference {
* @member {string} [fileMode] File mode. File mode for files on the mounted
* file share. Default value: 0777. Default value: '0777' .
* @member {string} [directoryMode] Directory mode. File mode for directories
* on the mounted file share. Default value: '0777' .
* on the mounted file share. Default value: 0777. Default value: '0777' .
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Azure storage account credentials.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/batchaiManagement/lib/models/batchAIError.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* An error response from the Batch AI service.
*
Expand Down
1 change: 1 addition & 0 deletions lib/services/batchaiManagement/lib/models/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ class Cluster extends models['ProxyResource'] {
},
provisioningState: {
required: false,
nullable: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Cluster creation operation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Cluster update parameters.
*
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 listByResourceGroup operation.
*
*/
class ClustersListByResourceGroupOptions {
/**
* Create a ClustersListByResourceGroupOptions.
* @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 ClustersListByResourceGroupOptions
*
* @returns {object} metadata of ClustersListByResourceGroupOptions
*
*/
mapper() {
return {
required: false,
type: {
name: 'Composite',
className: 'ClustersListByResourceGroupOptions',
modelProperties: {
maxResults: {
required: false,
defaultValue: 1000,
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = ClustersListByResourceGroupOptions;
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Docker container settings.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* An environment variable with secret value definition.
*
Expand Down
1 change: 1 addition & 0 deletions lib/services/batchaiManagement/lib/models/experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class Experiment extends models['ProxyResource'] {
},
provisioningState: {
required: false,
nullable: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
Expand Down
1 change: 1 addition & 0 deletions lib/services/batchaiManagement/lib/models/fileServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ class FileServer extends models['ProxyResource'] {
},
provisioningState: {
required: false,
nullable: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* File Server creation parameters.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* File Server mounting configuration.
*
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 listByResourceGroup operation.
*
*/
class FileServersListByResourceGroupOptions {
/**
* Create a FileServersListByResourceGroupOptions.
* @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 FileServersListByResourceGroupOptions
*
* @returns {object} metadata of FileServersListByResourceGroupOptions
*
*/
mapper() {
return {
required: false,
type: {
name: 'Composite',
className: 'FileServersListByResourceGroupOptions',
modelProperties: {
maxResults: {
required: false,
defaultValue: 1000,
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = FileServersListByResourceGroupOptions;
Loading