diff --git a/sdk/hdinsight/arm-hdinsight/LICENSE.txt b/sdk/hdinsight/arm-hdinsight/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/hdinsight/arm-hdinsight/LICENSE.txt +++ b/sdk/hdinsight/arm-hdinsight/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts index 6467745bc8ab..94cd1411bed0 100644 --- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts +++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts @@ -37,7 +37,7 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -52,10 +52,10 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts index f0d0620dbcb7..37678d086dca 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts @@ -32,6 +32,7 @@ export { EncryptionInTransitProperties, ErrorResponse, Errors, + ExcludedServicesConfig, HardwareProfile, KafkaRestProperties, LinuxOperatingSystemProfile, @@ -48,6 +49,8 @@ export { SecurityProfile, SshProfile, SshPublicKey, + StorageAccount, + StorageProfile, TrackedResource, VirtualNetworkProfile } from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts index 567346eeb333..abf47bd07379 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts @@ -38,6 +38,7 @@ export { EncryptionInTransitProperties, ErrorResponse, Errors, + ExcludedServicesConfig, ExecuteScriptActionParameters, GatewaySettings, HardwareProfile, diff --git a/sdk/hdinsight/arm-hdinsight/src/models/index.ts b/sdk/hdinsight/arm-hdinsight/src/models/index.ts index 7b083653b195..149e24c50cc4 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/index.ts @@ -335,6 +335,10 @@ export interface Role { * The list of script actions on the role. */ scriptActions?: ScriptAction[]; + /** + * Indicates whether encrypt the data disks. + */ + encryptDataDisks?: boolean; } /** @@ -392,6 +396,20 @@ export interface StorageProfile { storageaccounts?: StorageAccount[]; } +/** + * The configuration that services will be excluded when creating cluster. + */ +export interface ExcludedServicesConfig { + /** + * The config id of excluded services. + */ + excludedServicesConfigId?: string; + /** + * The list of excluded services. + */ + excludedServicesList?: string; +} + /** * The network properties. */ @@ -536,6 +554,10 @@ export interface ClusterIdentityUserAssignedIdentitiesValue { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly clientId?: string; + /** + * The tenant id of user assigned identity. + */ + tenantId?: string; } /** @@ -644,6 +666,10 @@ export interface ConnectivityEndpoint { * The port to connect to. */ port?: number; + /** + * The private ip address of the endpoint. + */ + privateIPAddress?: string; } /** @@ -654,6 +680,10 @@ export interface ClusterGetProperties { * The version of the cluster. */ clusterVersion?: string; + /** + * The hdp version of the cluster. + */ + clusterHdpVersion?: string; /** * The type of operating system. Possible values include: 'Windows', 'Linux' */ @@ -715,10 +745,18 @@ export interface ClusterGetProperties { * The encryption-in-transit properties. */ encryptionInTransitProperties?: EncryptionInTransitProperties; + /** + * The storage profile. + */ + storageProfile?: StorageProfile; /** * The minimal supported tls version. */ minSupportedTlsVersion?: string; + /** + * The excluded services config. + */ + excludedServicesConfig?: ExcludedServicesConfig; /** * The network properties. */ @@ -1060,6 +1098,10 @@ export interface ApplicationGetEndpoint { * The public port to connect to. */ publicPort?: number; + /** + * The private ip address of the endpoint. + */ + privateIPAddress?: string; } /** @@ -1338,7 +1380,7 @@ export interface UsagesListResult { export interface VmSizeCompatibilityFilterV2 { /** * The filtering mode. Effectively this can enabling or disabling the VM sizes in a particular - * set. Possible values include: 'Exclude', 'Include' + * set. Possible values include: 'Exclude', 'Include', 'Recommend', 'Default' */ filterMode?: FilterMode; /** @@ -1367,6 +1409,52 @@ export interface VmSizeCompatibilityFilterV2 { vmSizes?: string[]; } +/** + * The vm size property + */ +export interface VmSizeProperty { + /** + * The vm size name. + */ + name?: string; + /** + * The number of cores that the vm size has. + */ + cores?: number; + /** + * The data disk storage tier of the vm size. + */ + dataDiskStorageTier?: string; + /** + * The label of the vm size. + */ + label?: string; + /** + * The max data disk count of the vm size. + */ + maxDataDiskCount?: number; + /** + * The memory whose unit is MB of the vm size. + */ + memoryInMb?: number; + /** + * This indicates this vm size is supported by virtual machines or not + */ + supportedByVirtualMachines?: boolean; + /** + * The indicates this vm size is supported by web worker roles or not + */ + supportedByWebWorkerRoles?: boolean; + /** + * The virtual machine resource disk size whose unit is MB of the vm size. + */ + virtualMachineResourceDiskSizeInMb?: number; + /** + * The web worker resource disk size whose unit is MB of the vm size. + */ + webWorkerResourceDiskSizeInMb?: number; +} + /** * The billing meters. */ @@ -1430,11 +1518,20 @@ export interface BillingResponseListResult { * The virtual machine sizes to include or exclude. */ vmSizes?: string[]; + /** + * The vm sizes which enable encryption at host. + */ + vmSizesWithEncryptionAtHost?: string[]; /** * The virtual machine filtering mode. Effectively this can enabling or disabling the virtual * machine sizes in a particular set. */ vmSizeFilters?: VmSizeCompatibilityFilterV2[]; + /** + * The vm size properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vmSizeProperties?: VmSizeProperty[]; /** * The billing and managed disk billing resources for a region. */ @@ -1535,6 +1632,126 @@ export interface OperationDisplay { * The operation type: read, write, delete, etc. */ operation?: string; + /** + * Localized friendly description for the operation + */ + description?: string; +} + +/** + * The definition of Dimension. + */ +export interface Dimension { + /** + * The name of the dimension. + */ + name?: string; + /** + * The display name of the dimension. + */ + displayName?: string; + /** + * The display name of the dimension. + */ + internalName?: string; + /** + * The flag indicates whether the metric will be exported for shoebox or not. + */ + toBeExportedForShoebox?: boolean; +} + +/** + * The details of metric specifications. + */ +export interface MetricSpecifications { + /** + * The name of the metric specification. + */ + name?: string; + /** + * The display name of the metric specification. + */ + displayName?: string; + /** + * The display description of the metric specification. + */ + displayDescription?: string; + /** + * The unit of the metric specification. + */ + unit?: string; + /** + * The aggregation type of the metric specification. + */ + aggregationType?: string; + /** + * The supported aggregation types of the metric specification. + */ + supportedAggregationTypes?: string[]; + /** + * The supported time grain types of the metric specification. + */ + supportedTimeGrainTypes?: string[]; + /** + * The flag indicates whether enable regional mdm account or not. + */ + enableRegionalMdmAccount?: boolean; + /** + * The source mdm account. + */ + sourceMdmAccount?: string; + /** + * The source mdm namespace. + */ + sourceMdmNamespace?: string; + /** + * The metric filter pattern. + */ + metricFilterPattern?: string; + /** + * The flag indicates whether filling gap with zero. + */ + fillGapWithZero?: boolean; + /** + * The category of the metric. + */ + category?: string; + /** + * The override name of resource id dimension name. + */ + resourceIdDimensionNameOverride?: string; + /** + * The flag indicates whether the metric is internal or not. + */ + isInternal?: boolean; + /** + * The override name of delegate metric. + */ + delegateMetricNameOverride?: string; + /** + * The dimensions of the metric specification. + */ + dimensions?: Dimension[]; +} + +/** + * The specification of the service. + */ +export interface ServiceSpecification { + /** + * The metric specifications. + */ + metricSpecifications?: MetricSpecifications[]; +} + +/** + * The details of operation. + */ +export interface OperationProperties { + /** + * The specification of the service. + */ + serviceSpecification?: ServiceSpecification; } /** @@ -1549,6 +1766,10 @@ export interface Operation { * The object that represents the operation. */ display?: OperationDisplay; + /** + * The operation properties. + */ + properties?: OperationProperties; } /** @@ -1726,11 +1947,11 @@ export type AsyncOperationState = 'InProgress' | 'Succeeded' | 'Failed'; /** * Defines values for FilterMode. - * Possible values include: 'Exclude', 'Include' + * Possible values include: 'Exclude', 'Include', 'Recommend', 'Default' * @readonly * @enum {string} */ -export type FilterMode = 'Exclude' | 'Include'; +export type FilterMode = 'Exclude' | 'Include' | 'Recommend' | 'Default'; /** * Contains response data for the create operation. diff --git a/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts index 3c22751b0ab4..961858e8e8f8 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts @@ -23,5 +23,6 @@ export { VersionSpec, VmSizeCompatibilityFilter, VmSizeCompatibilityFilterV2, + VmSizeProperty, VmSizesCapability } from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts index 8192883c7df2..3a8da900ae05 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts @@ -581,6 +581,12 @@ export const Role: msRest.CompositeMapper = { } } } + }, + encryptDataDisks: { + serializedName: "encryptDataDisks", + type: { + name: "Boolean" + } } } } @@ -682,6 +688,28 @@ export const StorageProfile: msRest.CompositeMapper = { } }; +export const ExcludedServicesConfig: msRest.CompositeMapper = { + serializedName: "ExcludedServicesConfig", + type: { + name: "Composite", + className: "ExcludedServicesConfig", + modelProperties: { + excludedServicesConfigId: { + serializedName: "excludedServicesConfigId", + type: { + name: "String" + } + }, + excludedServicesList: { + serializedName: "excludedServicesList", + type: { + name: "String" + } + } + } + } +}; + export const NetworkProperties: msRest.CompositeMapper = { serializedName: "NetworkProperties", type: { @@ -914,6 +942,12 @@ export const ClusterIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper type: { name: "String" } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } } } } @@ -1097,6 +1131,12 @@ export const ConnectivityEndpoint: msRest.CompositeMapper = { type: { name: "Number" } + }, + privateIPAddress: { + serializedName: "privateIPAddress", + type: { + name: "String" + } } } } @@ -1114,6 +1154,12 @@ export const ClusterGetProperties: msRest.CompositeMapper = { name: "String" } }, + clusterHdpVersion: { + serializedName: "clusterHdpVersion", + type: { + name: "String" + } + }, osType: { serializedName: "osType", type: { @@ -1239,12 +1285,26 @@ export const ClusterGetProperties: msRest.CompositeMapper = { className: "EncryptionInTransitProperties" } }, + storageProfile: { + serializedName: "storageProfile", + type: { + name: "Composite", + className: "StorageProfile" + } + }, minSupportedTlsVersion: { serializedName: "minSupportedTlsVersion", type: { name: "String" } }, + excludedServicesConfig: { + serializedName: "excludedServicesConfig", + type: { + name: "Composite", + className: "ExcludedServicesConfig" + } + }, networkProperties: { serializedName: "networkProperties", type: { @@ -1819,6 +1879,12 @@ export const ApplicationGetEndpoint: msRest.CompositeMapper = { type: { name: "Number" } + }, + privateIPAddress: { + serializedName: "privateIPAddress", + type: { + name: "String" + } } } } @@ -2447,6 +2513,76 @@ export const VmSizeCompatibilityFilterV2: msRest.CompositeMapper = { } }; +export const VmSizeProperty: msRest.CompositeMapper = { + serializedName: "VmSizeProperty", + type: { + name: "Composite", + className: "VmSizeProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + cores: { + serializedName: "cores", + type: { + name: "Number" + } + }, + dataDiskStorageTier: { + serializedName: "dataDiskStorageTier", + type: { + name: "String" + } + }, + label: { + serializedName: "label", + type: { + name: "String" + } + }, + maxDataDiskCount: { + serializedName: "maxDataDiskCount", + type: { + name: "Number" + } + }, + memoryInMb: { + serializedName: "memoryInMb", + type: { + name: "Number" + } + }, + supportedByVirtualMachines: { + serializedName: "supportedByVirtualMachines", + type: { + name: "Boolean" + } + }, + supportedByWebWorkerRoles: { + serializedName: "supportedByWebWorkerRoles", + type: { + name: "Boolean" + } + }, + virtualMachineResourceDiskSizeInMb: { + serializedName: "virtualMachineResourceDiskSizeInMb", + type: { + name: "Number" + } + }, + webWorkerResourceDiskSizeInMb: { + serializedName: "webWorkerResourceDiskSizeInMb", + type: { + name: "Number" + } + } + } + } +}; + export const BillingMeters: msRest.CompositeMapper = { serializedName: "BillingMeters", type: { @@ -2564,6 +2700,17 @@ export const BillingResponseListResult: msRest.CompositeMapper = { } } }, + vmSizesWithEncryptionAtHost: { + serializedName: "vmSizesWithEncryptionAtHost", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, vmSizeFilters: { serializedName: "vmSizeFilters", type: { @@ -2576,6 +2723,19 @@ export const BillingResponseListResult: msRest.CompositeMapper = { } } }, + vmSizeProperties: { + readOnly: true, + serializedName: "vmSizeProperties", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VmSizeProperty" + } + } + } + }, billingResources: { serializedName: "billingResources", type: { @@ -2752,6 +2912,213 @@ export const OperationDisplay: msRest.CompositeMapper = { type: { name: "String" } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Dimension: msRest.CompositeMapper = { + serializedName: "Dimension", + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MetricSpecifications: msRest.CompositeMapper = { + serializedName: "MetricSpecifications", + type: { + name: "Composite", + className: "MetricSpecifications", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + type: { + name: "Boolean" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + type: { + name: "String" + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + resourceIdDimensionNameOverride: { + serializedName: "resourceIdDimensionNameOverride", + type: { + name: "String" + } + }, + isInternal: { + serializedName: "isInternal", + type: { + name: "Boolean" + } + }, + delegateMetricNameOverride: { + serializedName: "delegateMetricNameOverride", + type: { + name: "String" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Dimension" + } + } + } + } + } + } +}; + +export const ServiceSpecification: msRest.CompositeMapper = { + serializedName: "ServiceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecifications" + } + } + } + } + } + } +}; + +export const OperationProperties: msRest.CompositeMapper = { + serializedName: "OperationProperties", + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } } } } @@ -2775,6 +3142,13 @@ export const Operation: msRest.CompositeMapper = { name: "Composite", className: "OperationDisplay" } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties" + } } } } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/operationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/operationsMappers.ts index 3e8e33c6f2bd..a94ebcc5d937 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/operationsMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/operationsMappers.ts @@ -7,8 +7,12 @@ */ export { + Dimension, ErrorResponse, + MetricSpecifications, Operation, OperationDisplay, - OperationListResult + OperationListResult, + OperationProperties, + ServiceSpecification } from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts index 13c66e7b873b..f6204a8df667 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts @@ -296,6 +296,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { responses: { 200: {}, 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts index f7ca3dc2ee0a..358def3395bb 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts @@ -643,6 +643,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { responses: { 200: {}, 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts index f35b05e8f7fc..2f4053e16ebf 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts @@ -328,6 +328,7 @@ const beginDisableMonitoringOperationSpec: msRest.OperationSpec = { responses: { 200: {}, 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -385,6 +386,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { responses: { 200: {}, 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts b/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts index 87da7cf11588..2e33d921f06d 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts @@ -177,6 +177,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { ], responses: { 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse }