Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
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/machinelearningcomputeManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 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: 42 additions & 38 deletions lib/services/machinelearningcomputeManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
# Microsoft Azure SDK for Node.js - MachineLearningComputeManagement

This project provides a Node.js package for accessing the Azure PAS. Right now it supports:
- **Node.js version: 6.x.x or higher**

## How to Install

```bash
npm install azure-arm-machinelearningcompute
```

## How to Use

### Authentication, client creation and listing operationalizationClusters as an example

```javascript
var msRestAzure = require('ms-rest-azure');
var MachineLearningComputeManagementClient = require("azure-arm-machinelearningcompute");

// Interactive Login
// It provides a url and code that needs to be copied and pasted in a browser and authenticated over there. If successful,
// the user will get a DeviceTokenCredentials object.
msRestAzure.interactiveLogin(function(err, credentials) {
let client = new MachineLearningComputeManagementClient(credentials, 'your-subscription-id');
client.operationalizationClusters.listBySubscriptionId().then((operationalizationClusters) => {
console.log('List of operationalizationClusters:');
console.dir(operationalizationClusters, {depth: null, colors: true});
});
}).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-machinelearningcompute
summary: *content

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

## How to use

### Authentication, client creation and get operationalizationClusters as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const MachineLearningComputeManagementClient = require("azure-arm-machinelearningcompute");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new MachineLearningComputeManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const clusterName = "testclusterName";
return client.operationalizationClusters.get(resourceGroupName, clusterName).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 @@ -10,9 +10,10 @@

import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

declare class MachineLearningComputeManagementClient extends AzureServiceClient {
export default class MachineLearningComputeManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the MachineLearningComputeManagementClient class.
* @constructor
Expand All @@ -33,11 +34,11 @@ declare class MachineLearningComputeManagementClient 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 All @@ -59,4 +60,4 @@ declare class MachineLearningComputeManagementClient extends AzureServiceClient
machineLearningCompute: operations.MachineLearningCompute;
}

export = MachineLearningComputeManagementClient;
export { MachineLearningComputeManagementClient, models as MachineLearningComputeManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class MachineLearningComputeManagementClient 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 Expand Up @@ -81,3 +81,6 @@ class MachineLearningComputeManagementClient extends ServiceClient {
}

module.exports = MachineLearningComputeManagementClient;
module.exports['default'] = MachineLearningComputeManagementClient;
module.exports.MachineLearningComputeManagementClient = MachineLearningComputeManagementClient;
module.exports.MachineLearningComputeManagementModels = models;
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Information about the container service backing the cluster
*
Expand All @@ -23,7 +21,7 @@ class AcsClusterProperties {
* @member {string} orchestratorType Type of orchestrator. It cannot be
* changed once the cluster is created. Possible values include:
* 'Kubernetes', 'None'
* @member {object} orchestratorProperties Orchestrator specific properties
* @member {object} [orchestratorProperties] Orchestrator specific properties
* @member {object} [orchestratorProperties.servicePrincipal] The Azure
* Service Principal used by Kubernetes
* @member {string} [orchestratorProperties.servicePrincipal.clientId] The
Expand Down Expand Up @@ -88,7 +86,7 @@ class AcsClusterProperties {
}
},
orchestratorProperties: {
required: true,
required: false,
serializedName: 'orchestratorProperties',
type: {
name: 'Composite',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

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

'use strict';

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

/**
* Information about the Azure Container Registry which contains the images
* deployed to the cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Error response information.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Wrapper for error response to follow ARM guidelines.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,21 @@

'use strict';

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

/**
* Global configuration for services in the cluster.
*
*/
class GlobalServiceConfiguration {
/**
* Create a GlobalServiceConfiguration.
* @member {object} [additionalProperties] Unmatched properties from the
* message are deserialized this collection
* @member {string} [etag] The configuartion ETag for updates.
* @member {object} [ssl] The SSL configuration properties
* @member {string} [ssl.status] SSL status. Allowed values are Enabled and
* Disabled. Possible values include: 'Enabled', 'Disabled'
* @member {string} [ssl.cert] The SSL cert data in PEM format encoded as
* base64 string
* @member {string} [ssl.key] The SSL key data in PEM format encoded as
* base64 string. This is not returned in response of GET/PUT on the
* resource. To see this please call listKeys API.
* @member {string} [ssl.cert] The SSL cert data in PEM format.
* @member {string} [ssl.key] The SSL key data in PEM format. This is not
* returned in response of GET/PUT on the resource. To see this please call
* listKeys API.
* @member {string} [ssl.cname] The CName of the certificate.
* @member {object} [serviceAuth] Optional global authorization keys for all
* user services deployed in cluster. These are used if the service does not
Expand Down Expand Up @@ -67,21 +62,20 @@ class GlobalServiceConfiguration {
serializedName: 'GlobalServiceConfiguration',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'GlobalServiceConfiguration',
modelProperties: {
additionalProperties: {
required: false,
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
etag: {
required: false,
serializedName: 'etag',
Expand Down
Loading