diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 642388ff1f8d..59071ab0c749 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3775,7 +3775,7 @@ packages: dependencies: semver: 7.5.0 shelljs: 0.8.5 - typescript: 5.1.0-dev.20230424 + typescript: 5.1.0-dev.20230427 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8435,8 +8435,8 @@ packages: hasBin: true dev: false - /typescript/5.1.0-dev.20230424: - resolution: {integrity: sha512-yhQpzzjyLCyXORVY8AgJYaWpm235ZzG/boelYvgloE7v+kCucAdegsBf7duLJzXc/8+wABR2diYMbjPpd5c3Ww==} + /typescript/5.1.0-dev.20230427: + resolution: {integrity: sha512-MIGWuB7N/ijl3XM+Pryw92oOoPDAW/m4/nlvFv5x+GW0oH0oqezEmM+8yUy5FUrc7VavyLy5Csg81FWAc0iCzg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -11977,7 +11977,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-ADZoTglLtVaIbZ8YfISjiuxydBs4wH35qccd20jpE9DUSDG9ILcDyR0FMMmA2vdaG8w1U5lPmTeX99Gat6qW9w==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-mUFTw5CUv1ZDa6ETc79VQB2d29w5qaL2yoZdNvcQV7ywr32KdtHSaQymNVAZuDQQ1j0AcBu9Mi6e/+fEZFci4g==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -11991,14 +11991,14 @@ packages: '@types/node': 14.18.42 chai: 4.3.7 cross-env: 7.0.3 - dotenv: 8.6.0 - mkdirp: 1.0.4 + dotenv: 16.0.3 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_c43y4oaxxwie3ialrfuzfwwhqq tslib: 2.5.0 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color diff --git a/sdk/hdinsight/arm-hdinsight/CHANGELOG.md b/sdk/hdinsight/arm-hdinsight/CHANGELOG.md index 974ef6da5ba4..beb58dd8d0d3 100644 --- a/sdk/hdinsight/arm-hdinsight/CHANGELOG.md +++ b/sdk/hdinsight/arm-hdinsight/CHANGELOG.md @@ -1,15 +1,11 @@ # Release History + +## 1.3.0-beta.1 (2023-04-27) + +**Features** -## 1.2.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface StorageAccount has a new optional parameter enableSecureChannel + ## 1.2.1 (2023-01-10) **Features** diff --git a/sdk/hdinsight/arm-hdinsight/README.md b/sdk/hdinsight/arm-hdinsight/README.md index b5a7fd6bd736..b938648d63b4 100644 --- a/sdk/hdinsight/arm-hdinsight/README.md +++ b/sdk/hdinsight/arm-hdinsight/README.md @@ -6,7 +6,7 @@ HDInsight Management Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-hdinsight) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/hdinsight/arm-hdinsight/_meta.json b/sdk/hdinsight/arm-hdinsight/_meta.json index eed24985b05a..3159db5cdb8f 100644 --- a/sdk/hdinsight/arm-hdinsight/_meta.json +++ b/sdk/hdinsight/arm-hdinsight/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1dd79c416cdccde274113ec03b92b75069fad464", - "readme": "specification\\hdinsight\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\hdinsight\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.6.20221226.1 --generate-sample=true", + "commit": "5c14d03c8c608bb5703a11f5674afd9562a8551b", + "readme": "specification/hdinsight/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.6.20221226.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/hdinsight/arm-hdinsight/package.json b/sdk/hdinsight/arm-hdinsight/package.json index 9f6132b38fdd..e2e192637eeb 100644 --- a/sdk/hdinsight/arm-hdinsight/package.json +++ b/sdk/hdinsight/arm-hdinsight/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for HDInsightManagementClient.", - "version": "1.2.2", + "version": "1.3.0-beta.1", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,13 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight" +} \ No newline at end of file diff --git a/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md b/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md index d7e40b01da17..ff76073f22f8 100644 --- a/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md +++ b/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md @@ -6,9 +6,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export interface AaddsResourceDetails { @@ -74,9 +74,9 @@ export interface ApplicationProperties { // @public export interface Applications { - beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOptionalParams): Promise, ApplicationsCreateResponse>>; + beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOptionalParams): Promise, ApplicationsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsGetOptionalParams): Promise; getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams): Promise; @@ -396,21 +396,21 @@ export interface ClusterResizeParameters { // @public export interface Clusters { - beginCreate(resourceGroupName: string, clusterName: string, parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams): Promise, ClustersCreateResponse>>; + beginCreate(resourceGroupName: string, clusterName: string, parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams): Promise, ClustersCreateResponse>>; beginCreateAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise; - beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams): Promise, void>>; + beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams): Promise, void>>; beginExecuteScriptActionsAndWait(resourceGroupName: string, clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams): Promise; - beginResize(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams): Promise, void>>; + beginResize(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams): Promise, void>>; beginResizeAndWait(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams): Promise; - beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams): Promise, void>>; + beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams): Promise, void>>; beginRotateDiskEncryptionKeyAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams): Promise; - beginUpdateAutoScaleConfiguration(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams): Promise, void>>; + beginUpdateAutoScaleConfiguration(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams): Promise, void>>; beginUpdateAutoScaleConfigurationAndWait(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams): Promise; - beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams): Promise, void>>; + beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams): Promise, void>>; beginUpdateGatewaySettingsAndWait(resourceGroupName: string, clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams): Promise; - beginUpdateIdentityCertificate(resourceGroupName: string, clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams): Promise, void>>; + beginUpdateIdentityCertificate(resourceGroupName: string, clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams): Promise, void>>; beginUpdateIdentityCertificateAndWait(resourceGroupName: string, clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams): Promise; getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: ClustersGetAzureAsyncOperationStatusOptionalParams): Promise; @@ -542,7 +542,7 @@ export interface ComputeProfile { export interface Configurations { beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string; - }, options?: ConfigurationsUpdateOptionalParams): Promise, void>>; + }, options?: ConfigurationsUpdateOptionalParams): Promise, void>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string; }, options?: ConfigurationsUpdateOptionalParams): Promise; @@ -659,17 +659,17 @@ export interface Extension { // @public export interface Extensions { - beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams): Promise, void>>; + beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams): Promise, void>>; beginCreateAndWait(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise; - beginDisableAzureMonitor(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams): Promise, void>>; + beginDisableAzureMonitor(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams): Promise, void>>; beginDisableAzureMonitorAndWait(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams): Promise; - beginDisableMonitoring(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams): Promise, void>>; + beginDisableMonitoring(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams): Promise, void>>; beginDisableMonitoringAndWait(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams): Promise; - beginEnableAzureMonitor(resourceGroupName: string, clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams): Promise, void>>; + beginEnableAzureMonitor(resourceGroupName: string, clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams): Promise, void>>; beginEnableAzureMonitorAndWait(resourceGroupName: string, clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams): Promise; - beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams): Promise, void>>; + beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams): Promise, void>>; beginEnableMonitoringAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams): Promise; getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options?: ExtensionsGetAzureAsyncOperationStatusOptionalParams): Promise; @@ -1140,9 +1140,9 @@ export type PrivateEndpointConnectionProvisioningState = string; // @public export interface PrivateEndpointConnections { - beginCreateOrUpdate(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; listByCluster(resourceGroupName: string, clusterName: string, options?: PrivateEndpointConnectionsListByClusterOptionalParams): PagedAsyncIterableIterator; @@ -1466,6 +1466,7 @@ export interface SshPublicKey { // @public export interface StorageAccount { container?: string; + enableSecureChannel?: boolean; fileshare?: string; fileSystem?: string; isDefault?: boolean; @@ -1561,7 +1562,7 @@ export interface VersionSpec { // @public export interface VirtualMachines { - beginRestartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams): Promise, void>>; + beginRestartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams): Promise, void>>; beginRestartHostsAndWait(resourceGroupName: string, clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams): Promise; getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: VirtualMachinesGetAsyncOperationStatusOptionalParams): Promise; listHosts(resourceGroupName: string, clusterName: string, options?: VirtualMachinesListHostsOptionalParams): Promise; diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts index fc52317dae85..5624dd20f995 100644 --- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts +++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts @@ -15,30 +15,30 @@ import { } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - ClustersImpl, ApplicationsImpl, - LocationsImpl, + ClustersImpl, ConfigurationsImpl, ExtensionsImpl, - ScriptActionsImpl, - ScriptExecutionHistoryImpl, + LocationsImpl, OperationsImpl, - VirtualMachinesImpl, PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl + PrivateLinkResourcesImpl, + ScriptActionsImpl, + ScriptExecutionHistoryImpl, + VirtualMachinesImpl } from "./operations"; import { - Clusters, Applications, - Locations, + Clusters, Configurations, Extensions, - ScriptActions, - ScriptExecutionHistory, + Locations, Operations, - VirtualMachines, PrivateEndpointConnections, - PrivateLinkResources + PrivateLinkResources, + ScriptActions, + ScriptExecutionHistory, + VirtualMachines } from "./operationsInterfaces"; import { HDInsightManagementClientOptionalParams } from "./models"; @@ -75,7 +75,7 @@ export class HDInsightManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-hdinsight/1.2.2`; + const packageDetails = `azsdk-js-arm-hdinsight/1.3.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -128,18 +128,18 @@ export class HDInsightManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-06-01"; - this.clusters = new ClustersImpl(this); + this.apiVersion = options.apiVersion || "2023-04-15-preview"; this.applications = new ApplicationsImpl(this); - this.locations = new LocationsImpl(this); + this.clusters = new ClustersImpl(this); this.configurations = new ConfigurationsImpl(this); this.extensions = new ExtensionsImpl(this); - this.scriptActions = new ScriptActionsImpl(this); - this.scriptExecutionHistory = new ScriptExecutionHistoryImpl(this); + this.locations = new LocationsImpl(this); this.operations = new OperationsImpl(this); - this.virtualMachines = new VirtualMachinesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.scriptActions = new ScriptActionsImpl(this); + this.scriptExecutionHistory = new ScriptExecutionHistoryImpl(this); + this.virtualMachines = new VirtualMachinesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -171,15 +171,15 @@ export class HDInsightManagementClient extends coreClient.ServiceClient { this.pipeline.addPolicy(apiVersionPolicy); } - clusters: Clusters; applications: Applications; - locations: Locations; + clusters: Clusters; configurations: Configurations; extensions: Extensions; - scriptActions: ScriptActions; - scriptExecutionHistory: ScriptExecutionHistory; + locations: Locations; operations: Operations; - virtualMachines: VirtualMachines; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; + scriptActions: ScriptActions; + scriptExecutionHistory: ScriptExecutionHistory; + virtualMachines: VirtualMachines; } diff --git a/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts b/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts +++ b/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/index.ts b/sdk/hdinsight/arm-hdinsight/src/models/index.ts index 2e72dd7b1013..9c6674cdc2d4 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/index.ts @@ -8,103 +8,55 @@ import * as coreClient from "@azure/core-client"; -/** The CreateCluster request parameters. */ -export interface ClusterCreateParametersExtended { - /** The location of the cluster. */ - location?: string; - /** The resource tags. */ - tags?: { [propertyName: string]: string }; - /** The availability zones. */ - zones?: string[]; - /** The cluster create parameters. */ - properties?: ClusterCreateProperties; - /** The identity of the cluster, if configured. */ - identity?: ClusterIdentity; +/** 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. */ +export interface ApplicationListResult { + /** The list of HDInsight applications installed on HDInsight cluster. */ + value?: Application[]; + /** + * 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; } -/** The cluster create parameters. */ -export interface ClusterCreateProperties { - /** The version of the cluster. */ - clusterVersion?: string; - /** The type of operating system. */ - osType?: OSType; - /** The cluster tier. */ - tier?: Tier; - /** The cluster definition. */ - clusterDefinition?: ClusterDefinition; - /** The cluster kafka rest proxy configuration. */ - kafkaRestProperties?: KafkaRestProperties; - /** The security profile. */ - securityProfile?: SecurityProfile; - /** The compute profile. */ +/** The HDInsight cluster application GET response. */ +export interface ApplicationProperties { + /** The list of roles in the cluster. */ computeProfile?: ComputeProfile; - /** The storage profile. */ - storageProfile?: StorageProfile; - /** The disk encryption properties. */ - diskEncryptionProperties?: DiskEncryptionProperties; - /** The encryption-in-transit properties. */ - encryptionInTransitProperties?: EncryptionInTransitProperties; - /** The minimal supported tls version. */ - minSupportedTlsVersion?: string; - /** The network properties. */ - networkProperties?: NetworkProperties; - /** The compute isolation properties. */ - computeIsolationProperties?: ComputeIsolationProperties; - /** The private link configurations. */ - privateLinkConfigurations?: PrivateLinkConfiguration[]; -} - -/** The cluster definition. */ -export interface ClusterDefinition { - /** The link to the blueprint. */ - blueprint?: string; - /** The type of cluster. */ - kind?: string; - /** The versions of different services in the cluster. */ - componentVersion?: { [propertyName: string]: string }; - /** The cluster configurations. */ - configurations?: Record; -} - -/** The kafka rest proxy configuration which contains AAD security group information. */ -export interface KafkaRestProperties { - /** The information of AAD security group. */ - clientGroupInfo?: ClientGroupInfo; - /** The configurations that need to be overriden. */ - configurationOverride?: { [propertyName: string]: string }; -} - -/** The information of AAD security group. */ -export interface ClientGroupInfo { - /** The AAD security group name. */ - groupName?: string; - /** The AAD security group id. */ - groupId?: string; -} - -/** The security profile which contains Ssh public key for the HDInsight cluster. */ -export interface SecurityProfile { - /** The directory type. */ - directoryType?: DirectoryType; - /** The organization's active directory domain. */ - domain?: string; - /** 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. */ - ldapsUrls?: string[]; - /** The domain user account that will have admin privileges on the cluster. */ - domainUsername?: string; + /** The list of install script actions. */ + installScriptActions?: RuntimeScriptAction[]; + /** The list of uninstall script actions. */ + uninstallScriptActions?: RuntimeScriptAction[]; + /** The list of application HTTPS endpoints. */ + httpsEndpoints?: ApplicationGetHttpsEndpoint[]; + /** The list of application SSH endpoints. */ + sshEndpoints?: ApplicationGetEndpoint[]; /** - * The domain admin password. - * This value contains a credential. Consider obscuring before showing to users + * The provisioning state of the application. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - domainUserPassword?: string; - /** Optional. The Distinguished Names for cluster user groups */ - clusterUsersGroupDNs?: string[]; - /** 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. */ - msiResourceId?: string; + readonly provisioningState?: string; + /** The application type. */ + applicationType?: string; + /** + * 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. */ + errors?: Errors[]; + /** + * 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. + */ + readonly marketplaceIdentifier?: string; + /** The private link configurations. */ + privateLinkConfigurations?: PrivateLinkConfiguration[]; } /** Describes the compute profile. */ @@ -249,70 +201,65 @@ export interface ScriptAction { parameters: string; } -/** The storage profile. */ -export interface StorageProfile { - /** The list of storage accounts in the cluster. */ - storageaccounts?: StorageAccount[]; -} - -/** The storage Account. */ -export interface StorageAccount { - /** The name of the storage account. */ - name?: string; - /** 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. */ - container?: string; - /** The filesystem, only to be specified for Azure Data Lake Storage Gen 2. */ - fileSystem?: string; - /** The storage account access key. */ - key?: string; - /** 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. */ - msiResourceId?: string; - /** The shared access signature key. */ - saskey?: string; - /** The file share name. */ - fileshare?: string; -} - -/** The disk encryption properties */ -export interface DiskEncryptionProperties { - /** 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. */ - keyName?: string; - /** Specific key version that is used for enabling disk encryption. */ - keyVersion?: string; - /** Algorithm identifier for encryption, default RSA-OAEP. */ - encryptionAlgorithm?: JsonWebKeyEncryptionAlgorithm; - /** Resource ID of Managed Identity that is used to access the key vault. */ - msiResourceId?: string; - /** Indicates whether or not resource disk encryption is enabled. */ - encryptionAtHost?: boolean; +/** Describes a script action on a running cluster. */ +export interface RuntimeScriptAction { + /** The name of the script action. */ + name: string; + /** The URI to the script. */ + uri: string; + /** The parameters for the script */ + parameters?: string; + /** 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. + */ + readonly applicationName?: string; } -/** The encryption-in-transit properties. */ -export interface EncryptionInTransitProperties { - /** Indicates whether or not inter cluster node communication is encrypted in transit. */ - isEncryptionInTransitEnabled?: boolean; +/** Gets the application HTTP endpoints. */ +export interface ApplicationGetHttpsEndpoint { + /** The list of access modes for the application. */ + accessModes?: string[]; + /** + * The location of the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** The destination port to connect to. */ + destinationPort?: number; + /** + * The public port to connect to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicPort?: number; + /** The private ip address of the endpoint. */ + privateIPAddress?: string; + /** The subdomain suffix of the application. */ + subDomainSuffix?: string; + /** The value indicates whether to disable GatewayAuth. */ + disableGatewayAuth?: boolean; } -/** The network properties. */ -export interface NetworkProperties { - /** The direction for the resource provider connection. */ - resourceProviderConnection?: ResourceProviderConnection; - /** Indicates whether or not private link is enabled. */ - privateLink?: PrivateLink; +/** Gets the application SSH endpoint */ +export interface ApplicationGetEndpoint { + /** The location of the endpoint. */ + location?: string; + /** The destination port to connect to. */ + destinationPort?: number; + /** The public port to connect to. */ + publicPort?: number; + /** The private ip address of the endpoint. */ + privateIPAddress?: string; } -/** The compute isolation properties. */ -export interface ComputeIsolationProperties { - /** The flag indicates whether enable compute isolation or not. */ - enableComputeIsolation?: boolean; - /** The host sku. */ - hostSku?: string; +/** The error message associated with the cluster creation. */ +export interface Errors { + /** The error code. */ + code?: string; + /** The error message. */ + message?: string; } /** The private link configuration. */ @@ -375,15 +322,233 @@ export interface ResourceId { id?: string; } -/** 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. - */ - readonly principalId?: string; - /** - * The tenant id associated with the cluster. This property will only be provided for a system assigned identity. +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * 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. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Describes the format of Error response. */ +export interface ErrorResponse { + /** Error code */ + code?: string; + /** Error message indicating why the operation failed. */ + message?: string; +} + +/** The azure async operation response. */ +export interface AsyncOperationResult { + /** The async operation state. */ + status?: AsyncOperationState; + /** The operation error information. */ + error?: Errors; +} + +/** The CreateCluster request parameters. */ +export interface ClusterCreateParametersExtended { + /** The location of the cluster. */ + location?: string; + /** The resource tags. */ + tags?: { [propertyName: string]: string }; + /** The availability zones. */ + zones?: string[]; + /** The cluster create parameters. */ + properties?: ClusterCreateProperties; + /** The identity of the cluster, if configured. */ + identity?: ClusterIdentity; +} + +/** The cluster create parameters. */ +export interface ClusterCreateProperties { + /** The version of the cluster. */ + clusterVersion?: string; + /** The type of operating system. */ + osType?: OSType; + /** The cluster tier. */ + tier?: Tier; + /** The cluster definition. */ + clusterDefinition?: ClusterDefinition; + /** The cluster kafka rest proxy configuration. */ + kafkaRestProperties?: KafkaRestProperties; + /** The security profile. */ + securityProfile?: SecurityProfile; + /** The compute profile. */ + computeProfile?: ComputeProfile; + /** The storage profile. */ + storageProfile?: StorageProfile; + /** The disk encryption properties. */ + diskEncryptionProperties?: DiskEncryptionProperties; + /** The encryption-in-transit properties. */ + encryptionInTransitProperties?: EncryptionInTransitProperties; + /** The minimal supported tls version. */ + minSupportedTlsVersion?: string; + /** The network properties. */ + networkProperties?: NetworkProperties; + /** The compute isolation properties. */ + computeIsolationProperties?: ComputeIsolationProperties; + /** The private link configurations. */ + privateLinkConfigurations?: PrivateLinkConfiguration[]; +} + +/** The cluster definition. */ +export interface ClusterDefinition { + /** The link to the blueprint. */ + blueprint?: string; + /** The type of cluster. */ + kind?: string; + /** The versions of different services in the cluster. */ + componentVersion?: { [propertyName: string]: string }; + /** The cluster configurations. */ + configurations?: Record; +} + +/** The kafka rest proxy configuration which contains AAD security group information. */ +export interface KafkaRestProperties { + /** The information of AAD security group. */ + clientGroupInfo?: ClientGroupInfo; + /** The configurations that need to be overriden. */ + configurationOverride?: { [propertyName: string]: string }; +} + +/** The information of AAD security group. */ +export interface ClientGroupInfo { + /** The AAD security group name. */ + groupName?: string; + /** The AAD security group id. */ + groupId?: string; +} + +/** The security profile which contains Ssh public key for the HDInsight cluster. */ +export interface SecurityProfile { + /** The directory type. */ + directoryType?: DirectoryType; + /** The organization's active directory domain. */ + domain?: string; + /** 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. */ + ldapsUrls?: string[]; + /** The domain user account that will have admin privileges on the cluster. */ + domainUsername?: string; + /** + * The domain admin password. + * This value contains a credential. Consider obscuring before showing to users + */ + domainUserPassword?: string; + /** Optional. The Distinguished Names for cluster user groups */ + clusterUsersGroupDNs?: string[]; + /** 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. */ + msiResourceId?: string; +} + +/** The storage profile. */ +export interface StorageProfile { + /** The list of storage accounts in the cluster. */ + storageaccounts?: StorageAccount[]; +} + +/** The storage Account. */ +export interface StorageAccount { + /** The name of the storage account. */ + name?: string; + /** 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. */ + container?: string; + /** The filesystem, only to be specified for Azure Data Lake Storage Gen 2. */ + fileSystem?: string; + /** The storage account access key. */ + key?: string; + /** 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. */ + msiResourceId?: string; + /** The shared access signature key. */ + saskey?: string; + /** The file share name. */ + fileshare?: string; + /** Enable secure channel or not, it's an optional field. Default value is false when cluster version < 5.1 and true when cluster version >= 5.1 , */ + enableSecureChannel?: boolean; +} + +/** The disk encryption properties */ +export interface DiskEncryptionProperties { + /** 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. */ + keyName?: string; + /** Specific key version that is used for enabling disk encryption. */ + keyVersion?: string; + /** Algorithm identifier for encryption, default RSA-OAEP. */ + encryptionAlgorithm?: JsonWebKeyEncryptionAlgorithm; + /** Resource ID of Managed Identity that is used to access the key vault. */ + msiResourceId?: string; + /** Indicates whether or not resource disk encryption is enabled. */ + encryptionAtHost?: boolean; +} + +/** The encryption-in-transit properties. */ +export interface EncryptionInTransitProperties { + /** Indicates whether or not inter cluster node communication is encrypted in transit. */ + isEncryptionInTransitEnabled?: boolean; +} + +/** The network properties. */ +export interface NetworkProperties { + /** The direction for the resource provider connection. */ + resourceProviderConnection?: ResourceProviderConnection; + /** Indicates whether or not private link is enabled. */ + privateLink?: PrivateLink; +} + +/** The compute isolation properties. */ +export interface ComputeIsolationProperties { + /** The flag indicates whether enable compute isolation or not. */ + enableComputeIsolation?: boolean; + /** The host sku. */ + hostSku?: string; +} + +/** 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. + */ + 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. */ readonly tenantId?: string; @@ -470,14 +635,6 @@ export interface QuotaInfo { coresUsed?: number; } -/** The error message associated with the cluster creation. */ -export interface Errors { - /** The error code. */ - code?: string; - /** The error message. */ - message?: string; -} - /** The connectivity properties */ export interface ConnectivityEndpoint { /** The name of the endpoint. */ @@ -516,41 +673,6 @@ export interface PrivateLinkServiceConnectionState { actionsRequired?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * 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. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface ResourceAutoGenerated { /** @@ -570,14 +692,6 @@ export interface ResourceAutoGenerated { readonly type?: string; } -/** Describes the format of Error response. */ -export interface ErrorResponse { - /** Error code */ - code?: string; - /** Error message indicating why the operation failed. */ - message?: string; -} - /** The PatchCluster request parameters */ export interface ClusterPatchParameters { /** The resource tags. */ @@ -609,163 +723,119 @@ export interface AutoscaleConfigurationUpdateParameter { /** 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 */ - vaultUri?: string; - /** Key name that is used for enabling disk encryption. */ - keyName?: string; - /** Specific key version that is used for enabling disk encryption. */ - keyVersion?: string; -} - -/** Gateway settings. */ -export interface GatewaySettings { - /** - * 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; - /** - * The gateway settings user name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly userName?: string; - /** - * The gateway settings user password. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly password?: string; -} - -/** The update gateway settings request parameters. */ -export interface UpdateGatewaySettingsParameters { - /** Indicates whether or not the gateway settings based authorization is enabled. */ - isCredentialEnabled?: boolean; - /** The gateway settings user name. */ - userName?: string; - /** The gateway settings user password. */ - password?: string; -} - -/** The azure async operation response. */ -export interface AsyncOperationResult { - /** The async operation state. */ - status?: AsyncOperationState; - /** The operation error information. */ - error?: Errors; -} - -/** The update cluster identity certificate request parameters. */ -export interface UpdateClusterIdentityCertificateParameters { - /** The application id. */ - applicationId?: string; - /** The certificate in base64 encoded format. */ - certificate?: string; - /** The password of the certificate. */ - certificatePassword?: string; -} - -/** 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. */ -export interface ApplicationListResult { - /** The list of HDInsight applications installed on HDInsight cluster. */ - value?: Application[]; - /** - * 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; -} - -/** The HDInsight cluster application GET response. */ -export interface ApplicationProperties { - /** The list of roles in the cluster. */ - computeProfile?: ComputeProfile; - /** The list of install script actions. */ - installScriptActions?: RuntimeScriptAction[]; - /** The list of uninstall script actions. */ - uninstallScriptActions?: RuntimeScriptAction[]; - /** The list of application HTTPS endpoints. */ - httpsEndpoints?: ApplicationGetHttpsEndpoint[]; - /** 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. - */ - readonly provisioningState?: string; - /** The application type. */ - applicationType?: string; - /** - * 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. */ - errors?: Errors[]; - /** - * 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. - */ - readonly marketplaceIdentifier?: string; - /** The private link configurations. */ - privateLinkConfigurations?: PrivateLinkConfiguration[]; -} - -/** Describes a script action on a running cluster. */ -export interface RuntimeScriptAction { - /** The name of the script action. */ - name: string; - /** The URI to the script. */ - uri: string; - /** The parameters for the script */ - parameters?: string; - /** The list of roles where script will be executed. */ - roles: string[]; + /** 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. */ + keyName?: string; + /** Specific key version that is used for enabling disk encryption. */ + keyVersion?: string; +} + +/** Gateway settings. */ +export interface GatewaySettings { /** - * The application name of the script action, if any. + * 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 applicationName?: string; -} - -/** Gets the application HTTP endpoints. */ -export interface ApplicationGetHttpsEndpoint { - /** The list of access modes for the application. */ - accessModes?: string[]; + readonly isCredentialEnabled?: string; /** - * The location of the endpoint. + * The gateway settings user name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** The destination port to connect to. */ - destinationPort?: number; + readonly userName?: string; /** - * The public port to connect to. + * The gateway settings user password. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicPort?: number; - /** The private ip address of the endpoint. */ - privateIPAddress?: string; - /** The subdomain suffix of the application. */ - subDomainSuffix?: string; - /** The value indicates whether to disable GatewayAuth. */ - disableGatewayAuth?: boolean; + readonly password?: string; } -/** Gets the application SSH endpoint */ -export interface ApplicationGetEndpoint { - /** The location of the endpoint. */ - location?: string; - /** The destination port to connect to. */ - destinationPort?: number; - /** The public port to connect to. */ - publicPort?: number; - /** The private ip address of the endpoint. */ - privateIPAddress?: string; +/** The update gateway settings request parameters. */ +export interface UpdateGatewaySettingsParameters { + /** Indicates whether or not the gateway settings based authorization is enabled. */ + isCredentialEnabled?: boolean; + /** The gateway settings user name. */ + userName?: string; + /** The gateway settings user password. */ + password?: string; +} + +/** The update cluster identity certificate request parameters. */ +export interface UpdateClusterIdentityCertificateParameters { + /** The application id. */ + applicationId?: string; + /** The certificate in base64 encoded format. */ + certificate?: string; + /** The password of the certificate. */ + certificatePassword?: string; +} + +/** The configuration object for the specified cluster. */ +export interface ClusterConfigurations { + /** The configuration object for the specified configuration for the specified cluster. */ + configurations?: { + [propertyName: string]: { [propertyName: string]: string }; + }; +} + +/** The cluster monitor parameters. */ +export interface ClusterMonitoringRequest { + /** The cluster monitor workspace ID. */ + workspaceId?: string; + /** The cluster monitor workspace key. */ + primaryKey?: string; +} + +/** The cluster monitoring status response. */ +export interface ClusterMonitoringResponse { + /** The status of the monitor on the HDInsight cluster. */ + clusterMonitoringEnabled?: boolean; + /** The workspace ID of the monitor on the HDInsight cluster. */ + workspaceId?: string; +} + +/** The azure monitor parameters. */ +export interface AzureMonitorRequest { + /** The Log Analytics workspace ID. */ + workspaceId?: string; + /** The Log Analytics workspace key. */ + primaryKey?: string; + /** The selected configurations. */ + selectedConfigurations?: AzureMonitorSelectedConfigurations; +} + +/** The selected configurations for azure monitor. */ +export interface AzureMonitorSelectedConfigurations { + /** The configuration version. */ + configurationVersion?: string; + /** The global configurations of selected configurations. */ + globalConfigurations?: { [propertyName: string]: string }; + /** The table list. */ + tableList?: AzureMonitorTableConfiguration[]; +} + +/** The table configuration for the Log Analytics integration. */ +export interface AzureMonitorTableConfiguration { + /** The name. */ + name?: string; +} + +/** The azure monitor status response. */ +export interface AzureMonitorResponse { + /** The status of the monitor on the HDInsight cluster. */ + clusterMonitoringEnabled?: boolean; + /** The workspace ID of the monitor on the HDInsight cluster. */ + workspaceId?: string; + /** The selected configurations. */ + selectedConfigurations?: AzureMonitorSelectedConfigurations; +} + +/** Cluster monitoring extensions. */ +export interface Extension { + /** The workspace ID for the cluster monitoring extension. */ + workspaceId?: string; + /** The certificate for the cluster monitoring extensions. */ + primaryKey?: string; } /** The Get Capabilities operation response. */ @@ -1004,130 +1074,15 @@ export interface AaddsResourceDetails { /** This indicates whether initial sync complete or not. */ initialSyncComplete?: boolean; /** This indicates whether enable ldaps or not. */ - ldapsEnabled?: boolean; - /** The base 64 format string of public ldap certificate. */ - ldapsPublicCertificateInBase64?: string; - /** The resource id of azure active directory domain service. */ - resourceId?: string; - /** The subnet resource id. */ - subnetId?: string; - /** The tenant id of azure active directory domain service . */ - tenantId?: string; -} - -/** The configuration object for the specified cluster. */ -export interface ClusterConfigurations { - /** The configuration object for the specified configuration for the specified cluster. */ - configurations?: { - [propertyName: string]: { [propertyName: string]: string }; - }; -} - -/** The cluster monitor parameters. */ -export interface ClusterMonitoringRequest { - /** The cluster monitor workspace ID. */ - workspaceId?: string; - /** The cluster monitor workspace key. */ - primaryKey?: string; -} - -/** The cluster monitoring status response. */ -export interface ClusterMonitoringResponse { - /** The status of the monitor on the HDInsight cluster. */ - clusterMonitoringEnabled?: boolean; - /** The workspace ID of the monitor on the HDInsight cluster. */ - workspaceId?: string; -} - -/** The azure monitor parameters. */ -export interface AzureMonitorRequest { - /** The Log Analytics workspace ID. */ - workspaceId?: string; - /** The Log Analytics workspace key. */ - primaryKey?: string; - /** The selected configurations. */ - selectedConfigurations?: AzureMonitorSelectedConfigurations; -} - -/** The selected configurations for azure monitor. */ -export interface AzureMonitorSelectedConfigurations { - /** The configuration version. */ - configurationVersion?: string; - /** The global configurations of selected configurations. */ - globalConfigurations?: { [propertyName: string]: string }; - /** The table list. */ - tableList?: AzureMonitorTableConfiguration[]; -} - -/** The table configuration for the Log Analytics integration. */ -export interface AzureMonitorTableConfiguration { - /** The name. */ - name?: string; -} - -/** The azure monitor status response. */ -export interface AzureMonitorResponse { - /** The status of the monitor on the HDInsight cluster. */ - clusterMonitoringEnabled?: boolean; - /** The workspace ID of the monitor on the HDInsight cluster. */ - workspaceId?: string; - /** The selected configurations. */ - selectedConfigurations?: AzureMonitorSelectedConfigurations; -} - -/** Cluster monitoring extensions. */ -export interface Extension { - /** The workspace ID for the cluster monitoring extension. */ - workspaceId?: string; - /** The certificate for the cluster monitoring extensions. */ - primaryKey?: string; -} - -/** The parameters for the script actions to execute on a running cluster. */ -export interface ExecuteScriptActionParameters { - /** The list of run time script actions. */ - scriptActions?: RuntimeScriptAction[]; - /** Gets or sets if the scripts needs to be persisted. */ - persistOnSuccess: boolean; -} - -/** The persisted script action for the cluster. */ -export interface ScriptActionsList { - /** The list of persisted script action details for the cluster. */ - 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. - */ - readonly nextLink?: string; -} - -/** 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. - */ - 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. - */ - readonly instanceCount?: number; -} - -/** The list script execution history response. */ -export interface ScriptActionExecutionHistoryList { - /** - * 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. - */ - readonly nextLink?: string; + ldapsEnabled?: boolean; + /** The base 64 format string of public ldap certificate. */ + ldapsPublicCertificateInBase64?: string; + /** The resource id of azure active directory domain service. */ + resourceId?: string; + /** The subnet resource id. */ + subnetId?: string; + /** The tenant id of azure active directory domain service . */ + tenantId?: string; } /** 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. */ @@ -1222,16 +1177,6 @@ export interface Dimension { toBeExportedForShoebox?: boolean; } -/** The cluster host information. */ -export interface HostInfo { - /** The host name */ - name?: string; - /** The Fully Qualified Domain Name of host */ - fqdn?: string; - /** The effective disk encryption key URL used by the host */ - effectiveDiskEncryptionKeyUrl?: string; -} - /** The list private endpoint connections response. */ export interface PrivateEndpointConnectionListResult { /** The list of private endpoint connections. */ @@ -1249,6 +1194,63 @@ export interface PrivateLinkResourceListResult { value?: PrivateLinkResource[]; } +/** The parameters for the script actions to execute on a running cluster. */ +export interface ExecuteScriptActionParameters { + /** The list of run time script actions. */ + scriptActions?: RuntimeScriptAction[]; + /** Gets or sets if the scripts needs to be persisted. */ + persistOnSuccess: boolean; +} + +/** The persisted script action for the cluster. */ +export interface ScriptActionsList { + /** The list of persisted script action details for the cluster. */ + 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. + */ + readonly nextLink?: string; +} + +/** 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. + */ + 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. + */ + readonly instanceCount?: number; +} + +/** The list script execution history response. */ +export interface ScriptActionExecutionHistoryList { + /** + * 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. + */ + readonly nextLink?: string; +} + +/** The cluster host information. */ +export interface HostInfo { + /** The host name */ + name?: string; + /** The Fully Qualified Domain Name of host */ + fqdn?: string; + /** The effective disk encryption key URL used by the host */ + effectiveDiskEncryptionKeyUrl?: string; +} + /** The ListPersistedScriptActions operation response. */ export interface ClusterListPersistedScriptActionsResult { /** The list of Persisted Script Actions. */ @@ -1274,19 +1276,48 @@ export interface ScriptActionPersistedGetResponseSpec { applicationName?: string; } -/** The cluster create request specification. */ -export interface ClusterCreateRequestValidationParameters - extends ClusterCreateParametersExtended { - /** The cluster name. */ - name?: string; - /** The resource type. */ - type?: string; - /** The tenant id. */ - tenantId?: string; - /** This indicates whether fetch Aadds resource or not. */ - fetchAaddsResource?: boolean; +/** The execution details of a script action. */ +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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + readonly executionSummary?: ScriptActionExecutionSummary[]; + /** + * The script action execution debug information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly debugInformation?: string; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + /** The private endpoint connection. */ export interface PrivateEndpointConnection extends Resource { /** @@ -1313,8 +1344,18 @@ export interface PrivateEndpointConnection extends Resource { readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} +/** The cluster create request specification. */ +export interface ClusterCreateRequestValidationParameters + extends ClusterCreateParametersExtended { + /** The cluster name. */ + name?: string; + /** The resource type. */ + type?: string; + /** The tenant id. */ + tenantId?: string; + /** This indicates whether fetch Aadds resource or not. */ + fetchAaddsResource?: boolean; +} /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export interface TrackedResource extends ResourceAutoGenerated { @@ -1345,77 +1386,161 @@ export interface PrivateLinkResource extends ResourceAutoGenerated { requiredZoneNames?: string[]; } -/** The execution details of a script action. */ -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. - */ - 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. - */ - 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. - */ - 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. - */ - 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. - */ - readonly operation?: string; +/** The HDInsight cluster application */ +export interface Application extends ProxyResource { + /** The ETag for the application */ + etag?: string; + /** The tags for the application. */ + tags?: { [propertyName: string]: string }; + /** The properties of the application. */ + properties?: ApplicationProperties; /** - * The summary of script action execution result. + * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executionSummary?: ScriptActionExecutionSummary[]; + readonly systemData?: SystemData; +} + +/** The HDInsight cluster. */ +export interface Cluster extends TrackedResource { + /** The ETag for the resource */ + etag?: string; + /** The availability zones. */ + zones?: string[]; + /** The properties of the cluster. */ + properties?: ClusterGetProperties; + /** The identity of the cluster, if configured. */ + identity?: ClusterIdentity; /** - * The script action execution debug information. + * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly debugInformation?: string; + readonly systemData?: SystemData; +} + +/** Known values of {@link DaysOfWeek} that the service accepts. */ +export enum KnownDaysOfWeek { + /** Monday */ + Monday = "Monday", + /** Tuesday */ + Tuesday = "Tuesday", + /** Wednesday */ + Wednesday = "Wednesday", + /** Thursday */ + Thursday = "Thursday", + /** Friday */ + Friday = "Friday", + /** Saturday */ + Saturday = "Saturday", + /** Sunday */ + Sunday = "Sunday" +} + +/** + * Defines values for DaysOfWeek. \ + * {@link KnownDaysOfWeek} can be used interchangeably with DaysOfWeek, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** \ + * **Sunday** + */ +export type DaysOfWeek = string; + +/** Known values of {@link PrivateLinkConfigurationProvisioningState} that the service accepts. */ +export enum KnownPrivateLinkConfigurationProvisioningState { + /** InProgress */ + InProgress = "InProgress", + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** Canceled */ + Canceled = "Canceled", + /** Deleting */ + Deleting = "Deleting" +} + +/** + * Defines values for PrivateLinkConfigurationProvisioningState. \ + * {@link KnownPrivateLinkConfigurationProvisioningState} can be used interchangeably with PrivateLinkConfigurationProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Failed** \ + * **Succeeded** \ + * **Canceled** \ + * **Deleting** + */ +export type PrivateLinkConfigurationProvisioningState = string; + +/** Known values of {@link PrivateIPAllocationMethod} that the service accepts. */ +export enum KnownPrivateIPAllocationMethod { + /** Dynamic */ + Dynamic = "dynamic", + /** Static */ + Static = "static" } -/** The HDInsight cluster application */ -export interface Application extends ProxyResource { - /** The ETag for the application */ - etag?: string; - /** The tags for the application. */ - tags?: { [propertyName: string]: string }; - /** The properties of the application. */ - properties?: ApplicationProperties; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; +/** + * Defines values for PrivateIPAllocationMethod. \ + * {@link KnownPrivateIPAllocationMethod} can be used interchangeably with PrivateIPAllocationMethod, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **dynamic** \ + * **static** + */ +export type PrivateIPAllocationMethod = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" } -/** The HDInsight cluster. */ -export interface Cluster extends TrackedResource { - /** The ETag for the resource */ - etag?: string; - /** The availability zones. */ - zones?: string[]; - /** The properties of the cluster. */ - properties?: ClusterGetProperties; - /** The identity of the cluster, if configured. */ - identity?: ClusterIdentity; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link AsyncOperationState} that the service accepts. */ +export enum KnownAsyncOperationState { + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed" } +/** + * Defines values for AsyncOperationState. \ + * {@link KnownAsyncOperationState} can be used interchangeably with AsyncOperationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Succeeded** \ + * **Failed** + */ +export type AsyncOperationState = string; + /** Known values of {@link OSType} that the service accepts. */ export enum KnownOSType { /** Windows */ @@ -1467,39 +1592,6 @@ export enum KnownDirectoryType { */ export type DirectoryType = string; -/** Known values of {@link DaysOfWeek} that the service accepts. */ -export enum KnownDaysOfWeek { - /** Monday */ - Monday = "Monday", - /** Tuesday */ - Tuesday = "Tuesday", - /** Wednesday */ - Wednesday = "Wednesday", - /** Thursday */ - Thursday = "Thursday", - /** Friday */ - Friday = "Friday", - /** Saturday */ - Saturday = "Saturday", - /** Sunday */ - Sunday = "Sunday" -} - -/** - * Defines values for DaysOfWeek. \ - * {@link KnownDaysOfWeek} can be used interchangeably with DaysOfWeek, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** \ - * **Sunday** - */ -export type DaysOfWeek = string; - /** Known values of {@link JsonWebKeyEncryptionAlgorithm} that the service accepts. */ export enum KnownJsonWebKeyEncryptionAlgorithm { /** RSAOaep */ @@ -1557,51 +1649,6 @@ export enum KnownPrivateLink { */ export type PrivateLink = string; -/** Known values of {@link PrivateLinkConfigurationProvisioningState} that the service accepts. */ -export enum KnownPrivateLinkConfigurationProvisioningState { - /** InProgress */ - InProgress = "InProgress", - /** Failed */ - Failed = "Failed", - /** Succeeded */ - Succeeded = "Succeeded", - /** Canceled */ - Canceled = "Canceled", - /** Deleting */ - Deleting = "Deleting" -} - -/** - * Defines values for PrivateLinkConfigurationProvisioningState. \ - * {@link KnownPrivateLinkConfigurationProvisioningState} can be used interchangeably with PrivateLinkConfigurationProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **InProgress** \ - * **Failed** \ - * **Succeeded** \ - * **Canceled** \ - * **Deleting** - */ -export type PrivateLinkConfigurationProvisioningState = string; - -/** Known values of {@link PrivateIPAllocationMethod} that the service accepts. */ -export enum KnownPrivateIPAllocationMethod { - /** Dynamic */ - Dynamic = "dynamic", - /** Static */ - Static = "static" -} - -/** - * Defines values for PrivateIPAllocationMethod. \ - * {@link KnownPrivateIPAllocationMethod} can be used interchangeably with PrivateIPAllocationMethod, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **dynamic** \ - * **static** - */ -export type PrivateIPAllocationMethod = string; - /** Known values of {@link ResourceIdentityType} that the service accepts. */ export enum KnownResourceIdentityType { /** SystemAssigned */ @@ -1707,30 +1754,6 @@ export enum KnownPrivateEndpointConnectionProvisioningState { */ export type PrivateEndpointConnectionProvisioningState = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link RoleName} that the service accepts. */ export enum KnownRoleName { /** Workernode */ @@ -1746,27 +1769,6 @@ export enum KnownRoleName { */ export type RoleName = string; -/** Known values of {@link AsyncOperationState} that the service accepts. */ -export enum KnownAsyncOperationState { - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed" -} - -/** - * Defines values for AsyncOperationState. \ - * {@link KnownAsyncOperationState} can be used interchangeably with AsyncOperationState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **InProgress** \ - * **Succeeded** \ - * **Failed** - */ -export type AsyncOperationState = string; - /** Known values of {@link FilterMode} that the service accepts. */ export enum KnownFilterMode { /** Exclude */ @@ -1779,17 +1781,66 @@ export enum KnownFilterMode { Default = "Default" } -/** - * Defines values for FilterMode. \ - * {@link KnownFilterMode} can be used interchangeably with FilterMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Exclude** \ - * **Include** \ - * **Recommend** \ - * **Default** - */ -export type FilterMode = string; +/** + * Defines values for FilterMode. \ + * {@link KnownFilterMode} can be used interchangeably with FilterMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Exclude** \ + * **Include** \ + * **Recommend** \ + * **Default** + */ +export type FilterMode = string; + +/** Optional parameters. */ +export interface ApplicationsListByClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCluster operation. */ +export type ApplicationsListByClusterResponse = ApplicationListResult; + +/** Optional parameters. */ +export interface ApplicationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApplicationsGetResponse = Application; + +/** Optional parameters. */ +export interface ApplicationsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type ApplicationsCreateResponse = Application; + +/** Optional parameters. */ +export interface ApplicationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ApplicationsGetAzureAsyncOperationStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAzureAsyncOperationStatus operation. */ +export type ApplicationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; + +/** Optional parameters. */ +export interface ApplicationsListByClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByClusterNext operation. */ +export type ApplicationsListByClusterNextResponse = ApplicationListResult; /** Optional parameters. */ export interface ClustersCreateOptionalParams @@ -1922,97 +1973,6 @@ export interface ClustersListNextOptionalParams /** Contains response data for the listNext operation. */ export type ClustersListNextResponse = ClusterListResult; -/** Optional parameters. */ -export interface ApplicationsListByClusterOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCluster operation. */ -export type ApplicationsListByClusterResponse = ApplicationListResult; - -/** Optional parameters. */ -export interface ApplicationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApplicationsGetResponse = Application; - -/** Optional parameters. */ -export interface ApplicationsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type ApplicationsCreateResponse = Application; - -/** Optional parameters. */ -export interface ApplicationsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ApplicationsGetAzureAsyncOperationStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAzureAsyncOperationStatus operation. */ -export type ApplicationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; - -/** Optional parameters. */ -export interface ApplicationsListByClusterNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByClusterNext operation. */ -export type ApplicationsListByClusterNextResponse = ApplicationListResult; - -/** Optional parameters. */ -export interface LocationsGetCapabilitiesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getCapabilities operation. */ -export type LocationsGetCapabilitiesResponse = CapabilitiesResult; - -/** Optional parameters. */ -export interface LocationsListUsagesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listUsages operation. */ -export type LocationsListUsagesResponse = UsagesListResult; - -/** Optional parameters. */ -export interface LocationsListBillingSpecsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBillingSpecs operation. */ -export type LocationsListBillingSpecsResponse = BillingResponseListResult; - -/** Optional parameters. */ -export interface LocationsGetAzureAsyncOperationStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAzureAsyncOperationStatus operation. */ -export type LocationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; - -/** Optional parameters. */ -export interface LocationsCheckNameAvailabilityOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkNameAvailability operation. */ -export type LocationsCheckNameAvailabilityResponse = NameAvailabilityCheckResult; - -/** Optional parameters. */ -export interface LocationsValidateClusterCreateRequestOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validateClusterCreateRequest operation. */ -export type LocationsValidateClusterCreateRequestResponse = ClusterCreateValidationResult; - /** Optional parameters. */ export interface ConfigurationsListOptionalParams extends coreClient.OperationOptions {} @@ -2119,54 +2079,46 @@ export interface ExtensionsGetAzureAsyncOperationStatusOptionalParams export type ExtensionsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; /** Optional parameters. */ -export interface ScriptActionsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ScriptActionsListByClusterOptionalParams +export interface LocationsGetCapabilitiesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByCluster operation. */ -export type ScriptActionsListByClusterResponse = ScriptActionsList; +/** Contains response data for the getCapabilities operation. */ +export type LocationsGetCapabilitiesResponse = CapabilitiesResult; /** Optional parameters. */ -export interface ScriptActionsGetExecutionDetailOptionalParams +export interface LocationsListUsagesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getExecutionDetail operation. */ -export type ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail; +/** Contains response data for the listUsages operation. */ +export type LocationsListUsagesResponse = UsagesListResult; /** Optional parameters. */ -export interface ScriptActionsGetExecutionAsyncOperationStatusOptionalParams +export interface LocationsListBillingSpecsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getExecutionAsyncOperationStatus operation. */ -export type ScriptActionsGetExecutionAsyncOperationStatusResponse = AsyncOperationResult; +/** Contains response data for the listBillingSpecs operation. */ +export type LocationsListBillingSpecsResponse = BillingResponseListResult; /** Optional parameters. */ -export interface ScriptActionsListByClusterNextOptionalParams +export interface LocationsGetAzureAsyncOperationStatusOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByClusterNext operation. */ -export type ScriptActionsListByClusterNextResponse = ScriptActionsList; +/** Contains response data for the getAzureAsyncOperationStatus operation. */ +export type LocationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; /** Optional parameters. */ -export interface ScriptExecutionHistoryListByClusterOptionalParams +export interface LocationsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByCluster operation. */ -export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionHistoryList; - -/** Optional parameters. */ -export interface ScriptExecutionHistoryPromoteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the checkNameAvailability operation. */ +export type LocationsCheckNameAvailabilityResponse = NameAvailabilityCheckResult; /** Optional parameters. */ -export interface ScriptExecutionHistoryListByClusterNextOptionalParams +export interface LocationsValidateClusterCreateRequestOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByClusterNext operation. */ -export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecutionHistoryList; +/** Contains response data for the validateClusterCreateRequest operation. */ +export type LocationsValidateClusterCreateRequestResponse = ClusterCreateValidationResult; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -2182,29 +2134,6 @@ export interface OperationsListNextOptionalParams /** Contains response data for the listNext operation. */ export type OperationsListNextResponse = OperationListResult; -/** Optional parameters. */ -export interface VirtualMachinesListHostsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listHosts operation. */ -export type VirtualMachinesListHostsResponse = HostInfo[]; - -/** Optional parameters. */ -export interface VirtualMachinesRestartHostsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface VirtualMachinesGetAsyncOperationStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAsyncOperationStatus operation. */ -export type VirtualMachinesGetAsyncOperationStatusResponse = AsyncOperationResult; - /** Optional parameters. */ export interface PrivateEndpointConnectionsListByClusterOptionalParams extends coreClient.OperationOptions {} @@ -2261,6 +2190,79 @@ export interface PrivateLinkResourcesGetOptionalParams /** Contains response data for the get operation. */ export type PrivateLinkResourcesGetResponse = PrivateLinkResource; +/** Optional parameters. */ +export interface ScriptActionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ScriptActionsListByClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCluster operation. */ +export type ScriptActionsListByClusterResponse = ScriptActionsList; + +/** Optional parameters. */ +export interface ScriptActionsGetExecutionDetailOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getExecutionDetail operation. */ +export type ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail; + +/** Optional parameters. */ +export interface ScriptActionsGetExecutionAsyncOperationStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getExecutionAsyncOperationStatus operation. */ +export type ScriptActionsGetExecutionAsyncOperationStatusResponse = AsyncOperationResult; + +/** Optional parameters. */ +export interface ScriptActionsListByClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByClusterNext operation. */ +export type ScriptActionsListByClusterNextResponse = ScriptActionsList; + +/** Optional parameters. */ +export interface ScriptExecutionHistoryListByClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCluster operation. */ +export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionHistoryList; + +/** Optional parameters. */ +export interface ScriptExecutionHistoryPromoteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ScriptExecutionHistoryListByClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByClusterNext operation. */ +export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecutionHistoryList; + +/** Optional parameters. */ +export interface VirtualMachinesListHostsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listHosts operation. */ +export type VirtualMachinesListHostsResponse = HostInfo[]; + +/** Optional parameters. */ +export interface VirtualMachinesRestartHostsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachinesGetAsyncOperationStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAsyncOperationStatus operation. */ +export type VirtualMachinesGetAsyncOperationStatusResponse = AsyncOperationResult; + /** Optional parameters. */ export interface HDInsightManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts index 47ab74f60374..29255b600511 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts @@ -8,143 +8,138 @@ import * as coreClient from "@azure/core-client"; -export const ClusterCreateParametersExtended: coreClient.CompositeMapper = { +export const ApplicationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterCreateParametersExtended", + className: "ApplicationListResult", modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - zones: { - serializedName: "zones", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Application" } } } }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ClusterCreateProperties" - } - }, - identity: { - serializedName: "identity", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "ClusterIdentity" + name: "String" } } } } }; -export const ClusterCreateProperties: coreClient.CompositeMapper = { +export const ApplicationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterCreateProperties", + className: "ApplicationProperties", modelProperties: { - clusterVersion: { - serializedName: "clusterVersion", - type: { - name: "String" - } - }, - osType: { - serializedName: "osType", + computeProfile: { + serializedName: "computeProfile", type: { - name: "String" + name: "Composite", + className: "ComputeProfile" } }, - tier: { - serializedName: "tier", + installScriptActions: { + serializedName: "installScriptActions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptAction" + } + } } }, - clusterDefinition: { - serializedName: "clusterDefinition", + uninstallScriptActions: { + serializedName: "uninstallScriptActions", type: { - name: "Composite", - className: "ClusterDefinition" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptAction" + } + } } }, - kafkaRestProperties: { - serializedName: "kafkaRestProperties", + httpsEndpoints: { + serializedName: "httpsEndpoints", type: { - name: "Composite", - className: "KafkaRestProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGetHttpsEndpoint" + } + } } }, - securityProfile: { - serializedName: "securityProfile", + sshEndpoints: { + serializedName: "sshEndpoints", type: { - name: "Composite", - className: "SecurityProfile" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGetEndpoint" + } + } } }, - computeProfile: { - serializedName: "computeProfile", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Composite", - className: "ComputeProfile" + name: "String" } }, - storageProfile: { - serializedName: "storageProfile", + applicationType: { + serializedName: "applicationType", type: { - name: "Composite", - className: "StorageProfile" + name: "String" } }, - diskEncryptionProperties: { - serializedName: "diskEncryptionProperties", + applicationState: { + serializedName: "applicationState", + readOnly: true, type: { - name: "Composite", - className: "DiskEncryptionProperties" + name: "String" } }, - encryptionInTransitProperties: { - serializedName: "encryptionInTransitProperties", + errors: { + serializedName: "errors", type: { - name: "Composite", - className: "EncryptionInTransitProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Errors" + } + } } }, - minSupportedTlsVersion: { - serializedName: "minSupportedTlsVersion", + createdDate: { + serializedName: "createdDate", + readOnly: true, type: { name: "String" } }, - networkProperties: { - serializedName: "networkProperties", - type: { - name: "Composite", - className: "NetworkProperties" - } - }, - computeIsolationProperties: { - serializedName: "computeIsolationProperties", + marketplaceIdentifier: { + serializedName: "marketplaceIdentifier", + readOnly: true, type: { - name: "Composite", - className: "ComputeIsolationProperties" + name: "String" } }, privateLinkConfigurations: { @@ -163,213 +158,61 @@ export const ClusterCreateProperties: coreClient.CompositeMapper = { } }; -export const ClusterDefinition: coreClient.CompositeMapper = { +export const ComputeProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterDefinition", + className: "ComputeProfile", modelProperties: { - blueprint: { - serializedName: "blueprint", - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - componentVersion: { - serializedName: "componentVersion", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - configurations: { - serializedName: "configurations", + roles: { + serializedName: "roles", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Role" + } + } } } } } }; -export const KafkaRestProperties: coreClient.CompositeMapper = { +export const Role: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KafkaRestProperties", + className: "Role", modelProperties: { - clientGroupInfo: { - serializedName: "clientGroupInfo", + name: { + serializedName: "name", type: { - name: "Composite", - className: "ClientGroupInfo" + name: "String" } }, - configurationOverride: { - serializedName: "configurationOverride", + minInstanceCount: { + serializedName: "minInstanceCount", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } - } - } - } -}; - -export const ClientGroupInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClientGroupInfo", - modelProperties: { - groupName: { - serializedName: "groupName", + }, + targetInstanceCount: { + serializedName: "targetInstanceCount", type: { - name: "String" + name: "Number" } }, - groupId: { - serializedName: "groupId", + vMGroupName: { + serializedName: "VMGroupName", type: { name: "String" } - } - } - } -}; - -export const SecurityProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityProfile", - modelProperties: { - directoryType: { - serializedName: "directoryType", + }, + autoscaleConfiguration: { + serializedName: "autoscale", type: { - name: "String" - } - }, - domain: { - serializedName: "domain", - type: { - name: "String" - } - }, - organizationalUnitDN: { - serializedName: "organizationalUnitDN", - type: { - name: "String" - } - }, - ldapsUrls: { - serializedName: "ldapsUrls", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - domainUsername: { - serializedName: "domainUsername", - type: { - name: "String" - } - }, - domainUserPassword: { - serializedName: "domainUserPassword", - type: { - name: "String" - } - }, - clusterUsersGroupDNs: { - serializedName: "clusterUsersGroupDNs", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - aaddsResourceId: { - serializedName: "aaddsResourceId", - type: { - name: "String" - } - }, - msiResourceId: { - serializedName: "msiResourceId", - type: { - name: "String" - } - } - } - } -}; - -export const ComputeProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeProfile", - modelProperties: { - roles: { - serializedName: "roles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Role" - } - } - } - } - } - } -}; - -export const Role: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Role", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - minInstanceCount: { - serializedName: "minInstanceCount", - type: { - name: "Number" - } - }, - targetInstanceCount: { - serializedName: "targetInstanceCount", - type: { - name: "Number" - } - }, - vMGroupName: { - serializedName: "VMGroupName", - type: { - name: "String" - } - }, - autoscaleConfiguration: { - serializedName: "autoscale", - type: { - name: "Composite", - className: "Autoscale" + name: "Composite", + className: "Autoscale" } }, hardwareProfile: { @@ -728,187 +571,158 @@ export const ScriptAction: coreClient.CompositeMapper = { } }; -export const StorageProfile: coreClient.CompositeMapper = { +export const RuntimeScriptAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageProfile", + className: "RuntimeScriptAction", modelProperties: { - storageaccounts: { - serializedName: "storageaccounts", + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + required: true, + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "StorageAccount" + name: "String" } } } + }, + applicationName: { + serializedName: "applicationName", + readOnly: true, + type: { + name: "String" + } } } } }; -export const StorageAccount: coreClient.CompositeMapper = { +export const ApplicationGetHttpsEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageAccount", + className: "ApplicationGetHttpsEndpoint", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - isDefault: { - serializedName: "isDefault", - type: { - name: "Boolean" - } - }, - container: { - serializedName: "container", + accessModes: { + serializedName: "accessModes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - fileSystem: { - serializedName: "fileSystem", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - key: { - serializedName: "key", + destinationPort: { + serializedName: "destinationPort", type: { - name: "String" + name: "Number" } }, - resourceId: { - serializedName: "resourceId", + publicPort: { + serializedName: "publicPort", + readOnly: true, type: { - name: "String" + name: "Number" } }, - msiResourceId: { - serializedName: "msiResourceId", + privateIPAddress: { + serializedName: "privateIPAddress", type: { name: "String" } }, - saskey: { - serializedName: "saskey", + subDomainSuffix: { + serializedName: "subDomainSuffix", type: { name: "String" } }, - fileshare: { - serializedName: "fileshare", + disableGatewayAuth: { + serializedName: "disableGatewayAuth", type: { - name: "String" + name: "Boolean" } } } } }; -export const DiskEncryptionProperties: coreClient.CompositeMapper = { +export const ApplicationGetEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionProperties", + className: "ApplicationGetEndpoint", modelProperties: { - vaultUri: { - serializedName: "vaultUri", - type: { - name: "String" - } - }, - keyName: { - serializedName: "keyName", + location: { + serializedName: "location", type: { name: "String" } }, - keyVersion: { - serializedName: "keyVersion", + destinationPort: { + serializedName: "destinationPort", type: { - name: "String" + name: "Number" } }, - encryptionAlgorithm: { - serializedName: "encryptionAlgorithm", + publicPort: { + serializedName: "publicPort", type: { - name: "String" + name: "Number" } }, - msiResourceId: { - serializedName: "msiResourceId", + privateIPAddress: { + serializedName: "privateIPAddress", type: { name: "String" } - }, - encryptionAtHost: { - defaultValue: false, - serializedName: "encryptionAtHost", - type: { - name: "Boolean" - } } } } }; -export const EncryptionInTransitProperties: coreClient.CompositeMapper = { +export const Errors: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionInTransitProperties", - modelProperties: { - isEncryptionInTransitEnabled: { - defaultValue: false, - serializedName: "isEncryptionInTransitEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const NetworkProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProperties", + className: "Errors", modelProperties: { - resourceProviderConnection: { - serializedName: "resourceProviderConnection", - type: { - name: "String" - } - }, - privateLink: { - serializedName: "privateLink", + code: { + serializedName: "code", type: { name: "String" } - } - } - } -}; - -export const ComputeIsolationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeIsolationProperties", - modelProperties: { - enableComputeIsolation: { - defaultValue: false, - serializedName: "enableComputeIsolation", - type: { - name: "Boolean" - } }, - hostSku: { - serializedName: "hostSku", + message: { + serializedName: "message", type: { name: "String" } @@ -1051,65 +865,73 @@ export const ResourceId: coreClient.CompositeMapper = { } }; -export const ClusterIdentity: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterIdentity", + className: "SystemData", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - type: { - serializedName: "type", + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" } } } } }; -export const UserAssignedIdentity: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAssignedIdentity", + className: "Resource", modelProperties: { - principalId: { - serializedName: "principalId", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - clientId: { - serializedName: "clientId", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } @@ -1118,37 +940,115 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { } }; -export const ClusterGetProperties: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterGetProperties", + className: "ErrorResponse", modelProperties: { - clusterVersion: { - serializedName: "clusterVersion", + code: { + serializedName: "code", type: { name: "String" } }, - clusterHdpVersion: { - serializedName: "clusterHdpVersion", + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AsyncOperationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AsyncOperationResult", + modelProperties: { + status: { + serializedName: "status", type: { name: "String" } }, - osType: { - serializedName: "osType", + error: { + serializedName: "error", + type: { + name: "Composite", + className: "Errors" + } + } + } + } +}; + +export const ClusterCreateParametersExtended: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterCreateParametersExtended", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } }, - tier: { - serializedName: "tier", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ClusterCreateProperties" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ClusterIdentity" + } + } + } + } +}; + +export const ClusterCreateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterCreateProperties", + modelProperties: { + clusterVersion: { + serializedName: "clusterVersion", type: { name: "String" } }, - clusterId: { - serializedName: "clusterId", + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", type: { name: "String" } @@ -1181,160 +1081,134 @@ export const ClusterGetProperties: coreClient.CompositeMapper = { className: "ComputeProfile" } }, - provisioningState: { - serializedName: "provisioningState", + storageProfile: { + serializedName: "storageProfile", type: { - name: "String" + name: "Composite", + className: "StorageProfile" } }, - createdDate: { - serializedName: "createdDate", + diskEncryptionProperties: { + serializedName: "diskEncryptionProperties", type: { - name: "String" + name: "Composite", + className: "DiskEncryptionProperties" } }, - clusterState: { - serializedName: "clusterState", + encryptionInTransitProperties: { + serializedName: "encryptionInTransitProperties", + type: { + name: "Composite", + className: "EncryptionInTransitProperties" + } + }, + minSupportedTlsVersion: { + serializedName: "minSupportedTlsVersion", type: { name: "String" } }, - quotaInfo: { - serializedName: "quotaInfo", + networkProperties: { + serializedName: "networkProperties", type: { name: "Composite", - className: "QuotaInfo" + className: "NetworkProperties" } }, - errors: { - serializedName: "errors", + computeIsolationProperties: { + serializedName: "computeIsolationProperties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Errors" - } - } + name: "Composite", + className: "ComputeIsolationProperties" } }, - connectivityEndpoints: { - serializedName: "connectivityEndpoints", + privateLinkConfigurations: { + serializedName: "privateLinkConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectivityEndpoint" + className: "PrivateLinkConfiguration" } } } - }, - diskEncryptionProperties: { - serializedName: "diskEncryptionProperties", - type: { - name: "Composite", - className: "DiskEncryptionProperties" - } - }, - encryptionInTransitProperties: { - serializedName: "encryptionInTransitProperties", - type: { - name: "Composite", - className: "EncryptionInTransitProperties" - } - }, - storageProfile: { - serializedName: "storageProfile", - type: { - name: "Composite", - className: "StorageProfile" - } - }, - minSupportedTlsVersion: { - serializedName: "minSupportedTlsVersion", + } + } + } +}; + +export const ClusterDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterDefinition", + modelProperties: { + blueprint: { + serializedName: "blueprint", type: { name: "String" } }, - excludedServicesConfig: { - serializedName: "excludedServicesConfig", - type: { - name: "Composite", - className: "ExcludedServicesConfig" - } - }, - networkProperties: { - serializedName: "networkProperties", - type: { - name: "Composite", - className: "NetworkProperties" - } - }, - computeIsolationProperties: { - serializedName: "computeIsolationProperties", + kind: { + serializedName: "kind", type: { - name: "Composite", - className: "ComputeIsolationProperties" + name: "String" } }, - privateLinkConfigurations: { - serializedName: "privateLinkConfigurations", + componentVersion: { + serializedName: "componentVersion", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkConfiguration" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - privateEndpointConnections: { - serializedName: "privateEndpointConnections", - readOnly: true, + configurations: { + serializedName: "configurations", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const QuotaInfo: coreClient.CompositeMapper = { +export const KafkaRestProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaInfo", + className: "KafkaRestProperties", modelProperties: { - coresUsed: { - serializedName: "coresUsed", + clientGroupInfo: { + serializedName: "clientGroupInfo", type: { - name: "Number" + name: "Composite", + className: "ClientGroupInfo" + } + }, + configurationOverride: { + serializedName: "configurationOverride", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const Errors: coreClient.CompositeMapper = { +export const ClientGroupInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Errors", + className: "ClientGroupInfo", modelProperties: { - code: { - serializedName: "code", + groupName: { + serializedName: "groupName", type: { name: "String" } }, - message: { - serializedName: "message", + groupId: { + serializedName: "groupId", type: { name: "String" } @@ -1343,58 +1217,71 @@ export const Errors: coreClient.CompositeMapper = { } }; -export const ConnectivityEndpoint: coreClient.CompositeMapper = { +export const SecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectivityEndpoint", + className: "SecurityProfile", modelProperties: { - name: { - serializedName: "name", + directoryType: { + serializedName: "directoryType", type: { name: "String" } }, - protocol: { - serializedName: "protocol", + domain: { + serializedName: "domain", type: { name: "String" } }, - location: { - serializedName: "location", + organizationalUnitDN: { + serializedName: "organizationalUnitDN", type: { name: "String" } }, - port: { - serializedName: "port", + ldapsUrls: { + serializedName: "ldapsUrls", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - privateIPAddress: { - serializedName: "privateIPAddress", + domainUsername: { + serializedName: "domainUsername", type: { name: "String" } - } - } - } -}; - -export const ExcludedServicesConfig: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExcludedServicesConfig", - modelProperties: { - excludedServicesConfigId: { - serializedName: "excludedServicesConfigId", + }, + domainUserPassword: { + serializedName: "domainUserPassword", type: { name: "String" } }, - excludedServicesList: { - serializedName: "excludedServicesList", + clusterUsersGroupDNs: { + serializedName: "clusterUsersGroupDNs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + aaddsResourceId: { + serializedName: "aaddsResourceId", + type: { + name: "String" + } + }, + msiResourceId: { + serializedName: "msiResourceId", type: { name: "String" } @@ -1403,212 +1290,171 @@ export const ExcludedServicesConfig: coreClient.CompositeMapper = { } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const StorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "StorageProfile", modelProperties: { - id: { - serializedName: "id", + storageaccounts: { + serializedName: "storageaccounts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccount" + } + } } } } } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const StorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "StorageAccount", modelProperties: { - status: { - serializedName: "status", - required: true, + name: { + serializedName: "name", type: { name: "String" } }, - description: { - serializedName: "description", + isDefault: { + serializedName: "isDefault", type: { - name: "String" + name: "Boolean" } }, - actionsRequired: { - serializedName: "actionsRequired", + container: { + serializedName: "container", type: { name: "String" } - } - } - } -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", + }, + fileSystem: { + serializedName: "fileSystem", type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + key: { + serializedName: "key", type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", + resourceId: { + serializedName: "resourceId", type: { - name: "DateTime" + name: "String" } }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + msiResourceId: { + serializedName: "msiResourceId", type: { name: "String" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + saskey: { + serializedName: "saskey", type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + fileshare: { + serializedName: "fileshare", type: { - name: "DateTime" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" + name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + enableSecureChannel: { + serializedName: "enableSecureChannel", type: { - name: "String" + name: "Boolean" } } } } }; -export const ResourceAutoGenerated: coreClient.CompositeMapper = { +export const DiskEncryptionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated", + className: "DiskEncryptionProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + vaultUri: { + serializedName: "vaultUri", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + keyName: { + serializedName: "keyName", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + keyVersion: { + serializedName: "keyVersion", type: { name: "String" } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - code: { - serializedName: "code", + }, + encryptionAlgorithm: { + serializedName: "encryptionAlgorithm", type: { name: "String" } }, - message: { - serializedName: "message", + msiResourceId: { + serializedName: "msiResourceId", type: { name: "String" } + }, + encryptionAtHost: { + defaultValue: false, + serializedName: "encryptionAtHost", + type: { + name: "Boolean" + } } } } }; -export const ClusterPatchParameters: coreClient.CompositeMapper = { +export const EncryptionInTransitProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterPatchParameters", + className: "EncryptionInTransitProperties", modelProperties: { - tags: { - serializedName: "tags", - nullable: true, + isEncryptionInTransitEnabled: { + defaultValue: false, + serializedName: "isEncryptionInTransitEnabled", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } } } } }; -export const ClusterListResult: coreClient.CompositeMapper = { +export const NetworkProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterListResult", + className: "NetworkProperties", modelProperties: { - value: { - serializedName: "value", + resourceProviderConnection: { + serializedName: "resourceProviderConnection", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Cluster" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + privateLink: { + serializedName: "privateLink", type: { name: "String" } @@ -1617,86 +1463,87 @@ export const ClusterListResult: coreClient.CompositeMapper = { } }; -export const ClusterResizeParameters: coreClient.CompositeMapper = { +export const ComputeIsolationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterResizeParameters", + className: "ComputeIsolationProperties", modelProperties: { - targetInstanceCount: { - serializedName: "targetInstanceCount", + enableComputeIsolation: { + defaultValue: false, + serializedName: "enableComputeIsolation", type: { - name: "Number" + name: "Boolean" } - } - } - } -}; - -export const AutoscaleConfigurationUpdateParameter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoscaleConfigurationUpdateParameter", - modelProperties: { - autoscale: { - serializedName: "autoscale", + }, + hostSku: { + serializedName: "hostSku", type: { - name: "Composite", - className: "Autoscale" + name: "String" } } } } }; -export const ClusterDiskEncryptionParameters: coreClient.CompositeMapper = { +export const ClusterIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterDiskEncryptionParameters", + className: "ClusterIdentity", modelProperties: { - vaultUri: { - serializedName: "vaultUri", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - keyName: { - serializedName: "keyName", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "String" } }, - keyVersion: { - serializedName: "keyVersion", + type: { + serializedName: "type", type: { name: "String" } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" } + } + } } } } }; -export const GatewaySettings: coreClient.CompositeMapper = { +export const UserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewaySettings", + className: "UserAssignedIdentity", modelProperties: { - isCredentialEnabled: { - serializedName: "restAuthCredential\\.isEnabled", + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String" } }, - userName: { - serializedName: "restAuthCredential\\.username", + clientId: { + serializedName: "clientId", readOnly: true, type: { name: "String" } }, - password: { - serializedName: "restAuthCredential\\.password", - readOnly: true, + tenantId: { + serializedName: "tenantId", type: { name: "String" } @@ -1705,215 +1552,164 @@ export const GatewaySettings: coreClient.CompositeMapper = { } }; -export const UpdateGatewaySettingsParameters: coreClient.CompositeMapper = { +export const ClusterGetProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateGatewaySettingsParameters", + className: "ClusterGetProperties", modelProperties: { - isCredentialEnabled: { - defaultValue: true, - serializedName: "restAuthCredential\\.isEnabled", + clusterVersion: { + serializedName: "clusterVersion", type: { - name: "Boolean" + name: "String" } }, - userName: { - serializedName: "restAuthCredential\\.username", + clusterHdpVersion: { + serializedName: "clusterHdpVersion", type: { name: "String" } }, - password: { - serializedName: "restAuthCredential\\.password", + osType: { + serializedName: "osType", type: { name: "String" } - } - } - } -}; - -export const AsyncOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AsyncOperationResult", - modelProperties: { - status: { - serializedName: "status", + }, + tier: { + serializedName: "tier", type: { name: "String" } }, - error: { - serializedName: "error", + clusterId: { + serializedName: "clusterId", type: { - name: "Composite", - className: "Errors" + name: "String" } - } - } - } -}; - -export const UpdateClusterIdentityCertificateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateClusterIdentityCertificateParameters", - modelProperties: { - applicationId: { - serializedName: "applicationId", + }, + clusterDefinition: { + serializedName: "clusterDefinition", type: { - name: "String" + name: "Composite", + className: "ClusterDefinition" } }, - certificate: { - serializedName: "certificate", + kafkaRestProperties: { + serializedName: "kafkaRestProperties", type: { - name: "String" + name: "Composite", + className: "KafkaRestProperties" } }, - certificatePassword: { - serializedName: "certificatePassword", + securityProfile: { + serializedName: "securityProfile", type: { - name: "String" + name: "Composite", + className: "SecurityProfile" } - } - } - } -}; - -export const ApplicationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + computeProfile: { + serializedName: "computeProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Application" - } - } + name: "Composite", + className: "ComputeProfile" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + provisioningState: { + serializedName: "provisioningState", type: { name: "String" } - } - } - } -}; - -export const ApplicationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationProperties", - modelProperties: { - computeProfile: { - serializedName: "computeProfile", + }, + createdDate: { + serializedName: "createdDate", type: { - name: "Composite", - className: "ComputeProfile" + name: "String" } }, - installScriptActions: { - serializedName: "installScriptActions", + clusterState: { + serializedName: "clusterState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuntimeScriptAction" - } - } + name: "String" } }, - uninstallScriptActions: { - serializedName: "uninstallScriptActions", + quotaInfo: { + serializedName: "quotaInfo", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuntimeScriptAction" - } - } + name: "Composite", + className: "QuotaInfo" } }, - httpsEndpoints: { - serializedName: "httpsEndpoints", + errors: { + serializedName: "errors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGetHttpsEndpoint" + className: "Errors" } } } }, - sshEndpoints: { - serializedName: "sshEndpoints", + connectivityEndpoints: { + serializedName: "connectivityEndpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGetEndpoint" + className: "ConnectivityEndpoint" } } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + diskEncryptionProperties: { + serializedName: "diskEncryptionProperties", type: { - name: "String" + name: "Composite", + className: "DiskEncryptionProperties" } }, - applicationType: { - serializedName: "applicationType", + encryptionInTransitProperties: { + serializedName: "encryptionInTransitProperties", type: { - name: "String" + name: "Composite", + className: "EncryptionInTransitProperties" } }, - applicationState: { - serializedName: "applicationState", - readOnly: true, + storageProfile: { + serializedName: "storageProfile", + type: { + name: "Composite", + className: "StorageProfile" + } + }, + minSupportedTlsVersion: { + serializedName: "minSupportedTlsVersion", type: { name: "String" } }, - errors: { - serializedName: "errors", + excludedServicesConfig: { + serializedName: "excludedServicesConfig", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Errors" - } - } + name: "Composite", + className: "ExcludedServicesConfig" } }, - createdDate: { - serializedName: "createdDate", - readOnly: true, + networkProperties: { + serializedName: "networkProperties", type: { - name: "String" + name: "Composite", + className: "NetworkProperties" } }, - marketplaceIdentifier: { - serializedName: "marketplaceIdentifier", - readOnly: true, + computeIsolationProperties: { + serializedName: "computeIsolationProperties", type: { - name: "String" + name: "Composite", + className: "ComputeIsolationProperties" } }, privateLinkConfigurations: { @@ -1927,91 +1723,64 @@ export const ApplicationProperties: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const RuntimeScriptAction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuntimeScriptAction", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - required: true, - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "String" - } }, - roles: { - serializedName: "roles", - required: true, + privateEndpointConnections: { + serializedName: "privateEndpointConnections", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PrivateEndpointConnection" } } } - }, - applicationName: { - serializedName: "applicationName", - readOnly: true, + } + } + } +}; + +export const QuotaInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaInfo", + modelProperties: { + coresUsed: { + serializedName: "coresUsed", type: { - name: "String" + name: "Number" } } } } }; -export const ApplicationGetHttpsEndpoint: coreClient.CompositeMapper = { +export const ConnectivityEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGetHttpsEndpoint", + className: "ConnectivityEndpoint", modelProperties: { - accessModes: { - serializedName: "accessModes", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + protocol: { + serializedName: "protocol", type: { name: "String" } }, - destinationPort: { - serializedName: "destinationPort", + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } }, - publicPort: { - serializedName: "publicPort", - readOnly: true, + port: { + serializedName: "port", type: { name: "Number" } @@ -2021,48 +1790,67 @@ export const ApplicationGetHttpsEndpoint: coreClient.CompositeMapper = { type: { name: "String" } - }, - subDomainSuffix: { - serializedName: "subDomainSuffix", + } + } + } +}; + +export const ExcludedServicesConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExcludedServicesConfig", + modelProperties: { + excludedServicesConfigId: { + serializedName: "excludedServicesConfigId", type: { name: "String" } }, - disableGatewayAuth: { - serializedName: "disableGatewayAuth", + excludedServicesList: { + serializedName: "excludedServicesList", type: { - name: "Boolean" + name: "String" } } } } }; -export const ApplicationGetEndpoint: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGetEndpoint", + className: "PrivateEndpoint", modelProperties: { - location: { - serializedName: "location", + id: { + serializedName: "id", type: { name: "String" } - }, - destinationPort: { - serializedName: "destinationPort", - type: { - name: "Number" + } + } + } +}; + +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String" } }, - publicPort: { - serializedName: "publicPort", + description: { + serializedName: "description", type: { - name: "Number" + name: "String" } }, - privateIPAddress: { - serializedName: "privateIPAddress", + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } @@ -2071,252 +1859,255 @@ export const ApplicationGetEndpoint: coreClient.CompositeMapper = { } }; -export const CapabilitiesResult: coreClient.CompositeMapper = { +export const ResourceAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapabilitiesResult", + className: "ResourceAutoGenerated", modelProperties: { - versions: { - serializedName: "versions", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "VersionsCapability" } - } + name: "String" } }, - regions: { - serializedName: "regions", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "RegionsCapability" } } + name: "String" } }, - features: { - serializedName: "features", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - quota: { - serializedName: "quota", + } + } + } +}; + +export const ClusterPatchParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterPatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + nullable: true, type: { - name: "Composite", - className: "QuotaCapability" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const VersionsCapability: coreClient.CompositeMapper = { +export const ClusterListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VersionsCapability", + className: "ClusterListResult", modelProperties: { - available: { - serializedName: "available", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VersionSpec" + className: "Cluster" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const VersionSpec: coreClient.CompositeMapper = { +export const ClusterResizeParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VersionSpec", + className: "ClusterResizeParameters", modelProperties: { - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - isDefault: { - serializedName: "isDefault", - type: { - name: "Boolean" - } - }, - componentVersions: { - serializedName: "componentVersions", + targetInstanceCount: { + serializedName: "targetInstanceCount", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } } } } }; -export const RegionsCapability: coreClient.CompositeMapper = { +export const AutoscaleConfigurationUpdateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegionsCapability", + className: "AutoscaleConfigurationUpdateParameter", modelProperties: { - available: { - serializedName: "available", + autoscale: { + serializedName: "autoscale", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "Autoscale" } } } } }; -export const QuotaCapability: coreClient.CompositeMapper = { +export const ClusterDiskEncryptionParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaCapability", + className: "ClusterDiskEncryptionParameters", modelProperties: { - coresUsed: { - serializedName: "coresUsed", + vaultUri: { + serializedName: "vaultUri", type: { - name: "Number" + name: "String" } }, - maxCoresAllowed: { - serializedName: "maxCoresAllowed", + keyName: { + serializedName: "keyName", type: { - name: "Number" + name: "String" } }, - regionalQuotas: { - serializedName: "regionalQuotas", + keyVersion: { + serializedName: "keyVersion", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionalQuotaCapability" - } - } + name: "String" } } } } }; -export const RegionalQuotaCapability: coreClient.CompositeMapper = { +export const GatewaySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegionalQuotaCapability", + className: "GatewaySettings", modelProperties: { - regionName: { - serializedName: "regionName", + isCredentialEnabled: { + serializedName: "restAuthCredential\\.isEnabled", + readOnly: true, type: { name: "String" } }, - coresUsed: { - serializedName: "coresUsed", + userName: { + serializedName: "restAuthCredential\\.username", + readOnly: true, type: { - name: "Number" + name: "String" } }, - coresAvailable: { - serializedName: "coresAvailable", + password: { + serializedName: "restAuthCredential\\.password", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const UsagesListResult: coreClient.CompositeMapper = { +export const UpdateGatewaySettingsParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsagesListResult", + className: "UpdateGatewaySettingsParameters", modelProperties: { - value: { - serializedName: "value", + isCredentialEnabled: { + defaultValue: true, + serializedName: "restAuthCredential\\.isEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage" - } - } + name: "Boolean" + } + }, + userName: { + serializedName: "restAuthCredential\\.username", + type: { + name: "String" + } + }, + password: { + serializedName: "restAuthCredential\\.password", + type: { + name: "String" } } } } }; -export const Usage: coreClient.CompositeMapper = { +export const UpdateClusterIdentityCertificateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "UpdateClusterIdentityCertificateParameters", modelProperties: { - unit: { - serializedName: "unit", + applicationId: { + serializedName: "applicationId", type: { name: "String" } }, - currentValue: { - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", + certificate: { + serializedName: "certificate", type: { - name: "Number" + name: "String" } }, - name: { - serializedName: "name", + certificatePassword: { + serializedName: "certificatePassword", type: { - name: "Composite", - className: "LocalizedName" + name: "String" } } } } }; -export const LocalizedName: coreClient.CompositeMapper = { +export const ClusterConfigurations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LocalizedName", + className: "ClusterConfigurations", modelProperties: { - value: { - serializedName: "value", - type: { + configurations: { + serializedName: "configurations", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "String" } } } + } + } + } + } + } +}; + +export const ClusterMonitoringRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterMonitoringRequest", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", + type: { name: "String" } }, - localizedValue: { - serializedName: "localizedValue", + primaryKey: { + serializedName: "primaryKey", type: { name: "String" } @@ -2325,159 +2116,145 @@ export const LocalizedName: coreClient.CompositeMapper = { } }; -export const BillingResponseListResult: coreClient.CompositeMapper = { +export const ClusterMonitoringResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BillingResponseListResult", + className: "ClusterMonitoringResponse", modelProperties: { - vmSizes: { - serializedName: "vmSizes", + clusterMonitoringEnabled: { + serializedName: "clusterMonitoringEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - vmSizesWithEncryptionAtHost: { - serializedName: "vmSizesWithEncryptionAtHost", + workspaceId: { + serializedName: "workspaceId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - vmSizeFilters: { - serializedName: "vmSizeFilters", + } + } + } +}; + +export const AzureMonitorRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureMonitorRequest", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmSizeCompatibilityFilterV2" - } - } + name: "String" } }, - vmSizeProperties: { - serializedName: "vmSizeProperties", - readOnly: true, + primaryKey: { + serializedName: "primaryKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmSizeProperty" - } - } + name: "String" } }, - billingResources: { - serializedName: "billingResources", + selectedConfigurations: { + serializedName: "selectedConfigurations", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BillingResources" - } - } + name: "Composite", + className: "AzureMonitorSelectedConfigurations" } } } } }; -export const VmSizeCompatibilityFilterV2: coreClient.CompositeMapper = { +export const AzureMonitorSelectedConfigurations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VmSizeCompatibilityFilterV2", + className: "AzureMonitorSelectedConfigurations", modelProperties: { - filterMode: { - serializedName: "filterMode", + configurationVersion: { + serializedName: "configurationVersion", type: { name: "String" } }, - regions: { - serializedName: "regions", + globalConfigurations: { + serializedName: "globalConfigurations", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - clusterFlavors: { - serializedName: "clusterFlavors", + tableList: { + serializedName: "tableList", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AzureMonitorTableConfiguration" } } } - }, - nodeTypes: { - serializedName: "nodeTypes", + } + } + } +}; + +export const AzureMonitorTableConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureMonitorTableConfiguration", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - clusterVersions: { - serializedName: "clusterVersions", + } + } + } +}; + +export const AzureMonitorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureMonitorResponse", + modelProperties: { + clusterMonitoringEnabled: { + serializedName: "clusterMonitoringEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - osType: { - serializedName: "osType", + workspaceId: { + serializedName: "workspaceId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - vmSizes: { - serializedName: "vmSizes", + selectedConfigurations: { + serializedName: "selectedConfigurations", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "AzureMonitorSelectedConfigurations" } - }, - espApplied: { - serializedName: "espApplied", + } + } + } +}; + +export const Extension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Extension", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", type: { name: "String" } }, - computeIsolationSupported: { - serializedName: "computeIsolationSupported", + primaryKey: { + serializedName: "primaryKey", type: { name: "String" } @@ -2486,106 +2263,149 @@ export const VmSizeCompatibilityFilterV2: coreClient.CompositeMapper = { } }; -export const VmSizeProperty: coreClient.CompositeMapper = { +export const CapabilitiesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VmSizeProperty", + className: "CapabilitiesResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - cores: { - serializedName: "cores", + versions: { + serializedName: "versions", type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Composite", className: "VersionsCapability" } + } } }, - dataDiskStorageTier: { - serializedName: "dataDiskStorageTier", + regions: { + serializedName: "regions", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "RegionsCapability" } } } }, - label: { - serializedName: "label", + features: { + serializedName: "features", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - maxDataDiskCount: { - serializedName: "maxDataDiskCount", + quota: { + serializedName: "quota", type: { - name: "Number" + name: "Composite", + className: "QuotaCapability" } - }, - memoryInMb: { - serializedName: "memoryInMb", + } + } + } +}; + +export const VersionsCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VersionsCapability", + modelProperties: { + available: { + serializedName: "available", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VersionSpec" + } + } } - }, - supportedByVirtualMachines: { - serializedName: "supportedByVirtualMachines", + } + } + } +}; + +export const VersionSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VersionSpec", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", type: { - name: "Boolean" + name: "String" } }, - supportedByWebWorkerRoles: { - serializedName: "supportedByWebWorkerRoles", + displayName: { + serializedName: "displayName", type: { - name: "Boolean" + name: "String" } }, - virtualMachineResourceDiskSizeInMb: { - serializedName: "virtualMachineResourceDiskSizeInMb", + isDefault: { + serializedName: "isDefault", type: { - name: "Number" + name: "Boolean" } }, - webWorkerResourceDiskSizeInMb: { - serializedName: "webWorkerResourceDiskSizeInMb", + componentVersions: { + serializedName: "componentVersions", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const BillingResources: coreClient.CompositeMapper = { +export const RegionsCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BillingResources", + className: "RegionsCapability", modelProperties: { - region: { - serializedName: "region", - type: { - name: "String" - } - }, - billingMeters: { - serializedName: "billingMeters", + available: { + serializedName: "available", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "BillingMeters" + name: "String" } } } + } + } + } +}; + +export const QuotaCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaCapability", + modelProperties: { + coresUsed: { + serializedName: "coresUsed", + type: { + name: "Number" + } }, - diskBillingMeters: { - serializedName: "diskBillingMeters", + maxCoresAllowed: { + serializedName: "maxCoresAllowed", + type: { + name: "Number" + } + }, + regionalQuotas: { + serializedName: "regionalQuotas", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskBillingMeters" + className: "RegionalQuotaCapability" } } } @@ -2594,73 +2414,101 @@ export const BillingResources: coreClient.CompositeMapper = { } }; -export const BillingMeters: coreClient.CompositeMapper = { +export const RegionalQuotaCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BillingMeters", + className: "RegionalQuotaCapability", modelProperties: { - meterParameter: { - serializedName: "meterParameter", + regionName: { + serializedName: "regionName", type: { name: "String" } }, - meter: { - serializedName: "meter", + coresUsed: { + serializedName: "coresUsed", type: { - name: "String" + name: "Number" } }, - unit: { - serializedName: "unit", + coresAvailable: { + serializedName: "coresAvailable", type: { - name: "String" + name: "Number" } } } } }; -export const DiskBillingMeters: coreClient.CompositeMapper = { +export const UsagesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskBillingMeters", + className: "UsagesListResult", modelProperties: { - diskRpMeter: { - serializedName: "diskRpMeter", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + } + } + } +}; + +export const Usage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Usage", + modelProperties: { + unit: { + serializedName: "unit", type: { name: "String" } }, - sku: { - serializedName: "sku", + currentValue: { + serializedName: "currentValue", type: { - name: "String" + name: "Number" } }, - tier: { - serializedName: "tier", + limit: { + serializedName: "limit", type: { - name: "String" + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "LocalizedName" } } } } }; -export const NameAvailabilityCheckRequestParameters: coreClient.CompositeMapper = { +export const LocalizedName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NameAvailabilityCheckRequestParameters", + className: "LocalizedName", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", type: { name: "String" } }, - type: { - serializedName: "type", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } @@ -2669,353 +2517,371 @@ export const NameAvailabilityCheckRequestParameters: coreClient.CompositeMapper } }; -export const NameAvailabilityCheckResult: coreClient.CompositeMapper = { +export const BillingResponseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NameAvailabilityCheckResult", + className: "BillingResponseListResult", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + vmSizes: { + serializedName: "vmSizes", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - reason: { - serializedName: "reason", - readOnly: true, + vmSizesWithEncryptionAtHost: { + serializedName: "vmSizesWithEncryptionAtHost", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - message: { - serializedName: "message", + vmSizeFilters: { + serializedName: "vmSizeFilters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VmSizeCompatibilityFilterV2" + } + } + } + }, + vmSizeProperties: { + serializedName: "vmSizeProperties", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VmSizeProperty" + } + } + } + }, + billingResources: { + serializedName: "billingResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BillingResources" + } + } } } } } }; -export const ClusterCreateValidationResult: coreClient.CompositeMapper = { +export const VmSizeCompatibilityFilterV2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterCreateValidationResult", + className: "VmSizeCompatibilityFilterV2", modelProperties: { - validationErrors: { - serializedName: "validationErrors", + filterMode: { + serializedName: "filterMode", + type: { + name: "String" + } + }, + regions: { + serializedName: "regions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clusterFlavors: { + serializedName: "clusterFlavors", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nodeTypes: { + serializedName: "nodeTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clusterVersions: { + serializedName: "clusterVersions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ValidationErrorInfo" + name: "String" } } } }, - validationWarnings: { - serializedName: "validationWarnings", + osType: { + serializedName: "osType", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ValidationErrorInfo" + name: "String" } } } }, - estimatedCreationDuration: { - serializedName: "estimatedCreationDuration", - type: { - name: "TimeSpan" - } - }, - aaddsResourcesDetails: { - serializedName: "aaddsResourcesDetails", + vmSizes: { + serializedName: "vmSizes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AaddsResourceDetails" + name: "String" } } } - } - } - } -}; - -export const ValidationErrorInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidationErrorInfo", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } }, - message: { - serializedName: "message", + espApplied: { + serializedName: "espApplied", type: { name: "String" } }, - errorResource: { - serializedName: "errorResource", + computeIsolationSupported: { + serializedName: "computeIsolationSupported", type: { name: "String" } - }, - messageArguments: { - serializedName: "messageArguments", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const AaddsResourceDetails: coreClient.CompositeMapper = { +export const VmSizeProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AaddsResourceDetails", + className: "VmSizeProperty", modelProperties: { - domainName: { - serializedName: "domainName", + name: { + serializedName: "name", type: { name: "String" } }, - initialSyncComplete: { - serializedName: "initialSyncComplete", + cores: { + serializedName: "cores", type: { - name: "Boolean" + name: "Number" } }, - ldapsEnabled: { - serializedName: "ldapsEnabled", + dataDiskStorageTier: { + serializedName: "dataDiskStorageTier", type: { - name: "Boolean" + name: "String" } }, - ldapsPublicCertificateInBase64: { - serializedName: "ldapsPublicCertificateInBase64", + label: { + serializedName: "label", type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + maxDataDiskCount: { + serializedName: "maxDataDiskCount", type: { - name: "String" + name: "Number" } }, - subnetId: { - serializedName: "subnetId", + memoryInMb: { + serializedName: "memoryInMb", type: { - name: "String" + name: "Number" } }, - tenantId: { - serializedName: "tenantId", + supportedByVirtualMachines: { + serializedName: "supportedByVirtualMachines", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ClusterConfigurations: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterConfigurations", - modelProperties: { - configurations: { - serializedName: "configurations", + }, + supportedByWebWorkerRoles: { + serializedName: "supportedByWebWorkerRoles", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "String" } } } - } + name: "Boolean" } - } - } - } -}; - -export const ClusterMonitoringRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterMonitoringRequest", - modelProperties: { - workspaceId: { - serializedName: "workspaceId", + }, + virtualMachineResourceDiskSizeInMb: { + serializedName: "virtualMachineResourceDiskSizeInMb", type: { - name: "String" + name: "Number" } }, - primaryKey: { - serializedName: "primaryKey", + webWorkerResourceDiskSizeInMb: { + serializedName: "webWorkerResourceDiskSizeInMb", type: { - name: "String" + name: "Number" } } } } }; -export const ClusterMonitoringResponse: coreClient.CompositeMapper = { +export const BillingResources: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterMonitoringResponse", + className: "BillingResources", modelProperties: { - clusterMonitoringEnabled: { - serializedName: "clusterMonitoringEnabled", + region: { + serializedName: "region", type: { - name: "Boolean" + name: "String" } }, - workspaceId: { - serializedName: "workspaceId", + billingMeters: { + serializedName: "billingMeters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BillingMeters" + } + } + } + }, + diskBillingMeters: { + serializedName: "diskBillingMeters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskBillingMeters" + } + } } } } } }; -export const AzureMonitorRequest: coreClient.CompositeMapper = { +export const BillingMeters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureMonitorRequest", + className: "BillingMeters", modelProperties: { - workspaceId: { - serializedName: "workspaceId", + meterParameter: { + serializedName: "meterParameter", type: { name: "String" } }, - primaryKey: { - serializedName: "primaryKey", + meter: { + serializedName: "meter", type: { name: "String" } }, - selectedConfigurations: { - serializedName: "selectedConfigurations", + unit: { + serializedName: "unit", type: { - name: "Composite", - className: "AzureMonitorSelectedConfigurations" + name: "String" } } } } }; -export const AzureMonitorSelectedConfigurations: coreClient.CompositeMapper = { +export const DiskBillingMeters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureMonitorSelectedConfigurations", + className: "DiskBillingMeters", modelProperties: { - configurationVersion: { - serializedName: "configurationVersion", + diskRpMeter: { + serializedName: "diskRpMeter", type: { name: "String" } }, - globalConfigurations: { - serializedName: "globalConfigurations", + sku: { + serializedName: "sku", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - tableList: { - serializedName: "tableList", + tier: { + serializedName: "tier", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMonitorTableConfiguration" - } - } + name: "String" } } } } }; -export const AzureMonitorTableConfiguration: coreClient.CompositeMapper = { +export const NameAvailabilityCheckRequestParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureMonitorTableConfiguration", + className: "NameAvailabilityCheckRequestParameters", modelProperties: { name: { serializedName: "name", type: { name: "String" } - } - } - } -}; - -export const AzureMonitorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureMonitorResponse", - modelProperties: { - clusterMonitoringEnabled: { - serializedName: "clusterMonitoringEnabled", - type: { - name: "Boolean" - } }, - workspaceId: { - serializedName: "workspaceId", + type: { + serializedName: "type", type: { name: "String" } - }, - selectedConfigurations: { - serializedName: "selectedConfigurations", - type: { - name: "Composite", - className: "AzureMonitorSelectedConfigurations" - } } } } }; -export const Extension: coreClient.CompositeMapper = { +export const NameAvailabilityCheckResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Extension", + className: "NameAvailabilityCheckResult", modelProperties: { - workspaceId: { - serializedName: "workspaceId", + nameAvailable: { + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + readOnly: true, type: { name: "String" } }, - primaryKey: { - serializedName: "primaryKey", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } @@ -3024,106 +2890,138 @@ export const Extension: coreClient.CompositeMapper = { } }; -export const ExecuteScriptActionParameters: coreClient.CompositeMapper = { +export const ClusterCreateValidationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExecuteScriptActionParameters", + className: "ClusterCreateValidationResult", modelProperties: { - scriptActions: { - serializedName: "scriptActions", + validationErrors: { + serializedName: "validationErrors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RuntimeScriptAction" + className: "ValidationErrorInfo" } } } }, - persistOnSuccess: { - serializedName: "persistOnSuccess", - required: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const ScriptActionsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScriptActionsList", - modelProperties: { - value: { - serializedName: "value", + validationWarnings: { + serializedName: "validationWarnings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RuntimeScriptActionDetail" + className: "ValidationErrorInfo" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + estimatedCreationDuration: { + serializedName: "estimatedCreationDuration", type: { - name: "String" + name: "TimeSpan" + } + }, + aaddsResourcesDetails: { + serializedName: "aaddsResourcesDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AaddsResourceDetails" + } + } } } } } }; -export const ScriptActionExecutionSummary: coreClient.CompositeMapper = { +export const ValidationErrorInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptActionExecutionSummary", + className: "ValidationErrorInfo", modelProperties: { - status: { - serializedName: "status", - readOnly: true, + code: { + serializedName: "code", type: { name: "String" } }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, + message: { + serializedName: "message", type: { - name: "Number" + name: "String" + } + }, + errorResource: { + serializedName: "errorResource", + type: { + name: "String" + } + }, + messageArguments: { + serializedName: "messageArguments", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ScriptActionExecutionHistoryList: coreClient.CompositeMapper = { +export const AaddsResourceDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptActionExecutionHistoryList", + className: "AaddsResourceDetails", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + domainName: { + serializedName: "domainName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuntimeScriptActionDetail" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + initialSyncComplete: { + serializedName: "initialSyncComplete", + type: { + name: "Boolean" + } + }, + ldapsEnabled: { + serializedName: "ldapsEnabled", + type: { + name: "Boolean" + } + }, + ldapsPublicCertificateInBase64: { + serializedName: "ldapsPublicCertificateInBase64", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", type: { name: "String" } @@ -3385,79 +3283,181 @@ export const MetricSpecifications: coreClient.CompositeMapper = { } }; -export const Dimension: coreClient.CompositeMapper = { +export const Dimension: coreClient.CompositeMapper = { + 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 PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + +export const ExecuteScriptActionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExecuteScriptActionParameters", + modelProperties: { + scriptActions: { + serializedName: "scriptActions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptAction" + } + } + } + }, + persistOnSuccess: { + serializedName: "persistOnSuccess", + required: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ScriptActionsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Dimension", + className: "ScriptActionsList", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptActionDetail" + } + } } }, - internalName: { - serializedName: "internalName", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - toBeExportedForShoebox: { - serializedName: "toBeExportedForShoebox", - type: { - name: "Boolean" - } } } } }; -export const HostInfo: coreClient.CompositeMapper = { +export const ScriptActionExecutionSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HostInfo", + className: "ScriptActionExecutionSummary", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - fqdn: { - serializedName: "fqdn", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - effectiveDiskEncryptionKeyUrl: { - serializedName: "effectiveDiskEncryptionKeyUrl", + instanceCount: { + serializedName: "instanceCount", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const ScriptActionExecutionHistoryList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "ScriptActionExecutionHistoryList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "RuntimeScriptActionDetail" } } } @@ -3473,21 +3473,27 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const HostInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "HostInfo", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } + name: "String" + } + }, + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + effectiveDiskEncryptionKeyUrl: { + serializedName: "effectiveDiskEncryptionKeyUrl", + type: { + name: "String" } } } @@ -3566,40 +3572,81 @@ export const ScriptActionPersistedGetResponseSpec: coreClient.CompositeMapper = } }; -export const ClusterCreateRequestValidationParameters: coreClient.CompositeMapper = { +export const RuntimeScriptActionDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterCreateRequestValidationParameters", + className: "RuntimeScriptActionDetail", modelProperties: { - ...ClusterCreateParametersExtended.type.modelProperties, - name: { - serializedName: "name", + ...RuntimeScriptAction.type.modelProperties, + scriptExecutionId: { + serializedName: "scriptExecutionId", + readOnly: true, + type: { + name: "Number" + } + }, + startTime: { + serializedName: "startTime", + readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + endTime: { + serializedName: "endTime", + readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - fetchAaddsResource: { - serializedName: "fetchAaddsResource", + operation: { + serializedName: "operation", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + executionSummary: { + serializedName: "executionSummary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScriptActionExecutionSummary" + } + } + } + }, + debugInformation: { + serializedName: "debugInformation", + readOnly: true, + type: { + name: "String" } } } } }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3645,12 +3692,36 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const ProxyResource: coreClient.CompositeMapper = { +export const ClusterCreateRequestValidationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyResource", + className: "ClusterCreateRequestValidationParameters", modelProperties: { - ...Resource.type.modelProperties + ...ClusterCreateParametersExtended.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + }, + fetchAaddsResource: { + serializedName: "fetchAaddsResource", + type: { + name: "Boolean" + } + } } } }; @@ -3726,71 +3797,6 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } }; -export const RuntimeScriptActionDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuntimeScriptActionDetail", - modelProperties: { - ...RuntimeScriptAction.type.modelProperties, - scriptExecutionId: { - serializedName: "scriptExecutionId", - readOnly: true, - type: { - name: "Number" - } - }, - startTime: { - serializedName: "startTime", - readOnly: true, - type: { - name: "String" - } - }, - endTime: { - serializedName: "endTime", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String" - } - }, - executionSummary: { - serializedName: "executionSummary", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScriptActionExecutionSummary" - } - } - } - }, - debugInformation: { - serializedName: "debugInformation", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const Application: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts index 4195b39dd245..22c759f50cd7 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts @@ -12,6 +12,7 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + Application as ApplicationMapper, ClusterCreateParametersExtended as ClusterCreateParametersExtendedMapper, ClusterPatchParameters as ClusterPatchParametersMapper, ClusterResizeParameters as ClusterResizeParametersMapper, @@ -20,32 +21,14 @@ import { UpdateGatewaySettingsParameters as UpdateGatewaySettingsParametersMapper, UpdateClusterIdentityCertificateParameters as UpdateClusterIdentityCertificateParametersMapper, ExecuteScriptActionParameters as ExecuteScriptActionParametersMapper, - Application as ApplicationMapper, - NameAvailabilityCheckRequestParameters as NameAvailabilityCheckRequestParametersMapper, - ClusterCreateRequestValidationParameters as ClusterCreateRequestValidationParametersMapper, ClusterMonitoringRequest as ClusterMonitoringRequestMapper, AzureMonitorRequest as AzureMonitorRequestMapper, Extension as ExtensionMapper, + NameAvailabilityCheckRequestParameters as NameAvailabilityCheckRequestParametersMapper, + ClusterCreateRequestValidationParameters as ClusterCreateRequestValidationParametersMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper } from "../models/mappers"; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterCreateParametersExtendedMapper -}; - export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -106,7 +89,7 @@ export const clusterName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-06-01", + defaultValue: "2023-04-15-preview", isConstant: true, serializedName: "api-version", type: { @@ -115,20 +98,10 @@ export const apiVersion: OperationQueryParameter = { } }; -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterPatchParametersMapper -}; - -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterResizeParametersMapper -}; - -export const roleName: OperationURLParameter = { - parameterPath: "roleName", +export const applicationName: OperationURLParameter = { + parameterPath: "applicationName", mapper: { - serializedName: "roleName", + serializedName: "applicationName", required: true, type: { name: "String" @@ -136,19 +109,21 @@ export const roleName: OperationURLParameter = { } }; -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: AutoscaleConfigurationUpdateParameterMapper -}; - -export const parameters4: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterDiskEncryptionParametersMapper +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } }; -export const parameters5: OperationParameter = { +export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: UpdateGatewaySettingsParametersMapper + mapper: ApplicationMapper }; export const operationId: OperationURLParameter = { @@ -162,16 +137,6 @@ export const operationId: OperationURLParameter = { } }; -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: UpdateClusterIdentityCertificateParametersMapper -}; - -export const parameters7: OperationParameter = { - parameterPath: "parameters", - mapper: ExecuteScriptActionParametersMapper -}; - export const nextLink: OperationURLParameter = { parameterPath: "nextLink", mapper: { @@ -184,26 +149,25 @@ export const nextLink: OperationURLParameter = { skipEncoding: true }; -export const applicationName: OperationURLParameter = { - parameterPath: "applicationName", - mapper: { - serializedName: "applicationName", - required: true, - type: { - name: "String" - } - } +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterCreateParametersExtendedMapper }; -export const parameters8: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationMapper + mapper: ClusterPatchParametersMapper }; -export const location: OperationURLParameter = { - parameterPath: "location", +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterResizeParametersMapper +}; + +export const roleName: OperationURLParameter = { + parameterPath: "roleName", mapper: { - serializedName: "location", + serializedName: "roleName", required: true, type: { name: "String" @@ -211,17 +175,32 @@ export const location: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: NameAvailabilityCheckRequestParametersMapper + mapper: AutoscaleConfigurationUpdateParameterMapper }; -export const parameters10: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: ClusterCreateRequestValidationParametersMapper + mapper: ClusterDiskEncryptionParametersMapper }; -export const parameters11: OperationParameter = { +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: UpdateGatewaySettingsParametersMapper +}; + +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: UpdateClusterIdentityCertificateParametersMapper +}; + +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: ExecuteScriptActionParametersMapper +}; + +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: { serializedName: "parameters", @@ -244,17 +223,17 @@ export const configurationName: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: ClusterMonitoringRequestMapper }; -export const parameters13: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: AzureMonitorRequestMapper }; -export const parameters14: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: ExtensionMapper }; @@ -270,10 +249,10 @@ export const extensionName: OperationURLParameter = { } }; -export const scriptName: OperationURLParameter = { - parameterPath: "scriptName", +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { - serializedName: "scriptName", + serializedName: "location", required: true, type: { name: "String" @@ -281,10 +260,25 @@ export const scriptName: OperationURLParameter = { } }; -export const scriptExecutionId: OperationURLParameter = { - parameterPath: "scriptExecutionId", +export const parameters13: OperationParameter = { + parameterPath: "parameters", + mapper: NameAvailabilityCheckRequestParametersMapper +}; + +export const parameters14: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterCreateRequestValidationParametersMapper +}; + +export const parameters15: OperationParameter = { + parameterPath: "parameters", + mapper: PrivateEndpointConnectionMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { - serializedName: "scriptExecutionId", + serializedName: "privateEndpointConnectionName", required: true, type: { name: "String" @@ -292,31 +286,32 @@ export const scriptExecutionId: OperationURLParameter = { } }; -export const hosts: OperationParameter = { - parameterPath: "hosts", +export const privateLinkResourceName: OperationURLParameter = { + parameterPath: "privateLinkResourceName", mapper: { - serializedName: "hosts", + serializedName: "privateLinkResourceName", required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } }; -export const parameters15: OperationParameter = { - parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper +export const scriptName: OperationURLParameter = { + parameterPath: "scriptName", + mapper: { + serializedName: "scriptName", + required: true, + type: { + name: "String" + } + } }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const scriptExecutionId: OperationURLParameter = { + parameterPath: "scriptExecutionId", mapper: { - serializedName: "privateEndpointConnectionName", + serializedName: "scriptExecutionId", required: true, type: { name: "String" @@ -324,13 +319,18 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const privateLinkResourceName: OperationURLParameter = { - parameterPath: "privateLinkResourceName", +export const hosts: OperationParameter = { + parameterPath: "hosts", mapper: { - serializedName: "privateLinkResourceName", + serializedName: "hosts", required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts index 73fbf71e156d..417b05bf188a 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Application, ApplicationsListByClusterNextOptionalParams, @@ -178,8 +182,8 @@ export class ApplicationsImpl implements Applications { parameters: Application, options?: ApplicationsCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApplicationsCreateResponse > > { @@ -189,7 +193,7 @@ export class ApplicationsImpl implements Applications { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -222,15 +226,24 @@ export class ApplicationsImpl implements Applications { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, applicationName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + clusterName, + applicationName, + parameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ApplicationsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -273,14 +286,14 @@ export class ApplicationsImpl implements Applications { clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -313,15 +326,15 @@ export class ApplicationsImpl implements Applications { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, applicationName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, applicationName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -458,7 +471,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -467,7 +480,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.applicationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -513,8 +526,8 @@ const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.operationId, - Parameters.applicationName + Parameters.applicationName, + Parameters.operationId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts index 66edd9c40d5f..c24272c48d8a 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Cluster, ClustersListByResourceGroupNextOptionalParams, @@ -202,8 +206,8 @@ export class ClustersImpl implements Clusters { parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ClustersCreateResponse > > { @@ -213,7 +217,7 @@ export class ClustersImpl implements Clusters { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -246,15 +250,18 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ClustersCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -311,14 +318,14 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -351,15 +358,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -430,14 +437,14 @@ export class ClustersImpl implements Clusters { roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -470,15 +477,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, roleName, parameters, options }, - resizeOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, roleName, parameters, options }, + spec: resizeOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -523,14 +530,14 @@ export class ClustersImpl implements Clusters { roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -563,15 +570,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, roleName, parameters, options }, - updateAutoScaleConfigurationOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, roleName, parameters, options }, + spec: updateAutoScaleConfigurationOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -624,14 +631,14 @@ export class ClustersImpl implements Clusters { clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -664,15 +671,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - rotateDiskEncryptionKeyOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: rotateDiskEncryptionKeyOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -729,14 +736,14 @@ export class ClustersImpl implements Clusters { clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -769,15 +776,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - updateGatewaySettingsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: updateGatewaySettingsOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -836,14 +843,14 @@ export class ClustersImpl implements Clusters { clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -876,15 +883,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - updateIdentityCertificateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: updateIdentityCertificateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -924,14 +931,14 @@ export class ClustersImpl implements Clusters { clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -964,15 +971,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - executeScriptActionsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: executeScriptActionsOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -1056,7 +1063,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1064,7 +1071,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1080,7 +1087,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1088,7 +1095,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1171,7 +1178,7 @@ const resizeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1180,7 +1187,7 @@ const resizeOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.roleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1197,7 +1204,7 @@ const updateAutoScaleConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1206,7 +1213,7 @@ const updateAutoScaleConfigurationOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.roleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1240,7 +1247,7 @@ const rotateDiskEncryptionKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1248,7 +1255,7 @@ const rotateDiskEncryptionKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1287,7 +1294,7 @@ const updateGatewaySettingsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1295,7 +1302,7 @@ const updateGatewaySettingsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1335,7 +1342,7 @@ const updateIdentityCertificateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1343,7 +1350,7 @@ const updateIdentityCertificateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1363,7 +1370,7 @@ const executeScriptActionsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1371,7 +1378,7 @@ const executeScriptActionsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/configurations.ts b/sdk/hdinsight/arm-hdinsight/src/operations/configurations.ts index c7d6bff93f9e..fffc728653e6 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/configurations.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/configurations.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ConfigurationsListOptionalParams, ConfigurationsListResponse, @@ -65,14 +69,14 @@ export class ConfigurationsImpl implements Configurations { configurationName: string, parameters: { [propertyName: string]: string }, options?: ConfigurationsUpdateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -105,21 +109,21 @@ export class ConfigurationsImpl implements Configurations { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, configurationName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -209,7 +213,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -218,7 +222,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.configurationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts index 79bc59291682..7a1a945a5bb0 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ClusterMonitoringRequest, ExtensionsEnableMonitoringOptionalParams, @@ -57,14 +61,14 @@ export class ExtensionsImpl implements Extensions { clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -97,15 +101,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - enableMonitoringOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: enableMonitoringOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -160,14 +164,14 @@ export class ExtensionsImpl implements Extensions { resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -200,15 +204,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, options }, - disableMonitoringOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, options }, + spec: disableMonitoringOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -245,14 +249,14 @@ export class ExtensionsImpl implements Extensions { clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -285,15 +289,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - enableAzureMonitorOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: enableAzureMonitorOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -348,14 +352,14 @@ export class ExtensionsImpl implements Extensions { resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -388,15 +392,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, options }, - disableAzureMonitorOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, options }, + spec: disableAzureMonitorOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -435,14 +439,14 @@ export class ExtensionsImpl implements Extensions { extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -475,15 +479,21 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, extensionName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + clusterName, + extensionName, + parameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -545,14 +555,14 @@ export class ExtensionsImpl implements Extensions { clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -585,15 +595,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, extensionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, extensionName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -658,7 +668,7 @@ const enableMonitoringOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -666,7 +676,7 @@ const enableMonitoringOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -728,7 +738,7 @@ const enableAzureMonitorOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -736,7 +746,7 @@ const enableAzureMonitorOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -798,7 +808,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -807,7 +817,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.extensionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/index.ts b/sdk/hdinsight/arm-hdinsight/src/operations/index.ts index dd26cfa15f3f..6badc507b991 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/index.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./clusters"; export * from "./applications"; -export * from "./locations"; +export * from "./clusters"; export * from "./configurations"; export * from "./extensions"; -export * from "./scriptActions"; -export * from "./scriptExecutionHistory"; +export * from "./locations"; export * from "./operations"; -export * from "./virtualMachines"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./scriptActions"; +export * from "./scriptExecutionHistory"; +export * from "./virtualMachines"; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts b/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts index c29fe1bda284..5d7db28361db 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts @@ -236,14 +236,14 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -259,14 +259,14 @@ const validateClusterCreateRequestOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts b/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts index b73e3d63ce6b..9daf63d8bc28 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListByClusterNextOptionalParams, @@ -158,8 +162,8 @@ export class PrivateEndpointConnectionsImpl parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > > { @@ -169,7 +173,7 @@ export class PrivateEndpointConnectionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -202,21 +206,24 @@ export class PrivateEndpointConnectionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -283,14 +290,14 @@ export class PrivateEndpointConnectionsImpl clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -323,20 +330,20 @@ export class PrivateEndpointConnectionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, privateEndpointConnectionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -438,7 +445,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts b/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts index fa9838ee2f47..dd60b33601be 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachinesListHostsOptionalParams, VirtualMachinesListHostsResponse, @@ -62,14 +66,14 @@ export class VirtualMachinesImpl implements VirtualMachines { clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -102,15 +106,15 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, hosts, options }, - restartHostsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, hosts, options }, + spec: restartHostsOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -208,7 +212,7 @@ const restartHostsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/applications.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/applications.ts index 8b83898f66f6..132524ad0b02 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/applications.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/applications.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Application, ApplicationsListByClusterOptionalParams, @@ -62,8 +62,8 @@ export interface Applications { parameters: Application, options?: ApplicationsCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApplicationsCreateResponse > >; @@ -94,7 +94,7 @@ export interface Applications { clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified application on the HDInsight cluster. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/clusters.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/clusters.ts index 0127e96bfc2f..47ded0cb1471 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/clusters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/clusters.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Cluster, ClustersListByResourceGroupOptionalParams, @@ -72,8 +72,8 @@ export interface Clusters { parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ClustersCreateResponse > >; @@ -113,7 +113,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -150,7 +150,7 @@ export interface Clusters { roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Resizes the specified HDInsight cluster to the specified size. * @param resourceGroupName The name of the resource group. @@ -180,7 +180,7 @@ export interface Clusters { roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Updates the Autoscale Configuration for HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -208,7 +208,7 @@ export interface Clusters { clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Rotate disk encryption key of the specified HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -245,7 +245,7 @@ export interface Clusters { clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Configures the gateway settings on the specified cluster. * @param resourceGroupName The name of the resource group. @@ -284,7 +284,7 @@ export interface Clusters { clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Updates the cluster identity certificate. * @param resourceGroupName The name of the resource group. @@ -310,7 +310,7 @@ export interface Clusters { clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Executes script actions on the specified HDInsight cluster. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/configurations.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/configurations.ts index b0ebe8c5076b..199bbb110b14 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/configurations.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/configurations.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ConfigurationsListOptionalParams, ConfigurationsListResponse, @@ -43,7 +43,7 @@ export interface Configurations { configurationName: string, parameters: { [propertyName: string]: string }, options?: ConfigurationsUpdateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Configures the HTTP settings on the specified cluster. This API is deprecated, please use * UpdateGatewaySettings in cluster endpoint instead. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/extensions.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/extensions.ts index 68e713bf18d7..f938117c213f 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/extensions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/extensions.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ClusterMonitoringRequest, ExtensionsEnableMonitoringOptionalParams, @@ -41,7 +41,7 @@ export interface Extensions { clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Enables the Operations Management Suite (OMS) on the HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -76,7 +76,7 @@ export interface Extensions { resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Disables the Operations Management Suite (OMS) on the HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -100,7 +100,7 @@ export interface Extensions { clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Enables the Azure Monitor on the HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -135,7 +135,7 @@ export interface Extensions { resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Disables the Azure Monitor on the HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -161,7 +161,7 @@ export interface Extensions { extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Creates an HDInsight cluster extension. * @param resourceGroupName The name of the resource group. @@ -202,7 +202,7 @@ export interface Extensions { clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified extension for HDInsight cluster. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/index.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/index.ts index dd26cfa15f3f..6badc507b991 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/index.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./clusters"; export * from "./applications"; -export * from "./locations"; +export * from "./clusters"; export * from "./configurations"; export * from "./extensions"; -export * from "./scriptActions"; -export * from "./scriptExecutionHistory"; +export * from "./locations"; export * from "./operations"; -export * from "./virtualMachines"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./scriptActions"; +export * from "./scriptExecutionHistory"; +export * from "./virtualMachines"; diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/privateEndpointConnections.ts index f36c767ed7cc..48e3f5c0e081 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/privateEndpointConnections.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListByClusterOptionalParams, @@ -47,8 +47,8 @@ export interface PrivateEndpointConnections { parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > >; @@ -92,7 +92,7 @@ export interface PrivateEndpointConnections { clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specific private endpoint connection. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/virtualMachines.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/virtualMachines.ts index b30be807fe96..7a56d97502d6 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/virtualMachines.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachinesListHostsOptionalParams, VirtualMachinesListHostsResponse, @@ -40,7 +40,7 @@ export interface VirtualMachines { clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Restarts the specified HDInsight cluster hosts. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/tsconfig.json b/sdk/hdinsight/arm-hdinsight/tsconfig.json index 9cea1f23eb3e..3e6ae96443f3 100644 --- a/sdk/hdinsight/arm-hdinsight/tsconfig.json +++ b/sdk/hdinsight/arm-hdinsight/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-hdinsight": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"