/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * Clusters * __NOTE__: An instance of this class is automatically created for an * instance of the HDInsightManagementClient. */ export interface Clusters { /** * Creates a new HDInsight cluster with the specified parameters. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster create request. * * @param {string} [parameters.location] The location of the cluster. * * @param {object} [parameters.tags] The resource tags. * * @param {object} [parameters.properties] The cluster create parameters. * * @param {string} [parameters.properties.clusterVersion] The version of the * cluster. * * @param {string} [parameters.properties.osType] The type of operating system. * Possible values include: 'Windows', 'Linux' * * @param {string} [parameters.properties.tier] The cluster tier. Possible * values include: 'Standard', 'Premium' * * @param {object} [parameters.properties.clusterDefinition] The cluster * definition. * * @param {string} [parameters.properties.clusterDefinition.blueprint] The link * to the blueprint. * * @param {string} [parameters.properties.clusterDefinition.kind] The type of * cluster. * * @param {object} [parameters.properties.clusterDefinition.componentVersion] * The versions of different services in the cluster. * * @param {object} [parameters.properties.clusterDefinition.configurations] The * cluster configurations. * * @param {object} [parameters.properties.securityProfile] The security * profile. * * @param {string} [parameters.properties.securityProfile.directoryType] The * directory type. Possible values include: 'ActiveDirectory' * * @param {string} [parameters.properties.securityProfile.domain] The * organization's active directory domain. * * @param {string} [parameters.properties.securityProfile.organizationalUnitDN] * The organizational unit within the Active Directory to place the cluster and * service accounts. * * @param {array} [parameters.properties.securityProfile.ldapsUrls] The LDAPS * protocol URLs to communicate with the Active Directory. * * @param {string} [parameters.properties.securityProfile.domainUsername] The * domain user account that will have admin privileges on the cluster. * * @param {string} [parameters.properties.securityProfile.domainUserPassword] * The domain admin password. * * @param {array} [parameters.properties.securityProfile.clusterUsersGroupDNs] * Optional. The Distinguished Names for cluster user groups * * @param {string} [parameters.properties.securityProfile.aaddsResourceId] The * resource ID of the user's Azure Active Directory Domain Service. * * @param {string} [parameters.properties.securityProfile.msiResourceId] User * assigned identity that has permissions to read and create cluster-related * artifacts in the user's AADDS. * * @param {object} [parameters.properties.computeProfile] The compute profile. * * @param {array} [parameters.properties.computeProfile.roles] The list of * roles in the cluster. * * @param {object} [parameters.properties.storageProfile] The storage profile. * * @param {array} [parameters.properties.storageProfile.storageaccounts] The * list of storage accounts in the cluster. * * @param {object} [parameters.properties.diskEncryptionProperties] The disk * encryption properties. * * @param {string} [parameters.properties.diskEncryptionProperties.vaultUri] * Base key vault URI where the customers key is located eg. * https://myvault.vault.azure.net * * @param {string} [parameters.properties.diskEncryptionProperties.keyName] Key * name that is used for enabling disk encryption. * * @param {string} [parameters.properties.diskEncryptionProperties.keyVersion] * Specific key version that is used for enabling disk encryption. * * @param {string} * [parameters.properties.diskEncryptionProperties.encryptionAlgorithm] * Algorithm identifier for encryption, default RSA-OAEP. Possible values * include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' * * @param {string} * [parameters.properties.diskEncryptionProperties.msiResourceId] Resource ID * of Managed Identity that is used to access the key vault. * * @param {object} [parameters.identity] The identity of the cluster, if * configured. * * @param {string} [parameters.identity.type] The type of identity used for the * cluster. The type 'SystemAssigned, UserAssigned' includes both an implicitly * created identity and a set of user assigned identities. Possible values * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', * 'None' * * @param {object} [parameters.identity.userAssignedIdentities] The list of * user identities associated with the cluster. The user identity dictionary * key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterCreateParametersExtended, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a new HDInsight cluster with the specified parameters. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster create request. * * @param {string} [parameters.location] The location of the cluster. * * @param {object} [parameters.tags] The resource tags. * * @param {object} [parameters.properties] The cluster create parameters. * * @param {string} [parameters.properties.clusterVersion] The version of the * cluster. * * @param {string} [parameters.properties.osType] The type of operating system. * Possible values include: 'Windows', 'Linux' * * @param {string} [parameters.properties.tier] The cluster tier. Possible * values include: 'Standard', 'Premium' * * @param {object} [parameters.properties.clusterDefinition] The cluster * definition. * * @param {string} [parameters.properties.clusterDefinition.blueprint] The link * to the blueprint. * * @param {string} [parameters.properties.clusterDefinition.kind] The type of * cluster. * * @param {object} [parameters.properties.clusterDefinition.componentVersion] * The versions of different services in the cluster. * * @param {object} [parameters.properties.clusterDefinition.configurations] The * cluster configurations. * * @param {object} [parameters.properties.securityProfile] The security * profile. * * @param {string} [parameters.properties.securityProfile.directoryType] The * directory type. Possible values include: 'ActiveDirectory' * * @param {string} [parameters.properties.securityProfile.domain] The * organization's active directory domain. * * @param {string} [parameters.properties.securityProfile.organizationalUnitDN] * The organizational unit within the Active Directory to place the cluster and * service accounts. * * @param {array} [parameters.properties.securityProfile.ldapsUrls] The LDAPS * protocol URLs to communicate with the Active Directory. * * @param {string} [parameters.properties.securityProfile.domainUsername] The * domain user account that will have admin privileges on the cluster. * * @param {string} [parameters.properties.securityProfile.domainUserPassword] * The domain admin password. * * @param {array} [parameters.properties.securityProfile.clusterUsersGroupDNs] * Optional. The Distinguished Names for cluster user groups * * @param {string} [parameters.properties.securityProfile.aaddsResourceId] The * resource ID of the user's Azure Active Directory Domain Service. * * @param {string} [parameters.properties.securityProfile.msiResourceId] User * assigned identity that has permissions to read and create cluster-related * artifacts in the user's AADDS. * * @param {object} [parameters.properties.computeProfile] The compute profile. * * @param {array} [parameters.properties.computeProfile.roles] The list of * roles in the cluster. * * @param {object} [parameters.properties.storageProfile] The storage profile. * * @param {array} [parameters.properties.storageProfile.storageaccounts] The * list of storage accounts in the cluster. * * @param {object} [parameters.properties.diskEncryptionProperties] The disk * encryption properties. * * @param {string} [parameters.properties.diskEncryptionProperties.vaultUri] * Base key vault URI where the customers key is located eg. * https://myvault.vault.azure.net * * @param {string} [parameters.properties.diskEncryptionProperties.keyName] Key * name that is used for enabling disk encryption. * * @param {string} [parameters.properties.diskEncryptionProperties.keyVersion] * Specific key version that is used for enabling disk encryption. * * @param {string} * [parameters.properties.diskEncryptionProperties.encryptionAlgorithm] * Algorithm identifier for encryption, default RSA-OAEP. Possible values * include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' * * @param {string} * [parameters.properties.diskEncryptionProperties.msiResourceId] Resource ID * of Managed Identity that is used to access the key vault. * * @param {object} [parameters.identity] The identity of the cluster, if * configured. * * @param {string} [parameters.identity.type] The type of identity used for the * cluster. The type 'SystemAssigned, UserAssigned' includes both an implicitly * created identity and a set of user assigned identities. Possible values * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', * 'None' * * @param {object} [parameters.identity.userAssignedIdentities] The list of * user identities associated with the cluster. The user identity dictionary * key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Cluster} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Cluster} [result] - The deserialized result object if an error did not occur. * See {@link Cluster} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ create(resourceGroupName: string, clusterName: string, parameters: models.ClusterCreateParametersExtended, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; create(resourceGroupName: string, clusterName: string, parameters: models.ClusterCreateParametersExtended, callback: ServiceCallback): void; create(resourceGroupName: string, clusterName: string, parameters: models.ClusterCreateParametersExtended, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Patch HDInsight cluster with the specified parameters. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster patch request. * * @param {object} [parameters.tags] The resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterPatchParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Patch HDInsight cluster with the specified parameters. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster patch request. * * @param {object} [parameters.tags] The resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Cluster} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Cluster} [result] - The deserialized result object if an error did not occur. * See {@link Cluster} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ update(resourceGroupName: string, clusterName: string, parameters: models.ClusterPatchParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; update(resourceGroupName: string, clusterName: string, parameters: models.ClusterPatchParameters, callback: ServiceCallback): void; update(resourceGroupName: string, clusterName: string, parameters: models.ClusterPatchParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {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, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Cluster} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Cluster} [result] - The deserialized result object if an error did not occur. * See {@link Cluster} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; get(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists the HDInsight clusters in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists the HDInsight clusters in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ClusterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ClusterListResult} [result] - The deserialized result object if an error did not occur. * See {@link ClusterListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Resizes the specified HDInsight cluster to the specified size. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for the resize operation. * * @param {number} [parameters.targetInstanceCount] The target instance count * for the operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ resizeWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterResizeParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Resizes the specified HDInsight cluster to the specified size. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for the resize operation. * * @param {number} [parameters.targetInstanceCount] The target instance count * for the operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ resize(resourceGroupName: string, clusterName: string, parameters: models.ClusterResizeParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; resize(resourceGroupName: string, clusterName: string, parameters: models.ClusterResizeParameters, callback: ServiceCallback): void; resize(resourceGroupName: string, clusterName: string, parameters: models.ClusterResizeParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the HDInsight clusters under the subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the HDInsight clusters under the subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ClusterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ClusterListResult} [result] - The deserialized result object if an error did not occur. * See {@link ClusterListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Rotate disk encryption key of the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for the disk encryption operation. * * @param {string} [parameters.vaultUri] Base key vault URI where the customers * key is located eg. https://myvault.vault.azure.net * * @param {string} [parameters.keyName] Key name that is used for enabling disk * encryption. * * @param {string} [parameters.keyVersion] Specific key version that is used * for enabling disk encryption. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ rotateDiskEncryptionKeyWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterDiskEncryptionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Rotate disk encryption key of the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for the disk encryption operation. * * @param {string} [parameters.vaultUri] Base key vault URI where the customers * key is located eg. https://myvault.vault.azure.net * * @param {string} [parameters.keyName] Key name that is used for enabling disk * encryption. * * @param {string} [parameters.keyVersion] Specific key version that is used * for enabling disk encryption. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ rotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: models.ClusterDiskEncryptionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; rotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: models.ClusterDiskEncryptionParameters, callback: ServiceCallback): void; rotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: models.ClusterDiskEncryptionParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the gateway settings for the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getGatewaySettingsWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the gateway settings for the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {GatewaySettings} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {GatewaySettings} [result] - The deserialized result object if an error did not occur. * See {@link GatewaySettings} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getGatewaySettings(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getGatewaySettings(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; getGatewaySettings(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Configures the gateway settings on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster configurations. * * @param {boolean} [parameters.isCredentialEnabled] Indicates whether or not * the gateway settings based authorization is enabled. * * @param {string} [parameters.userName] The gateway settings user name. * * @param {string} [parameters.password] The gateway settings user password. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateGatewaySettingsWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.UpdateGatewaySettingsParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Configures the gateway settings on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster configurations. * * @param {boolean} [parameters.isCredentialEnabled] Indicates whether or not * the gateway settings based authorization is enabled. * * @param {string} [parameters.userName] The gateway settings user name. * * @param {string} [parameters.password] The gateway settings user password. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: models.UpdateGatewaySettingsParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: models.UpdateGatewaySettingsParameters, callback: ServiceCallback): void; updateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: models.UpdateGatewaySettingsParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Executes script actions on the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for executing script actions. * * @param {array} [parameters.scriptActions] The list of run time script * actions. * * @param {boolean} parameters.persistOnSuccess Gets or sets if the scripts * needs to be persisted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ executeScriptActionsWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ExecuteScriptActionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Executes script actions on the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for executing script actions. * * @param {array} [parameters.scriptActions] The list of run time script * actions. * * @param {boolean} parameters.persistOnSuccess Gets or sets if the scripts * needs to be persisted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ executeScriptActions(resourceGroupName: string, clusterName: string, parameters: models.ExecuteScriptActionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; executeScriptActions(resourceGroupName: string, clusterName: string, parameters: models.ExecuteScriptActionParameters, callback: ServiceCallback): void; executeScriptActions(resourceGroupName: string, clusterName: string, parameters: models.ExecuteScriptActionParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a new HDInsight cluster with the specified parameters. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster create request. * * @param {string} [parameters.location] The location of the cluster. * * @param {object} [parameters.tags] The resource tags. * * @param {object} [parameters.properties] The cluster create parameters. * * @param {string} [parameters.properties.clusterVersion] The version of the * cluster. * * @param {string} [parameters.properties.osType] The type of operating system. * Possible values include: 'Windows', 'Linux' * * @param {string} [parameters.properties.tier] The cluster tier. Possible * values include: 'Standard', 'Premium' * * @param {object} [parameters.properties.clusterDefinition] The cluster * definition. * * @param {string} [parameters.properties.clusterDefinition.blueprint] The link * to the blueprint. * * @param {string} [parameters.properties.clusterDefinition.kind] The type of * cluster. * * @param {object} [parameters.properties.clusterDefinition.componentVersion] * The versions of different services in the cluster. * * @param {object} [parameters.properties.clusterDefinition.configurations] The * cluster configurations. * * @param {object} [parameters.properties.securityProfile] The security * profile. * * @param {string} [parameters.properties.securityProfile.directoryType] The * directory type. Possible values include: 'ActiveDirectory' * * @param {string} [parameters.properties.securityProfile.domain] The * organization's active directory domain. * * @param {string} [parameters.properties.securityProfile.organizationalUnitDN] * The organizational unit within the Active Directory to place the cluster and * service accounts. * * @param {array} [parameters.properties.securityProfile.ldapsUrls] The LDAPS * protocol URLs to communicate with the Active Directory. * * @param {string} [parameters.properties.securityProfile.domainUsername] The * domain user account that will have admin privileges on the cluster. * * @param {string} [parameters.properties.securityProfile.domainUserPassword] * The domain admin password. * * @param {array} [parameters.properties.securityProfile.clusterUsersGroupDNs] * Optional. The Distinguished Names for cluster user groups * * @param {string} [parameters.properties.securityProfile.aaddsResourceId] The * resource ID of the user's Azure Active Directory Domain Service. * * @param {string} [parameters.properties.securityProfile.msiResourceId] User * assigned identity that has permissions to read and create cluster-related * artifacts in the user's AADDS. * * @param {object} [parameters.properties.computeProfile] The compute profile. * * @param {array} [parameters.properties.computeProfile.roles] The list of * roles in the cluster. * * @param {object} [parameters.properties.storageProfile] The storage profile. * * @param {array} [parameters.properties.storageProfile.storageaccounts] The * list of storage accounts in the cluster. * * @param {object} [parameters.properties.diskEncryptionProperties] The disk * encryption properties. * * @param {string} [parameters.properties.diskEncryptionProperties.vaultUri] * Base key vault URI where the customers key is located eg. * https://myvault.vault.azure.net * * @param {string} [parameters.properties.diskEncryptionProperties.keyName] Key * name that is used for enabling disk encryption. * * @param {string} [parameters.properties.diskEncryptionProperties.keyVersion] * Specific key version that is used for enabling disk encryption. * * @param {string} * [parameters.properties.diskEncryptionProperties.encryptionAlgorithm] * Algorithm identifier for encryption, default RSA-OAEP. Possible values * include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' * * @param {string} * [parameters.properties.diskEncryptionProperties.msiResourceId] Resource ID * of Managed Identity that is used to access the key vault. * * @param {object} [parameters.identity] The identity of the cluster, if * configured. * * @param {string} [parameters.identity.type] The type of identity used for the * cluster. The type 'SystemAssigned, UserAssigned' includes both an implicitly * created identity and a set of user assigned identities. Possible values * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', * 'None' * * @param {object} [parameters.identity.userAssignedIdentities] The list of * user identities associated with the cluster. The user identity dictionary * key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterCreateParametersExtended, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a new HDInsight cluster with the specified parameters. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster create request. * * @param {string} [parameters.location] The location of the cluster. * * @param {object} [parameters.tags] The resource tags. * * @param {object} [parameters.properties] The cluster create parameters. * * @param {string} [parameters.properties.clusterVersion] The version of the * cluster. * * @param {string} [parameters.properties.osType] The type of operating system. * Possible values include: 'Windows', 'Linux' * * @param {string} [parameters.properties.tier] The cluster tier. Possible * values include: 'Standard', 'Premium' * * @param {object} [parameters.properties.clusterDefinition] The cluster * definition. * * @param {string} [parameters.properties.clusterDefinition.blueprint] The link * to the blueprint. * * @param {string} [parameters.properties.clusterDefinition.kind] The type of * cluster. * * @param {object} [parameters.properties.clusterDefinition.componentVersion] * The versions of different services in the cluster. * * @param {object} [parameters.properties.clusterDefinition.configurations] The * cluster configurations. * * @param {object} [parameters.properties.securityProfile] The security * profile. * * @param {string} [parameters.properties.securityProfile.directoryType] The * directory type. Possible values include: 'ActiveDirectory' * * @param {string} [parameters.properties.securityProfile.domain] The * organization's active directory domain. * * @param {string} [parameters.properties.securityProfile.organizationalUnitDN] * The organizational unit within the Active Directory to place the cluster and * service accounts. * * @param {array} [parameters.properties.securityProfile.ldapsUrls] The LDAPS * protocol URLs to communicate with the Active Directory. * * @param {string} [parameters.properties.securityProfile.domainUsername] The * domain user account that will have admin privileges on the cluster. * * @param {string} [parameters.properties.securityProfile.domainUserPassword] * The domain admin password. * * @param {array} [parameters.properties.securityProfile.clusterUsersGroupDNs] * Optional. The Distinguished Names for cluster user groups * * @param {string} [parameters.properties.securityProfile.aaddsResourceId] The * resource ID of the user's Azure Active Directory Domain Service. * * @param {string} [parameters.properties.securityProfile.msiResourceId] User * assigned identity that has permissions to read and create cluster-related * artifacts in the user's AADDS. * * @param {object} [parameters.properties.computeProfile] The compute profile. * * @param {array} [parameters.properties.computeProfile.roles] The list of * roles in the cluster. * * @param {object} [parameters.properties.storageProfile] The storage profile. * * @param {array} [parameters.properties.storageProfile.storageaccounts] The * list of storage accounts in the cluster. * * @param {object} [parameters.properties.diskEncryptionProperties] The disk * encryption properties. * * @param {string} [parameters.properties.diskEncryptionProperties.vaultUri] * Base key vault URI where the customers key is located eg. * https://myvault.vault.azure.net * * @param {string} [parameters.properties.diskEncryptionProperties.keyName] Key * name that is used for enabling disk encryption. * * @param {string} [parameters.properties.diskEncryptionProperties.keyVersion] * Specific key version that is used for enabling disk encryption. * * @param {string} * [parameters.properties.diskEncryptionProperties.encryptionAlgorithm] * Algorithm identifier for encryption, default RSA-OAEP. Possible values * include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' * * @param {string} * [parameters.properties.diskEncryptionProperties.msiResourceId] Resource ID * of Managed Identity that is used to access the key vault. * * @param {object} [parameters.identity] The identity of the cluster, if * configured. * * @param {string} [parameters.identity.type] The type of identity used for the * cluster. The type 'SystemAssigned, UserAssigned' includes both an implicitly * created identity and a set of user assigned identities. Possible values * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', * 'None' * * @param {object} [parameters.identity.userAssignedIdentities] The list of * user identities associated with the cluster. The user identity dictionary * key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Cluster} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Cluster} [result] - The deserialized result object if an error did not occur. * See {@link Cluster} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreate(resourceGroupName: string, clusterName: string, parameters: models.ClusterCreateParametersExtended, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreate(resourceGroupName: string, clusterName: string, parameters: models.ClusterCreateParametersExtended, callback: ServiceCallback): void; beginCreate(resourceGroupName: string, clusterName: string, parameters: models.ClusterCreateParametersExtended, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {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, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Resizes the specified HDInsight cluster to the specified size. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for the resize operation. * * @param {number} [parameters.targetInstanceCount] The target instance count * for the operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginResizeWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterResizeParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Resizes the specified HDInsight cluster to the specified size. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for the resize operation. * * @param {number} [parameters.targetInstanceCount] The target instance count * for the operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginResize(resourceGroupName: string, clusterName: string, parameters: models.ClusterResizeParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginResize(resourceGroupName: string, clusterName: string, parameters: models.ClusterResizeParameters, callback: ServiceCallback): void; beginResize(resourceGroupName: string, clusterName: string, parameters: models.ClusterResizeParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Rotate disk encryption key of the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for the disk encryption operation. * * @param {string} [parameters.vaultUri] Base key vault URI where the customers * key is located eg. https://myvault.vault.azure.net * * @param {string} [parameters.keyName] Key name that is used for enabling disk * encryption. * * @param {string} [parameters.keyVersion] Specific key version that is used * for enabling disk encryption. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginRotateDiskEncryptionKeyWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterDiskEncryptionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Rotate disk encryption key of the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for the disk encryption operation. * * @param {string} [parameters.vaultUri] Base key vault URI where the customers * key is located eg. https://myvault.vault.azure.net * * @param {string} [parameters.keyName] Key name that is used for enabling disk * encryption. * * @param {string} [parameters.keyVersion] Specific key version that is used * for enabling disk encryption. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: models.ClusterDiskEncryptionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: models.ClusterDiskEncryptionParameters, callback: ServiceCallback): void; beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: models.ClusterDiskEncryptionParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Configures the gateway settings on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster configurations. * * @param {boolean} [parameters.isCredentialEnabled] Indicates whether or not * the gateway settings based authorization is enabled. * * @param {string} [parameters.userName] The gateway settings user name. * * @param {string} [parameters.password] The gateway settings user password. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateGatewaySettingsWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.UpdateGatewaySettingsParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Configures the gateway settings on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The cluster configurations. * * @param {boolean} [parameters.isCredentialEnabled] Indicates whether or not * the gateway settings based authorization is enabled. * * @param {string} [parameters.userName] The gateway settings user name. * * @param {string} [parameters.password] The gateway settings user password. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: models.UpdateGatewaySettingsParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: models.UpdateGatewaySettingsParameters, callback: ServiceCallback): void; beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: models.UpdateGatewaySettingsParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Executes script actions on the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for executing script actions. * * @param {array} [parameters.scriptActions] The list of run time script * actions. * * @param {boolean} parameters.persistOnSuccess Gets or sets if the scripts * needs to be persisted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginExecuteScriptActionsWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ExecuteScriptActionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Executes script actions on the specified HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The parameters for executing script actions. * * @param {array} [parameters.scriptActions] The list of run time script * actions. * * @param {boolean} parameters.persistOnSuccess Gets or sets if the scripts * needs to be persisted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: models.ExecuteScriptActionParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: models.ExecuteScriptActionParameters, callback: ServiceCallback): void; beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: models.ExecuteScriptActionParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists the HDInsight clusters in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists the HDInsight clusters in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ClusterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ClusterListResult} [result] - The deserialized result object if an error did not occur. * See {@link ClusterListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the HDInsight clusters under the subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the HDInsight clusters under the subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ClusterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ClusterListResult} [result] - The deserialized result object if an error did not occur. * See {@link ClusterListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Applications * __NOTE__: An instance of this class is automatically created for an * instance of the HDInsightManagementClient. */ export interface Applications { /** * Lists all of the applications for the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByClusterWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the applications for the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByCluster(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByCluster(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; listByCluster(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets properties of the specified application. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, clusterName: string, applicationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets properties of the specified application. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Application} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Application} [result] - The deserialized result object if an error did not occur. * See {@link Application} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, clusterName: string, applicationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, clusterName: string, applicationName: string, callback: ServiceCallback): void; get(resourceGroupName: string, clusterName: string, applicationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates applications for the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} parameters The application create request. * * @param {string} [parameters.etag] The ETag for the application * * @param {object} [parameters.tags] The tags for the application. * * @param {object} [parameters.properties] The properties of the application. * * @param {object} [parameters.properties.computeProfile] The list of roles in * the cluster. * * @param {array} [parameters.properties.computeProfile.roles] The list of * roles in the cluster. * * @param {array} [parameters.properties.installScriptActions] The list of * install script actions. * * @param {array} [parameters.properties.uninstallScriptActions] The list of * uninstall script actions. * * @param {array} [parameters.properties.httpsEndpoints] The list of * application HTTPS endpoints. * * @param {array} [parameters.properties.sshEndpoints] The list of application * SSH endpoints. * * @param {string} [parameters.properties.applicationType] The application * type. * * @param {array} [parameters.properties.errors] The list of errors. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createWithHttpOperationResponse(resourceGroupName: string, clusterName: string, applicationName: string, parameters: models.Application, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates applications for the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} parameters The application create request. * * @param {string} [parameters.etag] The ETag for the application * * @param {object} [parameters.tags] The tags for the application. * * @param {object} [parameters.properties] The properties of the application. * * @param {object} [parameters.properties.computeProfile] The list of roles in * the cluster. * * @param {array} [parameters.properties.computeProfile.roles] The list of * roles in the cluster. * * @param {array} [parameters.properties.installScriptActions] The list of * install script actions. * * @param {array} [parameters.properties.uninstallScriptActions] The list of * uninstall script actions. * * @param {array} [parameters.properties.httpsEndpoints] The list of * application HTTPS endpoints. * * @param {array} [parameters.properties.sshEndpoints] The list of application * SSH endpoints. * * @param {string} [parameters.properties.applicationType] The application * type. * * @param {array} [parameters.properties.errors] The list of errors. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Application} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Application} [result] - The deserialized result object if an error did not occur. * See {@link Application} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ create(resourceGroupName: string, clusterName: string, applicationName: string, parameters: models.Application, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; create(resourceGroupName: string, clusterName: string, applicationName: string, parameters: models.Application, callback: ServiceCallback): void; create(resourceGroupName: string, clusterName: string, applicationName: string, parameters: models.Application, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified application on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, applicationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified application on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates applications for the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} parameters The application create request. * * @param {string} [parameters.etag] The ETag for the application * * @param {object} [parameters.tags] The tags for the application. * * @param {object} [parameters.properties] The properties of the application. * * @param {object} [parameters.properties.computeProfile] The list of roles in * the cluster. * * @param {array} [parameters.properties.computeProfile.roles] The list of * roles in the cluster. * * @param {array} [parameters.properties.installScriptActions] The list of * install script actions. * * @param {array} [parameters.properties.uninstallScriptActions] The list of * uninstall script actions. * * @param {array} [parameters.properties.httpsEndpoints] The list of * application HTTPS endpoints. * * @param {array} [parameters.properties.sshEndpoints] The list of application * SSH endpoints. * * @param {string} [parameters.properties.applicationType] The application * type. * * @param {array} [parameters.properties.errors] The list of errors. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, applicationName: string, parameters: models.Application, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates applications for the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} parameters The application create request. * * @param {string} [parameters.etag] The ETag for the application * * @param {object} [parameters.tags] The tags for the application. * * @param {object} [parameters.properties] The properties of the application. * * @param {object} [parameters.properties.computeProfile] The list of roles in * the cluster. * * @param {array} [parameters.properties.computeProfile.roles] The list of * roles in the cluster. * * @param {array} [parameters.properties.installScriptActions] The list of * install script actions. * * @param {array} [parameters.properties.uninstallScriptActions] The list of * uninstall script actions. * * @param {array} [parameters.properties.httpsEndpoints] The list of * application HTTPS endpoints. * * @param {array} [parameters.properties.sshEndpoints] The list of application * SSH endpoints. * * @param {string} [parameters.properties.applicationType] The application * type. * * @param {array} [parameters.properties.errors] The list of errors. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Application} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Application} [result] - The deserialized result object if an error did not occur. * See {@link Application} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: models.Application, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: models.Application, callback: ServiceCallback): void; beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: models.Application, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified application on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, applicationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified application on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} applicationName The constant value for the application name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all of the applications for the HDInsight cluster. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByClusterNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the applications for the HDInsight cluster. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByClusterNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByClusterNext(nextPageLink: string, callback: ServiceCallback): void; listByClusterNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Locations * __NOTE__: An instance of this class is automatically created for an * instance of the HDInsightManagementClient. */ export interface Locations { /** * Lists the usages for the specified location. * * @param {string} location The location to get capabilities for. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listUsagesWithHttpOperationResponse(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists the usages for the specified location. * * @param {string} location The location to get capabilities for. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {UsagesListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {UsagesListResult} [result] - The deserialized result object if an error did not occur. * See {@link UsagesListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listUsages(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listUsages(location: string, callback: ServiceCallback): void; listUsages(location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Configurations * __NOTE__: An instance of this class is automatically created for an * instance of the HDInsightManagementClient. */ export interface Configurations { /** * Gets all configuration information for an HDI cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all configuration information for an HDI cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ClusterConfigurations} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ClusterConfigurations} [result] - The deserialized result object if an error did not occur. * See {@link ClusterConfigurations} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; list(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Configures the HTTP settings on the specified cluster. This API is * deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} configurationName The name of the cluster configuration. * * @param {object} parameters The cluster configurations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Configures the HTTP settings on the specified cluster. This API is * deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} configurationName The name of the cluster configuration. * * @param {object} parameters The cluster configurations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback): void; update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The configuration object for the specified cluster. This API is not * recommended and might be removed in the future. Please consider using List * configurations API instead. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} configurationName The name of the cluster configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The configuration object for the specified cluster. This API is not * recommended and might be removed in the future. Please consider using List * configurations API instead. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} configurationName The name of the cluster configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Object} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, clusterName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<{ [propertyName: string]: string }>; get(resourceGroupName: string, clusterName: string, configurationName: string, callback: ServiceCallback<{ [propertyName: string]: string }>): void; get(resourceGroupName: string, clusterName: string, configurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<{ [propertyName: string]: string }>): void; /** * Configures the HTTP settings on the specified cluster. This API is * deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} configurationName The name of the cluster configuration. * * @param {object} parameters The cluster configurations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Configures the HTTP settings on the specified cluster. This API is * deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} configurationName The name of the cluster configuration. * * @param {object} parameters The cluster configurations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback): void; beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Extensions * __NOTE__: An instance of this class is automatically created for an * instance of the HDInsightManagementClient. */ export interface Extensions { /** * Enables the Operations Management Suite (OMS) on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The Operations Management Suite (OMS) workspace * parameters. * * @param {string} [parameters.workspaceId] The Operations Management Suite * (OMS) workspace ID. * * @param {string} [parameters.primaryKey] The Operations Management Suite * (OMS) workspace key. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ enableMonitoringWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterMonitoringRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Enables the Operations Management Suite (OMS) on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The Operations Management Suite (OMS) workspace * parameters. * * @param {string} [parameters.workspaceId] The Operations Management Suite * (OMS) workspace ID. * * @param {string} [parameters.primaryKey] The Operations Management Suite * (OMS) workspace key. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ enableMonitoring(resourceGroupName: string, clusterName: string, parameters: models.ClusterMonitoringRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; enableMonitoring(resourceGroupName: string, clusterName: string, parameters: models.ClusterMonitoringRequest, callback: ServiceCallback): void; enableMonitoring(resourceGroupName: string, clusterName: string, parameters: models.ClusterMonitoringRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the status of Operations Management Suite (OMS) on the HDInsight * cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getMonitoringStatusWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the status of Operations Management Suite (OMS) on the HDInsight * cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ClusterMonitoringResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ClusterMonitoringResponse} [result] - The deserialized result object if an error did not occur. * See {@link ClusterMonitoringResponse} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getMonitoringStatus(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getMonitoringStatus(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; getMonitoringStatus(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Disables the Operations Management Suite (OMS) on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ disableMonitoringWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Disables the Operations Management Suite (OMS) on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ disableMonitoring(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; disableMonitoring(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; disableMonitoring(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates an HDInsight cluster extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} parameters The cluster extensions create request. * * @param {string} [parameters.workspaceId] The workspace ID for the cluster * monitoring extension. * * @param {string} [parameters.primaryKey] The certificate for the cluster * monitoring extensions. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createWithHttpOperationResponse(resourceGroupName: string, clusterName: string, extensionName: string, parameters: models.Extension, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates an HDInsight cluster extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} parameters The cluster extensions create request. * * @param {string} [parameters.workspaceId] The workspace ID for the cluster * monitoring extension. * * @param {string} [parameters.primaryKey] The certificate for the cluster * monitoring extensions. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ create(resourceGroupName: string, clusterName: string, extensionName: string, parameters: models.Extension, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; create(resourceGroupName: string, clusterName: string, extensionName: string, parameters: models.Extension, callback: ServiceCallback): void; create(resourceGroupName: string, clusterName: string, extensionName: string, parameters: models.Extension, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the extension properties for the specified HDInsight cluster extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, clusterName: string, extensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the extension properties for the specified HDInsight cluster extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Extension} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Extension} [result] - The deserialized result object if an error did not occur. * See {@link Extension} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, clusterName: string, extensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, clusterName: string, extensionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, clusterName: string, extensionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified extension for HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, extensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified extension for HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Enables the Operations Management Suite (OMS) on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The Operations Management Suite (OMS) workspace * parameters. * * @param {string} [parameters.workspaceId] The Operations Management Suite * (OMS) workspace ID. * * @param {string} [parameters.primaryKey] The Operations Management Suite * (OMS) workspace key. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginEnableMonitoringWithHttpOperationResponse(resourceGroupName: string, clusterName: string, parameters: models.ClusterMonitoringRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Enables the Operations Management Suite (OMS) on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} parameters The Operations Management Suite (OMS) workspace * parameters. * * @param {string} [parameters.workspaceId] The Operations Management Suite * (OMS) workspace ID. * * @param {string} [parameters.primaryKey] The Operations Management Suite * (OMS) workspace key. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: models.ClusterMonitoringRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: models.ClusterMonitoringRequest, callback: ServiceCallback): void; beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: models.ClusterMonitoringRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Disables the Operations Management Suite (OMS) on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDisableMonitoringWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Disables the Operations Management Suite (OMS) on the HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDisableMonitoring(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDisableMonitoring(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; beginDisableMonitoring(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates an HDInsight cluster extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} parameters The cluster extensions create request. * * @param {string} [parameters.workspaceId] The workspace ID for the cluster * monitoring extension. * * @param {string} [parameters.primaryKey] The certificate for the cluster * monitoring extensions. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, extensionName: string, parameters: models.Extension, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates an HDInsight cluster extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} parameters The cluster extensions create request. * * @param {string} [parameters.workspaceId] The workspace ID for the cluster * monitoring extension. * * @param {string} [parameters.primaryKey] The certificate for the cluster * monitoring extensions. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: models.Extension, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: models.Extension, callback: ServiceCallback): void; beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: models.Extension, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified extension for HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, extensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified extension for HDInsight cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} extensionName The name of the cluster extension. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ScriptActions * __NOTE__: An instance of this class is automatically created for an * instance of the HDInsightManagementClient. */ export interface ScriptActions { /** * Deletes a specified persisted script action of the cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} scriptName The name of the script. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, clusterName: string, scriptName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a specified persisted script action of the cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} scriptName The name of the script. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the persisted script actions for the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByClusterWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the persisted script actions for the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ScriptActionsList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ScriptActionsList} [result] - The deserialized result object if an error did not occur. * See {@link ScriptActionsList} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByCluster(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByCluster(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; listByCluster(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the script execution detail for the given script execution ID. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} scriptExecutionId The script execution Id * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getExecutionDetailWithHttpOperationResponse(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the script execution detail for the given script execution ID. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} scriptExecutionId The script execution Id * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RuntimeScriptActionDetail} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RuntimeScriptActionDetail} [result] - The deserialized result object if an error did not occur. * See {@link RuntimeScriptActionDetail} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, callback: ServiceCallback): void; getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the persisted script actions for the specified cluster. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByClusterNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the persisted script actions for the specified cluster. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ScriptActionsList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ScriptActionsList} [result] - The deserialized result object if an error did not occur. * See {@link ScriptActionsList} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByClusterNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByClusterNext(nextPageLink: string, callback: ServiceCallback): void; listByClusterNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ScriptExecutionHistory * __NOTE__: An instance of this class is automatically created for an * instance of the HDInsightManagementClient. */ export interface ScriptExecutionHistory { /** * Lists all scripts' execution history for the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByClusterWithHttpOperationResponse(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all scripts' execution history for the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ScriptActionExecutionHistoryList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ScriptActionExecutionHistoryList} [result] - The deserialized result object if an error did not occur. * See {@link ScriptActionExecutionHistoryList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByCluster(resourceGroupName: string, clusterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByCluster(resourceGroupName: string, clusterName: string, callback: ServiceCallback): void; listByCluster(resourceGroupName: string, clusterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Promotes the specified ad-hoc script execution to a persisted script. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} scriptExecutionId The script execution Id * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ promoteWithHttpOperationResponse(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Promotes the specified ad-hoc script execution to a persisted script. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} clusterName The name of the cluster. * * @param {string} scriptExecutionId The script execution Id * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ promote(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; promote(resourceGroupName: string, clusterName: string, scriptExecutionId: string, callback: ServiceCallback): void; promote(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all scripts' execution history for the specified cluster. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByClusterNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all scripts' execution history for the specified cluster. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ScriptActionExecutionHistoryList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ScriptActionExecutionHistoryList} [result] - The deserialized result object if an error did not occur. * See {@link ScriptActionExecutionHistoryList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByClusterNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByClusterNext(nextPageLink: string, callback: ServiceCallback): void; listByClusterNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Operations * __NOTE__: An instance of this class is automatically created for an * instance of the HDInsightManagementClient. */ export interface Operations { /** * Lists all of the available HDInsight REST API operations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the available HDInsight REST API operations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {OperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {OperationListResult} [result] - The deserialized result object if an error did not occur. * See {@link OperationListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all of the available HDInsight REST API operations. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the available HDInsight REST API operations. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {OperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {OperationListResult} [result] - The deserialized result object if an error did not occur. * See {@link OperationListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; }