From 6099cb529ff77d70eae57e69481cc77911b68a6e Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 2 Apr 2019 14:24:53 -0700 Subject: [PATCH] Generated from 976b192b4c0dab6a9b3dc4daa94767f80937fe63 (#1949) Trigger --- packages/@azure/arm-hdinsight/README.md | 3 - .../lib/models/applicationsMappers.ts | 55 +- .../lib/models/clustersMappers.ts | 69 +- .../lib/models/configurationsMappers.ts | 8 +- .../lib/models/extensionsMappers.ts | 9 +- .../@azure/arm-hdinsight/lib/models/index.ts | 859 +++++++++++++----- .../lib/models/locationsMappers.ts | 13 +- .../arm-hdinsight/lib/models/mappers.ts | 92 +- .../lib/models/operationsMappers.ts | 11 +- .../lib/models/scriptActionsMappers.ts | 13 +- .../models/scriptExecutionHistoryMappers.ts | 15 +- .../arm-hdinsight/lib/operations/clusters.ts | 121 +++ .../lib/operations/configurations.ts | 66 +- packages/@azure/arm-hdinsight/package.json | 8 +- 14 files changed, 1000 insertions(+), 342 deletions(-) diff --git a/packages/@azure/arm-hdinsight/README.md b/packages/@azure/arm-hdinsight/README.md index 13c4b6486a21..34d5cf394de3 100644 --- a/packages/@azure/arm-hdinsight/README.md +++ b/packages/@azure/arm-hdinsight/README.md @@ -98,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-hdinsight%2FREADME.png) diff --git a/packages/@azure/arm-hdinsight/lib/models/applicationsMappers.ts b/packages/@azure/arm-hdinsight/lib/models/applicationsMappers.ts index 9e4d011634ff..80b8ad1c15b6 100644 --- a/packages/@azure/arm-hdinsight/lib/models/applicationsMappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/applicationsMappers.ts @@ -1,43 +1,46 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - Application, - ApplicationGetEndpoint, - ApplicationGetHttpsEndpoint, ApplicationListResult, - ApplicationProperties, + Application, + ProxyResource, + Resource, BaseResource, - Cluster, - ClusterDefinition, - ClusterGetProperties, - ClusterIdentity, - ClusterIdentityUserAssignedIdentitiesValue, + ApplicationProperties, ComputeProfile, - ConnectivityEndpoint, - DataDisksGroups, - DiskEncryptionProperties, - ErrorResponse, - Errors, + Role, HardwareProfile, - LinuxOperatingSystemProfile, OsProfile, - ProxyResource, - QuotaInfo, - Resource, - Role, + LinuxOperatingSystemProfile, + SshProfile, + SshPublicKey, + VirtualNetworkProfile, + DataDisksGroups, + ScriptAction, RuntimeScriptAction, + ApplicationGetHttpsEndpoint, + ApplicationGetEndpoint, + Errors, + ErrorResponse, RuntimeScriptActionDetail, - ScriptAction, ScriptActionExecutionSummary, - SecurityProfile, - SshProfile, - SshPublicKey, TrackedResource, - VirtualNetworkProfile + Cluster, + ClusterGetProperties, + ClusterDefinition, + SecurityProfile, + QuotaInfo, + ConnectivityEndpoint, + DiskEncryptionProperties, + ClusterIdentity, + ClusterIdentityUserAssignedIdentitiesValue } from "../models/mappers"; + diff --git a/packages/@azure/arm-hdinsight/lib/models/clustersMappers.ts b/packages/@azure/arm-hdinsight/lib/models/clustersMappers.ts index 0210643ee299..8d50f9ec7587 100644 --- a/packages/@azure/arm-hdinsight/lib/models/clustersMappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/clustersMappers.ts @@ -1,51 +1,56 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - Application, - ApplicationGetEndpoint, - ApplicationGetHttpsEndpoint, - ApplicationProperties, - BaseResource, - Cluster, ClusterCreateParametersExtended, ClusterCreateProperties, ClusterDefinition, - ClusterDiskEncryptionParameters, - ClusterGetProperties, - ClusterIdentity, - ClusterIdentityUserAssignedIdentitiesValue, - ClusterListResult, - ClusterPatchParameters, - ClusterResizeParameters, + SecurityProfile, ComputeProfile, - ConnectivityEndpoint, + Role, + HardwareProfile, + OsProfile, + LinuxOperatingSystemProfile, + SshProfile, + SshPublicKey, + VirtualNetworkProfile, DataDisksGroups, + ScriptAction, + StorageProfile, + StorageAccount, DiskEncryptionProperties, - ErrorResponse, + ClusterIdentity, + ClusterIdentityUserAssignedIdentitiesValue, + Cluster, + TrackedResource, + Resource, + BaseResource, + ClusterGetProperties, + QuotaInfo, Errors, + ConnectivityEndpoint, + ErrorResponse, + ClusterPatchParameters, + ClusterListResult, + ClusterResizeParameters, + ClusterDiskEncryptionParameters, + GatewaySettings, + UpdateGatewaySettingsParameters, ExecuteScriptActionParameters, - HardwareProfile, - LinuxOperatingSystemProfile, - OsProfile, - ProxyResource, - QuotaInfo, - Resource, - Role, RuntimeScriptAction, RuntimeScriptActionDetail, - ScriptAction, ScriptActionExecutionSummary, - SecurityProfile, - SshProfile, - SshPublicKey, - StorageAccount, - StorageProfile, - TrackedResource, - VirtualNetworkProfile + ProxyResource, + Application, + ApplicationProperties, + ApplicationGetHttpsEndpoint, + ApplicationGetEndpoint } from "../models/mappers"; + diff --git a/packages/@azure/arm-hdinsight/lib/models/configurationsMappers.ts b/packages/@azure/arm-hdinsight/lib/models/configurationsMappers.ts index 37aaf953b0f9..7f26bf497e9e 100644 --- a/packages/@azure/arm-hdinsight/lib/models/configurationsMappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/configurationsMappers.ts @@ -1,11 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { + ClusterConfigurations, ErrorResponse } from "../models/mappers"; + diff --git a/packages/@azure/arm-hdinsight/lib/models/extensionsMappers.ts b/packages/@azure/arm-hdinsight/lib/models/extensionsMappers.ts index 49c0a8d62e44..ea19878c886f 100644 --- a/packages/@azure/arm-hdinsight/lib/models/extensionsMappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/extensionsMappers.ts @@ -1,14 +1,17 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { ClusterMonitoringRequest, - ClusterMonitoringResponse, ErrorResponse, + ClusterMonitoringResponse, Extension } from "../models/mappers"; + diff --git a/packages/@azure/arm-hdinsight/lib/models/index.ts b/packages/@azure/arm-hdinsight/lib/models/index.ts index 4efab23488c1..3bb23c8889cb 100644 --- a/packages/@azure/arm-hdinsight/lib/models/index.ts +++ b/packages/@azure/arm-hdinsight/lib/models/index.ts @@ -1,9 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -11,1094 +13,1445 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; + /** + * @interface + * An interface representing ClusterDefinition. * The cluster definition. + * */ export interface ClusterDefinition { /** - * The link to the blueprint. + * @member {string} [blueprint] The link to the blueprint. */ blueprint?: string; /** - * The type of cluster. + * @member {string} [kind] The type of cluster. */ kind?: string; /** - * The versions of different services in the cluster. + * @member {{ [propertyName: string]: string }} [componentVersion] The + * versions of different services in the cluster. */ componentVersion?: { [propertyName: string]: string }; /** - * The cluster configurations. + * @member {any} [configurations] The cluster configurations. */ configurations?: any; } /** - * The security profile which contains Ssh public key for the HDInsight cluster. + * @interface + * An interface representing SecurityProfile. + * The security profile which contains Ssh public key for the HDInsight + * cluster. + * */ export interface SecurityProfile { /** - * The directory type. Possible values include: 'ActiveDirectory' + * @member {DirectoryType} [directoryType] The directory type. Possible + * values include: 'ActiveDirectory' */ directoryType?: DirectoryType; /** - * The organization's active directory domain. + * @member {string} [domain] The organization's active directory domain. */ domain?: string; /** - * The organizational unit within the Active Directory to place the cluster and service accounts. + * @member {string} [organizationalUnitDN] The organizational unit within the + * Active Directory to place the cluster and service accounts. */ organizationalUnitDN?: string; /** - * The LDAPS protocol URLs to communicate with the Active Directory. + * @member {string[]} [ldapsUrls] The LDAPS protocol URLs to communicate with + * the Active Directory. */ ldapsUrls?: string[]; /** - * The domain user account that will have admin privileges on the cluster. + * @member {string} [domainUsername] The domain user account that will have + * admin privileges on the cluster. */ domainUsername?: string; /** - * The domain admin password. + * @member {string} [domainUserPassword] The domain admin password. */ domainUserPassword?: string; /** - * Optional. The Distinguished Names for cluster user groups + * @member {string[]} [clusterUsersGroupDNs] Optional. The Distinguished + * Names for cluster user groups */ clusterUsersGroupDNs?: string[]; /** - * The resource ID of the user's Azure Active Directory Domain Service. + * @member {string} [aaddsResourceId] The resource ID of the user's Azure + * Active Directory Domain Service. */ aaddsResourceId?: string; /** - * User assigned identity that has permissions to read and create cluster-related artifacts in - * the user's AADDS. + * @member {string} [msiResourceId] User assigned identity that has + * permissions to read and create cluster-related artifacts in the user's + * AADDS. */ msiResourceId?: string; } /** + * @interface + * An interface representing HardwareProfile. * The hardware profile. + * */ export interface HardwareProfile { /** - * The size of the VM + * @member {string} [vmSize] The size of the VM */ vmSize?: string; } /** + * @interface + * An interface representing VirtualNetworkProfile. * The virtual network properties. + * */ export interface VirtualNetworkProfile { /** - * The ID of the virtual network. + * @member {string} [id] The ID of the virtual network. */ id?: string; /** - * The name of the subnet. + * @member {string} [subnet] The name of the subnet. */ subnet?: string; } /** + * @interface + * An interface representing DataDisksGroups. * The data disks groups for the role. + * */ export interface DataDisksGroups { /** - * The number of disks per node. + * @member {number} [disksPerNode] The number of disks per node. */ disksPerNode?: number; /** - * ReadOnly. The storage account type. Do not set this value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [storageAccountType] ReadOnly. The storage account type. + * Do not set this value. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly storageAccountType?: string; /** - * ReadOnly. The DiskSize in GB. Do not set this value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {number} [diskSizeGB] ReadOnly. The DiskSize in GB. Do not set + * this value. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly diskSizeGB?: number; } /** + * @interface + * An interface representing SshPublicKey. * The SSH public key for the cluster nodes. + * */ export interface SshPublicKey { /** - * The certificate for SSH. + * @member {string} [certificateData] The certificate for SSH. */ certificateData?: string; } /** + * @interface + * An interface representing SshProfile. * The list of SSH public keys. + * */ export interface SshProfile { /** - * The list of SSH public keys. + * @member {SshPublicKey[]} [publicKeys] The list of SSH public keys. */ publicKeys?: SshPublicKey[]; } /** + * @interface + * An interface representing LinuxOperatingSystemProfile. * The ssh username, password, and ssh public key. + * */ export interface LinuxOperatingSystemProfile { /** - * The username. + * @member {string} [username] The username. */ username?: string; /** - * The password. + * @member {string} [password] The password. */ password?: string; /** - * The SSH profile. + * @member {SshProfile} [sshProfile] The SSH profile. */ sshProfile?: SshProfile; } /** + * @interface + * An interface representing OsProfile. * The Linux operation systems profile. + * */ export interface OsProfile { /** - * The Linux OS profile. + * @member {LinuxOperatingSystemProfile} [linuxOperatingSystemProfile] The + * Linux OS profile. */ linuxOperatingSystemProfile?: LinuxOperatingSystemProfile; } /** + * @interface + * An interface representing ScriptAction. * Describes a script action on role on the cluster. + * */ export interface ScriptAction { /** - * The name of the script action. + * @member {string} name The name of the script action. */ name: string; /** - * The URI to the script. + * @member {string} uri The URI to the script. */ uri: string; /** - * The parameters for the script provided. + * @member {string} parameters The parameters for the script provided. */ parameters: string; } /** + * @interface + * An interface representing Role. * Describes a role on the cluster. + * */ export interface Role { /** - * The name of the role. + * @member {string} [name] The name of the role. */ name?: string; /** - * The minimum instance count of the cluster. + * @member {number} [minInstanceCount] The minimum instance count of the + * cluster. */ minInstanceCount?: number; /** - * The instance count of the cluster. + * @member {number} [targetInstanceCount] The instance count of the cluster. */ targetInstanceCount?: number; /** - * The hardware profile. + * @member {HardwareProfile} [hardwareProfile] The hardware profile. */ hardwareProfile?: HardwareProfile; /** - * The operating system profile. + * @member {OsProfile} [osProfile] The operating system profile. */ osProfile?: OsProfile; /** - * The virtual network profile. + * @member {VirtualNetworkProfile} [virtualNetworkProfile] The virtual + * network profile. */ virtualNetworkProfile?: VirtualNetworkProfile; /** - * The data disks groups for the role. + * @member {DataDisksGroups[]} [dataDisksGroups] The data disks groups for + * the role. */ dataDisksGroups?: DataDisksGroups[]; /** - * The list of script actions on the role. + * @member {ScriptAction[]} [scriptActions] The list of script actions on the + * role. */ scriptActions?: ScriptAction[]; } /** + * @interface + * An interface representing ComputeProfile. * Describes the compute profile. + * */ export interface ComputeProfile { /** - * The list of roles in the cluster. + * @member {Role[]} [roles] The list of roles in the cluster. */ roles?: Role[]; } /** + * @interface + * An interface representing StorageAccount. * The storage Account. + * */ export interface StorageAccount { /** - * The name of the storage account. + * @member {string} [name] The name of the storage account. */ name?: string; /** - * Whether or not the storage account is the default storage account. + * @member {boolean} [isDefault] Whether or not the storage account is the + * default storage account. */ isDefault?: boolean; /** - * The container in the storage account, only to be specified for WASB storage accounts. + * @member {string} [container] The container in the storage account, only to + * be specified for WASB storage accounts. */ container?: string; /** - * The filesystem, only to be specified for Azure Data Lake Storage type Gen 2. + * @member {string} [fileSystem] The filesystem, only to be specified for + * Azure Data Lake Storage type Gen 2. */ fileSystem?: string; /** - * The storage account access key. + * @member {string} [key] The storage account access key. */ key?: string; /** - * The resource ID of storage account, only to be specified for Azure Data Lake Storage Gen 2. + * @member {string} [resourceId] The resource ID of storage account, only to + * be specified for Azure Data Lake Storage Gen 2. */ resourceId?: string; /** - * The managed identity (MSI) that is allowed to access the storage account, only to be specified - * for Azure Data Lake Storage Gen 2. + * @member {string} [msiResourceId] The managed identity (MSI) that is + * allowed to access the storage account, only to be specified for Azure Data + * Lake Storage Gen 2. */ msiResourceId?: string; } /** + * @interface + * An interface representing StorageProfile. * The storage profile. + * */ export interface StorageProfile { /** - * The list of storage accounts in the cluster. + * @member {StorageAccount[]} [storageaccounts] The list of storage accounts + * in the cluster. */ storageaccounts?: StorageAccount[]; } /** + * @interface + * An interface representing DiskEncryptionProperties. * The disk encryption properties + * */ export interface DiskEncryptionProperties { /** - * Base key vault URI where the customers key is located eg. https://myvault.vault.azure.net + * @member {string} [vaultUri] Base key vault URI where the customers key is + * located eg. https://myvault.vault.azure.net */ vaultUri?: string; /** - * Key name that is used for enabling disk encryption. + * @member {string} [keyName] Key name that is used for enabling disk + * encryption. */ keyName?: string; /** - * Specific key version that is used for enabling disk encryption. + * @member {string} [keyVersion] Specific key version that is used for + * enabling disk encryption. */ keyVersion?: string; /** - * Algorithm identifier for encryption, default RSA-OAEP. Possible values include: 'RSA-OAEP', - * 'RSA-OAEP-256', 'RSA1_5' + * @member {JsonWebKeyEncryptionAlgorithm} [encryptionAlgorithm] Algorithm + * identifier for encryption, default RSA-OAEP. Possible values include: + * 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' */ encryptionAlgorithm?: JsonWebKeyEncryptionAlgorithm; /** - * Resource ID of Managed Identity that is used to access the key vault. + * @member {string} [msiResourceId] Resource ID of Managed Identity that is + * used to access the key vault. */ msiResourceId?: string; } /** + * @interface + * An interface representing ClusterCreateProperties. * The cluster create parameters. + * */ export interface ClusterCreateProperties { /** - * The version of the cluster. + * @member {string} [clusterVersion] The version of the cluster. */ clusterVersion?: string; /** - * The type of operating system. Possible values include: 'Windows', 'Linux' + * @member {OSType} [osType] The type of operating system. Possible values + * include: 'Windows', 'Linux' */ osType?: OSType; /** - * The cluster tier. Possible values include: 'Standard', 'Premium' + * @member {Tier} [tier] The cluster tier. Possible values include: + * 'Standard', 'Premium' */ tier?: Tier; /** - * The cluster definition. + * @member {ClusterDefinition} [clusterDefinition] The cluster definition. */ clusterDefinition?: ClusterDefinition; /** - * The security profile. + * @member {SecurityProfile} [securityProfile] The security profile. */ securityProfile?: SecurityProfile; /** - * The compute profile. + * @member {ComputeProfile} [computeProfile] The compute profile. */ computeProfile?: ComputeProfile; /** - * The storage profile. + * @member {StorageProfile} [storageProfile] The storage profile. */ storageProfile?: StorageProfile; /** - * The disk encryption properties. + * @member {DiskEncryptionProperties} [diskEncryptionProperties] The disk + * encryption properties. */ diskEncryptionProperties?: DiskEncryptionProperties; } /** + * @interface * An interface representing ClusterIdentityUserAssignedIdentitiesValue. */ export interface ClusterIdentityUserAssignedIdentitiesValue { /** - * The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [principalId] The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly principalId?: string; /** - * The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [clientId] The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly clientId?: string; } /** + * @interface + * An interface representing ClusterIdentity. * Identity for the cluster. + * */ export interface ClusterIdentity { /** - * The principal id of cluster identity. This property will only be provided for a system - * assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [principalId] The principal id of cluster identity. This + * property will only be provided for a system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly principalId?: string; /** - * The tenant id associated with the cluster. This property will only be provided for a system - * assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [tenantId] The tenant id associated with the cluster. + * This property will only be provided for a system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly tenantId?: string; /** - * 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' + * @member {ResourceIdentityType} [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' */ type?: ResourceIdentityType; /** - * The list of user identities associated with the cluster. The user identity dictionary key - * references will be ARM resource ids in the form: + * @member {{ [propertyName: string]: + * ClusterIdentityUserAssignedIdentitiesValue }} [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}'. */ userAssignedIdentities?: { [propertyName: string]: ClusterIdentityUserAssignedIdentitiesValue }; } /** + * @interface + * An interface representing ClusterCreateParametersExtended. * The CreateCluster request parameters. + * */ export interface ClusterCreateParametersExtended { /** - * The location of the cluster. + * @member {string} [location] The location of the cluster. */ location?: string; /** - * The resource tags. + * @member {{ [propertyName: string]: string }} [tags] The resource tags. */ tags?: { [propertyName: string]: string }; /** - * The cluster create parameters. + * @member {ClusterCreateProperties} [properties] The cluster create + * parameters. */ properties?: ClusterCreateProperties; /** - * The identity of the cluster, if configured. + * @member {ClusterIdentity} [identity] The identity of the cluster, if + * configured. */ identity?: ClusterIdentity; } /** + * @interface + * An interface representing ClusterPatchParameters. * The PatchCluster request parameters + * */ export interface ClusterPatchParameters { /** - * The resource tags. + * @member {{ [propertyName: string]: string }} [tags] The resource tags. */ tags?: { [propertyName: string]: string }; } /** + * @interface + * An interface representing QuotaInfo. * The quota properties for the cluster. + * */ export interface QuotaInfo { /** - * The cores used by the cluster. + * @member {number} [coresUsed] The cores used by the cluster. */ coresUsed?: number; } /** + * @interface + * An interface representing Errors. * The error message associated with the cluster creation. + * */ export interface Errors { /** - * The error code. + * @member {string} [code] The error code. */ code?: string; /** - * The error message. + * @member {string} [message] The error message. */ message?: string; } /** + * @interface + * An interface representing ConnectivityEndpoint. * The connectivity properties + * */ export interface ConnectivityEndpoint { /** - * The name of the endpoint. + * @member {string} [name] The name of the endpoint. */ name?: string; /** - * The protocol of the endpoint. + * @member {string} [protocol] The protocol of the endpoint. */ protocol?: string; /** - * The location of the endpoint. + * @member {string} [location] The location of the endpoint. */ location?: string; /** - * The port to connect to. + * @member {number} [port] The port to connect to. */ port?: number; } /** + * @interface + * An interface representing ClusterGetProperties. * The properties of cluster. + * */ export interface ClusterGetProperties { /** - * The version of the cluster. + * @member {string} [clusterVersion] The version of the cluster. */ clusterVersion?: string; /** - * The type of operating system. Possible values include: 'Windows', 'Linux' + * @member {OSType} [osType] The type of operating system. Possible values + * include: 'Windows', 'Linux' */ osType?: OSType; /** - * The cluster tier. Possible values include: 'Standard', 'Premium' + * @member {Tier} [tier] The cluster tier. Possible values include: + * 'Standard', 'Premium' */ tier?: Tier; /** - * The cluster definition. + * @member {ClusterDefinition} clusterDefinition The cluster definition. */ clusterDefinition: ClusterDefinition; /** - * The security profile. + * @member {SecurityProfile} [securityProfile] The security profile. */ securityProfile?: SecurityProfile; /** - * The compute profile. + * @member {ComputeProfile} [computeProfile] The compute profile. */ computeProfile?: ComputeProfile; /** - * The provisioning state, which only appears in the response. Possible values include: - * 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting' + * @member {HDInsightClusterProvisioningState} [provisioningState] The + * provisioning state, which only appears in the response. Possible values + * include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting' */ provisioningState?: HDInsightClusterProvisioningState; /** - * The date on which the cluster was created. + * @member {string} [createdDate] The date on which the cluster was created. */ createdDate?: string; /** - * The state of the cluster. + * @member {string} [clusterState] The state of the cluster. */ clusterState?: string; /** - * The quota information. + * @member {QuotaInfo} [quotaInfo] The quota information. */ quotaInfo?: QuotaInfo; /** - * The list of errors. + * @member {Errors[]} [errors] The list of errors. */ errors?: Errors[]; /** - * The list of connectivity endpoints. + * @member {ConnectivityEndpoint[]} [connectivityEndpoints] The list of + * connectivity endpoints. */ connectivityEndpoints?: ConnectivityEndpoint[]; /** - * The disk encryption properties. + * @member {DiskEncryptionProperties} [diskEncryptionProperties] The disk + * encryption properties. */ diskEncryptionProperties?: DiskEncryptionProperties; } /** + * @interface + * An interface representing Resource. * The core properties of ARM resources + * + * @extends BaseResource */ export interface Resource extends BaseResource { /** - * Fully qualified resource Id for the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] Fully qualified resource Id for the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * The name of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [name] The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly name?: string; /** - * The type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [type] The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly type?: string; } /** + * @interface + * An interface representing TrackedResource. * The resource model definition for a ARM tracked top level resource + * + * @extends Resource */ export interface TrackedResource extends Resource { /** - * The Azure Region where the resource lives + * @member {string} [location] The Azure Region where the resource lives */ location?: string; /** - * Resource tags. + * @member {{ [propertyName: string]: string }} [tags] Resource tags. */ tags?: { [propertyName: string]: string }; } /** + * @interface + * An interface representing Cluster. * The HDInsight cluster. + * + * @extends TrackedResource */ export interface Cluster extends TrackedResource { /** - * The ETag for the resource + * @member {string} [etag] The ETag for the resource */ etag?: string; /** - * The properties of the cluster. + * @member {ClusterGetProperties} [properties] The properties of the cluster. */ properties?: ClusterGetProperties; /** - * The identity of the cluster, if configured. + * @member {ClusterIdentity} [identity] The identity of the cluster, if + * configured. */ identity?: ClusterIdentity; } /** + * @interface + * An interface representing RuntimeScriptAction. * Describes a script action on a running cluster. + * */ export interface RuntimeScriptAction { /** - * The name of the script action. + * @member {string} name The name of the script action. */ name: string; /** - * The URI to the script. + * @member {string} uri The URI to the script. */ uri: string; /** - * The parameters for the script + * @member {string} [parameters] The parameters for the script */ parameters?: string; /** - * The list of roles where script will be executed. + * @member {string[]} roles The list of roles where script will be executed. */ roles: string[]; /** - * The application name of the script action, if any. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [applicationName] The application name of the script + * action, if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly applicationName?: string; } /** + * @interface + * An interface representing ExecuteScriptActionParameters. * The parameters for the script actions to execute on a running cluster. + * */ export interface ExecuteScriptActionParameters { /** - * The list of run time script actions. + * @member {RuntimeScriptAction[]} [scriptActions] The list of run time + * script actions. */ scriptActions?: RuntimeScriptAction[]; /** - * Gets or sets if the scripts needs to be persisted. + * @member {boolean} persistOnSuccess Gets or sets if the scripts needs to be + * persisted. */ persistOnSuccess: boolean; } /** + * @interface + * An interface representing ClusterListPersistedScriptActionsResult. * The ListPersistedScriptActions operation response. + * */ export interface ClusterListPersistedScriptActionsResult { /** - * The list of Persisted Script Actions. + * @member {RuntimeScriptAction[]} [value] The list of Persisted Script + * Actions. */ value?: RuntimeScriptAction[]; /** - * The link (url) to the next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [nextLink] The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly nextLink?: string; } /** + * @interface + * An interface representing ScriptActionExecutionSummary. * The execution summary of a script action. + * */ export interface ScriptActionExecutionSummary { /** - * The status of script action execution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [status] The status of script action execution. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly status?: string; /** - * The instance count for a given script action execution status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {number} [instanceCount] The instance count for a given script + * action execution status. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly instanceCount?: number; } /** + * @interface + * An interface representing RuntimeScriptActionDetail. * The execution details of a script action. + * + * @extends RuntimeScriptAction */ export interface RuntimeScriptActionDetail extends RuntimeScriptAction { /** - * The execution id of the script action. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {number} [scriptExecutionId] The execution id of the script + * action. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly scriptExecutionId?: number; /** - * The start time of script action execution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [startTime] The start time of script action execution. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly startTime?: string; /** - * The end time of script action execution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [endTime] The end time of script action execution. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly endTime?: string; /** - * The current execution status of the script action. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [status] The current execution status of the script + * action. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly status?: string; /** - * The reason why the script action was executed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [operation] The reason why the script action was + * executed. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly operation?: string; /** - * The summary of script action execution result. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {ScriptActionExecutionSummary[]} [executionSummary] The summary of + * script action execution result. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly executionSummary?: ScriptActionExecutionSummary[]; /** - * The script action execution debug information. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [debugInformation] The script action execution debug + * information. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly debugInformation?: string; } /** + * @interface + * An interface representing ClusterListRuntimeScriptActionDetailResult. * The list runtime script action detail response. + * */ export interface ClusterListRuntimeScriptActionDetailResult { /** - * The list of persisted script action details for the cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {RuntimeScriptActionDetail[]} [value] The list of persisted script + * action details for the cluster. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly value?: RuntimeScriptActionDetail[]; /** - * The link (url) to the next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [nextLink] The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly nextLink?: string; } /** + * @interface + * An interface representing ClusterResizeParameters. * The Resize Cluster request parameters. + * */ export interface ClusterResizeParameters { /** - * The target instance count for the operation. + * @member {number} [targetInstanceCount] The target instance count for the + * operation. */ targetInstanceCount?: number; } /** + * @interface + * An interface representing ClusterDiskEncryptionParameters. * The Disk Encryption Cluster request parameters. + * */ export interface ClusterDiskEncryptionParameters { /** - * Base key vault URI where the customers key is located eg. https://myvault.vault.azure.net + * @member {string} [vaultUri] Base key vault URI where the customers key is + * located eg. https://myvault.vault.azure.net */ vaultUri?: string; /** - * Key name that is used for enabling disk encryption. + * @member {string} [keyName] Key name that is used for enabling disk + * encryption. */ keyName?: string; /** - * Specific key version that is used for enabling disk encryption. + * @member {string} [keyVersion] Specific key version that is used for + * enabling disk encryption. */ keyVersion?: string; } /** + * @interface + * An interface representing UpdateGatewaySettingsParameters. + * The update gateway settings request parameters. + * + */ +export interface UpdateGatewaySettingsParameters { + /** + * @member {boolean} [isCredentialEnabled] Indicates whether or not the + * gateway settings based authorization is enabled. Default value: true . + */ + isCredentialEnabled?: boolean; + /** + * @member {string} [userName] The gateway settings user name. + */ + userName?: string; + /** + * @member {string} [password] The gateway settings user password. + */ + password?: string; +} + +/** + * @interface + * An interface representing GatewaySettings. + * Gateway settings. + * + */ +export interface GatewaySettings { + /** + * @member {string} [isCredentialEnabled] Indicates whether or not the + * gateway settings based authorization is enabled. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isCredentialEnabled?: string; + /** + * @member {string} [userName] The gateway settings user name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly userName?: string; + /** + * @member {string} [password] The gateway settings user password. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly password?: string; +} + +/** + * @interface + * An interface representing OperationResource. * The azure async operation response. + * */ export interface OperationResource { /** - * The async operation state. Possible values include: 'InProgress', 'Succeeded', 'Failed' + * @member {AsyncOperationState} [status] The async operation state. Possible + * values include: 'InProgress', 'Succeeded', 'Failed' */ status?: AsyncOperationState; /** - * The operation error information. + * @member {Errors} [error] The operation error information. */ error?: Errors; } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags + * @interface + * An interface representing ProxyResource. + * The resource model definition for a ARM proxy resource. It will have + * everything other than required location and tags + * + * @extends Resource */ export interface ProxyResource extends Resource { } /** + * @interface + * An interface representing ErrorResponse. * Describes the format of Error response. + * */ export interface ErrorResponse { /** - * Error code + * @member {string} [code] Error code */ code?: string; /** - * Error message indicating why the operation failed. + * @member {string} [message] Error message indicating why the operation + * failed. */ message?: string; } /** + * @interface + * An interface representing ApplicationGetHttpsEndpoint. * Gets the application HTTP endpoints. + * */ export interface ApplicationGetHttpsEndpoint { /** - * The list of access modes for the application. + * @member {string[]} [accessModes] The list of access modes for the + * application. */ accessModes?: string[]; /** - * The location of the endpoint. + * @member {string} [location] The location of the endpoint. */ location?: string; /** - * The destination port to connect to. + * @member {number} [destinationPort] The destination port to connect to. */ destinationPort?: number; /** - * The public port to connect to. + * @member {number} [publicPort] The public port to connect to. */ publicPort?: number; } /** + * @interface + * An interface representing ApplicationGetEndpoint. * Gets the application SSH endpoint + * */ export interface ApplicationGetEndpoint { /** - * The location of the endpoint. + * @member {string} [location] The location of the endpoint. */ location?: string; /** - * The destination port to connect to. + * @member {number} [destinationPort] The destination port to connect to. */ destinationPort?: number; /** - * The public port to connect to. + * @member {number} [publicPort] The public port to connect to. */ publicPort?: number; } /** + * @interface + * An interface representing ApplicationProperties. * The HDInsight cluster application GET response. + * */ export interface ApplicationProperties { /** - * The list of roles in the cluster. + * @member {ComputeProfile} [computeProfile] The list of roles in the + * cluster. */ computeProfile?: ComputeProfile; /** - * The list of install script actions. + * @member {RuntimeScriptAction[]} [installScriptActions] The list of install + * script actions. */ installScriptActions?: RuntimeScriptAction[]; /** - * The list of uninstall script actions. + * @member {RuntimeScriptAction[]} [uninstallScriptActions] The list of + * uninstall script actions. */ uninstallScriptActions?: RuntimeScriptAction[]; /** - * The list of application HTTPS endpoints. + * @member {ApplicationGetHttpsEndpoint[]} [httpsEndpoints] The list of + * application HTTPS endpoints. */ httpsEndpoints?: ApplicationGetHttpsEndpoint[]; /** - * The list of application SSH endpoints. + * @member {ApplicationGetEndpoint[]} [sshEndpoints] The list of application + * SSH endpoints. */ sshEndpoints?: ApplicationGetEndpoint[]; /** - * The provisioning state of the application. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [provisioningState] The provisioning state of the + * application. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly provisioningState?: string; /** - * The application type. + * @member {string} [applicationType] The application type. */ applicationType?: string; /** - * The application state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [applicationState] The application state. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly applicationState?: string; /** - * The list of errors. + * @member {Errors[]} [errors] The list of errors. */ errors?: Errors[]; /** - * The application create date time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [createdDate] The application create date time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly createdDate?: string; /** - * The marketplace identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [marketplaceIdentifier] The marketplace identifier. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly marketplaceIdentifier?: string; } /** + * @interface + * An interface representing Application. * The HDInsight cluster application + * + * @extends ProxyResource */ export interface Application extends ProxyResource { /** - * The ETag for the application + * @member {string} [etag] The ETag for the application */ etag?: string; /** - * The tags for the application. + * @member {{ [propertyName: string]: string }} [tags] The tags for the + * application. */ tags?: { [propertyName: string]: string }; /** - * The properties of the application. + * @member {ApplicationProperties} [properties] The properties of the + * application. */ properties?: ApplicationProperties; } /** + * @interface + * An interface representing LocalizedName. * The details about the localizable name of a type of usage. + * */ export interface LocalizedName { /** - * The name of the used resource. + * @member {string} [value] The name of the used resource. */ value?: string; /** - * The localized name of the used resource. + * @member {string} [localizedValue] The localized name of the used resource. */ localizedValue?: string; } /** + * @interface + * An interface representing Usage. * The details about the usage of a particular limited resource. + * */ export interface Usage { /** - * The type of measurement for usage. + * @member {string} [unit] The type of measurement for usage. */ unit?: string; /** - * The current usage. + * @member {number} [currentValue] The current usage. */ currentValue?: number; /** - * The maximum allowed usage. + * @member {number} [limit] The maximum allowed usage. */ limit?: number; /** - * The details about the localizable name of the used resource. + * @member {LocalizedName} [name] The details about the localizable name of + * the used resource. */ name?: LocalizedName; } /** + * @interface + * An interface representing UsagesListResult. * The response for the operation to get regional usages for a subscription. + * */ export interface UsagesListResult { /** - * The list of usages. + * @member {Usage[]} [value] The list of usages. */ value?: Usage[]; } /** + * @interface + * An interface representing ClusterConfigurations. + * The configuration object for the specified cluster. + * + */ +export interface ClusterConfigurations { + /** + * @member {{ [propertyName: string]: { [propertyName: string]: string } }} + * [configurations] The configuration object for the specified configuration + * for the specified cluster. + */ + configurations?: { [propertyName: string]: { [propertyName: string]: string } }; +} + +/** + * @interface + * An interface representing Extension. * Cluster monitoring extensions + * */ export interface Extension { /** - * The workspace ID for the cluster monitoring extension. + * @member {string} [workspaceId] The workspace ID for the cluster monitoring + * extension. */ workspaceId?: string; /** - * The certificate for the cluster monitoring extensions. + * @member {string} [primaryKey] The certificate for the cluster monitoring + * extensions. */ primaryKey?: string; } /** + * @interface + * An interface representing ClusterMonitoringResponse. * The Operations Management Suite (OMS) status response + * */ export interface ClusterMonitoringResponse { /** - * The status of the Operations Management Suite (OMS) on the HDInsight cluster. + * @member {boolean} [clusterMonitoringEnabled] The status of the Operations + * Management Suite (OMS) on the HDInsight cluster. */ clusterMonitoringEnabled?: boolean; /** - * The workspace ID of the Operations Management Suite (OMS) on the HDInsight cluster. + * @member {string} [workspaceId] The workspace ID of the Operations + * Management Suite (OMS) on the HDInsight cluster. */ workspaceId?: string; } /** + * @interface + * An interface representing ClusterMonitoringRequest. * The Operations Management Suite (OMS) parameters. + * */ export interface ClusterMonitoringRequest { /** - * The Operations Management Suite (OMS) workspace ID. + * @member {string} [workspaceId] The Operations Management Suite (OMS) + * workspace ID. */ workspaceId?: string; /** - * The Operations Management Suite (OMS) workspace key. + * @member {string} [primaryKey] The Operations Management Suite (OMS) + * workspace key. */ primaryKey?: string; } /** + * @interface + * An interface representing ScriptActionPersistedGetResponseSpec. * The persisted script action for cluster. + * */ export interface ScriptActionPersistedGetResponseSpec { /** - * The name of script action. + * @member {string} [name] The name of script action. */ name?: string; /** - * The URI to the script. + * @member {string} [uri] The URI to the script. */ uri?: string; /** - * The parameters for the script provided. + * @member {string} [parameters] The parameters for the script provided. */ parameters?: string; /** - * The list of roles where script will be executed. + * @member {string[]} [roles] The list of roles where script will be + * executed. */ roles?: string[]; /** - * The application name for the script action. + * @member {string} [applicationName] The application name for the script + * action. */ applicationName?: string; } /** + * @interface + * An interface representing OperationDisplay. * The object that represents the operation. + * */ export interface OperationDisplay { /** - * The service provider: Microsoft.HDInsight + * @member {string} [provider] The service provider: Microsoft.HDInsight */ provider?: string; /** - * The resource on which the operation is performed: Cluster, Applications, etc. + * @member {string} [resource] The resource on which the operation is + * performed: Cluster, Applications, etc. */ resource?: string; /** - * The operation type: read, write, delete, etc. + * @member {string} [operation] The operation type: read, write, delete, etc. */ operation?: string; } /** + * @interface + * An interface representing Operation. * The HDInsight REST API operation. + * */ export interface Operation { /** - * The operation name: {provider}/{resource}/{operation} + * @member {string} [name] The operation name: + * {provider}/{resource}/{operation} */ name?: string; /** - * The object that represents the operation. + * @member {OperationDisplay} [display] The object that represents the + * operation. */ display?: OperationDisplay; } /** + * @interface * An interface representing HDInsightManagementClientOptions. + * @extends AzureServiceClientOptions */ export interface HDInsightManagementClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ baseUri?: string; } + /** * @interface + * An interface representing the ClusterListResult. * The List Cluster operation response. + * * @extends Array */ export interface ClusterListResult extends Array { /** - * The link (url) to the next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [nextLink] The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly nextLink?: string; } /** * @interface - * Result of the request to list cluster Applications. It contains a list of operations and a URL - * link to get the next set of results. + * An interface representing the ApplicationListResult. + * Result of the request to list cluster Applications. It contains a list of + * operations and a URL link to get the next set of results. + * * @extends Array */ export interface ApplicationListResult extends Array { /** - * The URL to get the next set of operation list results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [nextLink] The URL to get the next set of operation list + * results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly nextLink?: string; } /** * @interface + * An interface representing the ScriptActionsList. * The persisted script action for the cluster. + * * @extends Array */ export interface ScriptActionsList extends Array { /** - * The link (url) to the next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [nextLink] The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly nextLink?: string; } /** * @interface + * An interface representing the ScriptActionExecutionHistoryList. * The list script execution history response. + * * @extends Array */ export interface ScriptActionExecutionHistoryList extends Array { /** - * The link (url) to the next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [nextLink] The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly nextLink?: string; } /** * @interface - * Result of the request to list HDInsight operations. It contains a list of operations and a URL - * link to get the next set of results. + * An interface representing the OperationListResult. + * Result of the request to list HDInsight operations. It contains a list of + * operations and a URL link to get the next set of results. + * * @extends Array */ export interface OperationListResult extends Array { /** - * The URL to get the next set of operation list results if there are any. + * @member {string} [nextLink] The URL to get the next set of operation list + * results if there are any. */ nextLink?: string; } @@ -1172,7 +1525,6 @@ export type ClustersCreateResponse = Cluster & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1192,7 +1544,6 @@ export type ClustersUpdateResponse = Cluster & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1212,7 +1563,6 @@ export type ClustersGetResponse = Cluster & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1232,7 +1582,6 @@ export type ClustersListByResourceGroupResponse = ClusterListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1252,7 +1601,6 @@ export type ClustersListResponse = ClusterListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1260,6 +1608,25 @@ export type ClustersListResponse = ClusterListResult & { }; }; +/** + * Contains response data for the getGatewaySettings operation. + */ +export type ClustersGetGatewaySettingsResponse = GatewaySettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GatewaySettings; + }; +}; + /** * Contains response data for the beginCreate operation. */ @@ -1272,7 +1639,6 @@ export type ClustersBeginCreateResponse = Cluster & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1292,7 +1658,6 @@ export type ClustersListByResourceGroupNextResponse = ClusterListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1312,7 +1677,6 @@ export type ClustersListNextResponse = ClusterListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1332,7 +1696,6 @@ export type ApplicationsListByClusterResponse = ApplicationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1352,7 +1715,6 @@ export type ApplicationsGetResponse = Application & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1372,7 +1734,6 @@ export type ApplicationsCreateResponse = Application & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1392,7 +1753,6 @@ export type ApplicationsBeginCreateResponse = Application & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1412,7 +1772,6 @@ export type ApplicationsListByClusterNextResponse = ApplicationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1432,7 +1791,6 @@ export type LocationsListUsagesResponse = UsagesListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1440,6 +1798,25 @@ export type LocationsListUsagesResponse = UsagesListResult & { }; }; +/** + * Contains response data for the list operation. + */ +export type ConfigurationsListResponse = ClusterConfigurations & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterConfigurations; + }; +}; + /** * Contains response data for the get operation. */ @@ -1457,7 +1834,6 @@ export type ConfigurationsGetResponse = { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1477,7 +1853,6 @@ export type ExtensionsGetMonitoringStatusResponse = ClusterMonitoringResponse & * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1497,7 +1872,6 @@ export type ExtensionsGetResponse = Extension & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1517,7 +1891,6 @@ export type ScriptActionsListByClusterResponse = ScriptActionsList & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1537,7 +1910,6 @@ export type ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1557,7 +1929,6 @@ export type ScriptActionsListByClusterNextResponse = ScriptActionsList & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1577,7 +1948,6 @@ export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionH * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1597,7 +1967,6 @@ export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecut * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1617,7 +1986,6 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1637,7 +2005,6 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ diff --git a/packages/@azure/arm-hdinsight/lib/models/locationsMappers.ts b/packages/@azure/arm-hdinsight/lib/models/locationsMappers.ts index 7cc1406ffa0c..46a39a08d11c 100644 --- a/packages/@azure/arm-hdinsight/lib/models/locationsMappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/locationsMappers.ts @@ -1,14 +1,17 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - ErrorResponse, - LocalizedName, + UsagesListResult, Usage, - UsagesListResult + LocalizedName, + ErrorResponse } from "../models/mappers"; + diff --git a/packages/@azure/arm-hdinsight/lib/models/mappers.ts b/packages/@azure/arm-hdinsight/lib/models/mappers.ts index e91d3e8dc3f7..aea055118f06 100644 --- a/packages/@azure/arm-hdinsight/lib/models/mappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/mappers.ts @@ -1,9 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -1280,6 +1282,66 @@ export const ClusterDiskEncryptionParameters: msRest.CompositeMapper = { } }; +export const UpdateGatewaySettingsParameters: msRest.CompositeMapper = { + serializedName: "UpdateGatewaySettingsParameters", + type: { + name: "Composite", + className: "UpdateGatewaySettingsParameters", + modelProperties: { + isCredentialEnabled: { + serializedName: "restAuthCredential\\.isEnabled", + defaultValue: true, + type: { + name: "Boolean" + } + }, + userName: { + serializedName: "restAuthCredential\\.username", + type: { + name: "String" + } + }, + password: { + serializedName: "restAuthCredential\\.password", + type: { + name: "String" + } + } + } + } +}; + +export const GatewaySettings: msRest.CompositeMapper = { + serializedName: "GatewaySettings", + type: { + name: "Composite", + className: "GatewaySettings", + modelProperties: { + isCredentialEnabled: { + readOnly: true, + serializedName: "restAuthCredential\\.isEnabled", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "restAuthCredential\\.username", + type: { + name: "String" + } + }, + password: { + readOnly: true, + serializedName: "restAuthCredential\\.password", + type: { + name: "String" + } + } + } + } +}; + export const OperationResource: msRest.CompositeMapper = { serializedName: "OperationResource", type: { @@ -1633,6 +1695,32 @@ export const UsagesListResult: msRest.CompositeMapper = { } }; +export const ClusterConfigurations: msRest.CompositeMapper = { + serializedName: "ClusterConfigurations", + type: { + name: "Composite", + className: "ClusterConfigurations", + modelProperties: { + configurations: { + serializedName: "configurations", + type: { + name: "Dictionary", + value: { + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } + } + } +}; + export const Extension: msRest.CompositeMapper = { serializedName: "Extension", type: { diff --git a/packages/@azure/arm-hdinsight/lib/models/operationsMappers.ts b/packages/@azure/arm-hdinsight/lib/models/operationsMappers.ts index b8de8606cf9d..715467ec9522 100644 --- a/packages/@azure/arm-hdinsight/lib/models/operationsMappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/operationsMappers.ts @@ -1,14 +1,17 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - ErrorResponse, + OperationListResult, Operation, OperationDisplay, - OperationListResult + ErrorResponse } from "../models/mappers"; + diff --git a/packages/@azure/arm-hdinsight/lib/models/scriptActionsMappers.ts b/packages/@azure/arm-hdinsight/lib/models/scriptActionsMappers.ts index 96bdf548f80f..7f2c01b19d25 100644 --- a/packages/@azure/arm-hdinsight/lib/models/scriptActionsMappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/scriptActionsMappers.ts @@ -1,15 +1,18 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { ErrorResponse, - RuntimeScriptAction, + ScriptActionsList, RuntimeScriptActionDetail, - ScriptActionExecutionSummary, - ScriptActionsList + RuntimeScriptAction, + ScriptActionExecutionSummary } from "../models/mappers"; + diff --git a/packages/@azure/arm-hdinsight/lib/models/scriptExecutionHistoryMappers.ts b/packages/@azure/arm-hdinsight/lib/models/scriptExecutionHistoryMappers.ts index 80c6b082ad3d..8cac7694734c 100644 --- a/packages/@azure/arm-hdinsight/lib/models/scriptExecutionHistoryMappers.ts +++ b/packages/@azure/arm-hdinsight/lib/models/scriptExecutionHistoryMappers.ts @@ -1,15 +1,18 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - ErrorResponse, - RuntimeScriptAction, - RuntimeScriptActionDetail, ScriptActionExecutionHistoryList, - ScriptActionExecutionSummary + RuntimeScriptActionDetail, + RuntimeScriptAction, + ScriptActionExecutionSummary, + ErrorResponse } from "../models/mappers"; + diff --git a/packages/@azure/arm-hdinsight/lib/operations/clusters.ts b/packages/@azure/arm-hdinsight/lib/operations/clusters.ts index 3ec823cc999e..a540cc153f91 100644 --- a/packages/@azure/arm-hdinsight/lib/operations/clusters.ts +++ b/packages/@azure/arm-hdinsight/lib/operations/clusters.ts @@ -198,6 +198,51 @@ export class Clusters { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Gets the gateway settings for the specified cluster. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + getGatewaySettings(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param callback The callback + */ + getGatewaySettings(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param options The optional parameters + * @param callback The callback + */ + getGatewaySettings(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGatewaySettings(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + getGatewaySettingsOperationSpec, + callback) as Promise; + } + + /** + * Configures the gateway settings on the specified cluster. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster configurations. + * @param [options] The optional parameters + * @returns Promise + */ + updateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: Models.UpdateGatewaySettingsParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateGatewaySettings(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Executes script actions on the specified HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -289,6 +334,26 @@ export class Clusters { options); } + /** + * Configures the gateway settings on the specified cluster. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param parameters The cluster configurations. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: Models.UpdateGatewaySettingsParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + parameters, + options + }, + beginUpdateGatewaySettingsOperationSpec, + options); + } + /** * Executes script actions on the specified HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -472,6 +537,31 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; +const getGatewaySettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewaySettings + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", @@ -591,6 +681,37 @@ const beginRotateDiskEncryptionKeyOperationSpec: msRest.OperationSpec = { serializer }; +const beginUpdateGatewaySettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.UpdateGatewaySettingsParameters, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const beginExecuteScriptActionsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions", diff --git a/packages/@azure/arm-hdinsight/lib/operations/configurations.ts b/packages/@azure/arm-hdinsight/lib/operations/configurations.ts index 6b124037e8b2..0a54cd523f26 100644 --- a/packages/@azure/arm-hdinsight/lib/operations/configurations.ts +++ b/packages/@azure/arm-hdinsight/lib/operations/configurations.ts @@ -28,7 +28,40 @@ export class Configurations { } /** - * Configures the configuration on the specified cluster. + * Gets all configuration information for an HDI cluster. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param callback The callback + */ + list(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Configures the HTTP settings on the specified cluster. This API is deprecated, please use + * UpdateGatewaySettings in cluster endpoint instead. * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param configurationName The name of the cluster configuration. @@ -42,7 +75,8 @@ export class Configurations { } /** - * The configuration object for the specified cluster. + * 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 resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param configurationName The name of the cluster configuration. @@ -78,7 +112,8 @@ export class Configurations { } /** - * Configures the configuration on the specified cluster. + * Configures the HTTP settings on the specified cluster. This API is deprecated, please use + * UpdateGatewaySettings in cluster endpoint instead. * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param configurationName The name of the cluster configuration. @@ -102,6 +137,31 @@ export class Configurations { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterConfigurations + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}", diff --git a/packages/@azure/arm-hdinsight/package.json b/packages/@azure/arm-hdinsight/package.json index 90747c0092f8..56e1958d0df8 100644 --- a/packages/@azure/arm-hdinsight/package.json +++ b/packages/@azure/arm-hdinsight/package.json @@ -4,8 +4,8 @@ "description": "HDInsightManagementClient Library with typescript type definitions for node.js and browser.", "version": "0.12.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.1", - "@azure/ms-rest-js": "^1.2.6", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -44,7 +44,6 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", - "README.md", "rollup.config.js", "tsconfig.json" ], @@ -53,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-hdinsight.js.map'\" -o ./dist/arm-hdinsight.min.js ./dist/arm-hdinsight.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "autoPublish": true + "sideEffects": false }