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/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.
81 changes: 43 additions & 38 deletions lib/services/machinelearningcomputeManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,43 @@
# 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

---
**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.**
## 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,34 +10,33 @@

'use strict';

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

/**
* Information about the container service backing the cluster
*
*/
class AcsClusterProperties {
/**
* Create a AcsClusterProperties.
* @member {string} [clusterFqdn] The FQDN of the cluster.
* @member {string} orchestratorType Type of orchestrator. It cannot be
* @property {string} [clusterFqdn] The FQDN of the cluster.
* @property {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.servicePrincipal] The Azure
* @property {object} [orchestratorProperties] Orchestrator specific
* properties
* @property {object} [orchestratorProperties.servicePrincipal] The Azure
* Service Principal used by Kubernetes
* @member {string} [orchestratorProperties.servicePrincipal.clientId] The
* @property {string} [orchestratorProperties.servicePrincipal.clientId] The
* service principal client ID
* @member {string} [orchestratorProperties.servicePrincipal.secret] The
* @property {string} [orchestratorProperties.servicePrincipal.secret] The
* service principal secret. This is not returned in response of GET/PUT on
* the resource. To see this please call listKeys.
* @member {array} [systemServices] The system services deployed to the
* @property {array} [systemServices] The system services deployed to the
* cluster
* @member {number} [masterCount] The number of master nodes in the container
* service. Default value: 1 .
* @member {number} [agentCount] The number of agent nodes in the Container
* @property {number} [masterCount] The number of master nodes in the
* container service. Default value: 1 .
* @property {number} [agentCount] The number of agent nodes in the Container
* Service. This can be changed to scale the cluster. Default value: 2 .
* @member {string} [agentVmSize] The Azure VM size of the agent VM nodes.
* @property {string} [agentVmSize] The Azure VM size of the agent VM nodes.
* This cannot be changed once the cluster is created. This list is non
* exhaustive; refer to
* https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes for
Expand Down Expand Up @@ -88,7 +87,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 @@ -17,10 +17,10 @@
class AppInsightsCredentials {
/**
* Create a AppInsightsCredentials.
* @member {string} [appId] The AppInsights application ID.
* @member {string} [instrumentationKey] The AppInsights instrumentation key.
* This is not returned in response of GET/PUT on the resource. To see this
* please call listKeys API.
* @property {string} [appId] The AppInsights application ID.
* @property {string} [instrumentationKey] The AppInsights instrumentation
* key. This is not returned in response of GET/PUT on the resource. To see
* this please call listKeys API.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class AppInsightsProperties {
/**
* Create a AppInsightsProperties.
* @member {string} [resourceId] ARM resource ID of the App Insights.
* @property {string} [resourceId] ARM resource ID of the App Insights.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
class AutoScaleConfiguration {
/**
* Create a AutoScaleConfiguration.
* @member {string} [status] If auto-scale is enabled for all services. Each
* service can turn it off individually. Possible values include: 'Enabled',
* 'Disabled'. Default value: 'Disabled' .
* @member {number} [minReplicas] The minimum number of replicas for each
* @property {string} [status] If auto-scale is enabled for all services.
* Each service can turn it off individually. Possible values include:
* 'Enabled', 'Disabled'. Default value: 'Disabled' .
* @property {number} [minReplicas] The minimum number of replicas for each
* service. Default value: 1 .
* @member {number} [maxReplicas] The maximum number of replicas for each
* @property {number} [maxReplicas] The maximum number of replicas for each
* service. Default value: 100 .
* @member {number} [targetUtilization] The target utilization.
* @member {number} [refreshPeriodInSeconds] Refresh period in seconds.
* @property {number} [targetUtilization] The target utilization.
* @property {number} [refreshPeriodInSeconds] Refresh period in seconds.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@

'use strict';

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

/**
* Available operation list.
*
*/
class AvailableOperations {
/**
* Create a AvailableOperations.
* @member {array} [value] An array of available operations.
* @property {array} [value] An array of available operations.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class CheckSystemServicesUpdatesAvailableResponse {
/**
* Create a CheckSystemServicesUpdatesAvailableResponse.
* @member {string} [updatesAvailable] Yes if updates are available for the
* @property {string} [updatesAvailable] Yes if updates are available for the
* system services, No if not. Possible values include: 'Yes', 'No'
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
class ContainerRegistryCredentials {
/**
* Create a ContainerRegistryCredentials.
* @member {string} [loginServer] The ACR login server name. User name is the
* first part of the FQDN.
* @member {string} [password] The ACR primary password.
* @member {string} [password2] The ACR secondary password.
* @member {string} [username] The ACR login username.
* @property {string} [loginServer] The ACR login server name. User name is
* the first part of the FQDN.
* @property {string} [password] The ACR primary password.
* @property {string} [password2] The ACR secondary password.
* @property {string} [username] The ACR login username.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class ContainerRegistryProperties {
/**
* Create a ContainerRegistryProperties.
* @member {string} [resourceId] ARM resource ID of the Azure Container
* @property {string} [resourceId] ARM resource ID of the Azure Container
* Registry used to store Docker images for web services in the cluster. If
* not provided one will be created. This cannot be changed once the cluster
* is created.
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 All @@ -20,15 +18,15 @@ const models = require('./index');
class ContainerServiceCredentials {
/**
* Create a ContainerServiceCredentials.
* @member {string} [acsKubeConfig] The ACS kube config file.
* @member {object} [servicePrincipalConfiguration] Service principal
* @property {string} [acsKubeConfig] The ACS kube config file.
* @property {object} [servicePrincipalConfiguration] Service principal
* configuration used by Kubernetes.
* @member {string} [servicePrincipalConfiguration.clientId] The service
* @property {string} [servicePrincipalConfiguration.clientId] The service
* principal client ID
* @member {string} [servicePrincipalConfiguration.secret] The service
* @property {string} [servicePrincipalConfiguration.secret] The service
* principal secret. This is not returned in response of GET/PUT on the
* resource. To see this please call listKeys.
* @member {string} [imagePullSecretName] The ACR image pull secret name
* @property {string} [imagePullSecretName] The ACR image pull secret name
* which was created in Kubernetes.
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class ErrorDetail {
/**
* Create a ErrorDetail.
* @member {string} code Error code.
* @member {string} message Error message.
* @property {string} code Error code.
* @property {string} message Error message.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@

'use strict';

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

/**
* Error response information.
*
*/
class ErrorResponse {
/**
* Create a ErrorResponse.
* @member {string} code Error code.
* @member {string} message Error message.
* @member {array} [details] An array of error detail objects.
* @property {string} code Error code.
* @property {string} message Error message.
* @property {array} [details] An array of error detail objects.
*/
constructor() {
}
Expand Down
Loading