Skip to content

Commit f05cdca

Browse files
author
SDKAuto
committed
CodeGen from PR 12493 in Azure/azure-rest-api-specs
Merge 6cd4f70f5e2bf476594b6b03333bfd5ec975a4d2 into a501906eeb0bb2d17cde6acc49d6a9c64dc9d03c
1 parent 2bb6a75 commit f05cdca

File tree

12 files changed

+617
-8
lines changed

12 files changed

+617
-8
lines changed

sdk/hdinsight/arm-hdinsight/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl
3737
if (!options) {
3838
options = {};
3939
}
40-
if (!options.userAgent) {
40+
if(!options.userAgent) {
4141
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4242
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4343
}
@@ -52,10 +52,10 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl
5252
this.credentials = credentials;
5353
this.subscriptionId = subscriptionId;
5454

55-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
55+
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5656
this.acceptLanguage = options.acceptLanguage;
5757
}
58-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
58+
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
5959
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6060
}
6161
}

sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export {
3232
EncryptionInTransitProperties,
3333
ErrorResponse,
3434
Errors,
35+
ExcludedServicesConfig,
3536
HardwareProfile,
3637
KafkaRestProperties,
3738
LinuxOperatingSystemProfile,
@@ -48,6 +49,8 @@ export {
4849
SecurityProfile,
4950
SshProfile,
5051
SshPublicKey,
52+
StorageAccount,
53+
StorageProfile,
5154
TrackedResource,
5255
VirtualNetworkProfile
5356
} from "../models/mappers";

sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export {
3838
EncryptionInTransitProperties,
3939
ErrorResponse,
4040
Errors,
41+
ExcludedServicesConfig,
4142
ExecuteScriptActionParameters,
4243
GatewaySettings,
4344
HardwareProfile,

sdk/hdinsight/arm-hdinsight/src/models/index.ts

Lines changed: 224 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ export interface Role {
335335
* The list of script actions on the role.
336336
*/
337337
scriptActions?: ScriptAction[];
338+
/**
339+
* Indicates whether encrypt the data disks.
340+
*/
341+
encryptDataDisks?: boolean;
338342
}
339343

340344
/**
@@ -392,6 +396,20 @@ export interface StorageProfile {
392396
storageaccounts?: StorageAccount[];
393397
}
394398

399+
/**
400+
* The configuration that services will be excluded when creating cluster.
401+
*/
402+
export interface ExcludedServicesConfig {
403+
/**
404+
* The config id of excluded services.
405+
*/
406+
excludedServicesConfigId?: string;
407+
/**
408+
* The list of excluded services.
409+
*/
410+
excludedServicesList?: string;
411+
}
412+
395413
/**
396414
* The network properties.
397415
*/
@@ -536,6 +554,10 @@ export interface ClusterIdentityUserAssignedIdentitiesValue {
536554
* **NOTE: This property will not be serialized. It can only be populated by the server.**
537555
*/
538556
readonly clientId?: string;
557+
/**
558+
* The tenant id of user assigned identity.
559+
*/
560+
tenantId?: string;
539561
}
540562

541563
/**
@@ -644,6 +666,10 @@ export interface ConnectivityEndpoint {
644666
* The port to connect to.
645667
*/
646668
port?: number;
669+
/**
670+
* The private ip address of the endpoint.
671+
*/
672+
privateIPAddress?: string;
647673
}
648674

649675
/**
@@ -654,6 +680,10 @@ export interface ClusterGetProperties {
654680
* The version of the cluster.
655681
*/
656682
clusterVersion?: string;
683+
/**
684+
* The hdp version of the cluster.
685+
*/
686+
clusterHdpVersion?: string;
657687
/**
658688
* The type of operating system. Possible values include: 'Windows', 'Linux'
659689
*/
@@ -715,10 +745,18 @@ export interface ClusterGetProperties {
715745
* The encryption-in-transit properties.
716746
*/
717747
encryptionInTransitProperties?: EncryptionInTransitProperties;
748+
/**
749+
* The storage profile.
750+
*/
751+
storageProfile?: StorageProfile;
718752
/**
719753
* The minimal supported tls version.
720754
*/
721755
minSupportedTlsVersion?: string;
756+
/**
757+
* The excluded services config.
758+
*/
759+
excludedServicesConfig?: ExcludedServicesConfig;
722760
/**
723761
* The network properties.
724762
*/
@@ -1060,6 +1098,10 @@ export interface ApplicationGetEndpoint {
10601098
* The public port to connect to.
10611099
*/
10621100
publicPort?: number;
1101+
/**
1102+
* The private ip address of the endpoint.
1103+
*/
1104+
privateIPAddress?: string;
10631105
}
10641106

10651107
/**
@@ -1338,7 +1380,7 @@ export interface UsagesListResult {
13381380
export interface VmSizeCompatibilityFilterV2 {
13391381
/**
13401382
* The filtering mode. Effectively this can enabling or disabling the VM sizes in a particular
1341-
* set. Possible values include: 'Exclude', 'Include'
1383+
* set. Possible values include: 'Exclude', 'Include', 'Recommend', 'Default'
13421384
*/
13431385
filterMode?: FilterMode;
13441386
/**
@@ -1367,6 +1409,52 @@ export interface VmSizeCompatibilityFilterV2 {
13671409
vmSizes?: string[];
13681410
}
13691411

1412+
/**
1413+
* The vm size property
1414+
*/
1415+
export interface VmSizeProperty {
1416+
/**
1417+
* The vm size name.
1418+
*/
1419+
name?: string;
1420+
/**
1421+
* The number of cores that the vm size has.
1422+
*/
1423+
cores?: number;
1424+
/**
1425+
* The data disk storage tier of the vm size.
1426+
*/
1427+
dataDiskStorageTier?: string;
1428+
/**
1429+
* The label of the vm size.
1430+
*/
1431+
label?: string;
1432+
/**
1433+
* The max data disk count of the vm size.
1434+
*/
1435+
maxDataDiskCount?: number;
1436+
/**
1437+
* The memory whose unit is MB of the vm size.
1438+
*/
1439+
memoryInMb?: number;
1440+
/**
1441+
* This indicates this vm size is supported by virtual machines or not
1442+
*/
1443+
supportedByVirtualMachines?: boolean;
1444+
/**
1445+
* The indicates this vm size is supported by web worker roles or not
1446+
*/
1447+
supportedByWebWorkerRoles?: boolean;
1448+
/**
1449+
* The virtual machine resource disk size whose unit is MB of the vm size.
1450+
*/
1451+
virtualMachineResourceDiskSizeInMb?: number;
1452+
/**
1453+
* The web worker resource disk size whose unit is MB of the vm size.
1454+
*/
1455+
webWorkerResourceDiskSizeInMb?: number;
1456+
}
1457+
13701458
/**
13711459
* The billing meters.
13721460
*/
@@ -1430,11 +1518,20 @@ export interface BillingResponseListResult {
14301518
* The virtual machine sizes to include or exclude.
14311519
*/
14321520
vmSizes?: string[];
1521+
/**
1522+
* The vm sizes which enable encryption at host.
1523+
*/
1524+
vmSizesWithEncryptionAtHost?: string[];
14331525
/**
14341526
* The virtual machine filtering mode. Effectively this can enabling or disabling the virtual
14351527
* machine sizes in a particular set.
14361528
*/
14371529
vmSizeFilters?: VmSizeCompatibilityFilterV2[];
1530+
/**
1531+
* The vm size properties.
1532+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1533+
*/
1534+
readonly vmSizeProperties?: VmSizeProperty[];
14381535
/**
14391536
* The billing and managed disk billing resources for a region.
14401537
*/
@@ -1535,6 +1632,126 @@ export interface OperationDisplay {
15351632
* The operation type: read, write, delete, etc.
15361633
*/
15371634
operation?: string;
1635+
/**
1636+
* Localized friendly description for the operation
1637+
*/
1638+
description?: string;
1639+
}
1640+
1641+
/**
1642+
* The definition of Dimension.
1643+
*/
1644+
export interface Dimension {
1645+
/**
1646+
* The name of the dimension.
1647+
*/
1648+
name?: string;
1649+
/**
1650+
* The display name of the dimension.
1651+
*/
1652+
displayName?: string;
1653+
/**
1654+
* The display name of the dimension.
1655+
*/
1656+
internalName?: string;
1657+
/**
1658+
* The flag indicates whether the metric will be exported for shoebox or not.
1659+
*/
1660+
toBeExportedForShoebox?: boolean;
1661+
}
1662+
1663+
/**
1664+
* The details of metric specifications.
1665+
*/
1666+
export interface MetricSpecifications {
1667+
/**
1668+
* The name of the metric specification.
1669+
*/
1670+
name?: string;
1671+
/**
1672+
* The display name of the metric specification.
1673+
*/
1674+
displayName?: string;
1675+
/**
1676+
* The display description of the metric specification.
1677+
*/
1678+
displayDescription?: string;
1679+
/**
1680+
* The unit of the metric specification.
1681+
*/
1682+
unit?: string;
1683+
/**
1684+
* The aggregation type of the metric specification.
1685+
*/
1686+
aggregationType?: string;
1687+
/**
1688+
* The supported aggregation types of the metric specification.
1689+
*/
1690+
supportedAggregationTypes?: string[];
1691+
/**
1692+
* The supported time grain types of the metric specification.
1693+
*/
1694+
supportedTimeGrainTypes?: string[];
1695+
/**
1696+
* The flag indicates whether enable regional mdm account or not.
1697+
*/
1698+
enableRegionalMdmAccount?: boolean;
1699+
/**
1700+
* The source mdm account.
1701+
*/
1702+
sourceMdmAccount?: string;
1703+
/**
1704+
* The source mdm namespace.
1705+
*/
1706+
sourceMdmNamespace?: string;
1707+
/**
1708+
* The metric filter pattern.
1709+
*/
1710+
metricFilterPattern?: string;
1711+
/**
1712+
* The flag indicates whether filling gap with zero.
1713+
*/
1714+
fillGapWithZero?: boolean;
1715+
/**
1716+
* The category of the metric.
1717+
*/
1718+
category?: string;
1719+
/**
1720+
* The override name of resource id dimension name.
1721+
*/
1722+
resourceIdDimensionNameOverride?: string;
1723+
/**
1724+
* The flag indicates whether the metric is internal or not.
1725+
*/
1726+
isInternal?: boolean;
1727+
/**
1728+
* The override name of delegate metric.
1729+
*/
1730+
delegateMetricNameOverride?: string;
1731+
/**
1732+
* The dimensions of the metric specification.
1733+
*/
1734+
dimensions?: Dimension[];
1735+
}
1736+
1737+
/**
1738+
* The specification of the service.
1739+
*/
1740+
export interface ServiceSpecification {
1741+
/**
1742+
* The metric specifications.
1743+
*/
1744+
metricSpecifications?: MetricSpecifications[];
1745+
}
1746+
1747+
/**
1748+
* The details of operation.
1749+
*/
1750+
export interface OperationProperties {
1751+
/**
1752+
* The specification of the service.
1753+
*/
1754+
serviceSpecification?: ServiceSpecification;
15381755
}
15391756

15401757
/**
@@ -1549,6 +1766,10 @@ export interface Operation {
15491766
* The object that represents the operation.
15501767
*/
15511768
display?: OperationDisplay;
1769+
/**
1770+
* The operation properties.
1771+
*/
1772+
properties?: OperationProperties;
15521773
}
15531774

15541775
/**
@@ -1726,11 +1947,11 @@ export type AsyncOperationState = 'InProgress' | 'Succeeded' | 'Failed';
17261947

17271948
/**
17281949
* Defines values for FilterMode.
1729-
* Possible values include: 'Exclude', 'Include'
1950+
* Possible values include: 'Exclude', 'Include', 'Recommend', 'Default'
17301951
* @readonly
17311952
* @enum {string}
17321953
*/
1733-
export type FilterMode = 'Exclude' | 'Include';
1954+
export type FilterMode = 'Exclude' | 'Include' | 'Recommend' | 'Default';
17341955

17351956
/**
17361957
* Contains response data for the create operation.

sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ export {
2323
VersionSpec,
2424
VmSizeCompatibilityFilter,
2525
VmSizeCompatibilityFilterV2,
26+
VmSizeProperty,
2627
VmSizesCapability
2728
} from "../models/mappers";

0 commit comments

Comments
 (0)