From 0f970c75968ddfb8402e8efa2a3ba39f56445958 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 2 Dec 2018 09:19:14 +0000 Subject: [PATCH] Generated from efcf5f62a895a544bb73682bb0f3d19effb2e51f typo: machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute - Operationalizaton -> Operationalization - configuartion -> configuration - Trim trailing whitespace --- .../LICENSE.txt | 42 +- .../README.md | 81 +- ...achineLearningComputeManagementClient.d.ts | 11 +- .../machineLearningComputeManagementClient.js | 9 +- .../lib/models/acsClusterProperties.js | 27 +- .../lib/models/appInsightsCredentials.js | 8 +- .../lib/models/appInsightsProperties.js | 2 +- .../lib/models/autoScaleConfiguration.js | 14 +- .../lib/models/availableOperations.js | 4 +- ...kSystemServicesUpdatesAvailableResponse.js | 2 +- .../models/containerRegistryCredentials.js | 10 +- .../lib/models/containerRegistryProperties.js | 2 +- .../lib/models/containerServiceCredentials.js | 12 +- .../lib/models/errorDetail.js | 4 +- .../lib/models/errorResponse.js | 8 +- .../lib/models/errorResponseWrapper.js | 10 +- .../lib/models/globalServiceConfiguration.js | 72 +- .../lib/models/index.d.ts | 772 +++++++----------- .../lib/models/kubernetesClusterProperties.js | 12 +- .../lib/models/operationalizationCluster.js | 120 +-- .../operationalizationClusterCredentials.js | 76 +- ...erationalizationClusterUpdateParameters.js | 2 +- ...paginatedOperationalizationClustersList.js | 4 +- .../lib/models/resource.js | 11 +- .../lib/models/resourceOperation.js | 16 +- .../lib/models/resourceOperationDisplay.js | 8 +- .../lib/models/serviceAuthConfiguration.js | 8 +- .../lib/models/servicePrincipalProperties.js | 7 +- .../lib/models/sslConfiguration.js | 13 +- .../lib/models/storageAccountCredentials.js | 8 +- .../lib/models/storageAccountProperties.js | 6 +- .../lib/models/systemService.js | 6 +- .../models/updateSystemServicesResponse.js | 8 +- .../lib/operations/index.d.ts | 84 +- .../operations/operationalizationClusters.js | 115 +-- .../package.json | 30 +- 36 files changed, 736 insertions(+), 888 deletions(-) diff --git a/lib/services/machinelearningcomputeManagement/LICENSE.txt b/lib/services/machinelearningcomputeManagement/LICENSE.txt index 0313a903d7..5431ba98b9 100644 --- a/lib/services/machinelearningcomputeManagement/LICENSE.txt +++ b/lib/services/machinelearningcomputeManagement/LICENSE.txt @@ -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. \ No newline at end of file +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. diff --git a/lib/services/machinelearningcomputeManagement/README.md b/lib/services/machinelearningcomputeManagement/README.md index 4992f71d7b..aa9a13d827 100644 --- a/lib/services/machinelearningcomputeManagement/README.md +++ b/lib/services/machinelearningcomputeManagement/README.md @@ -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 = ""; + 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) diff --git a/lib/services/machinelearningcomputeManagement/lib/machineLearningComputeManagementClient.d.ts b/lib/services/machinelearningcomputeManagement/lib/machineLearningComputeManagementClient.d.ts index 292ab87771..6fb8bc15f8 100644 --- a/lib/services/machinelearningcomputeManagement/lib/machineLearningComputeManagementClient.d.ts +++ b/lib/services/machinelearningcomputeManagement/lib/machineLearningComputeManagementClient.d.ts @@ -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 @@ -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); @@ -59,4 +60,4 @@ declare class MachineLearningComputeManagementClient extends AzureServiceClient machineLearningCompute: operations.MachineLearningCompute; } -export = MachineLearningComputeManagementClient; +export { MachineLearningComputeManagementClient, models as MachineLearningComputeManagementModels }; diff --git a/lib/services/machinelearningcomputeManagement/lib/machineLearningComputeManagementClient.js b/lib/services/machinelearningcomputeManagement/lib/machineLearningComputeManagementClient.js index b0748d924d..15973b59df 100644 --- a/lib/services/machinelearningcomputeManagement/lib/machineLearningComputeManagementClient.js +++ b/lib/services/machinelearningcomputeManagement/lib/machineLearningComputeManagementClient.js @@ -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) { @@ -81,3 +81,6 @@ class MachineLearningComputeManagementClient extends ServiceClient { } module.exports = MachineLearningComputeManagementClient; +module.exports['default'] = MachineLearningComputeManagementClient; +module.exports.MachineLearningComputeManagementClient = MachineLearningComputeManagementClient; +module.exports.MachineLearningComputeManagementModels = models; diff --git a/lib/services/machinelearningcomputeManagement/lib/models/acsClusterProperties.js b/lib/services/machinelearningcomputeManagement/lib/models/acsClusterProperties.js index e4b829f81e..c80c22c2d0 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/acsClusterProperties.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/acsClusterProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Information about the container service backing the cluster * @@ -19,25 +17,26 @@ const models = require('./index'); 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 @@ -88,7 +87,7 @@ class AcsClusterProperties { } }, orchestratorProperties: { - required: true, + required: false, serializedName: 'orchestratorProperties', type: { name: 'Composite', diff --git a/lib/services/machinelearningcomputeManagement/lib/models/appInsightsCredentials.js b/lib/services/machinelearningcomputeManagement/lib/models/appInsightsCredentials.js index 01ec1984df..0137db1f92 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/appInsightsCredentials.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/appInsightsCredentials.js @@ -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() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/appInsightsProperties.js b/lib/services/machinelearningcomputeManagement/lib/models/appInsightsProperties.js index 7db442aedf..6a66f69259 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/appInsightsProperties.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/appInsightsProperties.js @@ -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() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/autoScaleConfiguration.js b/lib/services/machinelearningcomputeManagement/lib/models/autoScaleConfiguration.js index 8caf6efde0..ad5ac2d219 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/autoScaleConfiguration.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/autoScaleConfiguration.js @@ -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() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/availableOperations.js b/lib/services/machinelearningcomputeManagement/lib/models/availableOperations.js index a6fc7ae924..88c0fa6a7f 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/availableOperations.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/availableOperations.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Available operation list. * @@ -19,7 +17,7 @@ const models = require('./index'); class AvailableOperations { /** * Create a AvailableOperations. - * @member {array} [value] An array of available operations. + * @property {array} [value] An array of available operations. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/checkSystemServicesUpdatesAvailableResponse.js b/lib/services/machinelearningcomputeManagement/lib/models/checkSystemServicesUpdatesAvailableResponse.js index 55ae353f29..c2e0f6e423 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/checkSystemServicesUpdatesAvailableResponse.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/checkSystemServicesUpdatesAvailableResponse.js @@ -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() { diff --git a/lib/services/machinelearningcomputeManagement/lib/models/containerRegistryCredentials.js b/lib/services/machinelearningcomputeManagement/lib/models/containerRegistryCredentials.js index 514eb6a34d..f3d512a7d1 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/containerRegistryCredentials.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/containerRegistryCredentials.js @@ -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() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/containerRegistryProperties.js b/lib/services/machinelearningcomputeManagement/lib/models/containerRegistryProperties.js index 7caf662186..b6fcd6ebea 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/containerRegistryProperties.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/containerRegistryProperties.js @@ -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. diff --git a/lib/services/machinelearningcomputeManagement/lib/models/containerServiceCredentials.js b/lib/services/machinelearningcomputeManagement/lib/models/containerServiceCredentials.js index a84a3ef690..35324c6686 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/containerServiceCredentials.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/containerServiceCredentials.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Information about the Azure Container Registry which contains the images * deployed to the cluster. @@ -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() { diff --git a/lib/services/machinelearningcomputeManagement/lib/models/errorDetail.js b/lib/services/machinelearningcomputeManagement/lib/models/errorDetail.js index eab6905217..e5307905cb 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/errorDetail.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/errorDetail.js @@ -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() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/errorResponse.js b/lib/services/machinelearningcomputeManagement/lib/models/errorResponse.js index 12e2802bd2..904d534fa2 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/errorResponse.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/errorResponse.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Error response information. * @@ -19,9 +17,9 @@ const models = require('./index'); 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() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/errorResponseWrapper.js b/lib/services/machinelearningcomputeManagement/lib/models/errorResponseWrapper.js index f063c52be8..dce13df064 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/errorResponseWrapper.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/errorResponseWrapper.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Wrapper for error response to follow ARM guidelines. * @@ -19,10 +17,10 @@ const models = require('./index'); class ErrorResponseWrapper { /** * Create a ErrorResponseWrapper. - * @member {object} [error] The error response. - * @member {string} [error.code] Error code. - * @member {string} [error.message] Error message. - * @member {array} [error.details] An array of error detail objects. + * @property {object} [error] The error response. + * @property {string} [error.code] Error code. + * @property {string} [error.message] Error message. + * @property {array} [error.details] An array of error detail objects. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/globalServiceConfiguration.js b/lib/services/machinelearningcomputeManagement/lib/models/globalServiceConfiguration.js index 438614e81e..1f261fd31d 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/globalServiceConfiguration.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/globalServiceConfiguration.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Global configuration for services in the cluster. * @@ -19,37 +17,34 @@ const models = require('./index'); 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 + * @property {string} [etag] The configuration ETag for updates. + * @property {object} [ssl] The SSL configuration properties + * @property {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.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 - * have auth keys. - * @member {string} [serviceAuth.primaryAuthKeyHash] The primary auth key - * hash. This is not returned in response of GET/PUT on the resource.. To see - * this please call listKeys API. - * @member {string} [serviceAuth.secondaryAuthKeyHash] The secondary auth key + * @property {string} [ssl.cert] The SSL cert data in PEM format. + * @property {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. + * @property {string} [ssl.cname] The CName of the certificate. + * @property {object} [serviceAuth] Optional global authorization keys for + * all user services deployed in cluster. These are used if the service does + * not have auth keys. + * @property {string} [serviceAuth.primaryAuthKeyHash] The primary auth key * hash. This is not returned in response of GET/PUT on the resource.. To see * this please call listKeys API. - * @member {object} [autoScale] The auto-scale configuration - * @member {string} [autoScale.status] If auto-scale is enabled for all + * @property {string} [serviceAuth.secondaryAuthKeyHash] The secondary auth + * key hash. This is not returned in response of GET/PUT on the resource.. To + * see this please call listKeys API. + * @property {object} [autoScale] The auto-scale configuration + * @property {string} [autoScale.status] If auto-scale is enabled for all * services. Each service can turn it off individually. Possible values * include: 'Enabled', 'Disabled' - * @member {number} [autoScale.minReplicas] The minimum number of replicas + * @property {number} [autoScale.minReplicas] The minimum number of replicas * for each service. - * @member {number} [autoScale.maxReplicas] The maximum number of replicas + * @property {number} [autoScale.maxReplicas] The maximum number of replicas * for each service. - * @member {number} [autoScale.targetUtilization] The target utilization. - * @member {number} [autoScale.refreshPeriodInSeconds] Refresh period in + * @property {number} [autoScale.targetUtilization] The target utilization. + * @property {number} [autoScale.refreshPeriodInSeconds] Refresh period in * seconds. */ constructor() { @@ -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', diff --git a/lib/services/machinelearningcomputeManagement/lib/models/index.d.ts b/lib/services/machinelearningcomputeManagement/lib/models/index.d.ts index 08af6e513e..f800d7b412 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/index.d.ts +++ b/lib/services/machinelearningcomputeManagement/lib/models/index.d.ts @@ -1,717 +1,563 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource } from 'ms-rest-azure'; -import { CloudError } from 'ms-rest-azure'; -import * as moment from 'moment'; +import { BaseResource, CloudError } from "ms-rest-azure"; +import * as moment from "moment"; -export { BaseResource } from 'ms-rest-azure'; -export { CloudError } from 'ms-rest-azure'; +export { + BaseResource, + CloudError +}; /** - * @class - * Initializes a new instance of the Resource class. - * @constructor * Azure resource - * - * @member {string} [id] Specifies the resource ID. - * @member {string} [name] Specifies the name of the resource. - * @member {string} location Specifies the location of the resource. - * @member {string} [type] Specifies the type of the resource. - * @member {object} [tags] Contains resource tags defined as key/value pairs. */ export interface Resource extends BaseResource { + /** + * Specifies the resource ID. + */ readonly id?: string; + /** + * Specifies the name of the resource. + */ readonly name?: string; + /** + * Specifies the location of the resource. + */ location: string; + /** + * Specifies the type of the resource. + */ readonly type?: string; + /** + * Contains resource tags defined as key/value pairs. + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the ErrorDetail class. - * @constructor * Error detail information. - * - * @member {string} code Error code. - * @member {string} message Error message. */ export interface ErrorDetail { + /** + * Error code. + */ code: string; + /** + * Error message. + */ message: string; } /** - * @class - * Initializes a new instance of the ErrorResponse class. - * @constructor * Error response information. - * - * @member {string} code Error code. - * @member {string} message Error message. - * @member {array} [details] An array of error detail objects. */ export interface ErrorResponse { + /** + * Error code. + */ code: string; + /** + * Error message. + */ message: string; + /** + * An array of error detail objects. + */ details?: ErrorDetail[]; } /** - * @class - * Initializes a new instance of the ErrorResponseWrapper class. - * @constructor * Wrapper for error response to follow ARM guidelines. - * - * @member {object} [error] The error response. - * @member {string} [error.code] Error code. - * @member {string} [error.message] Error message. - * @member {array} [error.details] An array of error detail objects. */ export interface ErrorResponseWrapper { + /** + * The error response. + */ error?: ErrorResponse; } /** - * @class - * Initializes a new instance of the StorageAccountProperties class. - * @constructor * Properties of Storage Account. - * - * @member {string} [resourceId] ARM resource ID of the Azure Storage Account - * to store CLI specific files. If not provided one will be created. This - * cannot be changed once the cluster is created. */ export interface StorageAccountProperties { + /** + * ARM resource ID of the Azure Storage Account to store CLI specific files. If not provided one + * will be created. This cannot be changed once the cluster is created. + */ resourceId?: string; } /** - * @class - * Initializes a new instance of the ContainerRegistryProperties class. - * @constructor * Properties of Azure Container Registry. - * - * @member {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. */ export interface ContainerRegistryProperties { + /** + * 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. + */ resourceId?: string; } /** - * @class - * Initializes a new instance of the ServicePrincipalProperties class. - * @constructor - * The Azure service principal used by Kubernetes for configuring load - * balancers - * - * @member {string} clientId The service principal client ID - * @member {string} secret The service principal secret. This is not returned - * in response of GET/PUT on the resource. To see this please call listKeys. + * The Azure service principal used by Kubernetes for configuring load balancers */ export interface ServicePrincipalProperties { + /** + * The service principal client ID + */ clientId: string; + /** + * The service principal secret. This is not returned in response of GET/PUT on the resource. To + * see this please call listKeys. + */ secret: string; } /** - * @class - * Initializes a new instance of the KubernetesClusterProperties class. - * @constructor * Kubernetes cluster specific properties - * - * @member {object} servicePrincipal The Azure Service Principal used by - * Kubernetes - * @member {string} [servicePrincipal.clientId] The service principal client ID - * @member {string} [servicePrincipal.secret] The service principal secret. - * This is not returned in response of GET/PUT on the resource. To see this - * please call listKeys. */ export interface KubernetesClusterProperties { - servicePrincipal: ServicePrincipalProperties; + /** + * The Azure Service Principal used by Kubernetes + */ + servicePrincipal?: ServicePrincipalProperties; } /** - * @class - * Initializes a new instance of the SystemService class. - * @constructor * Information about a system service deployed in the cluster - * - * @member {string} systemServiceType The system service type. Possible values - * include: 'None', 'ScoringFrontEnd', 'BatchFrontEnd' - * @member {string} [publicIpAddress] The public IP address of the system - * service - * @member {string} [version] The state of the system service */ export interface SystemService { + /** + * The system service type. Possible values include: 'None', 'ScoringFrontEnd', 'BatchFrontEnd' + */ systemServiceType: string; + /** + * The public IP address of the system service + */ readonly publicIpAddress?: string; + /** + * The state of the system service + */ readonly version?: string; } /** - * @class - * Initializes a new instance of the AcsClusterProperties class. - * @constructor * Information about the container service backing the cluster - * - * @member {string} [clusterFqdn] The FQDN of the cluster. - * @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.servicePrincipal] The Azure Service - * Principal used by Kubernetes - * @member {string} [orchestratorProperties.servicePrincipal.clientId] The - * service principal client ID - * @member {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 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 - * Service. This can be changed to scale the cluster. Default value: 2 . - * @member {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 - * the possible VM sizes. Possible values include: 'Standard_A0', - * 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', - * 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', - * 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', - * 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', - * 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', - * 'Standard_D5_v2', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', - * 'Standard_D14_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', - * 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', - * 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', - * 'Standard_DS13', 'Standard_DS14', 'Standard_GS1', 'Standard_GS2', - * 'Standard_GS3', 'Standard_GS4', 'Standard_GS5'. Default value: - * 'Standard_D3_v2' . */ export interface AcsClusterProperties { + /** + * The FQDN of the cluster. + */ readonly clusterFqdn?: string; + /** + * Type of orchestrator. It cannot be changed once the cluster is created. Possible values + * include: 'Kubernetes', 'None' + */ orchestratorType: string; - orchestratorProperties: KubernetesClusterProperties; + /** + * Orchestrator specific properties + */ + orchestratorProperties?: KubernetesClusterProperties; + /** + * The system services deployed to the cluster + */ systemServices?: SystemService[]; + /** + * The number of master nodes in the container service. + */ masterCount?: number; + /** + * The number of agent nodes in the Container Service. This can be changed to scale the cluster. + */ agentCount?: number; + /** + * 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 the possible VM + * sizes. Possible values include: 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', + * 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', + * 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', + * 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', + * 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', + * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', 'Standard_G2', + * 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', + * 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', + * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5' + */ agentVmSize?: string; } /** - * @class - * Initializes a new instance of the AppInsightsProperties class. - * @constructor * Properties of App Insights. - * - * @member {string} [resourceId] ARM resource ID of the App Insights. */ export interface AppInsightsProperties { + /** + * ARM resource ID of the App Insights. + */ resourceId?: string; } /** - * @class - * Initializes a new instance of the SslConfiguration class. - * @constructor - * SSL configuration. If configured data-plane calls to user services will be - * exposed over SSL only. - * - * @member {string} [status] SSL status. Allowed values are Enabled and - * Disabled. Possible values include: 'Enabled', 'Disabled'. Default value: - * 'Enabled' . - * @member {string} [cert] The SSL cert data in PEM format encoded as base64 - * string - * @member {string} [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} [cname] The CName of the certificate. + * SSL configuration. If configured data-plane calls to user services will be exposed over SSL + * only. */ export interface SslConfiguration { + /** + * SSL status. Allowed values are Enabled and Disabled. Possible values include: 'Enabled', + * 'Disabled' + */ status?: string; + /** + * The SSL cert data in PEM format. + */ cert?: string; + /** + * 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. + */ key?: string; + /** + * The CName of the certificate. + */ cname?: string; } /** - * @class - * Initializes a new instance of the ServiceAuthConfiguration class. - * @constructor - * Global service auth configuration properties. These are the data-plane - * authorization keys and are used if a service doesn't define it's own. - * - * @member {string} primaryAuthKeyHash The primary auth key hash. This is not - * returned in response of GET/PUT on the resource.. To see this please call - * listKeys API. - * @member {string} secondaryAuthKeyHash The secondary auth key hash. This is - * not returned in response of GET/PUT on the resource.. To see this please - * call listKeys API. + * Global service auth configuration properties. These are the data-plane authorization keys and + * are used if a service doesn't define it's own. */ export interface ServiceAuthConfiguration { + /** + * The primary auth key hash. This is not returned in response of GET/PUT on the resource.. To + * see this please call listKeys API. + */ primaryAuthKeyHash: string; + /** + * The secondary auth key hash. This is not returned in response of GET/PUT on the resource.. To + * see this please call listKeys API. + */ secondaryAuthKeyHash: string; } /** - * @class - * Initializes a new instance of the AutoScaleConfiguration class. - * @constructor * AutoScale configuration properties. - * - * @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 - * service. Default value: 1 . - * @member {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. */ export interface AutoScaleConfiguration { + /** + * If auto-scale is enabled for all services. Each service can turn it off individually. Possible + * values include: 'Enabled', 'Disabled' + */ status?: string; + /** + * The minimum number of replicas for each service. + */ minReplicas?: number; + /** + * The maximum number of replicas for each service. + */ maxReplicas?: number; + /** + * The target utilization. + */ targetUtilization?: number; + /** + * Refresh period in seconds. + */ refreshPeriodInSeconds?: number; } /** - * @class - * Initializes a new instance of the GlobalServiceConfiguration class. - * @constructor * Global configuration for services in the cluster. - * - * @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.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 - * have auth keys. - * @member {string} [serviceAuth.primaryAuthKeyHash] The primary auth key hash. - * This is not returned in response of GET/PUT on the resource.. To see this - * please call listKeys API. - * @member {string} [serviceAuth.secondaryAuthKeyHash] The secondary auth key - * hash. This is not returned in response of GET/PUT on the resource.. To see - * this please call listKeys API. - * @member {object} [autoScale] The auto-scale configuration - * @member {string} [autoScale.status] If auto-scale is enabled for all - * services. Each service can turn it off individually. Possible values - * include: 'Enabled', 'Disabled' - * @member {number} [autoScale.minReplicas] The minimum number of replicas for - * each service. - * @member {number} [autoScale.maxReplicas] The maximum number of replicas for - * each service. - * @member {number} [autoScale.targetUtilization] The target utilization. - * @member {number} [autoScale.refreshPeriodInSeconds] Refresh period in - * seconds. */ export interface GlobalServiceConfiguration { - additionalProperties?: { [propertyName: string]: any }; + /** + * The configuration ETag for updates. + */ etag?: string; + /** + * The SSL configuration properties + */ ssl?: SslConfiguration; + /** + * Optional global authorization keys for all user services deployed in cluster. These are used + * if the service does not have auth keys. + */ serviceAuth?: ServiceAuthConfiguration; + /** + * The auto-scale configuration + */ autoScale?: AutoScaleConfiguration; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [additionalPropertyName: string]: any; } /** - * @class - * Initializes a new instance of the OperationalizationCluster class. - * @constructor * Instance of an Azure ML Operationalization Cluster resource. - * - * @member {string} [description] The description of the cluster. - * @member {date} [createdOn] The date and time when the cluster was created. - * @member {date} [modifiedOn] The date and time when the cluster was last - * modified. - * @member {string} [provisioningState] The provision state of the cluster. - * Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. - * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * @member {array} [provisioningErrors] List of provisioning errors reported by - * the resource provider. - * @member {string} clusterType The cluster type. Possible values include: - * 'ACS', 'Local' - * @member {object} [storageAccount] Storage Account properties. - * @member {string} [storageAccount.resourceId] ARM resource ID of the Azure - * Storage Account to store CLI specific files. If not provided one will be - * created. This cannot be changed once the cluster is created. - * @member {object} [containerRegistry] Container Registry properties. - * @member {string} [containerRegistry.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. - * @member {object} [containerService] Parameters for the Azure Container - * Service cluster. - * @member {string} [containerService.clusterFqdn] The FQDN of the cluster. - * @member {string} [containerService.orchestratorType] Type of orchestrator. - * It cannot be changed once the cluster is created. Possible values include: - * 'Kubernetes', 'None' - * @member {object} [containerService.orchestratorProperties] Orchestrator - * specific properties - * @member {object} [containerService.orchestratorProperties.servicePrincipal] - * The Azure Service Principal used by Kubernetes - * @member {string} - * [containerService.orchestratorProperties.servicePrincipal.clientId] The - * service principal client ID - * @member {string} - * [containerService.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} [containerService.systemServices] The system services - * deployed to the cluster - * @member {number} [containerService.masterCount] The number of master nodes - * in the container service. - * @member {number} [containerService.agentCount] The number of agent nodes in - * the Container Service. This can be changed to scale the cluster. - * @member {string} [containerService.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 - * the possible VM sizes. Possible values include: 'Standard_A0', - * 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', - * 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', - * 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', - * 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', - * 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', - * 'Standard_D5_v2', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', - * 'Standard_D14_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', - * 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', - * 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', - * 'Standard_DS13', 'Standard_DS14', 'Standard_GS1', 'Standard_GS2', - * 'Standard_GS3', 'Standard_GS4', 'Standard_GS5' - * @member {object} [appInsights] AppInsights configuration. - * @member {string} [appInsights.resourceId] ARM resource ID of the App - * Insights. - * @member {object} [globalServiceConfiguration] Contains global configuration - * for the web services in the cluster. - * @member {object} [globalServiceConfiguration.additionalProperties] Unmatched - * properties from the message are deserialized this collection - * @member {string} [globalServiceConfiguration.etag] The configuartion ETag - * for updates. - * @member {object} [globalServiceConfiguration.ssl] The SSL configuration - * properties - * @member {string} [globalServiceConfiguration.ssl.status] SSL status. Allowed - * values are Enabled and Disabled. Possible values include: 'Enabled', - * 'Disabled' - * @member {string} [globalServiceConfiguration.ssl.cert] The SSL cert data in - * PEM format encoded as base64 string - * @member {string} [globalServiceConfiguration.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} [globalServiceConfiguration.ssl.cname] The CName of the - * certificate. - * @member {object} [globalServiceConfiguration.serviceAuth] Optional global - * authorization keys for all user services deployed in cluster. These are used - * if the service does not have auth keys. - * @member {string} [globalServiceConfiguration.serviceAuth.primaryAuthKeyHash] - * The primary auth key hash. This is not returned in response of GET/PUT on - * the resource.. To see this please call listKeys API. - * @member {string} - * [globalServiceConfiguration.serviceAuth.secondaryAuthKeyHash] The secondary - * auth key hash. This is not returned in response of GET/PUT on the resource.. - * To see this please call listKeys API. - * @member {object} [globalServiceConfiguration.autoScale] The auto-scale - * configuration - * @member {string} [globalServiceConfiguration.autoScale.status] If auto-scale - * is enabled for all services. Each service can turn it off individually. - * Possible values include: 'Enabled', 'Disabled' - * @member {number} [globalServiceConfiguration.autoScale.minReplicas] The - * minimum number of replicas for each service. - * @member {number} [globalServiceConfiguration.autoScale.maxReplicas] The - * maximum number of replicas for each service. - * @member {number} [globalServiceConfiguration.autoScale.targetUtilization] - * The target utilization. - * @member {number} - * [globalServiceConfiguration.autoScale.refreshPeriodInSeconds] Refresh period - * in seconds. */ export interface OperationalizationCluster extends Resource { + /** + * The description of the cluster. + */ description?: string; + /** + * The date and time when the cluster was created. + */ readonly createdOn?: Date; + /** + * The date and time when the cluster was last modified. + */ readonly modifiedOn?: Date; + /** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + */ readonly provisioningState?: string; + /** + * List of provisioning errors reported by the resource provider. + */ readonly provisioningErrors?: ErrorResponseWrapper[]; + /** + * The cluster type. Possible values include: 'ACS', 'Local' + */ clusterType: string; + /** + * Storage Account properties. + */ storageAccount?: StorageAccountProperties; + /** + * Container Registry properties. + */ containerRegistry?: ContainerRegistryProperties; + /** + * Parameters for the Azure Container Service cluster. + */ containerService?: AcsClusterProperties; + /** + * AppInsights configuration. + */ appInsights?: AppInsightsProperties; + /** + * Contains global configuration for the web services in the cluster. + */ globalServiceConfiguration?: GlobalServiceConfiguration; } /** - * @class - * Initializes a new instance of the OperationalizationClusterUpdateParameters class. - * @constructor * Parameters for PATCH operation on an operationalization cluster - * - * @member {object} [tags] Gets or sets a list of key value pairs that describe - * the resource. These tags can be used in viewing and grouping this resource - * (across resource groups). A maximum of 15 tags can be provided for a - * resource. Each tag must have a key no greater in length than 128 characters - * and a value no greater in length than 256 characters. */ export interface OperationalizationClusterUpdateParameters { + /** + * Gets or sets a list of key value pairs that describe the resource. These tags can be used in + * viewing and grouping this resource (across resource groups). A maximum of 15 tags can be + * provided for a resource. Each tag must have a key no greater in length than 128 characters and + * a value no greater in length than 256 characters. + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the StorageAccountCredentials class. - * @constructor * Access information for the storage account. - * - * @member {string} [resourceId] The ARM resource ID of the storage account. - * @member {string} [primaryKey] The primary key of the storage account. - * @member {string} [secondaryKey] The secondary key of the storage account. */ export interface StorageAccountCredentials { + /** + * The ARM resource ID of the storage account. + */ readonly resourceId?: string; + /** + * The primary key of the storage account. + */ readonly primaryKey?: string; + /** + * The secondary key of the storage account. + */ readonly secondaryKey?: string; } /** - * @class - * Initializes a new instance of the ContainerRegistryCredentials class. - * @constructor - * Information about the Azure Container Registry which contains the images - * deployed to the cluster. - * - * @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. + * Information about the Azure Container Registry which contains the images deployed to the + * cluster. */ export interface ContainerRegistryCredentials { + /** + * The ACR login server name. User name is the first part of the FQDN. + */ readonly loginServer?: string; + /** + * The ACR primary password. + */ readonly password?: string; + /** + * The ACR secondary password. + */ readonly password2?: string; + /** + * The ACR login username. + */ readonly username?: string; } /** - * @class - * Initializes a new instance of the ContainerServiceCredentials class. - * @constructor - * Information about the Azure Container Registry which contains the images - * deployed to the cluster. - * - * @member {string} [acsKubeConfig] The ACS kube config file. - * @member {object} [servicePrincipalConfiguration] Service principal - * configuration used by Kubernetes. - * @member {string} [servicePrincipalConfiguration.clientId] The service - * principal client ID - * @member {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 which - * was created in Kubernetes. + * Information about the Azure Container Registry which contains the images deployed to the + * cluster. */ export interface ContainerServiceCredentials { + /** + * The ACS kube config file. + */ readonly acsKubeConfig?: string; + /** + * Service principal configuration used by Kubernetes. + */ readonly servicePrincipalConfiguration?: ServicePrincipalProperties; + /** + * The ACR image pull secret name which was created in Kubernetes. + */ readonly imagePullSecretName?: string; } /** - * @class - * Initializes a new instance of the AppInsightsCredentials class. - * @constructor * AppInsights credentials. - * - * @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. */ export interface AppInsightsCredentials { + /** + * The AppInsights application ID. + */ appId?: string; + /** + * The AppInsights instrumentation key. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. + */ instrumentationKey?: string; } /** - * @class - * Initializes a new instance of the OperationalizationClusterCredentials class. - * @constructor * Credentials to resources in the cluster. - * - * @member {object} [storageAccount] Credentials for the Storage Account. - * @member {string} [storageAccount.resourceId] The ARM resource ID of the - * storage account. - * @member {string} [storageAccount.primaryKey] The primary key of the storage - * account. - * @member {string} [storageAccount.secondaryKey] The secondary key of the - * storage account. - * @member {object} [containerRegistry] Credentials for Azure Container - * Registry. - * @member {string} [containerRegistry.loginServer] The ACR login server name. - * User name is the first part of the FQDN. - * @member {string} [containerRegistry.password] The ACR primary password. - * @member {string} [containerRegistry.password2] The ACR secondary password. - * @member {string} [containerRegistry.username] The ACR login username. - * @member {object} [containerService] Credentials for Azure Container Service. - * @member {string} [containerService.acsKubeConfig] The ACS kube config file. - * @member {object} [containerService.servicePrincipalConfiguration] Service - * principal configuration used by Kubernetes. - * @member {string} [containerService.servicePrincipalConfiguration.clientId] - * The service principal client ID - * @member {string} [containerService.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} [containerService.imagePullSecretName] The ACR image pull - * secret name which was created in Kubernetes. - * @member {object} [appInsights] Credentials for Azure AppInsights. - * @member {string} [appInsights.appId] The AppInsights application ID. - * @member {string} [appInsights.instrumentationKey] The AppInsights - * instrumentation key. This is not returned in response of GET/PUT on the - * resource. To see this please call listKeys API. - * @member {object} [serviceAuthConfiguration] Global authorization keys for - * all user services deployed in cluster. These are used if the service does - * not have auth keys. - * @member {string} [serviceAuthConfiguration.primaryAuthKeyHash] The primary - * auth key hash. This is not returned in response of GET/PUT on the resource.. - * To see this please call listKeys API. - * @member {string} [serviceAuthConfiguration.secondaryAuthKeyHash] The - * secondary auth key hash. This is not returned in response of GET/PUT on the - * resource.. To see this please call listKeys API. - * @member {object} [sslConfiguration] The SSL configuration for the services. - * @member {string} [sslConfiguration.status] SSL status. Allowed values are - * Enabled and Disabled. Possible values include: 'Enabled', 'Disabled' - * @member {string} [sslConfiguration.cert] The SSL cert data in PEM format - * encoded as base64 string - * @member {string} [sslConfiguration.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} [sslConfiguration.cname] The CName of the certificate. */ export interface OperationalizationClusterCredentials { + /** + * Credentials for the Storage Account. + */ storageAccount?: StorageAccountCredentials; + /** + * Credentials for Azure Container Registry. + */ containerRegistry?: ContainerRegistryCredentials; + /** + * Credentials for Azure Container Service. + */ containerService?: ContainerServiceCredentials; + /** + * Credentials for Azure AppInsights. + */ appInsights?: AppInsightsCredentials; + /** + * Global authorization keys for all user services deployed in cluster. These are used if the + * service does not have auth keys. + */ serviceAuthConfiguration?: ServiceAuthConfiguration; + /** + * The SSL configuration for the services. + */ sslConfiguration?: SslConfiguration; } /** - * @class - * Initializes a new instance of the CheckSystemServicesUpdatesAvailableResponse class. - * @constructor * Information about updates available for system services in a cluster. - * - * @member {string} [updatesAvailable] Yes if updates are available for the - * system services, No if not. Possible values include: 'Yes', 'No' */ export interface CheckSystemServicesUpdatesAvailableResponse { + /** + * Yes if updates are available for the system services, No if not. Possible values include: + * 'Yes', 'No' + */ readonly updatesAvailable?: string; } /** - * @class - * Initializes a new instance of the UpdateSystemServicesResponse class. - * @constructor * Response of the update system services API - * - * @member {string} [updateStatus] Update status. Possible values include: - * 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', - * 'Canceled' - * @member {date} [updateStartedOn] The date and time when the last system - * services update was started. - * @member {date} [updateCompletedOn] The date and time when the last system - * services update completed. */ export interface UpdateSystemServicesResponse { + /** + * Update status. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + */ readonly updateStatus?: string; + /** + * The date and time when the last system services update was started. + */ readonly updateStartedOn?: Date; + /** + * The date and time when the last system services update completed. + */ readonly updateCompletedOn?: Date; } /** - * @class - * Initializes a new instance of the ResourceOperationDisplay class. - * @constructor * Display of the operation. - * - * @member {string} [provider] The resource provider name. - * @member {string} [resource] The resource name. - * @member {string} [operation] The operation. - * @member {string} [description] The description of the operation. */ export interface ResourceOperationDisplay { + /** + * The resource provider name. + */ provider?: string; + /** + * The resource name. + */ resource?: string; + /** + * The operation. + */ operation?: string; + /** + * The description of the operation. + */ description?: string; } /** - * @class - * Initializes a new instance of the ResourceOperation class. - * @constructor * Resource operation. - * - * @member {string} [name] Name of this operation. - * @member {object} [display] Display of the operation. - * @member {string} [display.provider] The resource provider name. - * @member {string} [display.resource] The resource name. - * @member {string} [display.operation] The operation. - * @member {string} [display.description] The description of the operation. - * @member {string} [origin] The operation origin. */ export interface ResourceOperation { + /** + * Name of this operation. + */ name?: string; + /** + * Display of the operation. + */ display?: ResourceOperationDisplay; + /** + * The operation origin. + */ origin?: string; } /** - * @class - * Initializes a new instance of the AvailableOperations class. - * @constructor * Available operation list. - * - * @member {array} [value] An array of available operations. */ export interface AvailableOperations { + /** + * An array of available operations. + */ value?: ResourceOperation[]; } - /** - * @class - * Initializes a new instance of the PaginatedOperationalizationClustersList class. - * @constructor * Paginated list of operationalization clusters. - * - * @member {string} [nextLink] A continuation link (absolute URI) to the next - * page of results in the list. */ export interface PaginatedOperationalizationClustersList extends Array { + /** + * A continuation link (absolute URI) to the next page of results in the list. + */ nextLink?: string; } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/kubernetesClusterProperties.js b/lib/services/machinelearningcomputeManagement/lib/models/kubernetesClusterProperties.js index 85b8f3300d..cf83a92316 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/kubernetesClusterProperties.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/kubernetesClusterProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Kubernetes cluster specific properties * @@ -19,11 +17,11 @@ const models = require('./index'); class KubernetesClusterProperties { /** * Create a KubernetesClusterProperties. - * @member {object} servicePrincipal The Azure Service Principal used by + * @property {object} [servicePrincipal] The Azure Service Principal used by * Kubernetes - * @member {string} [servicePrincipal.clientId] The service principal client - * ID - * @member {string} [servicePrincipal.secret] The service principal secret. + * @property {string} [servicePrincipal.clientId] The service principal + * client ID + * @property {string} [servicePrincipal.secret] The service principal secret. * This is not returned in response of GET/PUT on the resource. To see this * please call listKeys. */ @@ -45,7 +43,7 @@ class KubernetesClusterProperties { className: 'KubernetesClusterProperties', modelProperties: { servicePrincipal: { - required: true, + required: false, serializedName: 'servicePrincipal', type: { name: 'Composite', diff --git a/lib/services/machinelearningcomputeManagement/lib/models/operationalizationCluster.js b/lib/services/machinelearningcomputeManagement/lib/models/operationalizationCluster.js index 50d022f228..2a0020e6e3 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/operationalizationCluster.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/operationalizationCluster.js @@ -20,52 +20,53 @@ const models = require('./index'); class OperationalizationCluster extends models['Resource'] { /** * Create a OperationalizationCluster. - * @member {string} [description] The description of the cluster. - * @member {date} [createdOn] The date and time when the cluster was created. - * @member {date} [modifiedOn] The date and time when the cluster was last + * @property {string} [description] The description of the cluster. + * @property {date} [createdOn] The date and time when the cluster was + * created. + * @property {date} [modifiedOn] The date and time when the cluster was last * modified. - * @member {string} [provisioningState] The provision state of the cluster. + * @property {string} [provisioningState] The provision state of the cluster. * Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', * 'Succeeded', 'Failed', 'Canceled' - * @member {array} [provisioningErrors] List of provisioning errors reported - * by the resource provider. - * @member {string} clusterType The cluster type. Possible values include: + * @property {array} [provisioningErrors] List of provisioning errors + * reported by the resource provider. + * @property {string} clusterType The cluster type. Possible values include: * 'ACS', 'Local' - * @member {object} [storageAccount] Storage Account properties. - * @member {string} [storageAccount.resourceId] ARM resource ID of the Azure - * Storage Account to store CLI specific files. If not provided one will be - * created. This cannot be changed once the cluster is created. - * @member {object} [containerRegistry] Container Registry properties. - * @member {string} [containerRegistry.resourceId] ARM resource ID of the + * @property {object} [storageAccount] Storage Account properties. + * @property {string} [storageAccount.resourceId] ARM resource ID of the + * Azure Storage Account to store CLI specific files. If not provided one + * will be created. This cannot be changed once the cluster is created. + * @property {object} [containerRegistry] Container Registry properties. + * @property {string} [containerRegistry.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. - * @member {object} [containerService] Parameters for the Azure Container + * @property {object} [containerService] Parameters for the Azure Container * Service cluster. - * @member {string} [containerService.clusterFqdn] The FQDN of the cluster. - * @member {string} [containerService.orchestratorType] Type of orchestrator. - * It cannot be changed once the cluster is created. Possible values include: - * 'Kubernetes', 'None' - * @member {object} [containerService.orchestratorProperties] Orchestrator + * @property {string} [containerService.clusterFqdn] The FQDN of the cluster. + * @property {string} [containerService.orchestratorType] Type of + * orchestrator. It cannot be changed once the cluster is created. Possible + * values include: 'Kubernetes', 'None' + * @property {object} [containerService.orchestratorProperties] Orchestrator * specific properties - * @member {object} + * @property {object} * [containerService.orchestratorProperties.servicePrincipal] The Azure * Service Principal used by Kubernetes - * @member {string} + * @property {string} * [containerService.orchestratorProperties.servicePrincipal.clientId] The * service principal client ID - * @member {string} + * @property {string} * [containerService.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} [containerService.systemServices] The system services + * @property {array} [containerService.systemServices] The system services * deployed to the cluster - * @member {number} [containerService.masterCount] The number of master nodes - * in the container service. - * @member {number} [containerService.agentCount] The number of agent nodes + * @property {number} [containerService.masterCount] The number of master + * nodes in the container service. + * @property {number} [containerService.agentCount] The number of agent nodes * in the Container Service. This can be changed to scale the cluster. - * @member {string} [containerService.agentVmSize] The Azure VM size of the + * @property {string} [containerService.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 @@ -82,50 +83,49 @@ class OperationalizationCluster extends models['Resource'] { * 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', * 'Standard_GS5' - * @member {object} [appInsights] AppInsights configuration. - * @member {string} [appInsights.resourceId] ARM resource ID of the App + * @property {object} [appInsights] AppInsights configuration. + * @property {string} [appInsights.resourceId] ARM resource ID of the App * Insights. - * @member {object} [globalServiceConfiguration] Contains global + * @property {object} [globalServiceConfiguration] Contains global * configuration for the web services in the cluster. - * @member {object} [globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * @member {string} [globalServiceConfiguration.etag] The configuartion ETag - * for updates. - * @member {object} [globalServiceConfiguration.ssl] The SSL configuration + * @property {string} [globalServiceConfiguration.etag] The configuration + * ETag for updates. + * @property {object} [globalServiceConfiguration.ssl] The SSL configuration * properties - * @member {string} [globalServiceConfiguration.ssl.status] SSL status. + * @property {string} [globalServiceConfiguration.ssl.status] SSL status. * Allowed values are Enabled and Disabled. Possible values include: * 'Enabled', 'Disabled' - * @member {string} [globalServiceConfiguration.ssl.cert] The SSL cert data - * in PEM format encoded as base64 string - * @member {string} [globalServiceConfiguration.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} [globalServiceConfiguration.ssl.cname] The CName of the + * @property {string} [globalServiceConfiguration.ssl.cert] The SSL cert data + * in PEM format. + * @property {string} [globalServiceConfiguration.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. + * @property {string} [globalServiceConfiguration.ssl.cname] The CName of the * certificate. - * @member {object} [globalServiceConfiguration.serviceAuth] Optional global - * authorization keys for all user services deployed in cluster. These are - * used if the service does not have auth keys. - * @member {string} + * @property {object} [globalServiceConfiguration.serviceAuth] Optional + * global authorization keys for all user services deployed in cluster. These + * are used if the service does not have auth keys. + * @property {string} * [globalServiceConfiguration.serviceAuth.primaryAuthKeyHash] The primary * auth key hash. This is not returned in response of GET/PUT on the * resource.. To see this please call listKeys API. - * @member {string} + * @property {string} * [globalServiceConfiguration.serviceAuth.secondaryAuthKeyHash] The * secondary auth key hash. This is not returned in response of GET/PUT on * the resource.. To see this please call listKeys API. - * @member {object} [globalServiceConfiguration.autoScale] The auto-scale + * @property {object} [globalServiceConfiguration.autoScale] The auto-scale * configuration - * @member {string} [globalServiceConfiguration.autoScale.status] If + * @property {string} [globalServiceConfiguration.autoScale.status] If * auto-scale is enabled for all services. Each service can turn it off * individually. Possible values include: 'Enabled', 'Disabled' - * @member {number} [globalServiceConfiguration.autoScale.minReplicas] The + * @property {number} [globalServiceConfiguration.autoScale.minReplicas] The * minimum number of replicas for each service. - * @member {number} [globalServiceConfiguration.autoScale.maxReplicas] The + * @property {number} [globalServiceConfiguration.autoScale.maxReplicas] The * maximum number of replicas for each service. - * @member {number} [globalServiceConfiguration.autoScale.targetUtilization] - * The target utilization. - * @member {number} + * @property {number} + * [globalServiceConfiguration.autoScale.targetUtilization] The target + * utilization. + * @property {number} * [globalServiceConfiguration.autoScale.refreshPeriodInSeconds] Refresh * period in seconds. */ @@ -283,6 +283,18 @@ class OperationalizationCluster extends models['Resource'] { serializedName: 'properties.globalServiceConfiguration', type: { name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, className: 'GlobalServiceConfiguration' } } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/operationalizationClusterCredentials.js b/lib/services/machinelearningcomputeManagement/lib/models/operationalizationClusterCredentials.js index 5f704efad8..37842f32d0 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/operationalizationClusterCredentials.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/operationalizationClusterCredentials.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Credentials to resources in the cluster. * @@ -19,57 +17,59 @@ const models = require('./index'); class OperationalizationClusterCredentials { /** * Create a OperationalizationClusterCredentials. - * @member {object} [storageAccount] Credentials for the Storage Account. - * @member {string} [storageAccount.resourceId] The ARM resource ID of the + * @property {object} [storageAccount] Credentials for the Storage Account. + * @property {string} [storageAccount.resourceId] The ARM resource ID of the * storage account. - * @member {string} [storageAccount.primaryKey] The primary key of the + * @property {string} [storageAccount.primaryKey] The primary key of the * storage account. - * @member {string} [storageAccount.secondaryKey] The secondary key of the + * @property {string} [storageAccount.secondaryKey] The secondary key of the * storage account. - * @member {object} [containerRegistry] Credentials for Azure Container + * @property {object} [containerRegistry] Credentials for Azure Container * Registry. - * @member {string} [containerRegistry.loginServer] The ACR login server + * @property {string} [containerRegistry.loginServer] The ACR login server * name. User name is the first part of the FQDN. - * @member {string} [containerRegistry.password] The ACR primary password. - * @member {string} [containerRegistry.password2] The ACR secondary password. - * @member {string} [containerRegistry.username] The ACR login username. - * @member {object} [containerService] Credentials for Azure Container + * @property {string} [containerRegistry.password] The ACR primary password. + * @property {string} [containerRegistry.password2] The ACR secondary + * password. + * @property {string} [containerRegistry.username] The ACR login username. + * @property {object} [containerService] Credentials for Azure Container * Service. - * @member {string} [containerService.acsKubeConfig] The ACS kube config + * @property {string} [containerService.acsKubeConfig] The ACS kube config * file. - * @member {object} [containerService.servicePrincipalConfiguration] Service - * principal configuration used by Kubernetes. - * @member {string} [containerService.servicePrincipalConfiguration.clientId] - * The service principal client ID - * @member {string} [containerService.servicePrincipalConfiguration.secret] + * @property {object} [containerService.servicePrincipalConfiguration] + * Service principal configuration used by Kubernetes. + * @property {string} + * [containerService.servicePrincipalConfiguration.clientId] The service + * principal client ID + * @property {string} [containerService.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} [containerService.imagePullSecretName] The ACR image pull - * secret name which was created in Kubernetes. - * @member {object} [appInsights] Credentials for Azure AppInsights. - * @member {string} [appInsights.appId] The AppInsights application ID. - * @member {string} [appInsights.instrumentationKey] The AppInsights + * @property {string} [containerService.imagePullSecretName] The ACR image + * pull secret name which was created in Kubernetes. + * @property {object} [appInsights] Credentials for Azure AppInsights. + * @property {string} [appInsights.appId] The AppInsights application ID. + * @property {string} [appInsights.instrumentationKey] The AppInsights * instrumentation key. This is not returned in response of GET/PUT on the * resource. To see this please call listKeys API. - * @member {object} [serviceAuthConfiguration] Global authorization keys for - * all user services deployed in cluster. These are used if the service does - * not have auth keys. - * @member {string} [serviceAuthConfiguration.primaryAuthKeyHash] The primary - * auth key hash. This is not returned in response of GET/PUT on the + * @property {object} [serviceAuthConfiguration] Global authorization keys + * for all user services deployed in cluster. These are used if the service + * does not have auth keys. + * @property {string} [serviceAuthConfiguration.primaryAuthKeyHash] The + * primary auth key hash. This is not returned in response of GET/PUT on the * resource.. To see this please call listKeys API. - * @member {string} [serviceAuthConfiguration.secondaryAuthKeyHash] The + * @property {string} [serviceAuthConfiguration.secondaryAuthKeyHash] The * secondary auth key hash. This is not returned in response of GET/PUT on * the resource.. To see this please call listKeys API. - * @member {object} [sslConfiguration] The SSL configuration for the + * @property {object} [sslConfiguration] The SSL configuration for the * services. - * @member {string} [sslConfiguration.status] SSL status. Allowed values are - * Enabled and Disabled. Possible values include: 'Enabled', 'Disabled' - * @member {string} [sslConfiguration.cert] The SSL cert data in PEM format - * encoded as base64 string - * @member {string} [sslConfiguration.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} [sslConfiguration.cname] The CName of the certificate. + * @property {string} [sslConfiguration.status] SSL status. Allowed values + * are Enabled and Disabled. Possible values include: 'Enabled', 'Disabled' + * @property {string} [sslConfiguration.cert] The SSL cert data in PEM + * format. + * @property {string} [sslConfiguration.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. + * @property {string} [sslConfiguration.cname] The CName of the certificate. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/operationalizationClusterUpdateParameters.js b/lib/services/machinelearningcomputeManagement/lib/models/operationalizationClusterUpdateParameters.js index 8aec884311..f0893d989c 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/operationalizationClusterUpdateParameters.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/operationalizationClusterUpdateParameters.js @@ -17,7 +17,7 @@ class OperationalizationClusterUpdateParameters { /** * Create a OperationalizationClusterUpdateParameters. - * @member {object} [tags] Gets or sets a list of key value pairs that + * @property {object} [tags] Gets or sets a list of key value pairs that * describe the resource. These tags can be used in viewing and grouping this * resource (across resource groups). A maximum of 15 tags can be provided * for a resource. Each tag must have a key no greater in length than 128 diff --git a/lib/services/machinelearningcomputeManagement/lib/models/paginatedOperationalizationClustersList.js b/lib/services/machinelearningcomputeManagement/lib/models/paginatedOperationalizationClustersList.js index a85d071708..787519756b 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/paginatedOperationalizationClustersList.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/paginatedOperationalizationClustersList.js @@ -16,8 +16,8 @@ class PaginatedOperationalizationClustersList extends Array { /** * Create a PaginatedOperationalizationClustersList. - * @member {string} [nextLink] A continuation link (absolute URI) to the next - * page of results in the list. + * @property {string} [nextLink] A continuation link (absolute URI) to the + * next page of results in the list. */ constructor() { super(); diff --git a/lib/services/machinelearningcomputeManagement/lib/models/resource.js b/lib/services/machinelearningcomputeManagement/lib/models/resource.js index 18c2f16935..65031c6d35 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/resource.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/resource.js @@ -20,11 +20,12 @@ const models = require('./index'); class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] Specifies the resource ID. - * @member {string} [name] Specifies the name of the resource. - * @member {string} location Specifies the location of the resource. - * @member {string} [type] Specifies the type of the resource. - * @member {object} [tags] Contains resource tags defined as key/value pairs. + * @property {string} [id] Specifies the resource ID. + * @property {string} [name] Specifies the name of the resource. + * @property {string} location Specifies the location of the resource. + * @property {string} [type] Specifies the type of the resource. + * @property {object} [tags] Contains resource tags defined as key/value + * pairs. */ constructor() { super(); diff --git a/lib/services/machinelearningcomputeManagement/lib/models/resourceOperation.js b/lib/services/machinelearningcomputeManagement/lib/models/resourceOperation.js index dd037d1b05..4769de8a04 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/resourceOperation.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/resourceOperation.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Resource operation. * @@ -19,13 +17,13 @@ const models = require('./index'); class ResourceOperation { /** * Create a ResourceOperation. - * @member {string} [name] Name of this operation. - * @member {object} [display] Display of the operation. - * @member {string} [display.provider] The resource provider name. - * @member {string} [display.resource] The resource name. - * @member {string} [display.operation] The operation. - * @member {string} [display.description] The description of the operation. - * @member {string} [origin] The operation origin. + * @property {string} [name] Name of this operation. + * @property {object} [display] Display of the operation. + * @property {string} [display.provider] The resource provider name. + * @property {string} [display.resource] The resource name. + * @property {string} [display.operation] The operation. + * @property {string} [display.description] The description of the operation. + * @property {string} [origin] The operation origin. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/resourceOperationDisplay.js b/lib/services/machinelearningcomputeManagement/lib/models/resourceOperationDisplay.js index a196d300ed..49c823e5df 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/resourceOperationDisplay.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/resourceOperationDisplay.js @@ -17,10 +17,10 @@ class ResourceOperationDisplay { /** * Create a ResourceOperationDisplay. - * @member {string} [provider] The resource provider name. - * @member {string} [resource] The resource name. - * @member {string} [operation] The operation. - * @member {string} [description] The description of the operation. + * @property {string} [provider] The resource provider name. + * @property {string} [resource] The resource name. + * @property {string} [operation] The operation. + * @property {string} [description] The description of the operation. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/serviceAuthConfiguration.js b/lib/services/machinelearningcomputeManagement/lib/models/serviceAuthConfiguration.js index c8ff8adec2..96069c2dd1 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/serviceAuthConfiguration.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/serviceAuthConfiguration.js @@ -18,12 +18,12 @@ class ServiceAuthConfiguration { /** * Create a ServiceAuthConfiguration. - * @member {string} primaryAuthKeyHash The primary auth key hash. This is not - * returned in response of GET/PUT on the resource.. To see this please call - * listKeys API. - * @member {string} secondaryAuthKeyHash The secondary auth key hash. This is + * @property {string} primaryAuthKeyHash The primary auth key hash. This is * not returned in response of GET/PUT on the resource.. To see this please * call listKeys API. + * @property {string} secondaryAuthKeyHash The secondary auth key hash. This + * is not returned in response of GET/PUT on the resource.. To see this + * please call listKeys API. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/servicePrincipalProperties.js b/lib/services/machinelearningcomputeManagement/lib/models/servicePrincipalProperties.js index b1ecb06072..97e8b7b420 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/servicePrincipalProperties.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/servicePrincipalProperties.js @@ -18,9 +18,10 @@ class ServicePrincipalProperties { /** * Create a ServicePrincipalProperties. - * @member {string} clientId The service principal client ID - * @member {string} secret The service principal secret. This is not returned - * in response of GET/PUT on the resource. To see this please call listKeys. + * @property {string} clientId The service principal client ID + * @property {string} secret The service principal secret. This is not + * returned in response of GET/PUT on the resource. To see this please call + * listKeys. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/sslConfiguration.js b/lib/services/machinelearningcomputeManagement/lib/models/sslConfiguration.js index c628019c97..cba33de41e 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/sslConfiguration.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/sslConfiguration.js @@ -18,15 +18,14 @@ class SslConfiguration { /** * Create a SslConfiguration. - * @member {string} [status] SSL status. Allowed values are Enabled and + * @property {string} [status] SSL status. Allowed values are Enabled and * Disabled. Possible values include: 'Enabled', 'Disabled'. Default value: * 'Enabled' . - * @member {string} [cert] The SSL cert data in PEM format encoded as base64 - * string - * @member {string} [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} [cname] The CName of the certificate. + * @property {string} [cert] The SSL cert data in PEM format. + * @property {string} [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. + * @property {string} [cname] The CName of the certificate. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/storageAccountCredentials.js b/lib/services/machinelearningcomputeManagement/lib/models/storageAccountCredentials.js index 7e647b68e9..8cf5c64baf 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/storageAccountCredentials.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/storageAccountCredentials.js @@ -17,9 +17,11 @@ class StorageAccountCredentials { /** * Create a StorageAccountCredentials. - * @member {string} [resourceId] The ARM resource ID of the storage account. - * @member {string} [primaryKey] The primary key of the storage account. - * @member {string} [secondaryKey] The secondary key of the storage account. + * @property {string} [resourceId] The ARM resource ID of the storage + * account. + * @property {string} [primaryKey] The primary key of the storage account. + * @property {string} [secondaryKey] The secondary key of the storage + * account. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/storageAccountProperties.js b/lib/services/machinelearningcomputeManagement/lib/models/storageAccountProperties.js index a7a4818fbc..433008ab0a 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/storageAccountProperties.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/storageAccountProperties.js @@ -17,9 +17,9 @@ class StorageAccountProperties { /** * Create a StorageAccountProperties. - * @member {string} [resourceId] ARM resource ID of the Azure Storage Account - * to store CLI specific files. If not provided one will be created. This - * cannot be changed once the cluster is created. + * @property {string} [resourceId] ARM resource ID of the Azure Storage + * Account to store CLI specific files. If not provided one will be created. + * This cannot be changed once the cluster is created. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/systemService.js b/lib/services/machinelearningcomputeManagement/lib/models/systemService.js index d0fc2cd8c7..0293d65464 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/systemService.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/systemService.js @@ -17,11 +17,11 @@ class SystemService { /** * Create a SystemService. - * @member {string} systemServiceType The system service type. Possible + * @property {string} systemServiceType The system service type. Possible * values include: 'None', 'ScoringFrontEnd', 'BatchFrontEnd' - * @member {string} [publicIpAddress] The public IP address of the system + * @property {string} [publicIpAddress] The public IP address of the system * service - * @member {string} [version] The state of the system service + * @property {string} [version] The state of the system service */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/models/updateSystemServicesResponse.js b/lib/services/machinelearningcomputeManagement/lib/models/updateSystemServicesResponse.js index e8524df016..7493c2988a 100644 --- a/lib/services/machinelearningcomputeManagement/lib/models/updateSystemServicesResponse.js +++ b/lib/services/machinelearningcomputeManagement/lib/models/updateSystemServicesResponse.js @@ -17,13 +17,13 @@ class UpdateSystemServicesResponse { /** * Create a UpdateSystemServicesResponse. - * @member {string} [updateStatus] Update status. Possible values include: + * @property {string} [updateStatus] Update status. Possible values include: * 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', * 'Canceled' - * @member {date} [updateStartedOn] The date and time when the last system + * @property {date} [updateStartedOn] The date and time when the last system * services update was started. - * @member {date} [updateCompletedOn] The date and time when the last system - * services update completed. + * @property {date} [updateCompletedOn] The date and time when the last + * system services update completed. */ constructor() { } diff --git a/lib/services/machinelearningcomputeManagement/lib/operations/index.d.ts b/lib/services/machinelearningcomputeManagement/lib/operations/index.d.ts index 1ca38013fb..cf3133125e 100644 --- a/lib/services/machinelearningcomputeManagement/lib/operations/index.d.ts +++ b/lib/services/machinelearningcomputeManagement/lib/operations/index.d.ts @@ -58,11 +58,11 @@ export interface OperationalizationClusters { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -108,11 +108,8 @@ export interface OperationalizationClusters { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -122,11 +119,11 @@ export interface OperationalizationClusters { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -223,11 +220,11 @@ export interface OperationalizationClusters { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -273,11 +270,8 @@ export interface OperationalizationClusters { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -287,11 +281,11 @@ export interface OperationalizationClusters { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -525,6 +519,9 @@ export interface OperationalizationClusters { * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -534,7 +531,7 @@ export interface OperationalizationClusters { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { deleteAll? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified cluster. @@ -546,6 +543,9 @@ export interface OperationalizationClusters { * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -570,9 +570,9 @@ export interface OperationalizationClusters { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, clusterName: string, options?: { deleteAll? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, clusterName: string, options: { deleteAll? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -920,11 +920,11 @@ export interface OperationalizationClusters { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -970,11 +970,8 @@ export interface OperationalizationClusters { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -984,11 +981,11 @@ export interface OperationalizationClusters { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -1085,11 +1082,11 @@ export interface OperationalizationClusters { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -1135,11 +1132,8 @@ export interface OperationalizationClusters { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -1149,11 +1143,11 @@ export interface OperationalizationClusters { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -1243,6 +1237,9 @@ export interface OperationalizationClusters { * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1252,7 +1249,7 @@ export interface OperationalizationClusters { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { deleteAll? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified cluster. @@ -1264,6 +1261,9 @@ export interface OperationalizationClusters { * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1288,9 +1288,9 @@ export interface OperationalizationClusters { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: { deleteAll? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, clusterName: string, options: { deleteAll? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/machinelearningcomputeManagement/lib/operations/operationalizationClusters.js b/lib/services/machinelearningcomputeManagement/lib/operations/operationalizationClusters.js index 17ba523867..024dfcbf61 100644 --- a/lib/services/machinelearningcomputeManagement/lib/operations/operationalizationClusters.js +++ b/lib/services/machinelearningcomputeManagement/lib/operations/operationalizationClusters.js @@ -52,11 +52,11 @@ const WebResource = msRest.WebResource; * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -102,11 +102,8 @@ const WebResource = msRest.WebResource; * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -116,11 +113,11 @@ const WebResource = msRest.WebResource; * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -628,6 +625,9 @@ function _update(resourceGroupName, clusterName, parameters, options, callback) * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1457,11 +1457,11 @@ function _listBySubscriptionId(options, callback) { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -1507,11 +1507,8 @@ function _listBySubscriptionId(options, callback) { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -1521,11 +1518,11 @@ function _listBySubscriptionId(options, callback) { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -1784,6 +1781,9 @@ function _beginCreateOrUpdate(resourceGroupName, clusterName, parameters, option * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1809,6 +1809,7 @@ function _beginDeleteMethod(resourceGroupName, clusterName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } + let deleteAll = (options && options.deleteAll !== undefined) ? options.deleteAll : undefined; // Validate try { if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { @@ -1851,6 +1852,9 @@ function _beginDeleteMethod(resourceGroupName, clusterName, options, callback) { throw new Error('"clusterName" should satisfy the constraint - "Pattern": /^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$/'); } } + if (deleteAll !== null && deleteAll !== undefined && typeof deleteAll !== 'boolean') { + throw new Error('deleteAll must be of type boolean.'); + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1866,6 +1870,9 @@ function _beginDeleteMethod(resourceGroupName, clusterName, options, callback) { requestUrl = requestUrl.replace('{clusterName}', encodeURIComponent(clusterName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (deleteAll !== null && deleteAll !== undefined) { + queryParameters.push('deleteAll=' + encodeURIComponent(deleteAll.toString())); + } if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -2423,11 +2430,11 @@ class OperationalizationClusters { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -2473,11 +2480,8 @@ class OperationalizationClusters { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -2487,11 +2491,11 @@ class OperationalizationClusters { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -2600,11 +2604,11 @@ class OperationalizationClusters { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -2650,11 +2654,8 @@ class OperationalizationClusters { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -2664,11 +2665,11 @@ class OperationalizationClusters { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -2971,6 +2972,9 @@ class OperationalizationClusters { * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3004,6 +3008,9 @@ class OperationalizationClusters { * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3528,11 +3535,11 @@ class OperationalizationClusters { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -3578,11 +3585,8 @@ class OperationalizationClusters { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -3592,11 +3596,11 @@ class OperationalizationClusters { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -3705,11 +3709,11 @@ class OperationalizationClusters { * orchestrator. It cannot be changed once the cluster is created. Possible * values include: 'Kubernetes', 'None' * - * @param {object} parameters.containerService.orchestratorProperties + * @param {object} [parameters.containerService.orchestratorProperties] * Orchestrator specific properties * * @param {object} - * parameters.containerService.orchestratorProperties.servicePrincipal The + * [parameters.containerService.orchestratorProperties.servicePrincipal] The * Azure Service Principal used by Kubernetes * * @param {string} @@ -3755,11 +3759,8 @@ class OperationalizationClusters { * @param {object} [parameters.globalServiceConfiguration] Contains global * configuration for the web services in the cluster. * - * @param {object} [parameters.globalServiceConfiguration.additionalProperties] - * Unmatched properties from the message are deserialized this collection - * * @param {string} [parameters.globalServiceConfiguration.etag] The - * configuartion ETag for updates. + * configuration ETag for updates. * * @param {object} [parameters.globalServiceConfiguration.ssl] The SSL * configuration properties @@ -3769,11 +3770,11 @@ class OperationalizationClusters { * 'Enabled', 'Disabled' * * @param {string} [parameters.globalServiceConfiguration.ssl.cert] The SSL - * cert data in PEM format encoded as base64 string + * cert data in PEM format. * * @param {string} [parameters.globalServiceConfiguration.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. + * data in PEM format. This is not returned in response of GET/PUT on the + * resource. To see this please call listKeys API. * * @param {string} [parameters.globalServiceConfiguration.ssl.cname] The CName * of the certificate. @@ -3878,6 +3879,9 @@ class OperationalizationClusters { * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3911,6 +3915,9 @@ class OperationalizationClusters { * * @param {object} [options] Optional Parameters. * + * @param {boolean} [options.deleteAll] If true, deletes all resources + * associated with this cluster. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/machinelearningcomputeManagement/package.json b/lib/services/machinelearningcomputeManagement/package.json index 8008a923f4..76a95dbc6e 100644 --- a/lib/services/machinelearningcomputeManagement/package.json +++ b/lib/services/machinelearningcomputeManagement/package.json @@ -1,35 +1,25 @@ { "name": "azure-arm-machinelearningcompute", "author": "Microsoft Corporation", - "contributors": [ - "Zavery, Amar " - ], + "description": "MachineLearningComputeManagementClient Library with typescript type definitions for node", "version": "1.1.0-preview", - "description": "Microsoft Azure MachineLearningCompute Management Client Library for node", - "tags": [ - "azure", - "sdk" - ], + "dependencies": { + "ms-rest": "^2.3.3", + "ms-rest-azure": "^2.5.5" + }, "keywords": [ "node", "azure" ], + "license": "MIT", "main": "./lib/machineLearningComputeManagementClient.js", "types": "./lib/machineLearningComputeManagementClient.d.ts", - "license": "MIT", - "dependencies": { - "ms-rest": "^2.2.2", - "ms-rest-azure": "^2.3.3" - }, - "homepage": "http://github.com/Azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/machinelearningcomputeManagement", "repository": { "type": "git", - "url": "git@github.com:Azure/azure-sdk-for-node.git" + "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" - }, - "scripts": { - "test": "npm -s run-script jshint" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +}