diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 2816ab07c151..9bcae9133669 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -33,6 +33,7 @@ specifiers:
'@rush-temp/arm-eventhub': file:./projects/arm-eventhub.tgz
'@rush-temp/arm-extendedlocation': file:./projects/arm-extendedlocation.tgz
'@rush-temp/arm-features': file:./projects/arm-features.tgz
+ '@rush-temp/arm-hdinsight': file:./projects/arm-hdinsight.tgz
'@rush-temp/arm-iothub': file:./projects/arm-iothub.tgz
'@rush-temp/arm-keyvault': file:./projects/arm-keyvault.tgz
'@rush-temp/arm-links': file:./projects/arm-links.tgz
@@ -208,6 +209,7 @@ dependencies:
'@rush-temp/arm-eventhub': file:projects/arm-eventhub.tgz
'@rush-temp/arm-extendedlocation': file:projects/arm-extendedlocation.tgz
'@rush-temp/arm-features': file:projects/arm-features.tgz
+ '@rush-temp/arm-hdinsight': file:projects/arm-hdinsight.tgz
'@rush-temp/arm-iothub': file:projects/arm-iothub.tgz
'@rush-temp/arm-keyvault': file:projects/arm-keyvault.tgz
'@rush-temp/arm-links': file:projects/arm-links.tgz
@@ -8465,6 +8467,27 @@ packages:
uglify-js: 3.14.5
dev: false
+ file:projects/arm-hdinsight.tgz:
+ resolution: {integrity: sha512-MxGX73BGBcYHfMjJFjOMYtx6Z/hU8PsFZyudN1LPg+kjlghRCdfOpsSLkSl9YmekZEVGxkR9/DyeFQBfg5/+IA==, tarball: file:projects/arm-hdinsight.tgz}
+ name: '@rush-temp/arm-hdinsight'
+ version: 0.0.0
+ dependencies:
+ '@microsoft/api-extractor': 7.19.2
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ dev: false
+
file:projects/arm-iothub.tgz:
resolution: {integrity: sha512-PzFOxAYNZCA5fFinZSNlhYM6Z5GYX/yJkJAKycsLISLkEDrj70v3ihSJqSoyI3o9y0oxM1GqeijIgfPgvj4zWg==, tarball: file:projects/arm-iothub.tgz}
name: '@rush-temp/arm-iothub'
diff --git a/rush.json b/rush.json
index 97f8bfd12270..73f9d46cc455 100644
--- a/rush.json
+++ b/rush.json
@@ -1185,6 +1185,11 @@
"packageName": "@azure/arm-advisor",
"projectFolder": "sdk/advisor/arm-advisor",
"versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-hdinsight",
+ "projectFolder": "sdk/hdinsight/arm-hdinsight",
+ "versionPolicyName": "management"
}
]
}
\ No newline at end of file
diff --git a/sdk/hdinsight/arm-hdinsight/CHANGELOG.md b/sdk/hdinsight/arm-hdinsight/CHANGELOG.md
new file mode 100644
index 000000000000..3c25fb0d269c
--- /dev/null
+++ b/sdk/hdinsight/arm-hdinsight/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0 (2021-12-29)
+
+The package of @azure/arm-hdinsight is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/hdinsight/arm-hdinsight/LICENSE.txt b/sdk/hdinsight/arm-hdinsight/LICENSE
similarity index 99%
rename from sdk/hdinsight/arm-hdinsight/LICENSE.txt
rename to sdk/hdinsight/arm-hdinsight/LICENSE
index 2d3163745319..ccb63b166732 100644
--- a/sdk/hdinsight/arm-hdinsight/LICENSE.txt
+++ b/sdk/hdinsight/arm-hdinsight/LICENSE
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/hdinsight/arm-hdinsight/README.md b/sdk/hdinsight/arm-hdinsight/README.md
index 57e219e9e7a8..33767fbeaca1 100644
--- a/sdk/hdinsight/arm-hdinsight/README.md
+++ b/sdk/hdinsight/arm-hdinsight/README.md
@@ -1,120 +1,98 @@
-## Azure HDInsightManagementClient SDK for JavaScript
+# Azure HDInsightManagement client library for JavaScript
-This package contains an isomorphic SDK (runs both in node.js and in browsers) for HDInsightManagementClient.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure HDInsightManagement client.
-### Currently supported environments
+HDInsight Management Client
-- Node.js version 8.x.x or higher
-- Browser JavaScript
+[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) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
-### Prerequisites
+## Getting started
-You must have an [Azure subscription](https://azure.microsoft.com/free/).
+### Currently supported environments
-### How to install
+- [LTS versions of Node.js](https://nodejs.org/about/releases/)
+- Latest versions of Safari, Chrome, Edge and Firefox.
-To use this SDK in your project, you will need to install two packages.
+### Prerequisites
-- `@azure/arm-hdinsight` that contains the client.
-- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
+- An [Azure subscription][azure_sub].
-Install both packages using the below command:
+### Install the `@azure/arm-hdinsight` package
+
+Install the Azure HDInsightManagement client library for JavaScript with `npm`:
```bash
-npm install --save @azure/arm-hdinsight @azure/identity
+npm install @azure/arm-hdinsight
```
-> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
-> If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
+### Create and authenticate a `HDInsightManagementClient`
-### How to use
+To create a client object to access the Azure HDInsightManagement API, you will need the `endpoint` of your Azure HDInsightManagement resource and a `credential`. The Azure HDInsightManagement client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure HDInsightManagement resource in the [Azure Portal][azure_portal].
-- If you are writing a client side browser application,
- - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
- - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
-- If you are writing a server side application,
- - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
- - Complete the set up steps required by the credential if any.
- - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
+You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
-In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
-Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
-#### nodejs - Authentication, client creation, and get clusters as an example written in JavaScript.
+```bash
+npm install @azure/identity
+```
-##### Sample code
+You will also need to **register a new AAD application and grant access to Azure HDInsightManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
+Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
+
+For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
```javascript
-const { DefaultAzureCredential } = require("@azure/identity");
const { HDInsightManagementClient } = require("@azure/arm-hdinsight");
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
-// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
-const creds = new DefaultAzureCredential();
-const client = new HDInsightManagementClient(creds, subscriptionId);
-const resourceGroupName = "testresourceGroupName";
-const clusterName = "testclusterName";
-client.clusters
- .get(resourceGroupName, clusterName)
- .then((result) => {
- console.log("The result is:");
- console.log(result);
- })
- .catch((err) => {
- console.log("An error occurred:");
- console.error(err);
- });
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new HDInsightManagementClient(new DefaultAzureCredential(), subscriptionId);
```
-#### browser - Authentication, client creation, and get clusters as an example written in JavaScript.
-
-In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
-
-- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
-- Note down the client Id from the previous step and use it in the browser sample below.
-
-##### Sample code
-
-- index.html
-
-```html
-
-
-
- @azure/arm-hdinsight sample
-
-
-
-
-
-
-
+
+### JavaScript Bundle
+To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
+
+## Key concepts
+
+### HDInsightManagementClient
+
+`HDInsightManagementClient` is the primary interface for developers using the Azure HDInsightManagement client library. Explore the methods on this client object to understand the different features of the Azure HDInsightManagement service that you can access.
+
+## Troubleshooting
+
+### Logging
+
+Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
+
+## Next steps
+
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
+
## Related projects
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
+
+
-
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/hdinsight/arm-hdinsight/_meta.json b/sdk/hdinsight/arm-hdinsight/_meta.json
new file mode 100644
index 000000000000..42de3036053d
--- /dev/null
+++ b/sdk/hdinsight/arm-hdinsight/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "54ee1a9eb50c13e0790627749f986c886ad4f4db",
+ "readme": "specification/hdinsight/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1"
+}
\ No newline at end of file
diff --git a/sdk/hdinsight/arm-hdinsight/api-extractor.json b/sdk/hdinsight/arm-hdinsight/api-extractor.json
new file mode 100644
index 000000000000..d5cb089c6cd2
--- /dev/null
+++ b/sdk/hdinsight/arm-hdinsight/api-extractor.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": { "enabled": true },
+ "apiReport": { "enabled": true, "reportFolder": "./review" },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-hdinsight.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/hdinsight/arm-hdinsight/package.json b/sdk/hdinsight/arm-hdinsight/package.json
index 236c44b11058..e9afedd1006e 100644
--- a/sdk/hdinsight/arm-hdinsight/package.json
+++ b/sdk/hdinsight/arm-hdinsight/package.json
@@ -1,58 +1,91 @@
{
"name": "@azure/arm-hdinsight",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "HDInsightManagementClient Library with typescript type definitions for node.js and browser.",
- "version": "0.23.0",
+ "description": "A generated SDK for HDInsightManagementClient.",
+ "version": "1.0.0",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.1.0",
- "@azure/ms-rest-js": "^2.2.0",
- "@azure/core-auth": "^1.1.4",
- "tslib": "^1.10.0"
+ "@azure/core-lro": "^2.2.0",
+ "@azure/abort-controller": "^1.0.0",
+ "@azure/core-paging": "^1.2.0",
+ "@azure/core-client": "^1.0.0",
+ "@azure/core-auth": "^1.3.0",
+ "@azure/core-rest-pipeline": "^1.1.0",
+ "tslib": "^2.2.0"
},
- "keywords": [
- "node",
- "azure",
- "typescript",
- "browser",
- "isomorphic"
- ],
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
- "main": "./dist/arm-hdinsight.js",
- "module": "./esm/hDInsightManagementClient.js",
- "types": "./esm/hDInsightManagementClient.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-hdinsight.d.ts",
"devDependencies": {
- "typescript": "^3.6.0",
- "rollup": "^1.18.0",
- "rollup-plugin-node-resolve": "^5.2.0",
+ "@microsoft/api-extractor": "^7.18.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
- "uglify-js": "^3.6.0"
+ "typescript": "~4.2.0",
+ "uglify-js": "^3.4.9",
+ "rimraf": "^3.0.0",
+ "@azure/identity": "^2.0.1",
+ "@azure-tools/test-recorder": "^1.0.0",
+ "mocha": "^7.1.1",
+ "cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
- "bugs": {
- "url": "https://github.com/Azure/azure-sdk-for-js/issues"
- },
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-hdinsight.js.map'\" -o ./dist/arm-hdinsight.min.js ./dist/arm-hdinsight.js",
- "prepack": "npm install && npm run build"
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
+ "prepack": "npm run build",
+ "pack": "npm pack 2>&1",
+ "extract-api": "api-extractor run --local",
+ "lint": "echo skipped",
+ "audit": "echo skipped",
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "test:node": "echo skipped",
+ "test:browser": "echo skipped",
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:browser": "echo skipped",
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
"autoPublish": true
diff --git a/sdk/hdinsight/arm-hdinsight/recordings/node/my_test/recording_sample_test.js b/sdk/hdinsight/arm-hdinsight/recordings/node/my_test/recording_sample_test.js
new file mode 100644
index 000000000000..0f6ecb857acf
--- /dev/null
+++ b/sdk/hdinsight/arm-hdinsight/recordings/node/my_test/recording_sample_test.js
@@ -0,0 +1,5 @@
+let nock = require('nock');
+
+module.exports.hash = "7a6be38bb8cb644d64b4094802301751";
+
+module.exports.testInfo = {"uniqueName":{},"newDate":{}}
diff --git a/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md b/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md
new file mode 100644
index 000000000000..3df315f571b8
--- /dev/null
+++ b/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md
@@ -0,0 +1,1678 @@
+## API Report File for "@azure/arm-hdinsight"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PagedAsyncIterableIterator } from '@azure/core-paging';
+import { PollerLike } from '@azure/core-lro';
+import { PollOperationState } from '@azure/core-lro';
+
+// @public
+export interface AaddsResourceDetails {
+ domainName?: string;
+ initialSyncComplete?: boolean;
+ ldapsEnabled?: boolean;
+ ldapsPublicCertificateInBase64?: string;
+ resourceId?: string;
+ subnetId?: string;
+ tenantId?: string;
+}
+
+// @public
+export type Application = ProxyResource & {
+ etag?: string;
+ tags?: {
+ [propertyName: string]: string;
+ };
+ properties?: ApplicationProperties;
+ readonly systemData?: SystemData;
+};
+
+// @public
+export interface ApplicationGetEndpoint {
+ destinationPort?: number;
+ location?: string;
+ privateIPAddress?: string;
+ publicPort?: number;
+}
+
+// @public
+export interface ApplicationGetHttpsEndpoint {
+ accessModes?: string[];
+ destinationPort?: number;
+ disableGatewayAuth?: boolean;
+ readonly location?: string;
+ privateIPAddress?: string;
+ readonly publicPort?: number;
+ subDomainSuffix?: string;
+}
+
+// @public
+export interface ApplicationListResult {
+ readonly nextLink?: string;
+ value?: Application[];
+}
+
+// @public
+export interface ApplicationProperties {
+ readonly applicationState?: string;
+ applicationType?: string;
+ computeProfile?: ComputeProfile;
+ readonly createdDate?: string;
+ errors?: Errors[];
+ httpsEndpoints?: ApplicationGetHttpsEndpoint[];
+ installScriptActions?: RuntimeScriptAction[];
+ readonly marketplaceIdentifier?: string;
+ privateLinkConfigurations?: PrivateLinkConfiguration[];
+ readonly provisioningState?: string;
+ sshEndpoints?: ApplicationGetEndpoint[];
+ uninstallScriptActions?: RuntimeScriptAction[];
+}
+
+// @public
+export interface Applications {
+ 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>>;
+ 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;
+ listByCluster(resourceGroupName: string, clusterName: string, options?: ApplicationsListByClusterOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface ApplicationsCreateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type ApplicationsCreateResponse = Application;
+
+// @public
+export interface ApplicationsDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ApplicationsGetAzureAsyncOperationStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult;
+
+// @public
+export interface ApplicationsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationsGetResponse = Application;
+
+// @public
+export interface ApplicationsListByClusterNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationsListByClusterNextResponse = ApplicationListResult;
+
+// @public
+export interface ApplicationsListByClusterOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ApplicationsListByClusterResponse = ApplicationListResult;
+
+// @public
+export interface AsyncOperationResult {
+ error?: Errors;
+ status?: AsyncOperationState;
+}
+
+// @public
+export type AsyncOperationState = string;
+
+// @public
+export interface Autoscale {
+ capacity?: AutoscaleCapacity;
+ recurrence?: AutoscaleRecurrence;
+}
+
+// @public
+export interface AutoscaleCapacity {
+ maxInstanceCount?: number;
+ minInstanceCount?: number;
+}
+
+// @public
+export interface AutoscaleConfigurationUpdateParameter {
+ autoscale?: Autoscale;
+}
+
+// @public
+export interface AutoscaleRecurrence {
+ schedule?: AutoscaleSchedule[];
+ timeZone?: string;
+}
+
+// @public
+export interface AutoscaleSchedule {
+ days?: DaysOfWeek[];
+ timeAndCapacity?: AutoscaleTimeAndCapacity;
+}
+
+// @public
+export interface AutoscaleTimeAndCapacity {
+ maxInstanceCount?: number;
+ minInstanceCount?: number;
+ time?: string;
+}
+
+// @public
+export interface AzureMonitorRequest {
+ primaryKey?: string;
+ selectedConfigurations?: AzureMonitorSelectedConfigurations;
+ workspaceId?: string;
+}
+
+// @public
+export interface AzureMonitorResponse {
+ clusterMonitoringEnabled?: boolean;
+ selectedConfigurations?: AzureMonitorSelectedConfigurations;
+ workspaceId?: string;
+}
+
+// @public
+export interface AzureMonitorSelectedConfigurations {
+ configurationVersion?: string;
+ globalConfigurations?: {
+ [propertyName: string]: string;
+ };
+ tableList?: AzureMonitorTableConfiguration[];
+}
+
+// @public
+export interface AzureMonitorTableConfiguration {
+ name?: string;
+}
+
+// @public
+export interface BillingMeters {
+ meter?: string;
+ meterParameter?: string;
+ unit?: string;
+}
+
+// @public
+export interface BillingResources {
+ billingMeters?: BillingMeters[];
+ diskBillingMeters?: DiskBillingMeters[];
+ region?: string;
+}
+
+// @public
+export interface BillingResponseListResult {
+ billingResources?: BillingResources[];
+ vmSizeFilters?: VmSizeCompatibilityFilterV2[];
+ readonly vmSizeProperties?: VmSizeProperty[];
+ vmSizes?: string[];
+ vmSizesWithEncryptionAtHost?: string[];
+}
+
+// @public
+export interface CapabilitiesResult {
+ features?: string[];
+ readonly quota?: QuotaCapability;
+ regions?: {
+ [propertyName: string]: RegionsCapability;
+ };
+ versions?: {
+ [propertyName: string]: VersionsCapability;
+ };
+}
+
+// @public
+export interface ClientGroupInfo {
+ groupId?: string;
+ groupName?: string;
+}
+
+// @public
+export type Cluster = TrackedResource & {
+ etag?: string;
+ zones?: string[];
+ properties?: ClusterGetProperties;
+ identity?: ClusterIdentity;
+ readonly systemData?: SystemData;
+};
+
+// @public
+export interface ClusterConfigurations {
+ configurations?: {
+ [propertyName: string]: {
+ [propertyName: string]: string;
+ };
+ };
+}
+
+// @public
+export interface ClusterCreateParametersExtended {
+ identity?: ClusterIdentity;
+ location?: string;
+ properties?: ClusterCreateProperties;
+ tags?: {
+ [propertyName: string]: string;
+ };
+ zones?: string[];
+}
+
+// @public
+export interface ClusterCreateProperties {
+ clusterDefinition?: ClusterDefinition;
+ clusterVersion?: string;
+ computeIsolationProperties?: ComputeIsolationProperties;
+ computeProfile?: ComputeProfile;
+ diskEncryptionProperties?: DiskEncryptionProperties;
+ encryptionInTransitProperties?: EncryptionInTransitProperties;
+ kafkaRestProperties?: KafkaRestProperties;
+ minSupportedTlsVersion?: string;
+ networkProperties?: NetworkProperties;
+ osType?: OSType;
+ privateLinkConfigurations?: PrivateLinkConfiguration[];
+ securityProfile?: SecurityProfile;
+ storageProfile?: StorageProfile;
+ tier?: Tier;
+}
+
+// @public
+export type ClusterCreateRequestValidationParameters = ClusterCreateParametersExtended & {
+ name?: string;
+ type?: string;
+ tenantId?: string;
+ fetchAaddsResource?: boolean;
+};
+
+// @public
+export interface ClusterCreateValidationResult {
+ aaddsResourcesDetails?: AaddsResourceDetails[];
+ estimatedCreationDuration?: string;
+ validationErrors?: ValidationErrorInfo[];
+ validationWarnings?: ValidationErrorInfo[];
+}
+
+// @public
+export interface ClusterDefinition {
+ blueprint?: string;
+ componentVersion?: {
+ [propertyName: string]: string;
+ };
+ configurations?: Record;
+ kind?: string;
+}
+
+// @public
+export interface ClusterDiskEncryptionParameters {
+ keyName?: string;
+ keyVersion?: string;
+ vaultUri?: string;
+}
+
+// @public
+export interface ClusterGetProperties {
+ clusterDefinition: ClusterDefinition;
+ clusterHdpVersion?: string;
+ clusterId?: string;
+ clusterState?: string;
+ clusterVersion?: string;
+ computeIsolationProperties?: ComputeIsolationProperties;
+ computeProfile?: ComputeProfile;
+ connectivityEndpoints?: ConnectivityEndpoint[];
+ createdDate?: string;
+ diskEncryptionProperties?: DiskEncryptionProperties;
+ encryptionInTransitProperties?: EncryptionInTransitProperties;
+ errors?: Errors[];
+ excludedServicesConfig?: ExcludedServicesConfig;
+ kafkaRestProperties?: KafkaRestProperties;
+ minSupportedTlsVersion?: string;
+ networkProperties?: NetworkProperties;
+ osType?: OSType;
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
+ privateLinkConfigurations?: PrivateLinkConfiguration[];
+ provisioningState?: HDInsightClusterProvisioningState;
+ quotaInfo?: QuotaInfo;
+ securityProfile?: SecurityProfile;
+ storageProfile?: StorageProfile;
+ tier?: Tier;
+}
+
+// @public
+export interface ClusterIdentity {
+ readonly principalId?: string;
+ readonly tenantId?: string;
+ type?: ResourceIdentityType;
+ userAssignedIdentities?: {
+ [propertyName: string]: UserAssignedIdentity;
+ };
+}
+
+// @public
+export interface ClusterListPersistedScriptActionsResult {
+ readonly nextLink?: string;
+ value?: RuntimeScriptAction[];
+}
+
+// @public
+export interface ClusterListResult {
+ readonly nextLink?: string;
+ value?: Cluster[];
+}
+
+// @public
+export interface ClusterMonitoringRequest {
+ primaryKey?: string;
+ workspaceId?: string;
+}
+
+// @public
+export interface ClusterMonitoringResponse {
+ clusterMonitoringEnabled?: boolean;
+ workspaceId?: string;
+}
+
+// @public
+export interface ClusterPatchParameters {
+ tags?: {
+ [propertyName: string]: string;
+ };
+}
+
+// @public
+export interface ClusterResizeParameters {
+ targetInstanceCount?: number;
+}
+
+// @public
+export interface Clusters {
+ 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>>;
+ beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise;
+ 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>>;
+ beginResizeAndWait(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams): Promise;
+ 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>>;
+ beginUpdateAutoScaleConfigurationAndWait(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams): Promise;
+ 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>>;
+ 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;
+ getGatewaySettings(resourceGroupName: string, clusterName: string, options?: ClustersGetGatewaySettingsOptionalParams): Promise;
+ list(options?: ClustersListOptionalParams): PagedAsyncIterableIterator;
+ listByResourceGroup(resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ update(resourceGroupName: string, clusterName: string, parameters: ClusterPatchParameters, options?: ClustersUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface ClustersCreateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type ClustersCreateResponse = Cluster;
+
+// @public
+export interface ClustersDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ClustersExecuteScriptActionsOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ClustersGetAzureAsyncOperationStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersGetAzureAsyncOperationStatusResponse = AsyncOperationResult;
+
+// @public
+export interface ClustersGetGatewaySettingsOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersGetGatewaySettingsResponse = GatewaySettings;
+
+// @public
+export interface ClustersGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersGetResponse = Cluster;
+
+// @public
+export interface ClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersListByResourceGroupNextResponse = ClusterListResult;
+
+// @public
+export interface ClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersListByResourceGroupResponse = ClusterListResult;
+
+// @public
+export interface ClustersListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersListNextResponse = ClusterListResult;
+
+// @public
+export interface ClustersListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersListResponse = ClusterListResult;
+
+// @public
+export interface ClustersResizeOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ClustersRotateDiskEncryptionKeyOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ClustersUpdateAutoScaleConfigurationOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ClustersUpdateGatewaySettingsOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ClustersUpdateIdentityCertificateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ClustersUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersUpdateResponse = Cluster;
+
+// @public
+export interface ComputeIsolationProperties {
+ enableComputeIsolation?: boolean;
+ hostSku?: string;
+}
+
+// @public
+export interface ComputeProfile {
+ roles?: Role[];
+}
+
+// @public
+export interface Configurations {
+ beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: {
+ [propertyName: string]: string;
+ }, options?: ConfigurationsUpdateOptionalParams): Promise, void>>;
+ beginUpdateAndWait(resourceGroupName: string, clusterName: string, configurationName: string, parameters: {
+ [propertyName: string]: string;
+ }, options?: ConfigurationsUpdateOptionalParams): Promise;
+ get(resourceGroupName: string, clusterName: string, configurationName: string, options?: ConfigurationsGetOptionalParams): Promise;
+ list(resourceGroupName: string, clusterName: string, options?: ConfigurationsListOptionalParams): Promise;
+}
+
+// @public
+export interface ConfigurationsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ConfigurationsGetResponse = {
+ [propertyName: string]: string;
+};
+
+// @public
+export interface ConfigurationsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ConfigurationsListResponse = ClusterConfigurations;
+
+// @public
+export interface ConfigurationsUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ConnectivityEndpoint {
+ location?: string;
+ name?: string;
+ port?: number;
+ privateIPAddress?: string;
+ protocol?: string;
+}
+
+// @public
+export type CreatedByType = string;
+
+// @public
+export interface DataDisksGroups {
+ readonly diskSizeGB?: number;
+ disksPerNode?: number;
+ readonly storageAccountType?: string;
+}
+
+// @public
+export type DaysOfWeek = string;
+
+// @public
+export interface Dimension {
+ displayName?: string;
+ internalName?: string;
+ name?: string;
+ toBeExportedForShoebox?: boolean;
+}
+
+// @public
+export type DirectoryType = string;
+
+// @public
+export interface DiskBillingMeters {
+ diskRpMeter?: string;
+ sku?: string;
+ tier?: Tier;
+}
+
+// @public
+export interface DiskEncryptionProperties {
+ encryptionAlgorithm?: JsonWebKeyEncryptionAlgorithm;
+ encryptionAtHost?: boolean;
+ keyName?: string;
+ keyVersion?: string;
+ msiResourceId?: string;
+ vaultUri?: string;
+}
+
+// @public
+export interface EncryptionInTransitProperties {
+ isEncryptionInTransitEnabled?: boolean;
+}
+
+// @public
+export interface ErrorResponse {
+ code?: string;
+ message?: string;
+}
+
+// @public
+export interface Errors {
+ code?: string;
+ message?: string;
+}
+
+// @public
+export interface ExcludedServicesConfig {
+ excludedServicesConfigId?: string;
+ excludedServicesList?: string;
+}
+
+// @public
+export interface ExecuteScriptActionParameters {
+ persistOnSuccess: boolean;
+ scriptActions?: RuntimeScriptAction[];
+}
+
+// @public
+export interface Extension {
+ primaryKey?: string;
+ workspaceId?: string;
+}
+
+// @public
+export interface Extensions {
+ 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>>;
+ beginDeleteAndWait(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise;
+ 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>>;
+ beginDisableMonitoringAndWait(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams): Promise;
+ 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>>;
+ 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;
+ getAzureMonitorStatus(resourceGroupName: string, clusterName: string, options?: ExtensionsGetAzureMonitorStatusOptionalParams): Promise;
+ getMonitoringStatus(resourceGroupName: string, clusterName: string, options?: ExtensionsGetMonitoringStatusOptionalParams): Promise;
+}
+
+// @public
+export interface ExtensionsCreateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ExtensionsDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ExtensionsDisableAzureMonitorOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ExtensionsDisableMonitoringOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ExtensionsEnableAzureMonitorOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ExtensionsEnableMonitoringOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ExtensionsGetAzureAsyncOperationStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ExtensionsGetAzureAsyncOperationStatusResponse = AsyncOperationResult;
+
+// @public
+export interface ExtensionsGetAzureMonitorStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ExtensionsGetAzureMonitorStatusResponse = AzureMonitorResponse;
+
+// @public
+export interface ExtensionsGetMonitoringStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ExtensionsGetMonitoringStatusResponse = ClusterMonitoringResponse;
+
+// @public
+export interface ExtensionsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ExtensionsGetResponse = ClusterMonitoringResponse;
+
+// @public
+export type FilterMode = string;
+
+// @public
+export interface GatewaySettings {
+ readonly isCredentialEnabled?: string;
+ readonly password?: string;
+ readonly userName?: string;
+}
+
+// @public
+export interface HardwareProfile {
+ vmSize?: string;
+}
+
+// @public
+export type HDInsightClusterProvisioningState = string;
+
+// @public (undocumented)
+export class HDInsightManagementClient extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: HDInsightManagementClientOptionalParams);
+ // (undocumented)
+ apiVersion: string;
+ // (undocumented)
+ applications: Applications;
+ // (undocumented)
+ clusters: Clusters;
+ // (undocumented)
+ configurations: Configurations;
+ // (undocumented)
+ extensions: Extensions;
+ // (undocumented)
+ locations: Locations;
+ // (undocumented)
+ operations: Operations;
+ // (undocumented)
+ privateEndpointConnections: PrivateEndpointConnections;
+ // (undocumented)
+ privateLinkResources: PrivateLinkResources;
+ // (undocumented)
+ scriptActions: ScriptActions;
+ // (undocumented)
+ scriptExecutionHistory: ScriptExecutionHistory;
+ // (undocumented)
+ subscriptionId: string;
+ // (undocumented)
+ virtualMachines: VirtualMachines;
+}
+
+// @public
+export interface HDInsightManagementClientOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ apiVersion?: string;
+ endpoint?: string;
+}
+
+// @public
+export interface HostInfo {
+ effectiveDiskEncryptionKeyUrl?: string;
+ fqdn?: string;
+ name?: string;
+}
+
+// @public
+export interface IPConfiguration {
+ readonly id?: string;
+ name: string;
+ primary?: boolean;
+ privateIPAddress?: string;
+ privateIPAllocationMethod?: PrivateIPAllocationMethod;
+ readonly provisioningState?: PrivateLinkConfigurationProvisioningState;
+ subnet?: ResourceId;
+ readonly type?: string;
+}
+
+// @public
+export type JsonWebKeyEncryptionAlgorithm = string;
+
+// @public
+export interface KafkaRestProperties {
+ clientGroupInfo?: ClientGroupInfo;
+ configurationOverride?: {
+ [propertyName: string]: string;
+ };
+}
+
+// @public
+export enum KnownAsyncOperationState {
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ InProgress = "InProgress",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownCreatedByType {
+ // (undocumented)
+ Application = "Application",
+ // (undocumented)
+ Key = "Key",
+ // (undocumented)
+ ManagedIdentity = "ManagedIdentity",
+ // (undocumented)
+ User = "User"
+}
+
+// @public
+export enum KnownDaysOfWeek {
+ // (undocumented)
+ Friday = "Friday",
+ // (undocumented)
+ Monday = "Monday",
+ // (undocumented)
+ Saturday = "Saturday",
+ // (undocumented)
+ Sunday = "Sunday",
+ // (undocumented)
+ Thursday = "Thursday",
+ // (undocumented)
+ Tuesday = "Tuesday",
+ // (undocumented)
+ Wednesday = "Wednesday"
+}
+
+// @public
+export enum KnownDirectoryType {
+ // (undocumented)
+ ActiveDirectory = "ActiveDirectory"
+}
+
+// @public
+export enum KnownFilterMode {
+ // (undocumented)
+ Default = "Default",
+ // (undocumented)
+ Exclude = "Exclude",
+ // (undocumented)
+ Include = "Include",
+ // (undocumented)
+ Recommend = "Recommend"
+}
+
+// @public
+export enum KnownHDInsightClusterProvisioningState {
+ // (undocumented)
+ Canceled = "Canceled",
+ // (undocumented)
+ Deleting = "Deleting",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ InProgress = "InProgress",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownJsonWebKeyEncryptionAlgorithm {
+ // (undocumented)
+ RSA15 = "RSA1_5",
+ // (undocumented)
+ RSAOaep = "RSA-OAEP",
+ // (undocumented)
+ RSAOaep256 = "RSA-OAEP-256"
+}
+
+// @public
+export enum KnownOSType {
+ // (undocumented)
+ Linux = "Linux",
+ // (undocumented)
+ Windows = "Windows"
+}
+
+// @public
+export enum KnownPrivateEndpointConnectionProvisioningState {
+ // (undocumented)
+ Canceled = "Canceled",
+ // (undocumented)
+ Deleting = "Deleting",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ InProgress = "InProgress",
+ // (undocumented)
+ Succeeded = "Succeeded",
+ // (undocumented)
+ Updating = "Updating"
+}
+
+// @public
+export enum KnownPrivateIPAllocationMethod {
+ // (undocumented)
+ Dynamic = "dynamic",
+ // (undocumented)
+ Static = "static"
+}
+
+// @public
+export enum KnownPrivateLink {
+ // (undocumented)
+ Disabled = "Disabled",
+ // (undocumented)
+ Enabled = "Enabled"
+}
+
+// @public
+export enum KnownPrivateLinkConfigurationProvisioningState {
+ // (undocumented)
+ Canceled = "Canceled",
+ // (undocumented)
+ Deleting = "Deleting",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ InProgress = "InProgress",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownPrivateLinkServiceConnectionStatus {
+ // (undocumented)
+ Approved = "Approved",
+ // (undocumented)
+ Pending = "Pending",
+ // (undocumented)
+ Rejected = "Rejected",
+ // (undocumented)
+ Removed = "Removed"
+}
+
+// @public
+export enum KnownResourceIdentityType {
+ // (undocumented)
+ None = "None",
+ // (undocumented)
+ SystemAssigned = "SystemAssigned",
+ // (undocumented)
+ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
+ // (undocumented)
+ UserAssigned = "UserAssigned"
+}
+
+// @public
+export enum KnownResourceProviderConnection {
+ // (undocumented)
+ Inbound = "Inbound",
+ // (undocumented)
+ Outbound = "Outbound"
+}
+
+// @public
+export enum KnownRoleName {
+ // (undocumented)
+ Workernode = "workernode"
+}
+
+// @public
+export enum KnownTier {
+ // (undocumented)
+ Premium = "Premium",
+ // (undocumented)
+ Standard = "Standard"
+}
+
+// @public
+export interface LinuxOperatingSystemProfile {
+ password?: string;
+ sshProfile?: SshProfile;
+ username?: string;
+}
+
+// @public
+export interface LocalizedName {
+ localizedValue?: string;
+ value?: string;
+}
+
+// @public
+export interface Locations {
+ checkNameAvailability(location: string, parameters: NameAvailabilityCheckRequestParameters, options?: LocationsCheckNameAvailabilityOptionalParams): Promise;
+ getAzureAsyncOperationStatus(location: string, operationId: string, options?: LocationsGetAzureAsyncOperationStatusOptionalParams): Promise;
+ getCapabilities(location: string, options?: LocationsGetCapabilitiesOptionalParams): Promise;
+ listBillingSpecs(location: string, options?: LocationsListBillingSpecsOptionalParams): Promise;
+ listUsages(location: string, options?: LocationsListUsagesOptionalParams): Promise;
+ validateClusterCreateRequest(location: string, parameters: ClusterCreateRequestValidationParameters, options?: LocationsValidateClusterCreateRequestOptionalParams): Promise;
+}
+
+// @public
+export interface LocationsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LocationsCheckNameAvailabilityResponse = NameAvailabilityCheckResult;
+
+// @public
+export interface LocationsGetAzureAsyncOperationStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LocationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult;
+
+// @public
+export interface LocationsGetCapabilitiesOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LocationsGetCapabilitiesResponse = CapabilitiesResult;
+
+// @public
+export interface LocationsListBillingSpecsOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LocationsListBillingSpecsResponse = BillingResponseListResult;
+
+// @public
+export interface LocationsListUsagesOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LocationsListUsagesResponse = UsagesListResult;
+
+// @public
+export interface LocationsValidateClusterCreateRequestOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LocationsValidateClusterCreateRequestResponse = ClusterCreateValidationResult;
+
+// @public
+export interface MetricSpecifications {
+ aggregationType?: string;
+ category?: string;
+ delegateMetricNameOverride?: string;
+ dimensions?: Dimension[];
+ displayDescription?: string;
+ displayName?: string;
+ enableRegionalMdmAccount?: boolean;
+ fillGapWithZero?: boolean;
+ isInternal?: boolean;
+ metricFilterPattern?: string;
+ name?: string;
+ resourceIdDimensionNameOverride?: string;
+ sourceMdmAccount?: string;
+ sourceMdmNamespace?: string;
+ supportedAggregationTypes?: string[];
+ supportedTimeGrainTypes?: string[];
+ unit?: string;
+}
+
+// @public
+export interface NameAvailabilityCheckRequestParameters {
+ name?: string;
+ type?: string;
+}
+
+// @public
+export interface NameAvailabilityCheckResult {
+ readonly message?: string;
+ nameAvailable?: boolean;
+ readonly reason?: string;
+}
+
+// @public
+export interface NetworkProperties {
+ privateLink?: PrivateLink;
+ resourceProviderConnection?: ResourceProviderConnection;
+}
+
+// @public
+export interface Operation {
+ display?: OperationDisplay;
+ name?: string;
+ properties?: OperationProperties;
+}
+
+// @public
+export interface OperationDisplay {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export interface OperationListResult {
+ nextLink?: string;
+ value?: Operation[];
+}
+
+// @public
+export interface OperationProperties {
+ serviceSpecification?: ServiceSpecification;
+}
+
+// @public
+export interface Operations {
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsListNextResponse = OperationListResult;
+
+// @public
+export interface OperationsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsListResponse = OperationListResult;
+
+// @public
+export interface OsProfile {
+ linuxOperatingSystemProfile?: LinuxOperatingSystemProfile;
+}
+
+// @public
+export type OSType = string;
+
+// @public
+export interface PrivateEndpoint {
+ id?: string;
+}
+
+// @public
+export type PrivateEndpointConnection = Resource & {
+ readonly systemData?: SystemData;
+ readonly privateEndpoint?: PrivateEndpoint;
+ privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
+ readonly linkIdentifier?: string;
+ readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
+};
+
+// @public
+export interface PrivateEndpointConnectionListResult {
+ readonly nextLink?: string;
+ value?: PrivateEndpointConnection[];
+}
+
+// @public
+export type PrivateEndpointConnectionProvisioningState = string;
+
+// @public
+export interface PrivateEndpointConnections {
+ 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>>;
+ 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;
+}
+
+// @public
+export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection;
+
+// @public
+export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;
+
+// @public
+export interface PrivateEndpointConnectionsListByClusterNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type PrivateEndpointConnectionsListByClusterNextResponse = PrivateEndpointConnectionListResult;
+
+// @public
+export interface PrivateEndpointConnectionsListByClusterOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type PrivateEndpointConnectionsListByClusterResponse = PrivateEndpointConnectionListResult;
+
+// @public
+export type PrivateIPAllocationMethod = string;
+
+// @public
+export type PrivateLink = string;
+
+// @public
+export interface PrivateLinkConfiguration {
+ groupId: string;
+ readonly id?: string;
+ ipConfigurations: IPConfiguration[];
+ name: string;
+ readonly provisioningState?: PrivateLinkConfigurationProvisioningState;
+ readonly type?: string;
+}
+
+// @public
+export type PrivateLinkConfigurationProvisioningState = string;
+
+// @public
+export type PrivateLinkResource = ResourceAutoGenerated & {
+ readonly systemData?: SystemData;
+ readonly groupId?: string;
+ readonly requiredMembers?: string[];
+ requiredZoneNames?: string[];
+};
+
+// @public
+export interface PrivateLinkResourceListResult {
+ value?: PrivateLinkResource[];
+}
+
+// @public
+export interface PrivateLinkResources {
+ get(resourceGroupName: string, clusterName: string, privateLinkResourceName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise;
+ listByCluster(resourceGroupName: string, clusterName: string, options?: PrivateLinkResourcesListByClusterOptionalParams): Promise;
+}
+
+// @public
+export interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type PrivateLinkResourcesGetResponse = PrivateLinkResource;
+
+// @public
+export interface PrivateLinkResourcesListByClusterOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type PrivateLinkResourcesListByClusterResponse = PrivateLinkResourceListResult;
+
+// @public
+export interface PrivateLinkServiceConnectionState {
+ actionsRequired?: string;
+ description?: string;
+ status: PrivateLinkServiceConnectionStatus;
+}
+
+// @public
+export type PrivateLinkServiceConnectionStatus = string;
+
+// @public
+export type ProxyResource = Resource & {};
+
+// @public
+export interface QuotaCapability {
+ coresUsed?: number;
+ maxCoresAllowed?: number;
+ regionalQuotas?: RegionalQuotaCapability[];
+}
+
+// @public
+export interface QuotaInfo {
+ coresUsed?: number;
+}
+
+// @public
+export interface RegionalQuotaCapability {
+ coresAvailable?: number;
+ coresUsed?: number;
+ regionName?: string;
+}
+
+// @public
+export interface RegionsCapability {
+ available?: string[];
+}
+
+// @public
+export interface Resource {
+ readonly id?: string;
+ readonly name?: string;
+ readonly type?: string;
+}
+
+// @public
+export interface ResourceAutoGenerated {
+ readonly id?: string;
+ readonly name?: string;
+ readonly type?: string;
+}
+
+// @public
+export interface ResourceId {
+ id?: string;
+}
+
+// @public
+export type ResourceIdentityType = string;
+
+// @public
+export type ResourceProviderConnection = string;
+
+// @public
+export interface Role {
+ autoscaleConfiguration?: Autoscale;
+ dataDisksGroups?: DataDisksGroups[];
+ encryptDataDisks?: boolean;
+ hardwareProfile?: HardwareProfile;
+ minInstanceCount?: number;
+ name?: string;
+ osProfile?: OsProfile;
+ scriptActions?: ScriptAction[];
+ targetInstanceCount?: number;
+ virtualNetworkProfile?: VirtualNetworkProfile;
+ vMGroupName?: string;
+}
+
+// @public
+export type RoleName = string;
+
+// @public
+export interface RuntimeScriptAction {
+ readonly applicationName?: string;
+ name: string;
+ parameters?: string;
+ roles: string[];
+ uri: string;
+}
+
+// @public
+export type RuntimeScriptActionDetail = RuntimeScriptAction & {
+ readonly scriptExecutionId?: number;
+ readonly startTime?: string;
+ readonly endTime?: string;
+ readonly status?: string;
+ readonly operation?: string;
+ readonly executionSummary?: ScriptActionExecutionSummary[];
+ readonly debugInformation?: string;
+};
+
+// @public
+export interface ScriptAction {
+ name: string;
+ parameters: string;
+ uri: string;
+}
+
+// @public
+export interface ScriptActionExecutionHistoryList {
+ readonly nextLink?: string;
+ readonly value?: RuntimeScriptActionDetail[];
+}
+
+// @public
+export interface ScriptActionExecutionSummary {
+ readonly instanceCount?: number;
+ readonly status?: string;
+}
+
+// @public
+export interface ScriptActionPersistedGetResponseSpec {
+ applicationName?: string;
+ name?: string;
+ parameters?: string;
+ roles?: string[];
+ uri?: string;
+}
+
+// @public
+export interface ScriptActions {
+ delete(resourceGroupName: string, clusterName: string, scriptName: string, options?: ScriptActionsDeleteOptionalParams): Promise;
+ getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: ScriptActionsGetExecutionAsyncOperationStatusOptionalParams): Promise;
+ getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: ScriptActionsGetExecutionDetailOptionalParams): Promise;
+ listByCluster(resourceGroupName: string, clusterName: string, options?: ScriptActionsListByClusterOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface ScriptActionsDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface ScriptActionsGetExecutionAsyncOperationStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ScriptActionsGetExecutionAsyncOperationStatusResponse = AsyncOperationResult;
+
+// @public
+export interface ScriptActionsGetExecutionDetailOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail;
+
+// @public
+export interface ScriptActionsList {
+ readonly nextLink?: string;
+ value?: RuntimeScriptActionDetail[];
+}
+
+// @public
+export interface ScriptActionsListByClusterNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ScriptActionsListByClusterNextResponse = ScriptActionsList;
+
+// @public
+export interface ScriptActionsListByClusterOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ScriptActionsListByClusterResponse = ScriptActionsList;
+
+// @public
+export interface ScriptExecutionHistory {
+ listByCluster(resourceGroupName: string, clusterName: string, options?: ScriptExecutionHistoryListByClusterOptionalParams): PagedAsyncIterableIterator;
+ promote(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: ScriptExecutionHistoryPromoteOptionalParams): Promise;
+}
+
+// @public
+export interface ScriptExecutionHistoryListByClusterNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecutionHistoryList;
+
+// @public
+export interface ScriptExecutionHistoryListByClusterOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionHistoryList;
+
+// @public
+export interface ScriptExecutionHistoryPromoteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface SecurityProfile {
+ aaddsResourceId?: string;
+ clusterUsersGroupDNs?: string[];
+ directoryType?: DirectoryType;
+ domain?: string;
+ domainUsername?: string;
+ domainUserPassword?: string;
+ ldapsUrls?: string[];
+ msiResourceId?: string;
+ organizationalUnitDN?: string;
+}
+
+// @public
+export interface ServiceSpecification {
+ metricSpecifications?: MetricSpecifications[];
+}
+
+// @public
+export interface SshProfile {
+ publicKeys?: SshPublicKey[];
+}
+
+// @public
+export interface SshPublicKey {
+ certificateData?: string;
+}
+
+// @public
+export interface StorageAccount {
+ container?: string;
+ fileshare?: string;
+ fileSystem?: string;
+ isDefault?: boolean;
+ key?: string;
+ msiResourceId?: string;
+ name?: string;
+ resourceId?: string;
+ saskey?: string;
+}
+
+// @public
+export interface StorageProfile {
+ storageaccounts?: StorageAccount[];
+}
+
+// @public
+export interface SystemData {
+ createdAt?: Date;
+ createdBy?: string;
+ createdByType?: CreatedByType;
+ lastModifiedAt?: Date;
+ lastModifiedBy?: string;
+ lastModifiedByType?: CreatedByType;
+}
+
+// @public
+export type Tier = string;
+
+// @public
+export type TrackedResource = ResourceAutoGenerated & {
+ tags?: {
+ [propertyName: string]: string;
+ };
+ location: string;
+};
+
+// @public
+export interface UpdateClusterIdentityCertificateParameters {
+ applicationId?: string;
+ certificate?: string;
+ certificatePassword?: string;
+}
+
+// @public
+export interface UpdateGatewaySettingsParameters {
+ isCredentialEnabled?: boolean;
+ password?: string;
+ userName?: string;
+}
+
+// @public
+export interface Usage {
+ currentValue?: number;
+ limit?: number;
+ readonly name?: LocalizedName;
+ unit?: string;
+}
+
+// @public
+export interface UsagesListResult {
+ value?: Usage[];
+}
+
+// @public
+export interface UserAssignedIdentity {
+ readonly clientId?: string;
+ readonly principalId?: string;
+ tenantId?: string;
+}
+
+// @public
+export interface ValidationErrorInfo {
+ code?: string;
+ errorResource?: string;
+ message?: string;
+ messageArguments?: string[];
+}
+
+// @public
+export interface VersionsCapability {
+ available?: VersionSpec[];
+}
+
+// @public
+export interface VersionSpec {
+ componentVersions?: {
+ [propertyName: string]: string;
+ };
+ displayName?: string;
+ friendlyName?: string;
+ isDefault?: boolean;
+}
+
+// @public
+export interface VirtualMachines {
+ 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;
+}
+
+// @public
+export interface VirtualMachinesGetAsyncOperationStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type VirtualMachinesGetAsyncOperationStatusResponse = AsyncOperationResult;
+
+// @public
+export interface VirtualMachinesListHostsOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type VirtualMachinesListHostsResponse = HostInfo[];
+
+// @public
+export interface VirtualMachinesRestartHostsOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface VirtualNetworkProfile {
+ id?: string;
+ subnet?: string;
+}
+
+// @public
+export interface VmSizeCompatibilityFilterV2 {
+ clusterFlavors?: string[];
+ clusterVersions?: string[];
+ computeIsolationSupported?: string;
+ espApplied?: string;
+ filterMode?: FilterMode;
+ nodeTypes?: string[];
+ osType?: OSType[];
+ regions?: string[];
+ vmSizes?: string[];
+}
+
+// @public
+export interface VmSizeProperty {
+ cores?: number;
+ dataDiskStorageTier?: string;
+ label?: string;
+ maxDataDiskCount?: number;
+ memoryInMb?: number;
+ name?: string;
+ supportedByVirtualMachines?: boolean;
+ supportedByWebWorkerRoles?: boolean;
+ virtualMachineResourceDiskSizeInMb?: number;
+ webWorkerResourceDiskSizeInMb?: number;
+}
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/hdinsight/arm-hdinsight/rollup.config.js b/sdk/hdinsight/arm-hdinsight/rollup.config.js
index f525176f9177..9be1955eb7f1 100644
--- a/sdk/hdinsight/arm-hdinsight/rollup.config.js
+++ b/sdk/hdinsight/arm-hdinsight/rollup.config.js
@@ -1,37 +1,188 @@
-import rollup from "rollup";
-import nodeResolve from "rollup-plugin-node-resolve";
-import sourcemaps from "rollup-plugin-sourcemaps";
-
-/**
- * @type {rollup.RollupFileOptions}
- */
-const config = {
- input: "./esm/hDInsightManagementClient.js",
- external: [
- "@azure/ms-rest-js",
- "@azure/ms-rest-azure-js"
- ],
- output: {
- file: "./dist/arm-hdinsight.js",
- format: "umd",
- name: "Azure.ArmHdinsight",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
- },
- banner: `/*
+/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */`
- },
- plugins: [
- nodeResolve({ mainFields: ['module', 'main'] }),
- sourcemaps()
- ]
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
+/**
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
+ */
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
+ },
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts
index 6d57ff19d793..63143cbd5ba2 100644
--- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts
+++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts
@@ -3,65 +3,118 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import { TokenCredential } from "@azure/core-auth";
-import * as Models from "./models";
-import * as Mappers from "./models/mappers";
-import * as operations from "./operations";
-import { HDInsightManagementClientContext } from "./hDInsightManagementClientContext";
+import * as coreClient from "@azure/core-client";
+import * as coreAuth from "@azure/core-auth";
+import {
+ ClustersImpl,
+ ApplicationsImpl,
+ LocationsImpl,
+ ConfigurationsImpl,
+ ExtensionsImpl,
+ ScriptActionsImpl,
+ ScriptExecutionHistoryImpl,
+ OperationsImpl,
+ VirtualMachinesImpl,
+ PrivateEndpointConnectionsImpl,
+ PrivateLinkResourcesImpl
+} from "./operations";
+import {
+ Clusters,
+ Applications,
+ Locations,
+ Configurations,
+ Extensions,
+ ScriptActions,
+ ScriptExecutionHistory,
+ Operations,
+ VirtualMachines,
+ PrivateEndpointConnections,
+ PrivateLinkResources
+} from "./operationsInterfaces";
+import { HDInsightManagementClientOptionalParams } from "./models";
-class HDInsightManagementClient extends HDInsightManagementClientContext {
- // Operation groups
- clusters: operations.Clusters;
- applications: operations.Applications;
- locations: operations.Locations;
- configurations: operations.Configurations;
- extensions: operations.Extensions;
- scriptActions: operations.ScriptActions;
- scriptExecutionHistory: operations.ScriptExecutionHistory;
- operations: operations.Operations;
- virtualMachines: operations.VirtualMachines;
+export class HDInsightManagementClient extends coreClient.ServiceClient {
+ $host: string;
+ subscriptionId: string;
+ apiVersion: string;
/**
* Initializes a new instance of the HDInsightManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
- * more information about these credentials, see
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
- * @azure/ms-rest-browserauth are also supported.
+ * @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId The subscription credentials which uniquely identify Microsoft Azure
- * subscription. The subscription ID forms part of the URI for every service call.
- * @param [options] The parameter options
+ * subscription. The subscription ID forms part of the URI for every service call.
+ * @param options The parameter options
*/
constructor(
- credentials: msRest.ServiceClientCredentials | TokenCredential,
+ credentials: coreAuth.TokenCredential,
subscriptionId: string,
- options?: Models.HDInsightManagementClientOptions
+ options?: HDInsightManagementClientOptionalParams
) {
- super(credentials, subscriptionId, options);
- this.clusters = new operations.Clusters(this);
- this.applications = new operations.Applications(this);
- this.locations = new operations.Locations(this);
- this.configurations = new operations.Configurations(this);
- this.extensions = new operations.Extensions(this);
- this.scriptActions = new operations.ScriptActions(this);
- this.scriptExecutionHistory = new operations.ScriptExecutionHistory(this);
- this.operations = new operations.Operations(this);
- this.virtualMachines = new operations.VirtualMachines(this);
- }
-}
+ if (credentials === undefined) {
+ throw new Error("'credentials' cannot be null");
+ }
+ if (subscriptionId === undefined) {
+ throw new Error("'subscriptionId' cannot be null");
+ }
+
+ // Initializing default values for options
+ if (!options) {
+ options = {};
+ }
+ const defaults: HDInsightManagementClientOptionalParams = {
+ requestContentType: "application/json; charset=utf-8",
+ credential: credentials
+ };
+
+ const packageDetails = `azsdk-js-arm-hdinsight/1.0.0`;
+ const userAgentPrefix =
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
+ : `${packageDetails}`;
-// Operation Specifications
+ if (!options.credentialScopes) {
+ options.credentialScopes = ["https://management.azure.com/.default"];
+ }
+ const optionsWithDefaults = {
+ ...defaults,
+ ...options,
+ userAgentOptions: {
+ userAgentPrefix
+ },
+ baseUri: options.endpoint || "https://management.azure.com"
+ };
+ super(optionsWithDefaults);
+ // Parameter assignments
+ this.subscriptionId = subscriptionId;
-export {
- HDInsightManagementClient,
- HDInsightManagementClientContext,
- Models as HDInsightManagementModels,
- Mappers as HDInsightManagementMappers
-};
-export * from "./operations";
+ // 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.applications = new ApplicationsImpl(this);
+ this.locations = new LocationsImpl(this);
+ this.configurations = new ConfigurationsImpl(this);
+ this.extensions = new ExtensionsImpl(this);
+ this.scriptActions = new ScriptActionsImpl(this);
+ this.scriptExecutionHistory = new ScriptExecutionHistoryImpl(this);
+ this.operations = new OperationsImpl(this);
+ this.virtualMachines = new VirtualMachinesImpl(this);
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
+ }
+
+ clusters: Clusters;
+ applications: Applications;
+ locations: Locations;
+ configurations: Configurations;
+ extensions: Extensions;
+ scriptActions: ScriptActions;
+ scriptExecutionHistory: ScriptExecutionHistory;
+ operations: Operations;
+ virtualMachines: VirtualMachines;
+ privateEndpointConnections: PrivateEndpointConnections;
+ privateLinkResources: PrivateLinkResources;
+}
diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts
deleted file mode 100644
index f6a288efc1f7..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-import * as Models from "./models";
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import { TokenCredential } from "@azure/core-auth";
-
-const packageName = "@azure/arm-hdinsight";
-const packageVersion = "0.23.0";
-
-export class HDInsightManagementClientContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials | TokenCredential;
- subscriptionId: string;
- apiVersion?: string;
-
- /**
- * Initializes a new instance of the HDInsightManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
- * more information about these credentials, see
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
- * @azure/ms-rest-browserauth are also supported.
- * @param subscriptionId The subscription credentials which uniquely identify Microsoft Azure
- * subscription. The subscription ID forms part of the URI for every service call.
- * @param [options] The parameter options
- */
- constructor(
- credentials: msRest.ServiceClientCredentials | TokenCredential,
- subscriptionId: string,
- options?: Models.HDInsightManagementClientOptions
- ) {
- if (credentials == undefined) {
- throw new Error("'credentials' cannot be null.");
- }
- if (subscriptionId == undefined) {
- throw new Error("'subscriptionId' cannot be null.");
- }
-
- if (!options) {
- options = {};
- }
- if (!options.userAgent) {
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
- }
-
- super(credentials, options);
-
- this.apiVersion = "2018-06-01-preview";
- this.acceptLanguage = "en-US";
- this.longRunningOperationRetryTimeout = 30;
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
- this.requestContentType = "application/json; charset=utf-8";
- this.credentials = credentials;
- this.subscriptionId = subscriptionId;
-
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
- this.acceptLanguage = options.acceptLanguage;
- }
- if (
- options.longRunningOperationRetryTimeout !== null &&
- options.longRunningOperationRetryTimeout !== undefined
- ) {
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
- }
- }
-}
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/configurationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/index.ts
similarity index 55%
rename from sdk/hdinsight/arm-hdinsight/src/models/configurationsMappers.ts
rename to sdk/hdinsight/arm-hdinsight/src/index.ts
index e5c4f6679f44..07e46dc7018f 100644
--- a/sdk/hdinsight/arm-hdinsight/src/models/configurationsMappers.ts
+++ b/sdk/hdinsight/arm-hdinsight/src/index.ts
@@ -6,7 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export {
- ClusterConfigurations,
- ErrorResponse
-} from "../models/mappers";
+///
+export * from "./models";
+export { HDInsightManagementClient } from "./hDInsightManagementClient";
+export * from "./operationsInterfaces";
diff --git a/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts b/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts
new file mode 100644
index 000000000000..518d5f053b4e
--- /dev/null
+++ b/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+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"
+ });
+ }
+}
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts
deleted file mode 100644
index b8cf80364cb7..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- Application,
- ApplicationGetEndpoint,
- ApplicationGetHttpsEndpoint,
- ApplicationListResult,
- ApplicationProperties,
- AsyncOperationResult,
- Autoscale,
- AutoscaleCapacity,
- AutoscaleRecurrence,
- AutoscaleSchedule,
- AutoscaleTimeAndCapacity,
- BaseResource,
- ClientGroupInfo,
- Cluster,
- ClusterDefinition,
- ClusterGetProperties,
- ClusterIdentity,
- ClusterIdentityUserAssignedIdentitiesValue,
- ComputeIsolationProperties,
- ComputeProfile,
- ConnectivityEndpoint,
- DataDisksGroups,
- DiskEncryptionProperties,
- EncryptionInTransitProperties,
- ErrorResponse,
- Errors,
- ExcludedServicesConfig,
- HardwareProfile,
- KafkaRestProperties,
- LinuxOperatingSystemProfile,
- NetworkProperties,
- OsProfile,
- ProxyResource,
- QuotaInfo,
- Resource,
- Role,
- RuntimeScriptAction,
- RuntimeScriptActionDetail,
- ScriptAction,
- ScriptActionExecutionSummary,
- SecurityProfile,
- SshProfile,
- SshPublicKey,
- StorageAccount,
- StorageProfile,
- TrackedResource,
- VirtualNetworkProfile
-} from "../models/mappers";
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts
deleted file mode 100644
index b4015291b184..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- Application,
- ApplicationGetEndpoint,
- ApplicationGetHttpsEndpoint,
- ApplicationProperties,
- AsyncOperationResult,
- Autoscale,
- AutoscaleCapacity,
- AutoscaleConfigurationUpdateParameter,
- AutoscaleRecurrence,
- AutoscaleSchedule,
- AutoscaleTimeAndCapacity,
- BaseResource,
- ClientGroupInfo,
- Cluster,
- ClusterCreateParametersExtended,
- ClusterCreateProperties,
- ClusterCreateRequestValidationParameters,
- ClusterDefinition,
- ClusterDiskEncryptionParameters,
- ClusterGetProperties,
- ClusterIdentity,
- ClusterIdentityUserAssignedIdentitiesValue,
- ClusterListResult,
- ClusterPatchParameters,
- ClusterResizeParameters,
- ComputeIsolationProperties,
- ComputeProfile,
- ConnectivityEndpoint,
- DataDisksGroups,
- DiskEncryptionProperties,
- EncryptionInTransitProperties,
- ErrorResponse,
- Errors,
- ExcludedServicesConfig,
- ExecuteScriptActionParameters,
- GatewaySettings,
- HardwareProfile,
- KafkaRestProperties,
- LinuxOperatingSystemProfile,
- NetworkProperties,
- OsProfile,
- ProxyResource,
- QuotaInfo,
- Resource,
- Role,
- RuntimeScriptAction,
- RuntimeScriptActionDetail,
- ScriptAction,
- ScriptActionExecutionSummary,
- SecurityProfile,
- SshProfile,
- SshPublicKey,
- StorageAccount,
- StorageProfile,
- TrackedResource,
- UpdateClusterIdentityCertificateParameters,
- UpdateGatewaySettingsParameters,
- VirtualNetworkProfile
-} from "../models/mappers";
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/extensionsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/extensionsMappers.ts
deleted file mode 100644
index 56f6a4326eeb..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/models/extensionsMappers.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AsyncOperationResult,
- AzureMonitorRequest,
- AzureMonitorResponse,
- AzureMonitorSelectedConfigurations,
- AzureMonitorTableConfiguration,
- ClusterMonitoringRequest,
- ClusterMonitoringResponse,
- ErrorResponse,
- Errors,
- Extension
-} from "../models/mappers";
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/index.ts b/sdk/hdinsight/arm-hdinsight/src/models/index.ts
index 673c4d03ebfb..fb081832f42c 100644
--- a/sdk/hdinsight/arm-hdinsight/src/models/index.ts
+++ b/sdk/hdinsight/arm-hdinsight/src/models/index.ts
@@ -6,2981 +6,2210 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export { BaseResource, CloudError };
+/** 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 definition.
- */
+/** 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.
- */
+ /** The link to the blueprint. */
blueprint?: string;
- /**
- * The type of cluster.
- */
+ /** The type of cluster. */
kind?: string;
- /**
- * The versions of different services in the cluster.
- */
+ /** The versions of different services in the cluster. */
componentVersion?: { [propertyName: string]: string };
- /**
- * The cluster configurations.
- */
- configurations?: any;
+ /** The cluster configurations. */
+ configurations?: Record;
}
-/**
- * The information of AAD security group.
- */
-export interface ClientGroupInfo {
- /**
- * The AAD security group name.
- */
- groupName?: string;
- /**
- * The AAD security group id.
- */
- groupId?: string;
-}
-
-/**
- * The kafka rest proxy configuration which contains AAD security group information.
- */
+/** The kafka rest proxy configuration which contains AAD security group information. */
export interface KafkaRestProperties {
- /**
- * The information of AAD security group.
- */
+ /** The information of AAD security group. */
clientGroupInfo?: ClientGroupInfo;
- /**
- * The configurations that need to be overriden.
- */
+ /** The configurations that need to be overriden. */
configurationOverride?: { [propertyName: string]: string };
}
-/**
- * The security profile which contains Ssh public key for the HDInsight cluster.
- */
+/** 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. Possible values include: 'ActiveDirectory'
- */
+ /** The directory type. */
directoryType?: DirectoryType;
- /**
- * The organization's active directory domain.
- */
+ /** The organization's active directory domain. */
domain?: string;
- /**
- * The organizational unit within the Active Directory to place the cluster and service accounts.
- */
+ /** 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.
- */
+ /** The LDAPS protocol URLs to communicate with the Active Directory. */
ldapsUrls?: string[];
- /**
- * The domain user account that will have admin privileges on the cluster.
- */
+ /** 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
- */
+ /** Optional. The Distinguished Names for cluster user groups */
clusterUsersGroupDNs?: string[];
- /**
- * The resource ID of the user's Azure Active Directory Domain Service.
- */
+ /** 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.
- */
+ /** User assigned identity that has permissions to read and create cluster-related artifacts in the user's AADDS. */
msiResourceId?: string;
}
-/**
- * Time and capacity request parameters
- */
-export interface AutoscaleTimeAndCapacity {
- /**
- * 24-hour time in the form xx:xx
- */
- time?: string;
- /**
- * The minimum instance count of the cluster
- */
+/** Describes the compute profile. */
+export interface ComputeProfile {
+ /** The list of roles in the cluster. */
+ roles?: Role[];
+}
+
+/** Describes a role on the cluster. */
+export interface Role {
+ /** The name of the role. */
+ name?: string;
+ /** The minimum instance count of the cluster. */
minInstanceCount?: number;
- /**
- * The maximum instance count of the cluster
- */
- maxInstanceCount?: number;
+ /** The instance count of the cluster. */
+ targetInstanceCount?: number;
+ /** The name of the virtual machine group. */
+ vMGroupName?: string;
+ /** The autoscale configurations. */
+ autoscaleConfiguration?: Autoscale;
+ /** The hardware profile. */
+ hardwareProfile?: HardwareProfile;
+ /** The operating system profile. */
+ osProfile?: OsProfile;
+ /** The virtual network profile. */
+ virtualNetworkProfile?: VirtualNetworkProfile;
+ /** The data disks groups for the role. */
+ dataDisksGroups?: DataDisksGroups[];
+ /** The list of script actions on the role. */
+ scriptActions?: ScriptAction[];
+ /** Indicates whether encrypt the data disks. */
+ encryptDataDisks?: boolean;
}
-/**
- * Parameters for a schedule-based autoscale rule, consisting of an array of days + a time and
- * capacity
- */
-export interface AutoscaleSchedule {
- /**
- * Days of the week for a schedule-based autoscale rule
- */
- days?: DaysOfWeek[];
- /**
- * Time and capacity for a schedule-based autoscale rule
- */
- timeAndCapacity?: AutoscaleTimeAndCapacity;
+/** The autoscale request parameters */
+export interface Autoscale {
+ /** Parameters for load-based autoscale */
+ capacity?: AutoscaleCapacity;
+ /** Parameters for schedule-based autoscale */
+ recurrence?: AutoscaleRecurrence;
}
-/**
- * The load-based autoscale request parameters
- */
+/** The load-based autoscale request parameters */
export interface AutoscaleCapacity {
- /**
- * The minimum instance count of the cluster
- */
+ /** The minimum instance count of the cluster */
minInstanceCount?: number;
- /**
- * The maximum instance count of the cluster
- */
+ /** The maximum instance count of the cluster */
maxInstanceCount?: number;
}
-/**
- * Schedule-based autoscale request parameters
- */
+/** Schedule-based autoscale request parameters */
export interface AutoscaleRecurrence {
- /**
- * The time zone for the autoscale schedule times
- */
+ /** The time zone for the autoscale schedule times */
timeZone?: string;
- /**
- * Array of schedule-based autoscale rules
- */
+ /** Array of schedule-based autoscale rules */
schedule?: AutoscaleSchedule[];
}
-/**
- * The autoscale request parameters
- */
-export interface Autoscale {
- /**
- * Parameters for load-based autoscale
- */
- capacity?: AutoscaleCapacity;
- /**
- * Parameters for schedule-based autoscale
- */
- recurrence?: AutoscaleRecurrence;
+/** Parameters for a schedule-based autoscale rule, consisting of an array of days + a time and capacity */
+export interface AutoscaleSchedule {
+ /** Days of the week for a schedule-based autoscale rule */
+ days?: DaysOfWeek[];
+ /** Time and capacity for a schedule-based autoscale rule */
+ timeAndCapacity?: AutoscaleTimeAndCapacity;
}
-/**
- * The autoscale configuration update parameter.
- */
-export interface AutoscaleConfigurationUpdateParameter {
- /**
- * The autoscale configuration.
- */
- autoscale?: Autoscale;
+/** Time and capacity request parameters */
+export interface AutoscaleTimeAndCapacity {
+ /** 24-hour time in the form xx:xx */
+ time?: string;
+ /** The minimum instance count of the cluster */
+ minInstanceCount?: number;
+ /** The maximum instance count of the cluster */
+ maxInstanceCount?: number;
}
-/**
- * The hardware profile.
- */
+/** The hardware profile. */
export interface HardwareProfile {
- /**
- * The size of the VM
- */
+ /** The size of the VM */
vmSize?: string;
}
-/**
- * The virtual network properties.
- */
+/** The Linux operation systems profile. */
+export interface OsProfile {
+ /** The Linux OS profile. */
+ linuxOperatingSystemProfile?: LinuxOperatingSystemProfile;
+}
+
+/** The ssh username, password, and ssh public key. */
+export interface LinuxOperatingSystemProfile {
+ /** The username. */
+ username?: string;
+ /** The password. */
+ password?: string;
+ /** The SSH profile. */
+ sshProfile?: SshProfile;
+}
+
+/** The list of SSH public keys. */
+export interface SshProfile {
+ /** The list of SSH public keys. */
+ publicKeys?: SshPublicKey[];
+}
+
+/** The SSH public key for the cluster nodes. */
+export interface SshPublicKey {
+ /** The certificate for SSH. */
+ certificateData?: string;
+}
+
+/** The virtual network properties. */
export interface VirtualNetworkProfile {
- /**
- * The ID of the virtual network.
- */
+ /** The ID of the virtual network. */
id?: string;
- /**
- * The name of the subnet.
- */
+ /** The name of the subnet. */
subnet?: string;
}
-/**
- * The data disks groups for the role.
- */
+/** The data disks groups for the role. */
export interface DataDisksGroups {
- /**
- * The number of disks per node.
- */
+ /** The number of disks per node. */
disksPerNode?: number;
/**
* ReadOnly. The storage account type. Do not set this value.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly storageAccountType?: string;
/**
* ReadOnly. The DiskSize in GB. Do not set this value.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly diskSizeGB?: number;
}
-/**
- * The SSH public key for the cluster nodes.
- */
-export interface SshPublicKey {
- /**
- * The certificate for SSH.
- */
- certificateData?: string;
+/** Describes a script action on role on the cluster. */
+export interface ScriptAction {
+ /** The name of the script action. */
+ name: string;
+ /** The URI to the script. */
+ uri: string;
+ /** The parameters for the script provided. */
+ parameters: string;
}
-/**
- * The list of SSH public keys.
- */
-export interface SshProfile {
- /**
- * The list of SSH public keys.
- */
- publicKeys?: SshPublicKey[];
+/** The storage profile. */
+export interface StorageProfile {
+ /** The list of storage accounts in the cluster. */
+ storageaccounts?: StorageAccount[];
}
-/**
- * The ssh username, password, and ssh public key.
- */
-export interface LinuxOperatingSystemProfile {
- /**
- * The username.
- */
- username?: string;
- /**
- * The password.
- */
- password?: string;
- /**
- * The SSH profile.
- */
- sshProfile?: SshProfile;
+/** 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 Linux operation systems profile.
- */
-export interface OsProfile {
- /**
- * The Linux OS profile.
- */
- linuxOperatingSystemProfile?: LinuxOperatingSystemProfile;
+/** 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 role on the cluster.
- */
-export interface ScriptAction {
+/** 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;
+}
+
+/** The private link configuration. */
+export interface PrivateLinkConfiguration {
/**
- * The name of the script action.
+ * The private link configuration id.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly id?: string;
+ /** The name of private link configuration. */
name: string;
/**
- * The URI to the script.
+ * The type of the private link configuration.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- uri: string;
+ readonly type?: string;
+ /** The HDInsight private linkable sub-resource name to apply the private link configuration to. For example, 'headnode', 'gateway', 'edgenode'. */
+ groupId: string;
/**
- * The parameters for the script provided.
+ * The private link configuration provisioning state, which only appears in the response.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- parameters: string;
+ readonly provisioningState?: PrivateLinkConfigurationProvisioningState;
+ /** The IP configurations for the private link service. */
+ ipConfigurations: IPConfiguration[];
}
-/**
- * Describes a role on the cluster.
- */
-export interface Role {
+/** The ip configurations for the private link service. */
+export interface IPConfiguration {
/**
- * The name of the role.
+ * The private link IP configuration id.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- name?: string;
+ readonly id?: string;
+ /** The name of private link IP configuration. */
+ name: string;
/**
- * The minimum instance count of the cluster.
+ * The type of the private link IP configuration.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- minInstanceCount?: number;
- /**
- * The instance count of the cluster.
- */
- targetInstanceCount?: number;
- /**
- * The name of the virtual machine group.
- */
- vMGroupName?: string;
- /**
- * The autoscale configurations.
- */
- autoscaleConfiguration?: Autoscale;
- /**
- * The hardware profile.
- */
- hardwareProfile?: HardwareProfile;
+ readonly type?: string;
/**
- * The operating system profile.
+ * The private link configuration provisioning state, which only appears in the response.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- osProfile?: OsProfile;
+ readonly provisioningState?: PrivateLinkConfigurationProvisioningState;
+ /** Indicates whether this IP configuration is primary for the corresponding NIC. */
+ primary?: boolean;
+ /** The IP address. */
+ privateIPAddress?: string;
+ /** The method that private IP address is allocated. */
+ privateIPAllocationMethod?: PrivateIPAllocationMethod;
+ /** The subnet resource id. */
+ subnet?: ResourceId;
+}
+
+/** The azure resource id. */
+export interface ResourceId {
+ /** The azure resource id. */
+ id?: string;
+}
+
+/** Identity for the cluster. */
+export interface ClusterIdentity {
/**
- * The virtual network profile.
+ * 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.
*/
- virtualNetworkProfile?: VirtualNetworkProfile;
+ readonly principalId?: string;
/**
- * The data disks groups for the role.
+ * 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.
*/
- dataDisksGroups?: DataDisksGroups[];
+ readonly tenantId?: string;
+ /** The type of identity used for the cluster. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. */
+ type?: ResourceIdentityType;
+ /** The list of user identities associated with the cluster. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */
+ userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity };
+}
+
+/** The User Assigned Identity */
+export interface UserAssignedIdentity {
/**
- * The list of script actions on the role.
+ * The principal id of user assigned identity.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- scriptActions?: ScriptAction[];
+ readonly principalId?: string;
/**
- * Indicates whether encrypt the data disks. Default value: false.
+ * The client id of user assigned identity.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- encryptDataDisks?: boolean;
+ readonly clientId?: string;
+ /** The tenant id of user assigned identity. */
+ tenantId?: string;
}
-/**
- * Describes the compute profile.
- */
-export interface ComputeProfile {
+/** The properties of cluster. */
+export interface ClusterGetProperties {
+ /** The version of the cluster. */
+ clusterVersion?: string;
+ /** The hdp version of the cluster. */
+ clusterHdpVersion?: string;
+ /** The type of operating system. */
+ osType?: OSType;
+ /** The cluster tier. */
+ tier?: Tier;
+ /** The cluster id. */
+ clusterId?: string;
+ /** The cluster definition. */
+ clusterDefinition: ClusterDefinition;
+ /** The cluster kafka rest proxy configuration. */
+ kafkaRestProperties?: KafkaRestProperties;
+ /** The security profile. */
+ securityProfile?: SecurityProfile;
+ /** The compute profile. */
+ computeProfile?: ComputeProfile;
+ /** The provisioning state, which only appears in the response. */
+ provisioningState?: HDInsightClusterProvisioningState;
+ /** The date on which the cluster was created. */
+ createdDate?: string;
+ /** The state of the cluster. */
+ clusterState?: string;
+ /** The quota information. */
+ quotaInfo?: QuotaInfo;
+ /** The list of errors. */
+ errors?: Errors[];
+ /** The list of connectivity endpoints. */
+ connectivityEndpoints?: ConnectivityEndpoint[];
+ /** The disk encryption properties. */
+ diskEncryptionProperties?: DiskEncryptionProperties;
+ /** The encryption-in-transit properties. */
+ encryptionInTransitProperties?: EncryptionInTransitProperties;
+ /** The storage profile. */
+ storageProfile?: StorageProfile;
+ /** The minimal supported tls version. */
+ minSupportedTlsVersion?: string;
+ /** The excluded services config. */
+ excludedServicesConfig?: ExcludedServicesConfig;
+ /** The network properties. */
+ networkProperties?: NetworkProperties;
+ /** The compute isolation properties. */
+ computeIsolationProperties?: ComputeIsolationProperties;
+ /** The private link configurations. */
+ privateLinkConfigurations?: PrivateLinkConfiguration[];
/**
- * The list of roles in the cluster.
+ * The list of private endpoint connections.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- roles?: Role[];
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
}
-/**
- * The storage Account.
- */
-export interface StorageAccount {
- /**
- * The name of the storage account.
- */
+/** The quota properties for the cluster. */
+export interface QuotaInfo {
+ /** The cores used by the cluster. */
+ 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. */
name?: string;
+ /** The protocol of the endpoint. */
+ protocol?: string;
+ /** The location of the endpoint. */
+ location?: string;
+ /** The port to connect to. */
+ port?: number;
+ /** The private ip address of the endpoint. */
+ privateIPAddress?: string;
+}
+
+/** The configuration that services will be excluded when creating cluster. */
+export interface ExcludedServicesConfig {
+ /** The config id of excluded services. */
+ excludedServicesConfigId?: string;
+ /** The list of excluded services. */
+ excludedServicesList?: string;
+}
+
+/** The private endpoint. */
+export interface PrivateEndpoint {
+ /** The private endpoint id. */
+ id?: string;
+}
+
+/** The private link service connection state. */
+export interface PrivateLinkServiceConnectionState {
+ /** The concrete private link service connection. */
+ status: PrivateLinkServiceConnectionStatus;
+ /** The optional description of the status. */
+ description?: string;
+ /** Whether there is further actions. */
+ 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 {
/**
- * 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.
+ * 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.
*/
- fileSystem?: string;
+ readonly id?: string;
/**
- * The storage account access key.
+ * The name of the resource
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- key?: string;
+ readonly name?: string;
/**
- * The resource ID of storage account, only to be specified for Azure Data Lake Storage Gen 2.
+ * 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.
*/
- resourceId?: string;
+ readonly type?: string;
+}
+
+/** Common fields that are returned in the response for all Azure Resource Manager resources */
+export interface ResourceAutoGenerated {
/**
- * The managed identity (MSI) that is allowed to access the storage account, only to be specified
- * for Azure Data Lake Storage Gen 2.
+ * 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.
*/
- msiResourceId?: string;
+ readonly id?: string;
/**
- * The shared access signature key.
+ * The name of the resource
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- saskey?: string;
+ readonly name?: string;
/**
- * The file share name.
+ * 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.
*/
- fileshare?: string;
+ readonly type?: string;
}
-/**
- * The storage profile.
- */
-export interface StorageProfile {
- /**
- * The list of storage accounts in the cluster.
- */
- storageaccounts?: StorageAccount[];
+/** Describes the format of Error response. */
+export interface ErrorResponse {
+ /** Error code */
+ code?: string;
+ /** Error message indicating why the operation failed. */
+ message?: string;
}
-/**
- * The configuration that services will be excluded when creating cluster.
- */
-export interface ExcludedServicesConfig {
- /**
- * The config id of excluded services.
- */
- excludedServicesConfigId?: string;
- /**
- * The list of excluded services.
- */
- excludedServicesList?: string;
+/** The PatchCluster request parameters */
+export interface ClusterPatchParameters {
+ /** The resource tags. */
+ tags?: { [propertyName: string]: string };
}
-/**
- * The network properties.
- */
-export interface NetworkProperties {
- /**
- * The direction for the resource provider connection. Possible values include: 'Inbound',
- * 'Outbound'
- */
- resourceProviderConnection?: ResourceProviderConnection;
+/** The List Cluster operation response. */
+export interface ClusterListResult {
+ /** The list of Clusters. */
+ value?: Cluster[];
/**
- * Indicates whether or not private link is enabled. Possible values include: 'Disabled',
- * 'Enabled'
+ * The link (url) to the next page of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- privateLink?: PrivateLink;
+ readonly nextLink?: string;
}
-/**
- * The compute isolation properties.
- */
-export interface ComputeIsolationProperties {
- /**
- * The flag indicates whether enable compute isolation or not. Default value: false.
- */
- enableComputeIsolation?: boolean;
- /**
- * The host sku.
- */
- hostSku?: string;
+/** The Resize Cluster request parameters. */
+export interface ClusterResizeParameters {
+ /** The target instance count for the operation. */
+ targetInstanceCount?: number;
}
-/**
- * The disk encryption properties
- */
-export interface DiskEncryptionProperties {
- /**
- * Base key vault URI where the customers key is located eg. https://myvault.vault.azure.net
- */
+/** The autoscale configuration update parameter. */
+export interface AutoscaleConfigurationUpdateParameter {
+ /** The autoscale configuration. */
+ autoscale?: Autoscale;
+}
+
+/** 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.
- */
+ /** Key name that is used for enabling disk encryption. */
keyName?: string;
- /**
- * Specific key version that is used for enabling disk encryption.
- */
+ /** Specific key version that is used for enabling disk encryption. */
keyVersion?: string;
+}
+
+/** Gateway settings. */
+export interface GatewaySettings {
/**
- * Algorithm identifier for encryption, default RSA-OAEP. Possible values include: 'RSA-OAEP',
- * 'RSA-OAEP-256', 'RSA1_5'
+ * 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.
*/
- encryptionAlgorithm?: JsonWebKeyEncryptionAlgorithm;
+ readonly isCredentialEnabled?: string;
/**
- * Resource ID of Managed Identity that is used to access the key vault.
+ * The gateway settings user name.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- msiResourceId?: string;
+ readonly userName?: string;
/**
- * Indicates whether or not resource disk encryption is enabled. Default value: false.
+ * The gateway settings user password.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- encryptionAtHost?: boolean;
+ readonly password?: string;
}
-/**
- * The encryption-in-transit properties.
- */
-export interface EncryptionInTransitProperties {
- /**
- * Indicates whether or not inter cluster node communication is encrypted in transit. Default
- * value: false.
- */
- isEncryptionInTransitEnabled?: boolean;
+/** 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 cluster create parameters.
- */
-export interface ClusterCreateProperties {
- /**
- * The version of the cluster.
- */
- clusterVersion?: 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 type of operating system. Possible values include: 'Windows', 'Linux'
+ * 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.
*/
- osType?: OSType;
+ 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 cluster tier. Possible values include: 'Standard', 'Premium'. Default value: 'Standard'.
+ * The provisioning state of the application.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- tier?: Tier;
+ readonly provisioningState?: string;
+ /** The application type. */
+ applicationType?: string;
/**
- * The cluster definition.
+ * The application state.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- clusterDefinition?: ClusterDefinition;
+ readonly applicationState?: string;
+ /** The list of errors. */
+ errors?: Errors[];
/**
- * The cluster kafka rest proxy configuration.
+ * The application create date time.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- kafkaRestProperties?: KafkaRestProperties;
+ readonly createdDate?: string;
/**
- * The security profile.
+ * The marketplace identifier.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- securityProfile?: SecurityProfile;
+ 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[];
/**
- * The compute profile.
+ * The application name of the script action, if any.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- computeProfile?: ComputeProfile;
+ readonly applicationName?: string;
+}
+
+/** Gets the application HTTP endpoints. */
+export interface ApplicationGetHttpsEndpoint {
+ /** The list of access modes for the application. */
+ accessModes?: string[];
/**
- * The storage profile.
+ * The location of the endpoint.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- storageProfile?: StorageProfile;
+ readonly location?: string;
+ /** The destination port to connect to. */
+ destinationPort?: number;
/**
- * 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;
-}
-
-/**
- * An interface representing ClusterIdentityUserAssignedIdentitiesValue.
- */
-export interface ClusterIdentityUserAssignedIdentitiesValue {
- /**
- * The principal id of user assigned identity.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly principalId?: string;
- /**
- * The client id of user assigned identity.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly clientId?: string;
- /**
- * The tenant id of user assigned identity.
- */
- tenantId?: 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;
- /**
- * The type of identity used for the cluster. The type 'SystemAssigned, UserAssigned' includes
- * both an implicitly created identity and a set of user assigned identities. Possible values
- * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
- */
- type?: ResourceIdentityType;
- /**
- * The list of user identities associated with the cluster. The user identity dictionary key
- * references will be ARM resource ids in the form:
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- */
- userAssignedIdentities?: { [propertyName: string]: ClusterIdentityUserAssignedIdentitiesValue };
-}
-
-/**
- * The CreateCluster request parameters.
- */
-export interface ClusterCreateParametersExtended {
- /**
- * The location of the cluster.
- */
- location?: string;
- /**
- * The resource tags.
- */
- tags?: { [propertyName: string]: string };
- /**
- * The cluster create parameters.
- */
- properties?: ClusterCreateProperties;
- /**
- * The identity of the cluster, if configured.
- */
- identity?: ClusterIdentity;
-}
-
-/**
- * The PatchCluster request parameters
- */
-export interface ClusterPatchParameters {
- /**
- * The resource tags.
- */
- tags?: { [propertyName: string]: string };
-}
-
-/**
- * The quota properties for the cluster.
- */
-export interface QuotaInfo {
- /**
- * The cores used by the cluster.
- */
- 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.
- */
- name?: string;
- /**
- * The protocol of the endpoint.
- */
- protocol?: string;
- /**
- * The location of the endpoint.
- */
- location?: string;
- /**
- * The port to connect to.
- */
- port?: number;
- /**
- * The private ip address of the endpoint.
- */
- privateIPAddress?: string;
-}
-
-/**
- * The properties of cluster.
- */
-export interface ClusterGetProperties {
- /**
- * The version of the cluster.
- */
- clusterVersion?: string;
- /**
- * The hdp version of the cluster.
- */
- clusterHdpVersion?: string;
- /**
- * The type of operating system. Possible values include: 'Windows', 'Linux'
- */
- osType?: OSType;
- /**
- * The cluster tier. Possible values include: 'Standard', 'Premium'
- */
- tier?: Tier;
- /**
- * The cluster id.
- */
- clusterId?: string;
- /**
- * The cluster definition.
- */
- clusterDefinition: ClusterDefinition;
- /**
- * The cluster kafka rest proxy configuration.
- */
- kafkaRestProperties?: KafkaRestProperties;
- /**
- * The security profile.
- */
- securityProfile?: SecurityProfile;
- /**
- * The compute profile.
- */
- computeProfile?: ComputeProfile;
- /**
- * The provisioning state, which only appears in the response. Possible values include:
- * 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting'
- */
- provisioningState?: HDInsightClusterProvisioningState;
- /**
- * The date on which the cluster was created.
- */
- createdDate?: string;
- /**
- * The state of the cluster.
- */
- clusterState?: string;
- /**
- * The quota information.
- */
- quotaInfo?: QuotaInfo;
- /**
- * The list of errors.
- */
- errors?: Errors[];
- /**
- * The list of connectivity endpoints.
- */
- connectivityEndpoints?: ConnectivityEndpoint[];
- /**
- * The disk encryption properties.
- */
- diskEncryptionProperties?: DiskEncryptionProperties;
- /**
- * The encryption-in-transit properties.
- */
- encryptionInTransitProperties?: EncryptionInTransitProperties;
- /**
- * The storage profile.
- */
- storageProfile?: StorageProfile;
- /**
- * The minimal supported tls version.
- */
- minSupportedTlsVersion?: string;
- /**
- * The excluded services config.
- */
- excludedServicesConfig?: ExcludedServicesConfig;
- /**
- * The network properties.
- */
- networkProperties?: NetworkProperties;
- /**
- * The compute isolation properties.
- */
- computeIsolationProperties?: ComputeIsolationProperties;
-}
-
-/**
- * The core properties of ARM resources
- */
-export interface Resource extends BaseResource {
- /**
- * Fully qualified resource Id for the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- 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.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
-}
-
-/**
- * The resource model definition for a ARM tracked top level resource
- */
-export interface TrackedResource extends Resource {
- /**
- * The Azure Region where the resource lives
- */
- location?: string;
- /**
- * Resource tags.
- */
- tags?: { [propertyName: string]: string };
-}
-
-/**
- * The HDInsight cluster.
- */
-export interface Cluster extends TrackedResource {
- /**
- * The ETag for the resource
- */
- etag?: string;
- /**
- * The properties of the cluster.
- */
- properties?: ClusterGetProperties;
- /**
- * The identity of the cluster, if configured.
- */
- identity?: ClusterIdentity;
-}
-
-/**
- * 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 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 ListPersistedScriptActions operation response.
- */
-export interface ClusterListPersistedScriptActionsResult {
- /**
- * The list of Persisted Script Actions.
- */
- value?: RuntimeScriptAction[];
- /**
- * The link (url) to the next page of results.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- 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 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 list runtime script action detail response.
- */
-export interface ClusterListRuntimeScriptActionDetailResult {
- /**
- * The list of persisted script action details for the cluster.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- 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 Resize Cluster request parameters.
- */
-export interface ClusterResizeParameters {
- /**
- * The target instance count for the operation.
- */
- targetInstanceCount?: number;
-}
-
-/**
- * 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;
-}
-
-/**
- * The update gateway settings request parameters.
- */
-export interface UpdateGatewaySettingsParameters {
- /**
- * Indicates whether or not the gateway settings based authorization is enabled. Default value:
- * true.
- */
- isCredentialEnabled?: boolean;
- /**
- * The gateway settings user name.
- */
- userName?: string;
- /**
- * The gateway settings user password.
- */
- password?: 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 azure async operation response.
- */
-export interface AsyncOperationResult {
- /**
- * The async operation state. Possible values include: 'InProgress', 'Succeeded', 'Failed'
- */
- 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;
-}
-
-/**
- * The resource model definition for a ARM proxy resource. It will have everything other than
- * required location and tags
- */
-export interface ProxyResource extends Resource {}
-
-/**
- * Describes the format of Error response.
- */
-export interface ErrorResponse {
- /**
- * Error code
- */
- code?: string;
- /**
- * Error message indicating why the operation failed.
- */
- message?: string;
-}
-
-/**
- * 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.**
+ * 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.
- */
+ /** The private ip address of the endpoint. */
privateIPAddress?: string;
- /**
- * The subdomain suffix of the application.
- */
+ /** The subdomain suffix of the application. */
subDomainSuffix?: string;
- /**
- * The value indicates whether to disable GatewayAuth.
- */
+ /** The value indicates whether to disable GatewayAuth. */
disableGatewayAuth?: boolean;
}
-/**
- * Gets the application SSH endpoint
- */
+/** Gets the application SSH endpoint */
export interface ApplicationGetEndpoint {
- /**
- * The location of the endpoint.
- */
+ /** The location of the endpoint. */
location?: string;
- /**
- * The destination port to connect to.
- */
+ /** The destination port to connect to. */
destinationPort?: number;
- /**
- * The public port to connect to.
- */
+ /** The public port to connect to. */
publicPort?: number;
- /**
- * The private ip address of the endpoint.
- */
+ /** The private ip address of the endpoint. */
privateIPAddress?: 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 Get Capabilities operation response. */
+export interface CapabilitiesResult {
+ /** The version capability. */
+ versions?: { [propertyName: string]: VersionsCapability };
+ /** The virtual machine size compatibility features. */
+ regions?: { [propertyName: string]: RegionsCapability };
+ /** The capability features. */
+ features?: string[];
/**
- * The marketplace identifier.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The quota capability.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly marketplaceIdentifier?: string;
+ readonly quota?: QuotaCapability;
}
-/**
- * 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 version capability. */
+export interface VersionsCapability {
+ /** The list of version capabilities. */
+ available?: VersionSpec[];
}
-/**
- * The version properties.
- */
+/** The version properties. */
export interface VersionSpec {
- /**
- * The friendly name
- */
+ /** The friendly name */
friendlyName?: string;
- /**
- * The display name
- */
+ /** The display name */
displayName?: string;
- /**
- * Whether or not the version is the default version.
- */
+ /** Whether or not the version is the default version. */
isDefault?: boolean;
- /**
- * The component version property.
- */
+ /** The component version property. */
componentVersions?: { [propertyName: string]: string };
}
-/**
- * The version capability.
- */
-export interface VersionsCapability {
- /**
- * The list of version capabilities.
- */
- available?: VersionSpec[];
-}
-
-/**
- * The regions capability.
- */
+/** The regions capability. */
export interface RegionsCapability {
- /**
- * The list of region capabilities.
- */
- available?: string[];
-}
-
-/**
- * The virtual machine sizes capability.
- */
-export interface VmSizesCapability {
- /**
- * The list of virtual machine size capabilities.
- */
+ /** The list of region capabilities. */
available?: string[];
}
-/**
- * The virtual machine type compatibility filter.
- */
-export interface VmSizeCompatibilityFilter {
- /**
- * The mode for the filter.
- */
- filterMode?: string;
- /**
- * The list of regions.
- */
- regions?: string[];
- /**
- * The list of cluster types available.
- */
- clusterFlavors?: string[];
- /**
- * The list of node types.
- */
- nodeTypes?: string[];
- /**
- * The list of cluster versions.
- */
- clusterVersions?: string[];
- /**
- * The list of OS types.
- */
- osType?: string[];
- /**
- * The list of virtual machine sizes.
- */
- vMSizes?: string[];
- /**
- * Whether apply for ESP cluster. 'true' means only for ESP, 'false' means only for non-ESP, null
- * or empty string or others mean for both.
- */
- eSPApplied?: string;
- /**
- * Whether support compute isolation. 'true' means only for ComputeIsolationEnabled, 'false'
- * means only for regular cluster.
- */
- computeIsolationSupported?: string;
-}
-
-/**
- * The regional quota capacity.
- */
-export interface RegionalQuotaCapability {
- /**
- * The region name.
- */
- regionName?: string;
- /**
- * The number of cores used in the region.
- */
- coresUsed?: number;
- /**
- * The number of cores available in the region.
- */
- coresAvailable?: number;
-}
-
-/**
- * The regional quota capability.
- */
+/** The regional quota capability. */
export interface QuotaCapability {
- /**
- * The number of cores used in the subscription.
- */
+ /** The number of cores used in the subscription. */
coresUsed?: number;
- /**
- * The number of cores that the subscription allowed.
- */
+ /** The number of cores that the subscription allowed. */
maxCoresAllowed?: number;
- /**
- * The list of region quota capabilities.
- */
+ /** The list of region quota capabilities. */
regionalQuotas?: RegionalQuotaCapability[];
}
-/**
- * The Get Capabilities operation response.
- */
-export interface CapabilitiesResult {
- /**
- * The version capability.
- */
- versions?: { [propertyName: string]: VersionsCapability };
- /**
- * The virtual machine size compatibility features.
- */
- regions?: { [propertyName: string]: RegionsCapability };
- /**
- * The virtual machine sizes.
- */
- vmsizes?: { [propertyName: string]: VmSizesCapability };
- /**
- * The virtual machine size compatibility filters.
- */
- vmsizeFilters?: VmSizeCompatibilityFilter[];
- /**
- * The capability features.
- */
- features?: string[];
- /**
- * The quota capability.
- */
- quota?: QuotaCapability;
+/** The regional quota capacity. */
+export interface RegionalQuotaCapability {
+ /** The region name. */
+ regionName?: string;
+ /** The number of cores used in the region. */
+ coresUsed?: number;
+ /** The number of cores available in the region. */
+ coresAvailable?: number;
}
-/**
- * The details about the localizable name of a type of usage.
- */
-export interface LocalizedName {
- /**
- * The name of the used resource.
- */
- value?: string;
- /**
- * The localized name of the used resource.
- */
- localizedValue?: string;
+/** The response for the operation to get regional usages for a subscription. */
+export interface UsagesListResult {
+ /** The list of usages. */
+ value?: Usage[];
}
-/**
- * The details about the usage of a particular limited resource.
- */
+/** The details about the usage of a particular limited resource. */
export interface Usage {
- /**
- * The type of measurement for usage.
- */
+ /** The type of measurement for usage. */
unit?: string;
- /**
- * The current usage.
- */
+ /** The current usage. */
currentValue?: number;
- /**
- * The maximum allowed usage.
- */
+ /** The maximum allowed usage. */
limit?: number;
/**
* The details about the localizable name of the used resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- name?: LocalizedName;
+ readonly name?: LocalizedName;
}
-/**
- * The response for the operation to get regional usages for a subscription.
- */
-export interface UsagesListResult {
+/** The details about the localizable name of a type of usage. */
+export interface LocalizedName {
+ /** The name of the used resource. */
+ value?: string;
+ /** The localized name of the used resource. */
+ localizedValue?: string;
+}
+
+/** The response for the operation to get regional billingSpecs for a subscription. */
+export interface BillingResponseListResult {
+ /** The virtual machine sizes to include or exclude. */
+ vmSizes?: string[];
+ /** The vm sizes which enable encryption at host. */
+ vmSizesWithEncryptionAtHost?: string[];
+ /** The virtual machine filtering mode. Effectively this can enabling or disabling the virtual machine sizes in a particular set. */
+ vmSizeFilters?: VmSizeCompatibilityFilterV2[];
/**
- * The list of usages.
+ * The vm size properties.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- value?: Usage[];
+ readonly vmSizeProperties?: VmSizeProperty[];
+ /** The billing and managed disk billing resources for a region. */
+ billingResources?: BillingResources[];
}
-/**
- * This class represent a single filter object that defines a multidimensional set. The dimensions
- * of this set are Regions, ClusterFlavors, NodeTypes and ClusterVersions. The constraint should be
- * defined based on the following: FilterMode (Exclude vs Include), VMSizes (the vm sizes in affect
- * of exclusion/inclusion) and the ordering of the Filters. Later filters override previous
- * settings if conflicted.
- */
+/** This class represent a single filter object that defines a multidimensional set. The dimensions of this set are Regions, ClusterFlavors, NodeTypes and ClusterVersions. The constraint should be defined based on the following: FilterMode (Exclude vs Include), VMSizes (the vm sizes in affect of exclusion/inclusion) and the ordering of the Filters. Later filters override previous settings if conflicted. */
export interface VmSizeCompatibilityFilterV2 {
- /**
- * The filtering mode. Effectively this can enabling or disabling the VM sizes in a particular
- * set. Possible values include: 'Exclude', 'Include', 'Recommend', 'Default'
- */
+ /** The filtering mode. Effectively this can enabling or disabling the VM sizes in a particular set. */
filterMode?: FilterMode;
- /**
- * The list of regions under the effect of the filter.
- */
+ /** The list of regions under the effect of the filter. */
regions?: string[];
- /**
- * The list of cluster flavors under the effect of the filter.
- */
+ /** The list of cluster flavors under the effect of the filter. */
clusterFlavors?: string[];
- /**
- * The list of node types affected by the filter.
- */
+ /** The list of node types affected by the filter. */
nodeTypes?: string[];
- /**
- * The list of cluster versions affected in Major.Minor format.
- */
+ /** The list of cluster versions affected in Major.Minor format. */
clusterVersions?: string[];
- /**
- * The OSType affected, Windows or Linux.
- */
+ /** The OSType affected, Windows or Linux. */
osType?: OSType[];
- /**
- * The list of virtual machine sizes to include or exclude.
- */
+ /** The list of virtual machine sizes to include or exclude. */
vmSizes?: string[];
+ /** Whether apply for ESP cluster. 'true' means only for ESP, 'false' means only for non-ESP, null or empty string or others mean for both. */
+ espApplied?: string;
+ /** Whether support compute isolation. 'true' means only for ComputeIsolationEnabled, 'false' means only for regular cluster. */
+ computeIsolationSupported?: string;
}
-/**
- * The vm size property
- */
+/** The vm size property */
export interface VmSizeProperty {
- /**
- * The vm size name.
- */
+ /** The vm size name. */
name?: string;
- /**
- * The number of cores that the vm size has.
- */
+ /** The number of cores that the vm size has. */
cores?: number;
- /**
- * The data disk storage tier of the vm size.
- */
+ /** The data disk storage tier of the vm size. */
dataDiskStorageTier?: string;
- /**
- * The label of the vm size.
- */
+ /** The label of the vm size. */
label?: string;
- /**
- * The max data disk count of the vm size.
- */
+ /** The max data disk count of the vm size. */
maxDataDiskCount?: number;
- /**
- * The memory whose unit is MB of the vm size.
- */
+ /** The memory whose unit is MB of the vm size. */
memoryInMb?: number;
- /**
- * This indicates this vm size is supported by virtual machines or not
- */
+ /** This indicates this vm size is supported by virtual machines or not */
supportedByVirtualMachines?: boolean;
- /**
- * The indicates this vm size is supported by web worker roles or not
- */
+ /** The indicates this vm size is supported by web worker roles or not */
supportedByWebWorkerRoles?: boolean;
- /**
- * The virtual machine resource disk size whose unit is MB of the vm size.
- */
+ /** The virtual machine resource disk size whose unit is MB of the vm size. */
virtualMachineResourceDiskSizeInMb?: number;
- /**
- * The web worker resource disk size whose unit is MB of the vm size.
- */
+ /** The web worker resource disk size whose unit is MB of the vm size. */
webWorkerResourceDiskSizeInMb?: number;
}
-/**
- * The billing meters.
- */
+/** The billing resources. */
+export interface BillingResources {
+ /** The region or location. */
+ region?: string;
+ /** The billing meter information. */
+ billingMeters?: BillingMeters[];
+ /** The managed disk billing information. */
+ diskBillingMeters?: DiskBillingMeters[];
+}
+
+/** The billing meters. */
export interface BillingMeters {
- /**
- * The virtual machine sizes.
- */
+ /** The virtual machine sizes. */
meterParameter?: string;
- /**
- * The HDInsight meter guid.
- */
+ /** The HDInsight meter guid. */
meter?: string;
- /**
- * The unit of meter, VMHours or CoreHours.
- */
+ /** The unit of meter, VMHours or CoreHours. */
unit?: string;
}
-/**
- * The disk billing meters.
- */
+/** The disk billing meters. */
export interface DiskBillingMeters {
- /**
- * The managed disk meter guid.
- */
+ /** The managed disk meter guid. */
diskRpMeter?: string;
- /**
- * The managed disk billing sku, P30 or S30.
- */
+ /** The managed disk billing sku, P30 or S30. */
sku?: string;
- /**
- * The managed disk billing tier, Standard or Premium. Possible values include: 'Standard',
- * 'Premium'
- */
+ /** The managed disk billing tier, Standard or Premium. */
tier?: Tier;
}
-/**
- * The billing resources.
- */
-export interface BillingResources {
- /**
- * The region or location.
- */
- region?: string;
- /**
- * The billing meter information.
- */
- billingMeters?: BillingMeters[];
- /**
- * The managed disk billing information.
- */
- diskBillingMeters?: DiskBillingMeters[];
-}
-
-/**
- * The response for the operation to get regional billingSpecs for a subscription.
- */
-export interface BillingResponseListResult {
- /**
- * The virtual machine sizes to include or exclude.
- */
- vmSizes?: string[];
- /**
- * The vm sizes which enable encryption at host.
- */
- vmSizesWithEncryptionAtHost?: string[];
- /**
- * The virtual machine filtering mode. Effectively this can enabling or disabling the virtual
- * machine sizes in a particular set.
- */
- vmSizeFilters?: VmSizeCompatibilityFilterV2[];
- /**
- * The vm size properties.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly vmSizeProperties?: VmSizeProperty[];
- /**
- * The billing and managed disk billing resources for a region.
- */
- billingResources?: BillingResources[];
-}
-
-/**
- * The request spec of checking name availability.
- */
+/** The request spec of checking name availability. */
export interface NameAvailabilityCheckRequestParameters {
- /**
- * The resource name.
- */
+ /** The resource name. */
name?: string;
- /**
- * The resource type
- */
+ /** The resource type */
type?: string;
}
-/**
- * The response spec of checking name availability.
- */
+/** The response spec of checking name availability. */
export interface NameAvailabilityCheckResult {
- /**
- * This indicates whether the name is available.
- */
+ /** This indicates whether the name is available. */
nameAvailable?: boolean;
/**
* The reason of the result.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly reason?: string;
/**
* The related message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly message?: 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 response of cluster create request validation. */
+export interface ClusterCreateValidationResult {
+ /** The validation errors. */
+ validationErrors?: ValidationErrorInfo[];
+ /** The validation warnings. */
+ validationWarnings?: ValidationErrorInfo[];
+ /** The estimated creation duration. */
+ estimatedCreationDuration?: string;
+ /** The Azure active directory domain service resource details. */
+ aaddsResourcesDetails?: AaddsResourceDetails[];
}
-/**
- * The validation error information.
- */
+/** The validation error information. */
export interface ValidationErrorInfo {
- /**
- * The error code.
- */
+ /** The error code. */
code?: string;
- /**
- * The error message.
- */
+ /** The error message. */
message?: string;
- /**
- * The error resource.
- */
+ /** The error resource. */
errorResource?: string;
- /**
- * The message arguments
- */
+ /** The message arguments */
messageArguments?: string[];
}
-/**
- * The Azure active directory domain service resource details.
- */
+/** The Azure active directory domain service resource details. */
export interface AaddsResourceDetails {
- /**
- * The Azure active directory domain service name.
- */
+ /** The Azure active directory domain service name. */
domainName?: string;
- /**
- * This indicates whether initial sync complete or not.
- */
+ /** This indicates whether initial sync complete or not. */
initialSyncComplete?: boolean;
- /**
- * This indicates whether enable ldaps or not.
- */
+ /** This indicates whether enable ldaps or not. */
ldapsEnabled?: boolean;
- /**
- * The base 64 format string of public ldap certificate.
- */
+ /** The base 64 format string of public ldap certificate. */
ldapsPublicCertificateInBase64?: string;
- /**
- * The resource id of azure active directory domain service.
- */
+ /** The resource id of azure active directory domain service. */
resourceId?: string;
- /**
- * The subnet resource id.
- */
+ /** The subnet resource id. */
subnetId?: string;
- /**
- * The tenant id of azure active directory domain service .
- */
+ /** The tenant id of azure active directory domain service . */
tenantId?: string;
}
-/**
- * The response of cluster create request validation.
- */
-export interface ClusterCreateValidationResult {
- /**
- * The validation errors.
- */
- validationErrors?: ValidationErrorInfo[];
- /**
- * The validation warnings.
- */
- validationWarnings?: ValidationErrorInfo[];
- /**
- * The estimated creation duration.
- */
- estimatedCreationDuration?: string;
- /**
- * The Azure active directory domain service resource details.
- */
- aaddsResourcesDetails?: AaddsResourceDetails[];
-}
-
-/**
- * The configuration object for the specified cluster.
- */
+/** 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 configuration object for the specified configuration for the specified cluster. */
+ configurations?: {
+ [propertyName: string]: { [propertyName: string]: string };
+ };
}
-/**
- * Cluster monitoring extensions.
- */
-export interface Extension {
- /**
- * The workspace ID for the cluster monitoring extension.
- */
+/** The cluster monitor parameters. */
+export interface ClusterMonitoringRequest {
+ /** The cluster monitor workspace ID. */
workspaceId?: string;
- /**
- * The certificate for the cluster monitoring extensions.
- */
+ /** The cluster monitor workspace key. */
primaryKey?: string;
}
-/**
- * The cluster monitoring status response.
- */
+/** The cluster monitoring status response. */
export interface ClusterMonitoringResponse {
- /**
- * The status of the monitor on the HDInsight cluster.
- */
+ /** The status of the monitor on the HDInsight cluster. */
clusterMonitoringEnabled?: boolean;
- /**
- * The workspace ID of the monitor on the HDInsight cluster.
- */
+ /** The workspace ID of the monitor on the HDInsight cluster. */
workspaceId?: string;
}
-/**
- * The cluster monitor parameters.
- */
-export interface ClusterMonitoringRequest {
- /**
- * The cluster monitor workspace ID.
- */
+/** The azure monitor parameters. */
+export interface AzureMonitorRequest {
+ /** The Log Analytics workspace ID. */
workspaceId?: string;
- /**
- * The cluster monitor workspace key.
- */
+ /** The Log Analytics workspace key. */
primaryKey?: string;
+ /** The selected configurations. */
+ selectedConfigurations?: AzureMonitorSelectedConfigurations;
}
-/**
- * The table configuration for the Log Analytics integration.
- */
-export interface AzureMonitorTableConfiguration {
- /**
- * The name.
- */
- name?: string;
-}
-
-/**
- * The selected configurations for azure monitor.
- */
+/** The selected configurations for azure monitor. */
export interface AzureMonitorSelectedConfigurations {
- /**
- * The configuration version.
- */
+ /** The configuration version. */
configurationVersion?: string;
- /**
- * The global configurations of selected configurations.
- */
+ /** The global configurations of selected configurations. */
globalConfigurations?: { [propertyName: string]: string };
- /**
- * The table list.
- */
+ /** The table list. */
tableList?: AzureMonitorTableConfiguration[];
}
-/**
- * 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 table configuration for the Log Analytics integration. */
+export interface AzureMonitorTableConfiguration {
+ /** The name. */
+ name?: string;
}
-/**
- * The azure monitor status response.
- */
+/** The azure monitor status response. */
export interface AzureMonitorResponse {
- /**
- * The status of the monitor on the HDInsight cluster.
- */
+ /** The status of the monitor on the HDInsight cluster. */
clusterMonitoringEnabled?: boolean;
- /**
- * The workspace ID of the monitor on the HDInsight cluster.
- */
+ /** The workspace ID of the monitor on the HDInsight cluster. */
workspaceId?: string;
- /**
- * The selected configurations.
- */
+ /** The selected configurations. */
selectedConfigurations?: AzureMonitorSelectedConfigurations;
}
-/**
- * The persisted script action for cluster.
- */
-export interface ScriptActionPersistedGetResponseSpec {
- /**
- * The name of script action.
- */
- name?: string;
- /**
- * The URI to the script.
- */
- uri?: string;
- /**
- * The parameters for the script provided.
- */
- parameters?: string;
- /**
- * The list of roles where script will be executed.
- */
- roles?: string[];
+/** 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 application name for the script action.
+ * The link (url) to the next page of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- applicationName?: string;
+ readonly nextLink?: string;
}
-/**
- * The object that represents the operation.
- */
-export interface OperationDisplay {
+/** The execution summary of a script action. */
+export interface ScriptActionExecutionSummary {
/**
- * The service provider: Microsoft.HDInsight
+ * The status of script action execution.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- provider?: string;
+ readonly status?: string;
/**
- * The resource on which the operation is performed: Cluster, Applications, etc.
+ * 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.
*/
- resource?: string;
+ readonly instanceCount?: number;
+}
+
+/** The list script execution history response. */
+export interface ScriptActionExecutionHistoryList {
/**
- * The operation type: read, write, delete, etc.
+ * 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.
*/
- operation?: string;
+ readonly value?: RuntimeScriptActionDetail[];
/**
- * Localized friendly description for the operation
+ * The link (url) to the next page of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- description?: string;
+ readonly nextLink?: string;
}
-/**
- * The definition of Dimension.
- */
-export interface Dimension {
- /**
- * The name of the dimension.
- */
+/** 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. */
+export interface OperationListResult {
+ /** The list of HDInsight operations supported by the HDInsight resource provider. */
+ value?: Operation[];
+ /** The URL to get the next set of operation list results if there are any. */
+ nextLink?: string;
+}
+
+/** The HDInsight REST API operation. */
+export interface Operation {
+ /** The operation name: {provider}/{resource}/{operation} */
name?: string;
- /**
- * The display name of the dimension.
- */
- displayName?: string;
- /**
- * The display name of the dimension.
- */
- internalName?: string;
- /**
- * The flag indicates whether the metric will be exported for shoebox or not.
- */
- toBeExportedForShoebox?: boolean;
+ /** The display of operation. */
+ display?: OperationDisplay;
+ /** The operation properties. */
+ properties?: OperationProperties;
}
-/**
- * The details of metric specifications.
- */
+/** The object that represents the operation. */
+export interface OperationDisplay {
+ /** The service provider: Microsoft.HDInsight */
+ provider?: string;
+ /** The resource on which the operation is performed: Cluster, Applications, etc. */
+ resource?: string;
+ /** The operation type: read, write, delete, etc. */
+ operation?: string;
+ /** Localized friendly description for the operation */
+ description?: string;
+}
+
+/** The details of operation. */
+export interface OperationProperties {
+ /** The specification of the service. */
+ serviceSpecification?: ServiceSpecification;
+}
+
+/** The specification of the service. */
+export interface ServiceSpecification {
+ /** The metric specifications. */
+ metricSpecifications?: MetricSpecifications[];
+}
+
+/** The details of metric specifications. */
export interface MetricSpecifications {
- /**
- * The name of the metric specification.
- */
+ /** The name of the metric specification. */
name?: string;
- /**
- * The display name of the metric specification.
- */
+ /** The display name of the metric specification. */
displayName?: string;
- /**
- * The display description of the metric specification.
- */
+ /** The display description of the metric specification. */
displayDescription?: string;
- /**
- * The unit of the metric specification.
- */
+ /** The unit of the metric specification. */
unit?: string;
- /**
- * The aggregation type of the metric specification.
- */
+ /** The aggregation type of the metric specification. */
aggregationType?: string;
- /**
- * The supported aggregation types of the metric specification.
- */
+ /** The supported aggregation types of the metric specification. */
supportedAggregationTypes?: string[];
- /**
- * The supported time grain types of the metric specification.
- */
+ /** The supported time grain types of the metric specification. */
supportedTimeGrainTypes?: string[];
- /**
- * The flag indicates whether enable regional mdm account or not.
- */
+ /** The flag indicates whether enable regional mdm account or not. */
enableRegionalMdmAccount?: boolean;
- /**
- * The source mdm account.
- */
+ /** The source mdm account. */
sourceMdmAccount?: string;
- /**
- * The source mdm namespace.
- */
+ /** The source mdm namespace. */
sourceMdmNamespace?: string;
- /**
- * The metric filter pattern.
- */
+ /** The metric filter pattern. */
metricFilterPattern?: string;
- /**
- * The flag indicates whether filling gap with zero.
- */
+ /** The flag indicates whether filling gap with zero. */
fillGapWithZero?: boolean;
- /**
- * The category of the metric.
- */
+ /** The category of the metric. */
category?: string;
- /**
- * The override name of resource id dimension name.
- */
+ /** The override name of resource id dimension name. */
resourceIdDimensionNameOverride?: string;
- /**
- * The flag indicates whether the metric is internal or not.
- */
+ /** The flag indicates whether the metric is internal or not. */
isInternal?: boolean;
- /**
- * The override name of delegate metric.
- */
+ /** The override name of delegate metric. */
delegateMetricNameOverride?: string;
- /**
- * The dimensions of the metric specification.
- */
+ /** The dimensions of the metric specification. */
dimensions?: Dimension[];
}
-/**
- * The specification of the service.
- */
-export interface ServiceSpecification {
- /**
- * The metric specifications.
- */
- metricSpecifications?: MetricSpecifications[];
-}
-
-/**
- * The details of operation.
- */
-export interface OperationProperties {
- /**
- * The specification of the service.
- */
- serviceSpecification?: ServiceSpecification;
-}
-
-/**
- * The HDInsight REST API operation.
- */
-export interface Operation {
- /**
- * The operation name: {provider}/{resource}/{operation}
- */
+/** The definition of Dimension. */
+export interface Dimension {
+ /** The name of the dimension. */
name?: string;
- /**
- * The object that represents the operation.
- */
- display?: OperationDisplay;
- /**
- * The operation properties.
- */
- properties?: OperationProperties;
+ /** The display name of the dimension. */
+ displayName?: string;
+ /** The display name of the dimension. */
+ internalName?: string;
+ /** The flag indicates whether the metric will be exported for shoebox or not. */
+ toBeExportedForShoebox?: boolean;
}
-/**
- * The cluster host information.
- */
+/** The cluster host information. */
export interface HostInfo {
- /**
- * The host name
- */
+ /** The host name */
name?: string;
- /**
- * The Fully Qualified Domain Name of host
- */
+ /** The Fully Qualified Domain Name of host */
fqdn?: string;
- /**
- * The effective disk encryption key URL used by the host
- */
+ /** The effective disk encryption key URL used by the host */
effectiveDiskEncryptionKeyUrl?: string;
}
-/**
- * An interface representing HDInsightManagementClientOptions.
- */
-export interface HDInsightManagementClientOptions extends AzureServiceClientOptions {
- baseUri?: string;
-}
-
-/**
- * @interface
- * The List Cluster operation response.
- * @extends Array
- */
-export interface ClusterListResult extends Array {
+/** The list private endpoint connections response. */
+export interface PrivateEndpointConnectionListResult {
+ /** The list of private endpoint connections. */
+ value?: PrivateEndpointConnection[];
/**
* The link (url) to the next page of results.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly nextLink?: string;
-}
-
-/**
- * @interface
- * Result of the request to list cluster Applications. It contains a list of operations and a URL
- * link to get the next set of results.
- * @extends Array
- */
-export interface ApplicationListResult extends Array {
- /**
- * The URL to get the next set of operation list results if there are any.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}
-/**
- * @interface
- * The persisted script action for the cluster.
- * @extends Array
- */
-export interface ScriptActionsList extends Array {
- /**
- * The link (url) to the next page of results.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly nextLink?: string;
+/** A list of private link resources */
+export interface PrivateLinkResourceListResult {
+ /** Array of private link resources */
+ value?: PrivateLinkResource[];
}
-/**
- * @interface
- * The list script execution history response.
- * @extends Array
- */
-export interface ScriptActionExecutionHistoryList extends Array {
+/** The ListPersistedScriptActions operation response. */
+export interface ClusterListPersistedScriptActionsResult {
+ /** The list of Persisted Script Actions. */
+ value?: RuntimeScriptAction[];
/**
* The link (url) to the next page of results.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}
-/**
- * @interface
- * Result of the request to list HDInsight operations. It contains a list of operations and a URL
- * link to get the next set of results.
- * @extends Array
- */
-export interface OperationListResult extends Array {
- /**
- * The URL to get the next set of operation list results if there are any.
- */
- nextLink?: string;
+/** The persisted script action for cluster. */
+export interface ScriptActionPersistedGetResponseSpec {
+ /** The name of script action. */
+ name?: string;
+ /** The URI to the script. */
+ uri?: string;
+ /** The parameters for the script provided. */
+ parameters?: string;
+ /** The list of roles where script will be executed. */
+ roles?: string[];
+ /** The application name for the script action. */
+ applicationName?: string;
}
-/**
- * Defines values for DirectoryType.
- * Possible values include: 'ActiveDirectory'
- * @readonly
- * @enum {string}
- */
-export type DirectoryType = "ActiveDirectory";
-
-/**
- * Defines values for DaysOfWeek.
- * Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday',
- * 'Sunday'
- * @readonly
- * @enum {string}
- */
-export type DaysOfWeek =
- | "Monday"
- | "Tuesday"
- | "Wednesday"
- | "Thursday"
- | "Friday"
- | "Saturday"
- | "Sunday";
-
-/**
- * Defines values for ResourceProviderConnection.
- * Possible values include: 'Inbound', 'Outbound'
- * @readonly
- * @enum {string}
- */
-export type ResourceProviderConnection = "Inbound" | "Outbound";
-
-/**
- * Defines values for PrivateLink.
- * Possible values include: 'Disabled', 'Enabled'
- * @readonly
- * @enum {string}
- */
-export type PrivateLink = "Disabled" | "Enabled";
-
-/**
- * Defines values for OSType.
- * Possible values include: 'Windows', 'Linux'
- * @readonly
- * @enum {string}
- */
-export type OSType = "Windows" | "Linux";
-
-/**
- * Defines values for Tier.
- * Possible values include: 'Standard', 'Premium'
- * @readonly
- * @enum {string}
- */
-export type Tier = "Standard" | "Premium";
-
-/**
- * Defines values for JsonWebKeyEncryptionAlgorithm.
- * Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5'
- * @readonly
- * @enum {string}
- */
-export type JsonWebKeyEncryptionAlgorithm = "RSA-OAEP" | "RSA-OAEP-256" | "RSA1_5";
-
-/**
- * Defines values for ResourceIdentityType.
- * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned',
- * 'None'
- * @readonly
- * @enum {string}
- */
-export type ResourceIdentityType =
- | "SystemAssigned"
- | "UserAssigned"
- | "SystemAssigned, UserAssigned"
- | "None";
-
-/**
- * Defines values for HDInsightClusterProvisioningState.
- * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting'
- * @readonly
- * @enum {string}
- */
-export type HDInsightClusterProvisioningState =
- | "InProgress"
- | "Failed"
- | "Succeeded"
- | "Canceled"
- | "Deleting";
-
-/**
- * Defines values for AsyncOperationState.
- * Possible values include: 'InProgress', 'Succeeded', 'Failed'
- * @readonly
- * @enum {string}
- */
-export type AsyncOperationState = "InProgress" | "Succeeded" | "Failed";
-
-/**
- * Defines values for FilterMode.
- * Possible values include: 'Exclude', 'Include', 'Recommend', 'Default'
- * @readonly
- * @enum {string}
- */
-export type FilterMode = "Exclude" | "Include" | "Recommend" | "Default";
-
-/**
- * Contains response data for the create operation.
- */
-export type ClustersCreateResponse = Cluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Cluster;
- };
-};
-
-/**
- * Contains response data for the update operation.
- */
-export type ClustersUpdateResponse = Cluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Cluster;
- };
+/** The cluster create request specification. */
+export type ClusterCreateRequestValidationParameters = 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;
};
-/**
- * Contains response data for the get operation.
- */
-export type ClustersGetResponse = Cluster & {
+/** The private endpoint connection. */
+export type PrivateEndpointConnection = Resource & {
/**
- * The underlying HTTP response.
+ * 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.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Cluster;
- };
-};
-
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type ClustersListByResourceGroupResponse = ClusterListResult & {
+ readonly systemData?: SystemData;
/**
- * The underlying HTTP response.
+ * The private endpoint of the private endpoint connection
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterListResult;
- };
-};
-
-/**
- * Contains response data for the list operation.
- */
-export type ClustersListResponse = ClusterListResult & {
+ readonly privateEndpoint?: PrivateEndpoint;
+ /** The private link service connection state. */
+ privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
/**
- * The underlying HTTP response.
+ * The link identifier.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterListResult;
- };
-};
-
-/**
- * Contains response data for the getGatewaySettings operation.
- */
-export type ClustersGetGatewaySettingsResponse = GatewaySettings & {
+ readonly linkIdentifier?: string;
/**
- * The underlying HTTP response.
+ * The provisioning state, which only appears in the response.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: GatewaySettings;
- };
+ readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
};
-/**
- * Contains response data for the getAzureAsyncOperationStatus operation.
- */
-export type ClustersGetAzureAsyncOperationStatusResponse = AsyncOperationResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AsyncOperationResult;
- };
-};
+/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
+export type ProxyResource = Resource & {};
-/**
- * Contains response data for the beginCreate operation.
- */
-export type ClustersBeginCreateResponse = Cluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Cluster;
- };
+/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
+export type TrackedResource = ResourceAutoGenerated & {
+ /** Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** The geo-location where the resource lives */
+ location: string;
};
-/**
- * Contains response data for the listByResourceGroupNext operation.
- */
-export type ClustersListByResourceGroupNextResponse = ClusterListResult & {
+/** A private link resource */
+export type PrivateLinkResource = ResourceAutoGenerated & {
/**
- * The underlying HTTP response.
+ * 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.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterListResult;
- };
-};
-
-/**
- * Contains response data for the listNext operation.
- */
-export type ClustersListNextResponse = ClusterListResult & {
+ readonly systemData?: SystemData;
/**
- * The underlying HTTP response.
+ * The private link resource group id.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterListResult;
- };
-};
-
-/**
- * Contains response data for the listByCluster operation.
- */
-export type ApplicationsListByClusterResponse = ApplicationListResult & {
+ readonly groupId?: string;
/**
- * The underlying HTTP response.
+ * The private link resource required member names.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ApplicationListResult;
- };
+ readonly requiredMembers?: string[];
+ /** The private link resource Private link DNS zone name. */
+ requiredZoneNames?: string[];
};
-/**
- * Contains response data for the get operation.
- */
-export type ApplicationsGetResponse = Application & {
+/** The execution details of a script action. */
+export type RuntimeScriptActionDetail = RuntimeScriptAction & {
/**
- * The underlying HTTP response.
+ * The execution id of the script action.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Application;
- };
-};
-
-/**
- * Contains response data for the create operation.
- */
-export type ApplicationsCreateResponse = Application & {
+ readonly scriptExecutionId?: number;
/**
- * The underlying HTTP response.
+ * The start time of script action execution.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Application;
- };
-};
-
-/**
- * Contains response data for the getAzureAsyncOperationStatus operation.
- */
-export type ApplicationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult & {
+ readonly startTime?: string;
/**
- * The underlying HTTP response.
+ * The end time of script action execution.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AsyncOperationResult;
- };
-};
-
-/**
- * Contains response data for the beginCreate operation.
- */
-export type ApplicationsBeginCreateResponse = Application & {
+ readonly endTime?: string;
/**
- * The underlying HTTP response.
+ * The current execution status of the script action.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Application;
- };
-};
-
-/**
- * Contains response data for the listByClusterNext operation.
- */
-export type ApplicationsListByClusterNextResponse = ApplicationListResult & {
+ readonly status?: string;
/**
- * The underlying HTTP response.
+ * The reason why the script action was executed.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ApplicationListResult;
- };
-};
-
-/**
- * Contains response data for the getCapabilities operation.
- */
-export type LocationsGetCapabilitiesResponse = CapabilitiesResult & {
+ readonly operation?: string;
/**
- * The underlying HTTP response.
+ * The summary of script action execution result.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: CapabilitiesResult;
- };
-};
-
-/**
- * Contains response data for the listUsages operation.
- */
-export type LocationsListUsagesResponse = UsagesListResult & {
+ readonly executionSummary?: ScriptActionExecutionSummary[];
/**
- * The underlying HTTP response.
+ * The script action execution debug information.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: UsagesListResult;
- };
+ readonly debugInformation?: string;
};
-/**
- * Contains response data for the listBillingSpecs operation.
- */
-export type LocationsListBillingSpecsResponse = BillingResponseListResult & {
+/** The HDInsight cluster application */
+export type Application = 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 underlying HTTP response.
+ * 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.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: BillingResponseListResult;
- };
+ readonly systemData?: SystemData;
};
-/**
- * Contains response data for the getAzureAsyncOperationStatus operation.
- */
-export type LocationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult & {
+/** The HDInsight cluster. */
+export type Cluster = 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 underlying HTTP response.
+ * 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.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AsyncOperationResult;
- };
+ readonly systemData?: SystemData;
};
-/**
- * Contains response data for the checkNameAvailability operation.
- */
-export type LocationsCheckNameAvailabilityResponse = NameAvailabilityCheckResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: NameAvailabilityCheckResult;
- };
-};
+/** Known values of {@link OSType} that the service accepts. */
+export enum KnownOSType {
+ Windows = "Windows",
+ Linux = "Linux"
+}
/**
- * Contains response data for the validateClusterCreateRequest operation.
+ * Defines values for OSType. \
+ * {@link KnownOSType} can be used interchangeably with OSType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Windows** \
+ * **Linux**
*/
-export type LocationsValidateClusterCreateRequestResponse = ClusterCreateValidationResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterCreateValidationResult;
- };
-};
+export type OSType = string;
+
+/** Known values of {@link Tier} that the service accepts. */
+export enum KnownTier {
+ Standard = "Standard",
+ Premium = "Premium"
+}
/**
- * Contains response data for the list operation.
+ * Defines values for Tier. \
+ * {@link KnownTier} can be used interchangeably with Tier,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Standard** \
+ * **Premium**
*/
-export type ConfigurationsListResponse = ClusterConfigurations & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterConfigurations;
- };
-};
+export type Tier = string;
+
+/** Known values of {@link DirectoryType} that the service accepts. */
+export enum KnownDirectoryType {
+ ActiveDirectory = "ActiveDirectory"
+}
/**
- * Contains response data for the get operation.
+ * Defines values for DirectoryType. \
+ * {@link KnownDirectoryType} can be used interchangeably with DirectoryType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **ActiveDirectory**
*/
-export type ConfigurationsGetResponse = {
- /**
- * The response body properties.
- */
- [propertyName: string]: string;
-} & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: { [propertyName: string]: string };
- };
-};
+export type DirectoryType = string;
+
+/** Known values of {@link DaysOfWeek} that the service accepts. */
+export enum KnownDaysOfWeek {
+ Monday = "Monday",
+ Tuesday = "Tuesday",
+ Wednesday = "Wednesday",
+ Thursday = "Thursday",
+ Friday = "Friday",
+ Saturday = "Saturday",
+ Sunday = "Sunday"
+}
/**
- * Contains response data for the getMonitoringStatus operation.
+ * 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 ExtensionsGetMonitoringStatusResponse = ClusterMonitoringResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterMonitoringResponse;
- };
-};
+export type DaysOfWeek = string;
+
+/** Known values of {@link JsonWebKeyEncryptionAlgorithm} that the service accepts. */
+export enum KnownJsonWebKeyEncryptionAlgorithm {
+ RSAOaep = "RSA-OAEP",
+ RSAOaep256 = "RSA-OAEP-256",
+ RSA15 = "RSA1_5"
+}
/**
- * Contains response data for the getAzureMonitorStatus operation.
+ * Defines values for JsonWebKeyEncryptionAlgorithm. \
+ * {@link KnownJsonWebKeyEncryptionAlgorithm} can be used interchangeably with JsonWebKeyEncryptionAlgorithm,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **RSA-OAEP** \
+ * **RSA-OAEP-256** \
+ * **RSA1_5**
*/
-export type ExtensionsGetAzureMonitorStatusResponse = AzureMonitorResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AzureMonitorResponse;
- };
-};
+export type JsonWebKeyEncryptionAlgorithm = string;
+
+/** Known values of {@link ResourceProviderConnection} that the service accepts. */
+export enum KnownResourceProviderConnection {
+ Inbound = "Inbound",
+ Outbound = "Outbound"
+}
/**
- * Contains response data for the get operation.
+ * Defines values for ResourceProviderConnection. \
+ * {@link KnownResourceProviderConnection} can be used interchangeably with ResourceProviderConnection,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Inbound** \
+ * **Outbound**
*/
-export type ExtensionsGetResponse = ClusterMonitoringResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterMonitoringResponse;
- };
-};
+export type ResourceProviderConnection = string;
+
+/** Known values of {@link PrivateLink} that the service accepts. */
+export enum KnownPrivateLink {
+ Disabled = "Disabled",
+ Enabled = "Enabled"
+}
/**
- * Contains response data for the getAzureAsyncOperationStatus operation.
+ * Defines values for PrivateLink. \
+ * {@link KnownPrivateLink} can be used interchangeably with PrivateLink,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Disabled** \
+ * **Enabled**
*/
-export type ExtensionsGetAzureAsyncOperationStatusResponse = AsyncOperationResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AsyncOperationResult;
- };
-};
+export type PrivateLink = string;
+
+/** Known values of {@link PrivateLinkConfigurationProvisioningState} that the service accepts. */
+export enum KnownPrivateLinkConfigurationProvisioningState {
+ InProgress = "InProgress",
+ Failed = "Failed",
+ Succeeded = "Succeeded",
+ Canceled = "Canceled",
+ Deleting = "Deleting"
+}
/**
- * Contains response data for the listByCluster operation.
+ * 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 ScriptActionsListByClusterResponse = ScriptActionsList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ScriptActionsList;
- };
-};
+export type PrivateLinkConfigurationProvisioningState = string;
+
+/** Known values of {@link PrivateIPAllocationMethod} that the service accepts. */
+export enum KnownPrivateIPAllocationMethod {
+ Dynamic = "dynamic",
+ Static = "static"
+}
/**
- * Contains response data for the getExecutionDetail operation.
+ * 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 ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RuntimeScriptActionDetail;
- };
-};
+export type PrivateIPAllocationMethod = string;
+
+/** Known values of {@link ResourceIdentityType} that the service accepts. */
+export enum KnownResourceIdentityType {
+ SystemAssigned = "SystemAssigned",
+ UserAssigned = "UserAssigned",
+ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
+ None = "None"
+}
/**
- * Contains response data for the getExecutionAsyncOperationStatus operation.
+ * Defines values for ResourceIdentityType. \
+ * {@link KnownResourceIdentityType} can be used interchangeably with ResourceIdentityType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **SystemAssigned** \
+ * **UserAssigned** \
+ * **SystemAssigned, UserAssigned** \
+ * **None**
*/
-export type ScriptActionsGetExecutionAsyncOperationStatusResponse = AsyncOperationResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AsyncOperationResult;
- };
-};
+export type ResourceIdentityType = string;
+
+/** Known values of {@link HDInsightClusterProvisioningState} that the service accepts. */
+export enum KnownHDInsightClusterProvisioningState {
+ InProgress = "InProgress",
+ Failed = "Failed",
+ Succeeded = "Succeeded",
+ Canceled = "Canceled",
+ Deleting = "Deleting"
+}
/**
- * Contains response data for the listByClusterNext operation.
+ * Defines values for HDInsightClusterProvisioningState. \
+ * {@link KnownHDInsightClusterProvisioningState} can be used interchangeably with HDInsightClusterProvisioningState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **InProgress** \
+ * **Failed** \
+ * **Succeeded** \
+ * **Canceled** \
+ * **Deleting**
*/
-export type ScriptActionsListByClusterNextResponse = ScriptActionsList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ScriptActionsList;
- };
-};
+export type HDInsightClusterProvisioningState = string;
+
+/** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
+export enum KnownPrivateLinkServiceConnectionStatus {
+ Approved = "Approved",
+ Rejected = "Rejected",
+ Pending = "Pending",
+ Removed = "Removed"
+}
/**
- * Contains response data for the listByCluster operation.
+ * Defines values for PrivateLinkServiceConnectionStatus. \
+ * {@link KnownPrivateLinkServiceConnectionStatus} can be used interchangeably with PrivateLinkServiceConnectionStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Approved** \
+ * **Rejected** \
+ * **Pending** \
+ * **Removed**
*/
-export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionHistoryList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ScriptActionExecutionHistoryList;
- };
-};
+export type PrivateLinkServiceConnectionStatus = string;
+
+/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
+export enum KnownPrivateEndpointConnectionProvisioningState {
+ InProgress = "InProgress",
+ Updating = "Updating",
+ Failed = "Failed",
+ Succeeded = "Succeeded",
+ Canceled = "Canceled",
+ Deleting = "Deleting"
+}
/**
- * Contains response data for the listByClusterNext operation.
+ * Defines values for PrivateEndpointConnectionProvisioningState. \
+ * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **InProgress** \
+ * **Updating** \
+ * **Failed** \
+ * **Succeeded** \
+ * **Canceled** \
+ * **Deleting**
*/
-export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecutionHistoryList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ScriptActionExecutionHistoryList;
- };
-};
+export type PrivateEndpointConnectionProvisioningState = string;
+
+/** Known values of {@link CreatedByType} that the service accepts. */
+export enum KnownCreatedByType {
+ User = "User",
+ Application = "Application",
+ ManagedIdentity = "ManagedIdentity",
+ Key = "Key"
+}
/**
- * Contains response data for the list operation.
+ * 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 OperationsListResponse = OperationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationListResult;
- };
-};
+export type CreatedByType = string;
+
+/** Known values of {@link RoleName} that the service accepts. */
+export enum KnownRoleName {
+ Workernode = "workernode"
+}
/**
- * Contains response data for the listNext operation.
+ * Defines values for RoleName. \
+ * {@link KnownRoleName} can be used interchangeably with RoleName,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **workernode**
*/
-export type OperationsListNextResponse = OperationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationListResult;
- };
-};
+export type RoleName = string;
+
+/** Known values of {@link AsyncOperationState} that the service accepts. */
+export enum KnownAsyncOperationState {
+ InProgress = "InProgress",
+ Succeeded = "Succeeded",
+ Failed = "Failed"
+}
/**
- * Contains response data for the listHosts operation.
+ * 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 VirtualMachinesListHostsResponse = Array & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: HostInfo[];
- };
-};
+export type AsyncOperationState = string;
+
+/** Known values of {@link FilterMode} that the service accepts. */
+export enum KnownFilterMode {
+ Exclude = "Exclude",
+ Include = "Include",
+ Recommend = "Recommend",
+ Default = "Default"
+}
/**
- * Contains response data for the getAsyncOperationStatus operation.
+ * 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 VirtualMachinesGetAsyncOperationStatusResponse = AsyncOperationResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AsyncOperationResult;
- };
-};
+export type FilterMode = string;
+
+/** Optional parameters. */
+export interface ClustersCreateOptionalParams
+ 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 ClustersCreateResponse = Cluster;
+
+/** Optional parameters. */
+export interface ClustersUpdateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the update operation. */
+export type ClustersUpdateResponse = Cluster;
+
+/** Optional parameters. */
+export interface ClustersDeleteOptionalParams
+ 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 ClustersGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type ClustersGetResponse = Cluster;
+
+/** Optional parameters. */
+export interface ClustersListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroup operation. */
+export type ClustersListByResourceGroupResponse = ClusterListResult;
+
+/** Optional parameters. */
+export interface ClustersResizeOptionalParams
+ 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 ClustersUpdateAutoScaleConfigurationOptionalParams
+ 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 ClustersListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type ClustersListResponse = ClusterListResult;
+
+/** Optional parameters. */
+export interface ClustersRotateDiskEncryptionKeyOptionalParams
+ 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 ClustersGetGatewaySettingsOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getGatewaySettings operation. */
+export type ClustersGetGatewaySettingsResponse = GatewaySettings;
+
+/** Optional parameters. */
+export interface ClustersUpdateGatewaySettingsOptionalParams
+ 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 ClustersGetAzureAsyncOperationStatusOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getAzureAsyncOperationStatus operation. */
+export type ClustersGetAzureAsyncOperationStatusResponse = AsyncOperationResult;
+
+/** Optional parameters. */
+export interface ClustersUpdateIdentityCertificateOptionalParams
+ 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 ClustersExecuteScriptActionsOptionalParams
+ 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 ClustersListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByResourceGroupNext operation. */
+export type ClustersListByResourceGroupNextResponse = ClusterListResult;
+
+/** Optional parameters. */
+export interface ClustersListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** 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 {}
+
+/** Contains response data for the list operation. */
+export type ConfigurationsListResponse = ClusterConfigurations;
+
+/** Optional parameters. */
+export interface ConfigurationsUpdateOptionalParams
+ 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 ConfigurationsGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type ConfigurationsGetResponse = { [propertyName: string]: string };
+
+/** Optional parameters. */
+export interface ExtensionsEnableMonitoringOptionalParams
+ 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 ExtensionsGetMonitoringStatusOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getMonitoringStatus operation. */
+export type ExtensionsGetMonitoringStatusResponse = ClusterMonitoringResponse;
+
+/** Optional parameters. */
+export interface ExtensionsDisableMonitoringOptionalParams
+ 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 ExtensionsEnableAzureMonitorOptionalParams
+ 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 ExtensionsGetAzureMonitorStatusOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getAzureMonitorStatus operation. */
+export type ExtensionsGetAzureMonitorStatusResponse = AzureMonitorResponse;
+
+/** Optional parameters. */
+export interface ExtensionsDisableAzureMonitorOptionalParams
+ 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 ExtensionsCreateOptionalParams
+ 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 ExtensionsGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type ExtensionsGetResponse = ClusterMonitoringResponse;
+
+/** Optional parameters. */
+export interface ExtensionsDeleteOptionalParams
+ 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 ExtensionsGetAzureAsyncOperationStatusOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getAzureAsyncOperationStatus operation. */
+export type ExtensionsGetAzureAsyncOperationStatusResponse = AsyncOperationResult;
+
+/** 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 OperationsListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type OperationsListResponse = OperationListResult;
+
+/** Optional parameters. */
+export interface OperationsListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** 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 {}
+
+/** Contains response data for the listByCluster operation. */
+export type PrivateEndpointConnectionsListByClusterResponse = PrivateEndpointConnectionListResult;
+
+/** Optional parameters. */
+export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams
+ 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 createOrUpdate operation. */
+export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection;
+
+/** Optional parameters. */
+export interface PrivateEndpointConnectionsGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;
+
+/** Optional parameters. */
+export interface PrivateEndpointConnectionsDeleteOptionalParams
+ 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 PrivateEndpointConnectionsListByClusterNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByClusterNext operation. */
+export type PrivateEndpointConnectionsListByClusterNextResponse = PrivateEndpointConnectionListResult;
+
+/** Optional parameters. */
+export interface PrivateLinkResourcesListByClusterOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByCluster operation. */
+export type PrivateLinkResourcesListByClusterResponse = PrivateLinkResourceListResult;
+
+/** Optional parameters. */
+export interface PrivateLinkResourcesGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type PrivateLinkResourcesGetResponse = PrivateLinkResource;
+
+/** Optional parameters. */
+export interface HDInsightManagementClientOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Api Version */
+ apiVersion?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts
deleted file mode 100644
index 77643ae91c70..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AaddsResourceDetails,
- AsyncOperationResult,
- Autoscale,
- AutoscaleCapacity,
- AutoscaleRecurrence,
- AutoscaleSchedule,
- AutoscaleTimeAndCapacity,
- BillingMeters,
- BillingResources,
- BillingResponseListResult,
- CapabilitiesResult,
- ClientGroupInfo,
- ClusterCreateParametersExtended,
- ClusterCreateProperties,
- ClusterCreateRequestValidationParameters,
- ClusterCreateValidationResult,
- ClusterDefinition,
- ClusterIdentity,
- ClusterIdentityUserAssignedIdentitiesValue,
- ComputeIsolationProperties,
- ComputeProfile,
- DataDisksGroups,
- DiskBillingMeters,
- DiskEncryptionProperties,
- EncryptionInTransitProperties,
- ErrorResponse,
- Errors,
- HardwareProfile,
- KafkaRestProperties,
- LinuxOperatingSystemProfile,
- LocalizedName,
- NameAvailabilityCheckRequestParameters,
- NameAvailabilityCheckResult,
- NetworkProperties,
- OsProfile,
- QuotaCapability,
- RegionalQuotaCapability,
- RegionsCapability,
- Role,
- ScriptAction,
- SecurityProfile,
- SshProfile,
- SshPublicKey,
- StorageAccount,
- StorageProfile,
- Usage,
- UsagesListResult,
- ValidationErrorInfo,
- VersionsCapability,
- VersionSpec,
- VirtualNetworkProfile,
- VmSizeCompatibilityFilter,
- VmSizeCompatibilityFilterV2,
- VmSizeProperty,
- VmSizesCapability
-} from "../models/mappers";
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts
index d906a0bb0f15..47ab74f60374 100644
--- a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts
+++ b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts
@@ -6,75 +6,199 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
-
-export const ClusterDefinition: msRest.CompositeMapper = {
- serializedName: "ClusterDefinition",
+export const ClusterCreateParametersExtended: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterDefinition",
+ className: "ClusterCreateParametersExtended",
modelProperties: {
- blueprint: {
- serializedName: "blueprint",
+ location: {
+ serializedName: "location",
type: {
name: "String"
}
},
- kind: {
- serializedName: "kind",
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- componentVersion: {
- serializedName: "componentVersion",
+ zones: {
+ serializedName: "zones",
type: {
- name: "Dictionary",
- value: {
+ name: "Sequence",
+ element: {
type: {
name: "String"
}
}
}
},
- configurations: {
- serializedName: "configurations",
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "ClusterCreateProperties"
+ }
+ },
+ identity: {
+ serializedName: "identity",
type: {
- name: "Object"
+ name: "Composite",
+ className: "ClusterIdentity"
}
}
}
}
};
-export const ClientGroupInfo: msRest.CompositeMapper = {
- serializedName: "ClientGroupInfo",
+export const ClusterCreateProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClientGroupInfo",
+ className: "ClusterCreateProperties",
modelProperties: {
- groupName: {
- serializedName: "groupName",
+ clusterVersion: {
+ serializedName: "clusterVersion",
type: {
name: "String"
}
},
- groupId: {
- serializedName: "groupId",
+ osType: {
+ serializedName: "osType",
+ type: {
+ name: "String"
+ }
+ },
+ tier: {
+ serializedName: "tier",
+ type: {
+ name: "String"
+ }
+ },
+ clusterDefinition: {
+ serializedName: "clusterDefinition",
+ type: {
+ name: "Composite",
+ className: "ClusterDefinition"
+ }
+ },
+ kafkaRestProperties: {
+ serializedName: "kafkaRestProperties",
+ type: {
+ name: "Composite",
+ className: "KafkaRestProperties"
+ }
+ },
+ securityProfile: {
+ serializedName: "securityProfile",
+ type: {
+ name: "Composite",
+ className: "SecurityProfile"
+ }
+ },
+ computeProfile: {
+ serializedName: "computeProfile",
+ type: {
+ name: "Composite",
+ className: "ComputeProfile"
+ }
+ },
+ storageProfile: {
+ serializedName: "storageProfile",
+ type: {
+ name: "Composite",
+ className: "StorageProfile"
+ }
+ },
+ diskEncryptionProperties: {
+ serializedName: "diskEncryptionProperties",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionProperties"
+ }
+ },
+ encryptionInTransitProperties: {
+ serializedName: "encryptionInTransitProperties",
+ type: {
+ name: "Composite",
+ className: "EncryptionInTransitProperties"
+ }
+ },
+ minSupportedTlsVersion: {
+ serializedName: "minSupportedTlsVersion",
+ type: {
+ name: "String"
+ }
+ },
+ networkProperties: {
+ serializedName: "networkProperties",
+ type: {
+ name: "Composite",
+ className: "NetworkProperties"
+ }
+ },
+ computeIsolationProperties: {
+ serializedName: "computeIsolationProperties",
+ type: {
+ name: "Composite",
+ className: "ComputeIsolationProperties"
+ }
+ },
+ privateLinkConfigurations: {
+ serializedName: "privateLinkConfigurations",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PrivateLinkConfiguration"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ClusterDefinition: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ClusterDefinition",
+ 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",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "any" } }
+ }
}
}
}
};
-export const KafkaRestProperties: msRest.CompositeMapper = {
- serializedName: "KafkaRestProperties",
+export const KafkaRestProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "KafkaRestProperties",
@@ -90,19 +214,35 @@ export const KafkaRestProperties: msRest.CompositeMapper = {
serializedName: "configurationOverride",
type: {
name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ value: { type: { name: "String" } }
+ }
+ }
+ }
+ }
+};
+
+export const ClientGroupInfo: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ClientGroupInfo",
+ modelProperties: {
+ groupName: {
+ serializedName: "groupName",
+ type: {
+ name: "String"
+ }
+ },
+ groupId: {
+ serializedName: "groupId",
+ type: {
+ name: "String"
}
}
}
}
};
-export const SecurityProfile: msRest.CompositeMapper = {
- serializedName: "SecurityProfile",
+export const SecurityProfile: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "SecurityProfile",
@@ -110,8 +250,7 @@ export const SecurityProfile: msRest.CompositeMapper = {
directoryType: {
serializedName: "directoryType",
type: {
- name: "Enum",
- allowedValues: ["ActiveDirectory"]
+ name: "String"
}
},
domain: {
@@ -176,123 +315,120 @@ export const SecurityProfile: msRest.CompositeMapper = {
}
};
-export const AutoscaleTimeAndCapacity: msRest.CompositeMapper = {
- serializedName: "AutoscaleTimeAndCapacity",
- type: {
- name: "Composite",
- className: "AutoscaleTimeAndCapacity",
- modelProperties: {
- time: {
- serializedName: "time",
- type: {
- name: "String"
- }
- },
- minInstanceCount: {
- serializedName: "minInstanceCount",
- type: {
- name: "Number"
- }
- },
- maxInstanceCount: {
- serializedName: "maxInstanceCount",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const AutoscaleSchedule: msRest.CompositeMapper = {
- serializedName: "AutoscaleSchedule",
+export const ComputeProfile: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AutoscaleSchedule",
+ className: "ComputeProfile",
modelProperties: {
- days: {
- serializedName: "days",
+ roles: {
+ serializedName: "roles",
type: {
name: "Sequence",
element: {
type: {
- name: "Enum",
- allowedValues: [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ]
+ name: "Composite",
+ className: "Role"
}
}
}
- },
- timeAndCapacity: {
- serializedName: "timeAndCapacity",
- type: {
- name: "Composite",
- className: "AutoscaleTimeAndCapacity"
- }
}
}
}
};
-export const AutoscaleCapacity: msRest.CompositeMapper = {
- serializedName: "AutoscaleCapacity",
+export const Role: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AutoscaleCapacity",
+ className: "Role",
modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
minInstanceCount: {
serializedName: "minInstanceCount",
type: {
name: "Number"
}
},
- maxInstanceCount: {
- serializedName: "maxInstanceCount",
+ targetInstanceCount: {
+ serializedName: "targetInstanceCount",
type: {
name: "Number"
}
- }
- }
- }
-};
-
-export const AutoscaleRecurrence: msRest.CompositeMapper = {
- serializedName: "AutoscaleRecurrence",
- type: {
- name: "Composite",
- className: "AutoscaleRecurrence",
- modelProperties: {
- timeZone: {
- serializedName: "timeZone",
+ },
+ vMGroupName: {
+ serializedName: "VMGroupName",
type: {
name: "String"
}
},
- schedule: {
- serializedName: "schedule",
+ autoscaleConfiguration: {
+ serializedName: "autoscale",
type: {
- name: "Sequence",
+ name: "Composite",
+ className: "Autoscale"
+ }
+ },
+ hardwareProfile: {
+ serializedName: "hardwareProfile",
+ type: {
+ name: "Composite",
+ className: "HardwareProfile"
+ }
+ },
+ osProfile: {
+ serializedName: "osProfile",
+ type: {
+ name: "Composite",
+ className: "OsProfile"
+ }
+ },
+ virtualNetworkProfile: {
+ serializedName: "virtualNetworkProfile",
+ type: {
+ name: "Composite",
+ className: "VirtualNetworkProfile"
+ }
+ },
+ dataDisksGroups: {
+ serializedName: "dataDisksGroups",
+ type: {
+ name: "Sequence",
element: {
type: {
name: "Composite",
- className: "AutoscaleSchedule"
+ className: "DataDisksGroups"
+ }
+ }
+ }
+ },
+ scriptActions: {
+ serializedName: "scriptActions",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ScriptAction"
}
}
}
+ },
+ encryptDataDisks: {
+ defaultValue: false,
+ serializedName: "encryptDataDisks",
+ type: {
+ name: "Boolean"
+ }
}
}
}
};
-export const Autoscale: msRest.CompositeMapper = {
- serializedName: "Autoscale",
+export const Autoscale: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Autoscale",
@@ -315,83 +451,100 @@ export const Autoscale: msRest.CompositeMapper = {
}
};
-export const AutoscaleConfigurationUpdateParameter: msRest.CompositeMapper = {
- serializedName: "AutoscaleConfigurationUpdateParameter",
+export const AutoscaleCapacity: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AutoscaleConfigurationUpdateParameter",
+ className: "AutoscaleCapacity",
modelProperties: {
- autoscale: {
- serializedName: "autoscale",
+ minInstanceCount: {
+ serializedName: "minInstanceCount",
type: {
- name: "Composite",
- className: "Autoscale"
+ name: "Number"
+ }
+ },
+ maxInstanceCount: {
+ serializedName: "maxInstanceCount",
+ type: {
+ name: "Number"
}
}
}
}
};
-export const HardwareProfile: msRest.CompositeMapper = {
- serializedName: "HardwareProfile",
+export const AutoscaleRecurrence: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "HardwareProfile",
+ className: "AutoscaleRecurrence",
modelProperties: {
- vmSize: {
- serializedName: "vmSize",
+ timeZone: {
+ serializedName: "timeZone",
type: {
name: "String"
}
+ },
+ schedule: {
+ serializedName: "schedule",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "AutoscaleSchedule"
+ }
+ }
+ }
}
}
}
};
-export const VirtualNetworkProfile: msRest.CompositeMapper = {
- serializedName: "VirtualNetworkProfile",
+export const AutoscaleSchedule: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "VirtualNetworkProfile",
+ className: "AutoscaleSchedule",
modelProperties: {
- id: {
- serializedName: "id",
+ days: {
+ serializedName: "days",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- subnet: {
- serializedName: "subnet",
+ timeAndCapacity: {
+ serializedName: "timeAndCapacity",
type: {
- name: "String"
+ name: "Composite",
+ className: "AutoscaleTimeAndCapacity"
}
}
}
}
};
-export const DataDisksGroups: msRest.CompositeMapper = {
- serializedName: "DataDisksGroups",
+export const AutoscaleTimeAndCapacity: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "DataDisksGroups",
+ className: "AutoscaleTimeAndCapacity",
modelProperties: {
- disksPerNode: {
- serializedName: "disksPerNode",
+ time: {
+ serializedName: "time",
type: {
- name: "Number"
+ name: "String"
}
},
- storageAccountType: {
- readOnly: true,
- serializedName: "storageAccountType",
+ minInstanceCount: {
+ serializedName: "minInstanceCount",
type: {
- name: "String"
+ name: "Number"
}
},
- diskSizeGB: {
- readOnly: true,
- serializedName: "diskSizeGB",
+ maxInstanceCount: {
+ serializedName: "maxInstanceCount",
type: {
name: "Number"
}
@@ -400,14 +553,13 @@ export const DataDisksGroups: msRest.CompositeMapper = {
}
};
-export const SshPublicKey: msRest.CompositeMapper = {
- serializedName: "SshPublicKey",
+export const HardwareProfile: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SshPublicKey",
+ className: "HardwareProfile",
modelProperties: {
- certificateData: {
- serializedName: "certificateData",
+ vmSize: {
+ serializedName: "vmSize",
type: {
name: "String"
}
@@ -416,30 +568,23 @@ export const SshPublicKey: msRest.CompositeMapper = {
}
};
-export const SshProfile: msRest.CompositeMapper = {
- serializedName: "SshProfile",
+export const OsProfile: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SshProfile",
+ className: "OsProfile",
modelProperties: {
- publicKeys: {
- serializedName: "publicKeys",
+ linuxOperatingSystemProfile: {
+ serializedName: "linuxOperatingSystemProfile",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SshPublicKey"
- }
- }
+ name: "Composite",
+ className: "LinuxOperatingSystemProfile"
}
}
}
}
};
-export const LinuxOperatingSystemProfile: msRest.CompositeMapper = {
- serializedName: "LinuxOperatingSystemProfile",
+export const LinuxOperatingSystemProfile: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "LinuxOperatingSystemProfile",
@@ -467,46 +612,55 @@ export const LinuxOperatingSystemProfile: msRest.CompositeMapper = {
}
};
-export const OsProfile: msRest.CompositeMapper = {
- serializedName: "OsProfile",
+export const SshProfile: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OsProfile",
+ className: "SshProfile",
modelProperties: {
- linuxOperatingSystemProfile: {
- serializedName: "linuxOperatingSystemProfile",
+ publicKeys: {
+ serializedName: "publicKeys",
type: {
- name: "Composite",
- className: "LinuxOperatingSystemProfile"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SshPublicKey"
+ }
+ }
}
}
}
}
};
-export const ScriptAction: msRest.CompositeMapper = {
- serializedName: "ScriptAction",
+export const SshPublicKey: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ScriptAction",
+ className: "SshPublicKey",
modelProperties: {
- name: {
- required: true,
- serializedName: "name",
+ certificateData: {
+ serializedName: "certificateData",
type: {
name: "String"
}
- },
- uri: {
- required: true,
- serializedName: "uri",
+ }
+ }
+ }
+};
+
+export const VirtualNetworkProfile: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "VirtualNetworkProfile",
+ modelProperties: {
+ id: {
+ serializedName: "id",
type: {
name: "String"
}
},
- parameters: {
- required: true,
- serializedName: "parameters",
+ subnet: {
+ serializedName: "subnet",
type: {
name: "String"
}
@@ -515,113 +669,78 @@ export const ScriptAction: msRest.CompositeMapper = {
}
};
-export const Role: msRest.CompositeMapper = {
- serializedName: "Role",
+export const DataDisksGroups: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Role",
+ className: "DataDisksGroups",
modelProperties: {
- name: {
- serializedName: "name",
+ disksPerNode: {
+ serializedName: "disksPerNode",
type: {
- name: "String"
+ name: "Number"
}
},
- minInstanceCount: {
- serializedName: "minInstanceCount",
+ storageAccountType: {
+ serializedName: "storageAccountType",
+ readOnly: true,
type: {
- name: "Number"
+ name: "String"
}
},
- targetInstanceCount: {
- serializedName: "targetInstanceCount",
+ diskSizeGB: {
+ serializedName: "diskSizeGB",
+ readOnly: true,
type: {
name: "Number"
}
- },
- vMGroupName: {
- serializedName: "VMGroupName",
+ }
+ }
+ }
+};
+
+export const ScriptAction: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ScriptAction",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
- autoscaleConfiguration: {
- serializedName: "autoscale",
+ uri: {
+ serializedName: "uri",
+ required: true,
type: {
- name: "Composite",
- className: "Autoscale"
+ name: "String"
}
},
- hardwareProfile: {
- serializedName: "hardwareProfile",
+ parameters: {
+ serializedName: "parameters",
+ required: true,
type: {
- name: "Composite",
- className: "HardwareProfile"
+ name: "String"
}
- },
- osProfile: {
- serializedName: "osProfile",
- type: {
- name: "Composite",
- className: "OsProfile"
- }
- },
- virtualNetworkProfile: {
- serializedName: "virtualNetworkProfile",
- type: {
- name: "Composite",
- className: "VirtualNetworkProfile"
- }
- },
- dataDisksGroups: {
- serializedName: "dataDisksGroups",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "DataDisksGroups"
- }
- }
- }
- },
- scriptActions: {
- serializedName: "scriptActions",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ScriptAction"
- }
- }
- }
- },
- encryptDataDisks: {
- serializedName: "encryptDataDisks",
- defaultValue: false,
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
-export const ComputeProfile: msRest.CompositeMapper = {
- serializedName: "ComputeProfile",
- type: {
- name: "Composite",
- className: "ComputeProfile",
- modelProperties: {
- roles: {
- serializedName: "roles",
+ }
+ }
+ }
+};
+
+export const StorageProfile: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "StorageProfile",
+ modelProperties: {
+ storageaccounts: {
+ serializedName: "storageaccounts",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "Role"
+ className: "StorageAccount"
}
}
}
@@ -630,8 +749,7 @@ export const ComputeProfile: msRest.CompositeMapper = {
}
};
-export const StorageAccount: msRest.CompositeMapper = {
- serializedName: "StorageAccount",
+export const StorageAccount: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "StorageAccount",
@@ -694,52 +812,69 @@ export const StorageAccount: msRest.CompositeMapper = {
}
};
-export const StorageProfile: msRest.CompositeMapper = {
- serializedName: "StorageProfile",
+export const DiskEncryptionProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "StorageProfile",
+ className: "DiskEncryptionProperties",
modelProperties: {
- storageaccounts: {
- serializedName: "storageaccounts",
+ vaultUri: {
+ serializedName: "vaultUri",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "StorageAccount"
- }
- }
+ name: "String"
+ }
+ },
+ keyName: {
+ serializedName: "keyName",
+ type: {
+ name: "String"
+ }
+ },
+ keyVersion: {
+ serializedName: "keyVersion",
+ type: {
+ name: "String"
+ }
+ },
+ encryptionAlgorithm: {
+ serializedName: "encryptionAlgorithm",
+ type: {
+ name: "String"
+ }
+ },
+ msiResourceId: {
+ serializedName: "msiResourceId",
+ type: {
+ name: "String"
+ }
+ },
+ encryptionAtHost: {
+ defaultValue: false,
+ serializedName: "encryptionAtHost",
+ type: {
+ name: "Boolean"
}
}
}
}
};
-export const ExcludedServicesConfig: msRest.CompositeMapper = {
- serializedName: "ExcludedServicesConfig",
+export const EncryptionInTransitProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ExcludedServicesConfig",
+ className: "EncryptionInTransitProperties",
modelProperties: {
- excludedServicesConfigId: {
- serializedName: "excludedServicesConfigId",
- type: {
- name: "String"
- }
- },
- excludedServicesList: {
- serializedName: "excludedServicesList",
+ isEncryptionInTransitEnabled: {
+ defaultValue: false,
+ serializedName: "isEncryptionInTransitEnabled",
type: {
- name: "String"
+ name: "Boolean"
}
}
}
}
};
-export const NetworkProperties: msRest.CompositeMapper = {
- serializedName: "NetworkProperties",
+export const NetworkProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "NetworkProperties",
@@ -760,15 +895,14 @@ export const NetworkProperties: msRest.CompositeMapper = {
}
};
-export const ComputeIsolationProperties: msRest.CompositeMapper = {
- serializedName: "ComputeIsolationProperties",
+export const ComputeIsolationProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ComputeIsolationProperties",
modelProperties: {
enableComputeIsolation: {
- serializedName: "enableComputeIsolation",
defaultValue: false,
+ serializedName: "enableComputeIsolation",
type: {
name: "Boolean"
}
@@ -783,216 +917,155 @@ export const ComputeIsolationProperties: msRest.CompositeMapper = {
}
};
-export const DiskEncryptionProperties: msRest.CompositeMapper = {
- serializedName: "DiskEncryptionProperties",
+export const PrivateLinkConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "DiskEncryptionProperties",
+ className: "PrivateLinkConfiguration",
modelProperties: {
- vaultUri: {
- serializedName: "vaultUri",
+ id: {
+ serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
- keyName: {
- serializedName: "keyName",
+ name: {
+ serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
- keyVersion: {
- serializedName: "keyVersion",
+ type: {
+ serializedName: "type",
+ readOnly: true,
type: {
name: "String"
}
},
- encryptionAlgorithm: {
- serializedName: "encryptionAlgorithm",
+ groupId: {
+ serializedName: "properties.groupId",
+ required: true,
type: {
name: "String"
}
},
- msiResourceId: {
- serializedName: "msiResourceId",
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
name: "String"
}
},
- encryptionAtHost: {
- serializedName: "encryptionAtHost",
- defaultValue: false,
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
-export const EncryptionInTransitProperties: msRest.CompositeMapper = {
- serializedName: "EncryptionInTransitProperties",
- type: {
- name: "Composite",
- className: "EncryptionInTransitProperties",
- modelProperties: {
- isEncryptionInTransitEnabled: {
- serializedName: "isEncryptionInTransitEnabled",
- defaultValue: false,
+ ipConfigurations: {
+ serializedName: "properties.ipConfigurations",
+ required: true,
type: {
- name: "Boolean"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "IPConfiguration"
+ }
+ }
}
}
}
}
};
-export const ClusterCreateProperties: msRest.CompositeMapper = {
- serializedName: "ClusterCreateProperties",
+export const IPConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterCreateProperties",
+ className: "IPConfiguration",
modelProperties: {
- clusterVersion: {
- serializedName: "clusterVersion",
+ id: {
+ serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
- osType: {
- serializedName: "osType",
- type: {
- name: "Enum",
- allowedValues: ["Windows", "Linux"]
- }
- },
- tier: {
- serializedName: "tier",
- defaultValue: "Standard",
- type: {
- name: "Enum",
- allowedValues: ["Standard", "Premium"]
- }
- },
- clusterDefinition: {
- serializedName: "clusterDefinition",
- type: {
- name: "Composite",
- className: "ClusterDefinition"
- }
- },
- kafkaRestProperties: {
- serializedName: "kafkaRestProperties",
- type: {
- name: "Composite",
- className: "KafkaRestProperties"
- }
- },
- securityProfile: {
- serializedName: "securityProfile",
+ name: {
+ serializedName: "name",
+ required: true,
type: {
- name: "Composite",
- className: "SecurityProfile"
+ name: "String"
}
},
- computeProfile: {
- serializedName: "computeProfile",
+ type: {
+ serializedName: "type",
+ readOnly: true,
type: {
- name: "Composite",
- className: "ComputeProfile"
+ name: "String"
}
},
- storageProfile: {
- serializedName: "storageProfile",
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
- name: "Composite",
- className: "StorageProfile"
+ name: "String"
}
},
- diskEncryptionProperties: {
- serializedName: "diskEncryptionProperties",
+ primary: {
+ serializedName: "properties.primary",
type: {
- name: "Composite",
- className: "DiskEncryptionProperties"
+ name: "Boolean"
}
},
- encryptionInTransitProperties: {
- serializedName: "encryptionInTransitProperties",
+ privateIPAddress: {
+ serializedName: "properties.privateIPAddress",
type: {
- name: "Composite",
- className: "EncryptionInTransitProperties"
+ name: "String"
}
},
- minSupportedTlsVersion: {
- serializedName: "minSupportedTlsVersion",
+ privateIPAllocationMethod: {
+ serializedName: "properties.privateIPAllocationMethod",
type: {
name: "String"
}
},
- networkProperties: {
- serializedName: "networkProperties",
+ subnet: {
+ serializedName: "properties.subnet",
type: {
name: "Composite",
- className: "NetworkProperties"
+ className: "ResourceId"
}
- },
- computeIsolationProperties: {
- serializedName: "computeIsolationProperties",
+ }
+ }
+ }
+};
+
+export const ResourceId: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ResourceId",
+ modelProperties: {
+ id: {
+ serializedName: "id",
type: {
- name: "Composite",
- className: "ComputeIsolationProperties"
+ name: "String"
}
}
}
}
};
-export const ClusterIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = {
- serializedName: "ClusterIdentity_userAssignedIdentitiesValue",
+export const ClusterIdentity: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterIdentityUserAssignedIdentitiesValue",
+ className: "ClusterIdentity",
modelProperties: {
principalId: {
- readOnly: true,
serializedName: "principalId",
+ readOnly: true,
type: {
name: "String"
}
},
- clientId: {
+ tenantId: {
+ serializedName: "tenantId",
readOnly: true,
- serializedName: "clientId",
- type: {
- name: "String"
- }
- },
- tenantId: {
- serializedName: "tenantId",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ClusterIdentity: msRest.CompositeMapper = {
- serializedName: "ClusterIdentity",
- type: {
- name: "Composite",
- className: "ClusterIdentity",
- modelProperties: {
- principalId: {
- readOnly: true,
- serializedName: "principalId",
- type: {
- name: "String"
- }
- },
- tenantId: {
- readOnly: true,
- serializedName: "tenantId",
type: {
name: "String"
}
@@ -1000,8 +1073,7 @@ export const ClusterIdentity: msRest.CompositeMapper = {
type: {
serializedName: "type",
type: {
- name: "Enum",
- allowedValues: ["SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None"]
+ name: "String"
}
},
userAssignedIdentities: {
@@ -1009,73 +1081,7 @@ export const ClusterIdentity: msRest.CompositeMapper = {
type: {
name: "Dictionary",
value: {
- type: {
- name: "Composite",
- className: "ClusterIdentityUserAssignedIdentitiesValue"
- }
- }
- }
- }
- }
- }
-};
-
-export const ClusterCreateParametersExtended: msRest.CompositeMapper = {
- serializedName: "ClusterCreateParametersExtended",
- type: {
- name: "Composite",
- className: "ClusterCreateParametersExtended",
- modelProperties: {
- location: {
- serializedName: "location",
- type: {
- name: "String"
- }
- },
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- },
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "ClusterCreateProperties"
- }
- },
- identity: {
- serializedName: "identity",
- type: {
- name: "Composite",
- className: "ClusterIdentity"
- }
- }
- }
- }
-};
-
-export const ClusterPatchParameters: msRest.CompositeMapper = {
- serializedName: "ClusterPatchParameters",
- type: {
- name: "Composite",
- className: "ClusterPatchParameters",
- modelProperties: {
- tags: {
- nullable: true,
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
+ type: { name: "Composite", className: "UserAssignedIdentity" }
}
}
}
@@ -1083,76 +1089,27 @@ export const ClusterPatchParameters: msRest.CompositeMapper = {
}
};
-export const QuotaInfo: msRest.CompositeMapper = {
- serializedName: "QuotaInfo",
- type: {
- name: "Composite",
- className: "QuotaInfo",
- modelProperties: {
- coresUsed: {
- serializedName: "coresUsed",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const Errors: msRest.CompositeMapper = {
- serializedName: "Errors",
- type: {
- name: "Composite",
- className: "Errors",
- modelProperties: {
- code: {
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ConnectivityEndpoint: msRest.CompositeMapper = {
- serializedName: "ConnectivityEndpoint",
+export const UserAssignedIdentity: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ConnectivityEndpoint",
+ className: "UserAssignedIdentity",
modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- protocol: {
- serializedName: "protocol",
+ principalId: {
+ serializedName: "principalId",
+ readOnly: true,
type: {
name: "String"
}
},
- location: {
- serializedName: "location",
+ clientId: {
+ serializedName: "clientId",
+ readOnly: true,
type: {
name: "String"
}
},
- port: {
- serializedName: "port",
- type: {
- name: "Number"
- }
- },
- privateIPAddress: {
- serializedName: "privateIPAddress",
+ tenantId: {
+ serializedName: "tenantId",
type: {
name: "String"
}
@@ -1161,8 +1118,7 @@ export const ConnectivityEndpoint: msRest.CompositeMapper = {
}
};
-export const ClusterGetProperties: msRest.CompositeMapper = {
- serializedName: "ClusterGetProperties",
+export const ClusterGetProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ClusterGetProperties",
@@ -1182,15 +1138,13 @@ export const ClusterGetProperties: msRest.CompositeMapper = {
osType: {
serializedName: "osType",
type: {
- name: "Enum",
- allowedValues: ["Windows", "Linux"]
+ name: "String"
}
},
tier: {
serializedName: "tier",
type: {
- name: "Enum",
- allowedValues: ["Standard", "Premium"]
+ name: "String"
}
},
clusterId: {
@@ -1200,7 +1154,6 @@ export const ClusterGetProperties: msRest.CompositeMapper = {
}
},
clusterDefinition: {
- required: true,
serializedName: "clusterDefinition",
type: {
name: "Composite",
@@ -1231,8 +1184,7 @@ export const ClusterGetProperties: msRest.CompositeMapper = {
provisioningState: {
serializedName: "provisioningState",
type: {
- name: "Enum",
- allowedValues: ["InProgress", "Failed", "Succeeded", "Canceled", "Deleting"]
+ name: "String"
}
},
createdDate: {
@@ -1325,142 +1277,103 @@ export const ClusterGetProperties: msRest.CompositeMapper = {
name: "Composite",
className: "ComputeIsolationProperties"
}
- }
- }
- }
-};
-
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
- type: {
- name: "Composite",
- className: "Resource",
- modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
},
- name: {
- readOnly: true,
- serializedName: "name",
+ privateLinkConfigurations: {
+ serializedName: "privateLinkConfigurations",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PrivateLinkConfiguration"
+ }
+ }
}
},
- type: {
+ privateEndpointConnections: {
+ serializedName: "privateEndpointConnections",
readOnly: true,
- serializedName: "type",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PrivateEndpointConnection"
+ }
+ }
}
}
}
}
};
-export const TrackedResource: msRest.CompositeMapper = {
- serializedName: "TrackedResource",
+export const QuotaInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "TrackedResource",
+ className: "QuotaInfo",
modelProperties: {
- ...Resource.type.modelProperties,
- location: {
- serializedName: "location",
- type: {
- name: "String"
- }
- },
- tags: {
- serializedName: "tags",
+ coresUsed: {
+ serializedName: "coresUsed",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "Number"
}
}
}
}
};
-export const Cluster: msRest.CompositeMapper = {
- serializedName: "Cluster",
+export const Errors: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Cluster",
+ className: "Errors",
modelProperties: {
- ...TrackedResource.type.modelProperties,
- etag: {
- serializedName: "etag",
+ code: {
+ serializedName: "code",
type: {
name: "String"
}
},
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "ClusterGetProperties"
- }
- },
- identity: {
- serializedName: "identity",
+ message: {
+ serializedName: "message",
type: {
- name: "Composite",
- className: "ClusterIdentity"
+ name: "String"
}
}
}
}
};
-export const RuntimeScriptAction: msRest.CompositeMapper = {
- serializedName: "RuntimeScriptAction",
+export const ConnectivityEndpoint: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "RuntimeScriptAction",
+ className: "ConnectivityEndpoint",
modelProperties: {
name: {
- required: true,
serializedName: "name",
type: {
name: "String"
}
},
- uri: {
- required: true,
- serializedName: "uri",
+ protocol: {
+ serializedName: "protocol",
type: {
name: "String"
}
},
- parameters: {
- serializedName: "parameters",
+ location: {
+ serializedName: "location",
type: {
name: "String"
}
},
- roles: {
- required: true,
- serializedName: "roles",
+ port: {
+ serializedName: "port",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "Number"
}
},
- applicationName: {
- readOnly: true,
- serializedName: "applicationName",
+ privateIPAddress: {
+ serializedName: "privateIPAddress",
type: {
name: "String"
}
@@ -1469,56 +1382,62 @@ export const RuntimeScriptAction: msRest.CompositeMapper = {
}
};
-export const ExecuteScriptActionParameters: msRest.CompositeMapper = {
- serializedName: "ExecuteScriptActionParameters",
+export const ExcludedServicesConfig: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ExecuteScriptActionParameters",
+ className: "ExcludedServicesConfig",
modelProperties: {
- scriptActions: {
- serializedName: "scriptActions",
+ excludedServicesConfigId: {
+ serializedName: "excludedServicesConfigId",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RuntimeScriptAction"
- }
- }
+ name: "String"
}
},
- persistOnSuccess: {
- required: true,
- serializedName: "persistOnSuccess",
+ excludedServicesList: {
+ serializedName: "excludedServicesList",
type: {
- name: "Boolean"
+ name: "String"
}
}
}
}
};
-export const ClusterListPersistedScriptActionsResult: msRest.CompositeMapper = {
- serializedName: "ClusterListPersistedScriptActionsResult",
+export const PrivateEndpoint: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterListPersistedScriptActionsResult",
+ className: "PrivateEndpoint",
modelProperties: {
- value: {
- serializedName: "value",
+ id: {
+ serializedName: "id",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RuntimeScriptAction"
- }
- }
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PrivateLinkServiceConnectionState",
+ modelProperties: {
+ status: {
+ serializedName: "status",
+ required: true,
+ type: {
+ name: "String"
}
},
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ },
+ actionsRequired: {
+ serializedName: "actionsRequired",
type: {
name: "String"
}
@@ -1527,88 +1446,124 @@ export const ClusterListPersistedScriptActionsResult: msRest.CompositeMapper = {
}
};
-export const ScriptActionExecutionSummary: msRest.CompositeMapper = {
- serializedName: "ScriptActionExecutionSummary",
+export const SystemData: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ScriptActionExecutionSummary",
+ className: "SystemData",
modelProperties: {
- status: {
- readOnly: true,
- serializedName: "status",
+ createdBy: {
+ serializedName: "createdBy",
type: {
name: "String"
}
},
- instanceCount: {
- readOnly: true,
- serializedName: "instanceCount",
+ createdByType: {
+ serializedName: "createdByType",
type: {
- name: "Number"
+ name: "String"
+ }
+ },
+ createdAt: {
+ serializedName: "createdAt",
+ type: {
+ name: "DateTime"
+ }
+ },
+ lastModifiedBy: {
+ serializedName: "lastModifiedBy",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedByType: {
+ serializedName: "lastModifiedByType",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedAt: {
+ serializedName: "lastModifiedAt",
+ type: {
+ name: "DateTime"
}
}
}
}
};
-export const RuntimeScriptActionDetail: msRest.CompositeMapper = {
- serializedName: "RuntimeScriptActionDetail",
+export const Resource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "RuntimeScriptActionDetail",
+ className: "Resource",
modelProperties: {
- ...RuntimeScriptAction.type.modelProperties,
- scriptExecutionId: {
+ id: {
+ serializedName: "id",
readOnly: true,
- serializedName: "scriptExecutionId",
type: {
- name: "Number"
+ name: "String"
}
},
- startTime: {
+ name: {
+ serializedName: "name",
readOnly: true,
- serializedName: "startTime",
type: {
name: "String"
}
},
- endTime: {
+ type: {
+ serializedName: "type",
readOnly: true,
- serializedName: "endTime",
type: {
name: "String"
}
- },
- status: {
+ }
+ }
+ }
+};
+
+export const ResourceAutoGenerated: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ResourceAutoGenerated",
+ modelProperties: {
+ id: {
+ serializedName: "id",
readOnly: true,
- serializedName: "status",
type: {
name: "String"
}
},
- operation: {
+ name: {
+ serializedName: "name",
readOnly: true,
- serializedName: "operation",
type: {
name: "String"
}
},
- executionSummary: {
+ type: {
+ serializedName: "type",
readOnly: true,
- serializedName: "executionSummary",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ScriptActionExecutionSummary"
- }
- }
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ type: {
+ name: "String"
}
},
- debugInformation: {
- readOnly: true,
- serializedName: "debugInformation",
+ message: {
+ serializedName: "message",
type: {
name: "String"
}
@@ -1617,28 +1572,43 @@ export const RuntimeScriptActionDetail: msRest.CompositeMapper = {
}
};
-export const ClusterListRuntimeScriptActionDetailResult: msRest.CompositeMapper = {
- serializedName: "ClusterListRuntimeScriptActionDetailResult",
+export const ClusterPatchParameters: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ClusterPatchParameters",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ nullable: true,
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ }
+ }
+ }
+};
+
+export const ClusterListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterListRuntimeScriptActionDetailResult",
+ className: "ClusterListResult",
modelProperties: {
value: {
- readOnly: true,
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "RuntimeScriptActionDetail"
+ className: "Cluster"
}
}
}
},
nextLink: {
- readOnly: true,
serializedName: "nextLink",
+ readOnly: true,
type: {
name: "String"
}
@@ -1647,8 +1617,7 @@ export const ClusterListRuntimeScriptActionDetailResult: msRest.CompositeMapper
}
};
-export const ClusterResizeParameters: msRest.CompositeMapper = {
- serializedName: "ClusterResizeParameters",
+export const ClusterResizeParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ClusterResizeParameters",
@@ -1663,8 +1632,23 @@ export const ClusterResizeParameters: msRest.CompositeMapper = {
}
};
-export const ClusterDiskEncryptionParameters: msRest.CompositeMapper = {
- serializedName: "ClusterDiskEncryptionParameters",
+export const AutoscaleConfigurationUpdateParameter: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AutoscaleConfigurationUpdateParameter",
+ modelProperties: {
+ autoscale: {
+ serializedName: "autoscale",
+ type: {
+ name: "Composite",
+ className: "Autoscale"
+ }
+ }
+ }
+ }
+};
+
+export const ClusterDiskEncryptionParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ClusterDiskEncryptionParameters",
@@ -1691,27 +1675,28 @@ export const ClusterDiskEncryptionParameters: msRest.CompositeMapper = {
}
};
-export const UpdateGatewaySettingsParameters: msRest.CompositeMapper = {
- serializedName: "UpdateGatewaySettingsParameters",
+export const GatewaySettings: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "UpdateGatewaySettingsParameters",
+ className: "GatewaySettings",
modelProperties: {
isCredentialEnabled: {
serializedName: "restAuthCredential\\.isEnabled",
- defaultValue: true,
+ readOnly: true,
type: {
- name: "Boolean"
+ name: "String"
}
},
userName: {
serializedName: "restAuthCredential\\.username",
+ readOnly: true,
type: {
name: "String"
}
},
password: {
serializedName: "restAuthCredential\\.password",
+ readOnly: true,
type: {
name: "String"
}
@@ -1720,28 +1705,25 @@ export const UpdateGatewaySettingsParameters: msRest.CompositeMapper = {
}
};
-export const GatewaySettings: msRest.CompositeMapper = {
- serializedName: "GatewaySettings",
+export const UpdateGatewaySettingsParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "GatewaySettings",
+ className: "UpdateGatewaySettingsParameters",
modelProperties: {
isCredentialEnabled: {
- readOnly: true,
+ defaultValue: true,
serializedName: "restAuthCredential\\.isEnabled",
type: {
- name: "String"
+ name: "Boolean"
}
},
userName: {
- readOnly: true,
serializedName: "restAuthCredential\\.username",
type: {
name: "String"
}
},
password: {
- readOnly: true,
serializedName: "restAuthCredential\\.password",
type: {
name: "String"
@@ -1751,8 +1733,7 @@ export const GatewaySettings: msRest.CompositeMapper = {
}
};
-export const AsyncOperationResult: msRest.CompositeMapper = {
- serializedName: "AsyncOperationResult",
+export const AsyncOperationResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AsyncOperationResult",
@@ -1760,8 +1741,7 @@ export const AsyncOperationResult: msRest.CompositeMapper = {
status: {
serializedName: "status",
type: {
- name: "Enum",
- allowedValues: ["InProgress", "Succeeded", "Failed"]
+ name: "String"
}
},
error: {
@@ -1775,8 +1755,7 @@ export const AsyncOperationResult: msRest.CompositeMapper = {
}
};
-export const UpdateClusterIdentityCertificateParameters: msRest.CompositeMapper = {
- serializedName: "UpdateClusterIdentityCertificateParameters",
+export const UpdateClusterIdentityCertificateParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "UpdateClusterIdentityCertificateParameters",
@@ -1803,31 +1782,26 @@ export const UpdateClusterIdentityCertificateParameters: msRest.CompositeMapper
}
};
-export const ProxyResource: msRest.CompositeMapper = {
- serializedName: "ProxyResource",
- type: {
- name: "Composite",
- className: "ProxyResource",
- modelProperties: {
- ...Resource.type.modelProperties
- }
- }
-};
-
-export const ErrorResponse: msRest.CompositeMapper = {
- serializedName: "ErrorResponse",
+export const ApplicationListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorResponse",
+ className: "ApplicationListResult",
modelProperties: {
- code: {
- serializedName: "code",
+ value: {
+ serializedName: "value",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Application"
+ }
+ }
}
},
- message: {
- serializedName: "message",
+ nextLink: {
+ serializedName: "nextLink",
+ readOnly: true,
type: {
name: "String"
}
@@ -1836,126 +1810,32 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};
-export const ApplicationGetHttpsEndpoint: msRest.CompositeMapper = {
- serializedName: "ApplicationGetHttpsEndpoint",
+export const ApplicationProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ApplicationGetHttpsEndpoint",
+ className: "ApplicationProperties",
modelProperties: {
- accessModes: {
- serializedName: "accessModes",
+ computeProfile: {
+ serializedName: "computeProfile",
+ type: {
+ name: "Composite",
+ className: "ComputeProfile"
+ }
+ },
+ installScriptActions: {
+ serializedName: "installScriptActions",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "RuntimeScriptAction"
}
}
}
},
- location: {
- readOnly: true,
- serializedName: "location",
- type: {
- name: "String"
- }
- },
- destinationPort: {
- serializedName: "destinationPort",
- type: {
- name: "Number"
- }
- },
- publicPort: {
- readOnly: true,
- serializedName: "publicPort",
- type: {
- name: "Number"
- }
- },
- privateIPAddress: {
- serializedName: "privateIPAddress",
- type: {
- name: "String"
- }
- },
- subDomainSuffix: {
- serializedName: "subDomainSuffix",
- type: {
- name: "String"
- }
- },
- disableGatewayAuth: {
- serializedName: "disableGatewayAuth",
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
-export const ApplicationGetEndpoint: msRest.CompositeMapper = {
- serializedName: "ApplicationGetEndpoint",
- type: {
- name: "Composite",
- className: "ApplicationGetEndpoint",
- modelProperties: {
- location: {
- serializedName: "location",
- type: {
- name: "String"
- }
- },
- destinationPort: {
- serializedName: "destinationPort",
- type: {
- name: "Number"
- }
- },
- publicPort: {
- serializedName: "publicPort",
- type: {
- name: "Number"
- }
- },
- privateIPAddress: {
- serializedName: "privateIPAddress",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ApplicationProperties: msRest.CompositeMapper = {
- serializedName: "ApplicationProperties",
- type: {
- name: "Composite",
- className: "ApplicationProperties",
- modelProperties: {
- computeProfile: {
- serializedName: "computeProfile",
- type: {
- name: "Composite",
- className: "ComputeProfile"
- }
- },
- installScriptActions: {
- serializedName: "installScriptActions",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "RuntimeScriptAction"
- }
- }
- }
- },
- uninstallScriptActions: {
- serializedName: "uninstallScriptActions",
+ uninstallScriptActions: {
+ serializedName: "uninstallScriptActions",
type: {
name: "Sequence",
element: {
@@ -1991,8 +1871,8 @@ export const ApplicationProperties: msRest.CompositeMapper = {
}
},
provisioningState: {
- readOnly: true,
serializedName: "provisioningState",
+ readOnly: true,
type: {
name: "String"
}
@@ -2004,8 +1884,8 @@ export const ApplicationProperties: msRest.CompositeMapper = {
}
},
applicationState: {
- readOnly: true,
serializedName: "applicationState",
+ readOnly: true,
type: {
name: "String"
}
@@ -2023,99 +1903,218 @@ export const ApplicationProperties: msRest.CompositeMapper = {
}
},
createdDate: {
- readOnly: true,
serializedName: "createdDate",
+ readOnly: true,
type: {
name: "String"
}
},
marketplaceIdentifier: {
- readOnly: true,
serializedName: "marketplaceIdentifier",
+ readOnly: true,
type: {
name: "String"
}
+ },
+ privateLinkConfigurations: {
+ serializedName: "privateLinkConfigurations",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PrivateLinkConfiguration"
+ }
+ }
+ }
}
}
}
};
-export const Application: msRest.CompositeMapper = {
- serializedName: "Application",
+export const RuntimeScriptAction: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Application",
+ className: "RuntimeScriptAction",
modelProperties: {
- ...ProxyResource.type.modelProperties,
- etag: {
- serializedName: "etag",
+ name: {
+ serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
- tags: {
- serializedName: "tags",
+ uri: {
+ serializedName: "uri",
+ required: true,
type: {
- name: "Dictionary",
- value: {
+ name: "String"
+ }
+ },
+ parameters: {
+ serializedName: "parameters",
+ type: {
+ name: "String"
+ }
+ },
+ roles: {
+ serializedName: "roles",
+ required: true,
+ type: {
+ name: "Sequence",
+ element: {
type: {
name: "String"
}
}
}
},
- properties: {
- serializedName: "properties",
+ applicationName: {
+ serializedName: "applicationName",
+ readOnly: true,
type: {
- name: "Composite",
- className: "ApplicationProperties"
+ name: "String"
}
}
}
}
};
-export const VersionSpec: msRest.CompositeMapper = {
- serializedName: "VersionSpec",
+export const ApplicationGetHttpsEndpoint: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "VersionSpec",
+ className: "ApplicationGetHttpsEndpoint",
modelProperties: {
- friendlyName: {
- serializedName: "friendlyName",
+ accessModes: {
+ serializedName: "accessModes",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ location: {
+ serializedName: "location",
+ readOnly: true,
type: {
name: "String"
}
},
- displayName: {
- serializedName: "displayName",
+ destinationPort: {
+ serializedName: "destinationPort",
+ type: {
+ name: "Number"
+ }
+ },
+ publicPort: {
+ serializedName: "publicPort",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ privateIPAddress: {
+ serializedName: "privateIPAddress",
type: {
name: "String"
}
},
- isDefault: {
- serializedName: "isDefault",
+ subDomainSuffix: {
+ serializedName: "subDomainSuffix",
+ type: {
+ name: "String"
+ }
+ },
+ disableGatewayAuth: {
+ serializedName: "disableGatewayAuth",
type: {
name: "Boolean"
}
+ }
+ }
+ }
+};
+
+export const ApplicationGetEndpoint: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ApplicationGetEndpoint",
+ modelProperties: {
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
},
- componentVersions: {
- serializedName: "componentVersions",
+ destinationPort: {
+ serializedName: "destinationPort",
+ type: {
+ name: "Number"
+ }
+ },
+ publicPort: {
+ serializedName: "publicPort",
+ type: {
+ name: "Number"
+ }
+ },
+ privateIPAddress: {
+ serializedName: "privateIPAddress",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CapabilitiesResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CapabilitiesResult",
+ modelProperties: {
+ versions: {
+ serializedName: "versions",
type: {
name: "Dictionary",
value: {
+ type: { name: "Composite", className: "VersionsCapability" }
+ }
+ }
+ },
+ regions: {
+ serializedName: "regions",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "Composite", className: "RegionsCapability" } }
+ }
+ },
+ features: {
+ serializedName: "features",
+ type: {
+ name: "Sequence",
+ element: {
type: {
name: "String"
}
}
}
+ },
+ quota: {
+ serializedName: "quota",
+ type: {
+ name: "Composite",
+ className: "QuotaCapability"
+ }
}
}
}
};
-export const VersionsCapability: msRest.CompositeMapper = {
- serializedName: "VersionsCapability",
+export const VersionsCapability: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "VersionsCapability",
@@ -2136,32 +2135,44 @@ export const VersionsCapability: msRest.CompositeMapper = {
}
};
-export const RegionsCapability: msRest.CompositeMapper = {
- serializedName: "RegionsCapability",
+export const VersionSpec: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "RegionsCapability",
+ className: "VersionSpec",
modelProperties: {
- available: {
- serializedName: "available",
+ friendlyName: {
+ serializedName: "friendlyName",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
+ }
+ },
+ displayName: {
+ serializedName: "displayName",
+ type: {
+ name: "String"
+ }
+ },
+ isDefault: {
+ serializedName: "isDefault",
+ type: {
+ name: "Boolean"
+ }
+ },
+ componentVersions: {
+ serializedName: "componentVersions",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
}
}
}
};
-export const VmSizesCapability: msRest.CompositeMapper = {
- serializedName: "VmSizesCapability",
+export const RegionsCapability: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "VmSizesCapability",
+ className: "RegionsCapability",
modelProperties: {
available: {
serializedName: "available",
@@ -2178,120 +2189,58 @@ export const VmSizesCapability: msRest.CompositeMapper = {
}
};
-export const VmSizeCompatibilityFilter: msRest.CompositeMapper = {
- serializedName: "VmSizeCompatibilityFilter",
+export const QuotaCapability: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "VmSizeCompatibilityFilter",
+ className: "QuotaCapability",
modelProperties: {
- 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",
+ coresUsed: {
+ serializedName: "coresUsed",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "Number"
}
},
- osType: {
- serializedName: "OsType",
+ maxCoresAllowed: {
+ serializedName: "maxCoresAllowed",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "Number"
}
},
- vMSizes: {
- serializedName: "VMSizes",
+ regionalQuotas: {
+ serializedName: "regionalQuotas",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "RegionalQuotaCapability"
}
}
}
- },
- eSPApplied: {
- serializedName: "ESPApplied",
- type: {
- name: "String"
- }
- },
- computeIsolationSupported: {
- serializedName: "ComputeIsolationSupported",
- type: {
- name: "String"
- }
}
}
}
};
-export const RegionalQuotaCapability: msRest.CompositeMapper = {
- serializedName: "RegionalQuotaCapability",
+export const RegionalQuotaCapability: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "RegionalQuotaCapability",
modelProperties: {
regionName: {
- serializedName: "region_name",
+ serializedName: "regionName",
type: {
name: "String"
}
},
coresUsed: {
- serializedName: "cores_used",
+ serializedName: "coresUsed",
type: {
name: "Number"
}
},
coresAvailable: {
- serializedName: "cores_available",
+ serializedName: "coresAvailable",
type: {
name: "Number"
}
@@ -2300,32 +2249,19 @@ export const RegionalQuotaCapability: msRest.CompositeMapper = {
}
};
-export const QuotaCapability: msRest.CompositeMapper = {
- serializedName: "QuotaCapability",
+export const UsagesListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "QuotaCapability",
+ className: "UsagesListResult",
modelProperties: {
- coresUsed: {
- serializedName: "cores_used",
- type: {
- name: "Number"
- }
- },
- maxCoresAllowed: {
- serializedName: "max_cores_allowed",
- type: {
- name: "Number"
- }
- },
- regionalQuotas: {
- serializedName: "regionalQuotas",
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "RegionalQuotaCapability"
+ className: "Usage"
}
}
}
@@ -2334,84 +2270,41 @@ export const QuotaCapability: msRest.CompositeMapper = {
}
};
-export const CapabilitiesResult: msRest.CompositeMapper = {
- serializedName: "CapabilitiesResult",
+export const Usage: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CapabilitiesResult",
+ className: "Usage",
modelProperties: {
- versions: {
- serializedName: "versions",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "Composite",
- className: "VersionsCapability"
- }
- }
- }
- },
- regions: {
- serializedName: "regions",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "Composite",
- className: "RegionsCapability"
- }
- }
- }
- },
- vmsizes: {
- serializedName: "vmsizes",
+ unit: {
+ serializedName: "unit",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "Composite",
- className: "VmSizesCapability"
- }
- }
+ name: "String"
}
},
- vmsizeFilters: {
- serializedName: "vmsize_filters",
+ currentValue: {
+ serializedName: "currentValue",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "VmSizeCompatibilityFilter"
- }
- }
+ name: "Number"
}
},
- features: {
- serializedName: "features",
+ limit: {
+ serializedName: "limit",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "Number"
}
},
- quota: {
- serializedName: "quota",
+ name: {
+ serializedName: "name",
type: {
name: "Composite",
- className: "QuotaCapability"
+ className: "LocalizedName"
}
}
}
}
};
-export const LocalizedName: msRest.CompositeMapper = {
- serializedName: "LocalizedName",
+export const LocalizedName: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "LocalizedName",
@@ -2432,55 +2325,66 @@ export const LocalizedName: msRest.CompositeMapper = {
}
};
-export const Usage: msRest.CompositeMapper = {
- serializedName: "Usage",
+export const BillingResponseListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Usage",
+ className: "BillingResponseListResult",
modelProperties: {
- unit: {
- serializedName: "unit",
+ vmSizes: {
+ serializedName: "vmSizes",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- currentValue: {
- serializedName: "currentValue",
+ vmSizesWithEncryptionAtHost: {
+ serializedName: "vmSizesWithEncryptionAtHost",
type: {
- name: "Number"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- limit: {
- serializedName: "limit",
+ vmSizeFilters: {
+ serializedName: "vmSizeFilters",
type: {
- name: "Number"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "VmSizeCompatibilityFilterV2"
+ }
+ }
}
},
- name: {
- serializedName: "name",
+ vmSizeProperties: {
+ serializedName: "vmSizeProperties",
+ readOnly: true,
type: {
- name: "Composite",
- className: "LocalizedName"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "VmSizeProperty"
+ }
+ }
}
- }
- }
- }
-};
-
-export const UsagesListResult: msRest.CompositeMapper = {
- serializedName: "UsagesListResult",
- type: {
- name: "Composite",
- className: "UsagesListResult",
- modelProperties: {
- value: {
- serializedName: "value",
+ },
+ billingResources: {
+ serializedName: "billingResources",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "Usage"
+ className: "BillingResources"
}
}
}
@@ -2489,8 +2393,7 @@ export const UsagesListResult: msRest.CompositeMapper = {
}
};
-export const VmSizeCompatibilityFilterV2: msRest.CompositeMapper = {
- serializedName: "VmSizeCompatibilityFilterV2",
+export const VmSizeCompatibilityFilterV2: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "VmSizeCompatibilityFilterV2",
@@ -2551,8 +2454,7 @@ export const VmSizeCompatibilityFilterV2: msRest.CompositeMapper = {
name: "Sequence",
element: {
type: {
- name: "Enum",
- allowedValues: ["Windows", "Linux"]
+ name: "String"
}
}
}
@@ -2567,13 +2469,24 @@ export const VmSizeCompatibilityFilterV2: msRest.CompositeMapper = {
}
}
}
+ },
+ espApplied: {
+ serializedName: "espApplied",
+ type: {
+ name: "String"
+ }
+ },
+ computeIsolationSupported: {
+ serializedName: "computeIsolationSupported",
+ type: {
+ name: "String"
+ }
}
}
}
};
-export const VmSizeProperty: msRest.CompositeMapper = {
- serializedName: "VmSizeProperty",
+export const VmSizeProperty: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "VmSizeProperty",
@@ -2642,68 +2555,10 @@ export const VmSizeProperty: msRest.CompositeMapper = {
}
};
-export const BillingMeters: msRest.CompositeMapper = {
- serializedName: "BillingMeters",
+export const BillingResources: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "BillingMeters",
- modelProperties: {
- meterParameter: {
- serializedName: "meterParameter",
- type: {
- name: "String"
- }
- },
- meter: {
- serializedName: "meter",
- type: {
- name: "String"
- }
- },
- unit: {
- serializedName: "unit",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const DiskBillingMeters: msRest.CompositeMapper = {
- serializedName: "DiskBillingMeters",
- type: {
- name: "Composite",
- className: "DiskBillingMeters",
- modelProperties: {
- diskRpMeter: {
- serializedName: "diskRpMeter",
- type: {
- name: "String"
- }
- },
- sku: {
- serializedName: "sku",
- type: {
- name: "String"
- }
- },
- tier: {
- serializedName: "tier",
- type: {
- name: "Enum",
- allowedValues: ["Standard", "Premium"]
- }
- }
- }
- }
-};
-
-export const BillingResources: msRest.CompositeMapper = {
- serializedName: "BillingResources",
- type: {
- name: "Composite",
- className: "BillingResources",
+ className: "BillingResources",
modelProperties: {
region: {
serializedName: "region",
@@ -2739,77 +2594,61 @@ export const BillingResources: msRest.CompositeMapper = {
}
};
-export const BillingResponseListResult: msRest.CompositeMapper = {
- serializedName: "BillingResponseListResult",
+export const BillingMeters: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "BillingResponseListResult",
+ className: "BillingMeters",
modelProperties: {
- vmSizes: {
- serializedName: "vmSizes",
+ meterParameter: {
+ serializedName: "meterParameter",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- vmSizesWithEncryptionAtHost: {
- serializedName: "vmSizesWithEncryptionAtHost",
+ meter: {
+ serializedName: "meter",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- vmSizeFilters: {
- serializedName: "vmSizeFilters",
+ unit: {
+ serializedName: "unit",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "VmSizeCompatibilityFilterV2"
- }
- }
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DiskBillingMeters: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "DiskBillingMeters",
+ modelProperties: {
+ diskRpMeter: {
+ serializedName: "diskRpMeter",
+ type: {
+ name: "String"
}
},
- vmSizeProperties: {
- readOnly: true,
- serializedName: "vmSizeProperties",
+ sku: {
+ serializedName: "sku",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "VmSizeProperty"
- }
- }
+ name: "String"
}
},
- billingResources: {
- serializedName: "billingResources",
+ tier: {
+ serializedName: "tier",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "BillingResources"
- }
- }
+ name: "String"
}
}
}
}
};
-export const NameAvailabilityCheckRequestParameters: msRest.CompositeMapper = {
- serializedName: "NameAvailabilityCheckRequestParameters",
+export const NameAvailabilityCheckRequestParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "NameAvailabilityCheckRequestParameters",
@@ -2830,8 +2669,7 @@ export const NameAvailabilityCheckRequestParameters: msRest.CompositeMapper = {
}
};
-export const NameAvailabilityCheckResult: msRest.CompositeMapper = {
- serializedName: "NameAvailabilityCheckResult",
+export const NameAvailabilityCheckResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "NameAvailabilityCheckResult",
@@ -2843,15 +2681,15 @@ export const NameAvailabilityCheckResult: msRest.CompositeMapper = {
}
},
reason: {
- readOnly: true,
serializedName: "reason",
+ readOnly: true,
type: {
name: "String"
}
},
message: {
- readOnly: true,
serializedName: "message",
+ readOnly: true,
type: {
name: "String"
}
@@ -2860,43 +2698,58 @@ export const NameAvailabilityCheckResult: msRest.CompositeMapper = {
}
};
-export const ClusterCreateRequestValidationParameters: msRest.CompositeMapper = {
- serializedName: "ClusterCreateRequestValidationParameters",
+export const ClusterCreateValidationResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterCreateRequestValidationParameters",
+ className: "ClusterCreateValidationResult",
modelProperties: {
- ...ClusterCreateParametersExtended.type.modelProperties,
- name: {
- serializedName: "name",
+ validationErrors: {
+ serializedName: "validationErrors",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ValidationErrorInfo"
+ }
+ }
}
},
- type: {
- serializedName: "type",
+ validationWarnings: {
+ serializedName: "validationWarnings",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ValidationErrorInfo"
+ }
+ }
}
},
- tenantId: {
- serializedName: "tenantId",
+ estimatedCreationDuration: {
+ serializedName: "estimatedCreationDuration",
type: {
- name: "String"
+ name: "TimeSpan"
}
},
- fetchAaddsResource: {
- serializedName: "fetchAaddsResource",
+ aaddsResourcesDetails: {
+ serializedName: "aaddsResourcesDetails",
type: {
- name: "Boolean"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "AaddsResourceDetails"
+ }
+ }
}
}
}
}
};
-export const ValidationErrorInfo: msRest.CompositeMapper = {
- serializedName: "ValidationErrorInfo",
+export const ValidationErrorInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ValidationErrorInfo",
@@ -2934,8 +2787,7 @@ export const ValidationErrorInfo: msRest.CompositeMapper = {
}
};
-export const AaddsResourceDetails: msRest.CompositeMapper = {
- serializedName: "AaddsResourceDetails",
+export const AaddsResourceDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AaddsResourceDetails",
@@ -2986,60 +2838,7 @@ export const AaddsResourceDetails: msRest.CompositeMapper = {
}
};
-export const ClusterCreateValidationResult: msRest.CompositeMapper = {
- serializedName: "ClusterCreateValidationResult",
- type: {
- name: "Composite",
- className: "ClusterCreateValidationResult",
- modelProperties: {
- validationErrors: {
- serializedName: "validationErrors",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ValidationErrorInfo"
- }
- }
- }
- },
- validationWarnings: {
- serializedName: "validationWarnings",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ValidationErrorInfo"
- }
- }
- }
- },
- estimatedCreationDuration: {
- serializedName: "estimatedCreationDuration",
- type: {
- name: "TimeSpan"
- }
- },
- aaddsResourcesDetails: {
- serializedName: "aaddsResourcesDetails",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AaddsResourceDetails"
- }
- }
- }
- }
- }
- }
-};
-
-export const ClusterConfigurations: msRest.CompositeMapper = {
- serializedName: "ClusterConfigurations",
+export const ClusterConfigurations: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ClusterConfigurations",
@@ -3049,14 +2848,7 @@ export const ClusterConfigurations: msRest.CompositeMapper = {
type: {
name: "Dictionary",
value: {
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
+ type: { name: "Dictionary", value: { type: { name: "String" } } }
}
}
}
@@ -3064,11 +2856,10 @@ export const ClusterConfigurations: msRest.CompositeMapper = {
}
};
-export const Extension: msRest.CompositeMapper = {
- serializedName: "Extension",
+export const ClusterMonitoringRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Extension",
+ className: "ClusterMonitoringRequest",
modelProperties: {
workspaceId: {
serializedName: "workspaceId",
@@ -3086,8 +2877,7 @@ export const Extension: msRest.CompositeMapper = {
}
};
-export const ClusterMonitoringResponse: msRest.CompositeMapper = {
- serializedName: "ClusterMonitoringResponse",
+export const ClusterMonitoringResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ClusterMonitoringResponse",
@@ -3108,11 +2898,10 @@ export const ClusterMonitoringResponse: msRest.CompositeMapper = {
}
};
-export const ClusterMonitoringRequest: msRest.CompositeMapper = {
- serializedName: "ClusterMonitoringRequest",
+export const AzureMonitorRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterMonitoringRequest",
+ className: "AzureMonitorRequest",
modelProperties: {
workspaceId: {
serializedName: "workspaceId",
@@ -3125,29 +2914,19 @@ export const ClusterMonitoringRequest: msRest.CompositeMapper = {
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const AzureMonitorTableConfiguration: msRest.CompositeMapper = {
- serializedName: "AzureMonitorTableConfiguration",
- type: {
- name: "Composite",
- className: "AzureMonitorTableConfiguration",
- modelProperties: {
- name: {
- serializedName: "name",
+ },
+ selectedConfigurations: {
+ serializedName: "selectedConfigurations",
type: {
- name: "String"
+ name: "Composite",
+ className: "AzureMonitorSelectedConfigurations"
}
}
}
}
};
-export const AzureMonitorSelectedConfigurations: msRest.CompositeMapper = {
- serializedName: "AzureMonitorSelectedConfigurations",
+export const AzureMonitorSelectedConfigurations: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AzureMonitorSelectedConfigurations",
@@ -3162,11 +2941,7 @@ export const AzureMonitorSelectedConfigurations: msRest.CompositeMapper = {
serializedName: "globalConfigurations",
type: {
name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ value: { type: { name: "String" } }
}
},
tableList: {
@@ -3185,37 +2960,22 @@ export const AzureMonitorSelectedConfigurations: msRest.CompositeMapper = {
}
};
-export const AzureMonitorRequest: msRest.CompositeMapper = {
- serializedName: "AzureMonitorRequest",
+export const AzureMonitorTableConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AzureMonitorRequest",
+ className: "AzureMonitorTableConfiguration",
modelProperties: {
- workspaceId: {
- serializedName: "workspaceId",
- type: {
- name: "String"
- }
- },
- primaryKey: {
- serializedName: "primaryKey",
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
- },
- selectedConfigurations: {
- serializedName: "selectedConfigurations",
- type: {
- name: "Composite",
- className: "AzureMonitorSelectedConfigurations"
- }
}
}
}
};
-export const AzureMonitorResponse: msRest.CompositeMapper = {
- serializedName: "AzureMonitorResponse",
+export const AzureMonitorResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AzureMonitorResponse",
@@ -3243,43 +3003,75 @@ export const AzureMonitorResponse: msRest.CompositeMapper = {
}
};
-export const ScriptActionPersistedGetResponseSpec: msRest.CompositeMapper = {
- serializedName: "ScriptActionPersistedGetResponseSpec",
+export const Extension: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ScriptActionPersistedGetResponseSpec",
+ className: "Extension",
modelProperties: {
- name: {
- serializedName: "name",
+ workspaceId: {
+ serializedName: "workspaceId",
type: {
name: "String"
}
},
- uri: {
- serializedName: "uri",
+ primaryKey: {
+ serializedName: "primaryKey",
type: {
name: "String"
}
- },
- parameters: {
- serializedName: "parameters",
+ }
+ }
+ }
+};
+
+export const ExecuteScriptActionParameters: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExecuteScriptActionParameters",
+ modelProperties: {
+ scriptActions: {
+ serializedName: "scriptActions",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "RuntimeScriptAction"
+ }
+ }
}
},
- roles: {
- serializedName: "roles",
+ persistOnSuccess: {
+ serializedName: "persistOnSuccess",
+ required: true,
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
+export const ScriptActionsList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ScriptActionsList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "RuntimeScriptActionDetail"
}
}
}
},
- applicationName: {
- serializedName: "applicationName",
+ nextLink: {
+ serializedName: "nextLink",
+ readOnly: true,
type: {
name: "String"
}
@@ -3288,32 +3080,77 @@ export const ScriptActionPersistedGetResponseSpec: msRest.CompositeMapper = {
}
};
-export const OperationDisplay: msRest.CompositeMapper = {
- serializedName: "Operation_display",
+export const ScriptActionExecutionSummary: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationDisplay",
+ className: "ScriptActionExecutionSummary",
modelProperties: {
- provider: {
- serializedName: "provider",
+ status: {
+ serializedName: "status",
+ readOnly: true,
type: {
name: "String"
}
},
- resource: {
- serializedName: "resource",
+ instanceCount: {
+ serializedName: "instanceCount",
+ readOnly: true,
type: {
- name: "String"
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const ScriptActionExecutionHistoryList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ScriptActionExecutionHistoryList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "RuntimeScriptActionDetail"
+ }
+ }
}
},
- operation: {
- serializedName: "operation",
+ nextLink: {
+ serializedName: "nextLink",
+ readOnly: true,
type: {
name: "String"
}
+ }
+ }
+ }
+};
+
+export const OperationListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Operation"
+ }
+ }
+ }
},
- description: {
- serializedName: "description",
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -3322,11 +3159,10 @@ export const OperationDisplay: msRest.CompositeMapper = {
}
};
-export const Dimension: msRest.CompositeMapper = {
- serializedName: "Dimension",
+export const Operation: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Dimension",
+ className: "Operation",
modelProperties: {
name: {
serializedName: "name",
@@ -3334,30 +3170,95 @@ export const Dimension: msRest.CompositeMapper = {
name: "String"
}
},
- displayName: {
- serializedName: "displayName",
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "OperationProperties"
+ }
+ }
+ }
+ }
+};
+
+export const OperationDisplay: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationDisplay",
+ modelProperties: {
+ provider: {
+ serializedName: "provider",
type: {
name: "String"
}
},
- internalName: {
- serializedName: "internalName",
+ resource: {
+ serializedName: "resource",
type: {
name: "String"
}
},
- toBeExportedForShoebox: {
- serializedName: "toBeExportedForShoebox",
+ operation: {
+ serializedName: "operation",
type: {
- name: "Boolean"
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationProperties",
+ modelProperties: {
+ serviceSpecification: {
+ serializedName: "serviceSpecification",
+ type: {
+ name: "Composite",
+ className: "ServiceSpecification"
+ }
+ }
+ }
+ }
+};
+
+export const ServiceSpecification: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceSpecification",
+ modelProperties: {
+ metricSpecifications: {
+ serializedName: "metricSpecifications",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "MetricSpecifications"
+ }
+ }
}
}
}
}
};
-export const MetricSpecifications: msRest.CompositeMapper = {
- serializedName: "MetricSpecifications",
+export const MetricSpecifications: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "MetricSpecifications",
@@ -3484,50 +3385,147 @@ export const MetricSpecifications: msRest.CompositeMapper = {
}
};
-export const ServiceSpecification: msRest.CompositeMapper = {
- serializedName: "ServiceSpecification",
+export const Dimension: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ServiceSpecification",
+ className: "Dimension",
modelProperties: {
- metricSpecifications: {
- serializedName: "metricSpecifications",
+ name: {
+ serializedName: "name",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "MetricSpecifications"
- }
- }
+ name: "String"
+ }
+ },
+ displayName: {
+ serializedName: "displayName",
+ type: {
+ name: "String"
+ }
+ },
+ internalName: {
+ serializedName: "internalName",
+ type: {
+ name: "String"
+ }
+ },
+ toBeExportedForShoebox: {
+ serializedName: "toBeExportedForShoebox",
+ type: {
+ name: "Boolean"
}
}
}
}
};
-export const OperationProperties: msRest.CompositeMapper = {
- serializedName: "OperationProperties",
+export const HostInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationProperties",
+ className: "HostInfo",
modelProperties: {
- serviceSpecification: {
- serializedName: "serviceSpecification",
+ name: {
+ serializedName: "name",
type: {
- name: "Composite",
- className: "ServiceSpecification"
+ name: "String"
+ }
+ },
+ fqdn: {
+ serializedName: "fqdn",
+ type: {
+ name: "String"
+ }
+ },
+ effectiveDiskEncryptionKeyUrl: {
+ serializedName: "effectiveDiskEncryptionKeyUrl",
+ type: {
+ name: "String"
}
}
}
}
};
-export const Operation: msRest.CompositeMapper = {
- serializedName: "Operation",
+export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Operation",
+ 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 ClusterListPersistedScriptActionsResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ClusterListPersistedScriptActionsResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "RuntimeScriptAction"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ScriptActionPersistedGetResponseSpec: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ScriptActionPersistedGetResponseSpec",
modelProperties: {
name: {
serializedName: "name",
@@ -3535,73 +3533,110 @@ export const Operation: msRest.CompositeMapper = {
name: "String"
}
},
- display: {
- serializedName: "display",
+ uri: {
+ serializedName: "uri",
type: {
- name: "Composite",
- className: "OperationDisplay"
+ name: "String"
}
},
- properties: {
- serializedName: "properties",
+ parameters: {
+ serializedName: "parameters",
type: {
- name: "Composite",
- className: "OperationProperties"
+ name: "String"
+ }
+ },
+ roles: {
+ serializedName: "roles",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ applicationName: {
+ serializedName: "applicationName",
+ type: {
+ name: "String"
}
}
}
}
};
-export const HostInfo: msRest.CompositeMapper = {
- serializedName: "HostInfo",
+export const ClusterCreateRequestValidationParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "HostInfo",
+ className: "ClusterCreateRequestValidationParameters",
modelProperties: {
+ ...ClusterCreateParametersExtended.type.modelProperties,
name: {
serializedName: "name",
type: {
name: "String"
}
},
- fqdn: {
- serializedName: "fqdn",
+ type: {
+ serializedName: "type",
type: {
name: "String"
}
},
- effectiveDiskEncryptionKeyUrl: {
- serializedName: "effectiveDiskEncryptionKeyUrl",
+ tenantId: {
+ serializedName: "tenantId",
type: {
name: "String"
}
+ },
+ fetchAaddsResource: {
+ serializedName: "fetchAaddsResource",
+ type: {
+ name: "Boolean"
+ }
}
}
}
};
-export const ClusterListResult: msRest.CompositeMapper = {
- serializedName: "ClusterListResult",
+export const PrivateEndpointConnection: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterListResult",
+ className: "PrivateEndpointConnection",
modelProperties: {
- value: {
- serializedName: "",
+ ...Resource.type.modelProperties,
+ systemData: {
+ serializedName: "systemData",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Cluster"
- }
- }
+ name: "Composite",
+ className: "SystemData"
}
},
- nextLink: {
+ privateEndpoint: {
+ serializedName: "properties.privateEndpoint",
+ type: {
+ name: "Composite",
+ className: "PrivateEndpoint"
+ }
+ },
+ privateLinkServiceConnectionState: {
+ serializedName: "properties.privateLinkServiceConnectionState",
+ type: {
+ name: "Composite",
+ className: "PrivateLinkServiceConnectionState"
+ }
+ },
+ linkIdentifier: {
+ serializedName: "properties.linkIdentifier",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
readOnly: true,
- serializedName: "nextLink",
type: {
name: "String"
}
@@ -3610,27 +3645,32 @@ export const ClusterListResult: msRest.CompositeMapper = {
}
};
-export const ApplicationListResult: msRest.CompositeMapper = {
- serializedName: "ApplicationListResult",
+export const ProxyResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ApplicationListResult",
+ className: "ProxyResource",
modelProperties: {
- value: {
- serializedName: "",
+ ...Resource.type.modelProperties
+ }
+ }
+};
+
+export const TrackedResource: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "TrackedResource",
+ modelProperties: {
+ ...ResourceAutoGenerated.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Application"
- }
- }
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
+ location: {
+ serializedName: "location",
+ required: true,
type: {
name: "String"
}
@@ -3639,57 +3679,110 @@ export const ApplicationListResult: msRest.CompositeMapper = {
}
};
-export const ScriptActionsList: msRest.CompositeMapper = {
- serializedName: "ScriptActionsList",
+export const PrivateLinkResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ScriptActionsList",
+ className: "PrivateLinkResource",
modelProperties: {
- value: {
- serializedName: "",
+ ...ResourceAutoGenerated.type.modelProperties,
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
+ groupId: {
+ serializedName: "properties.groupId",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ requiredMembers: {
+ serializedName: "properties.requiredMembers",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "RuntimeScriptActionDetail"
+ name: "String"
}
}
}
},
- nextLink: {
- readOnly: true,
- serializedName: "nextLink",
+ requiredZoneNames: {
+ serializedName: "properties.requiredZoneNames",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
}
}
}
};
-export const ScriptActionExecutionHistoryList: msRest.CompositeMapper = {
- serializedName: "ScriptActionExecutionHistoryList",
+export const RuntimeScriptActionDetail: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ScriptActionExecutionHistoryList",
+ className: "RuntimeScriptActionDetail",
modelProperties: {
- value: {
+ ...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,
- serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "RuntimeScriptActionDetail"
+ className: "ScriptActionExecutionSummary"
}
}
}
},
- nextLink: {
+ debugInformation: {
+ serializedName: "debugInformation",
readOnly: true,
- serializedName: "nextLink",
type: {
name: "String"
}
@@ -3698,28 +3791,85 @@ export const ScriptActionExecutionHistoryList: msRest.CompositeMapper = {
}
};
-export const OperationListResult: msRest.CompositeMapper = {
- serializedName: "OperationListResult",
+export const Application: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationListResult",
+ className: "Application",
modelProperties: {
- value: {
- serializedName: "",
+ ...ProxyResource.type.modelProperties,
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "ApplicationProperties"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ }
+ }
+ }
+};
+
+export const Cluster: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Cluster",
+ modelProperties: {
+ ...TrackedResource.type.modelProperties,
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ },
+ zones: {
+ serializedName: "zones",
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "Operation"
+ name: "String"
}
}
}
},
- nextLink: {
- serializedName: "nextLink",
+ properties: {
+ serializedName: "properties",
type: {
- name: "String"
+ name: "Composite",
+ className: "ClusterGetProperties"
+ }
+ },
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "ClusterIdentity"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
}
}
}
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/operationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/operationsMappers.ts
deleted file mode 100644
index a94ebcc5d937..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/models/operationsMappers.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- Dimension,
- ErrorResponse,
- MetricSpecifications,
- Operation,
- OperationDisplay,
- OperationListResult,
- OperationProperties,
- ServiceSpecification
-} from "../models/mappers";
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts
index 9e6161b53cb4..4195b39dd245 100644
--- a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts
+++ b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts
@@ -3,150 +3,332 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import {
+ ClusterCreateParametersExtended as ClusterCreateParametersExtendedMapper,
+ ClusterPatchParameters as ClusterPatchParametersMapper,
+ ClusterResizeParameters as ClusterResizeParametersMapper,
+ AutoscaleConfigurationUpdateParameter as AutoscaleConfigurationUpdateParameterMapper,
+ ClusterDiskEncryptionParameters as ClusterDiskEncryptionParametersMapper,
+ 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,
+ PrivateEndpointConnection as PrivateEndpointConnectionMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
- serializedName: "accept-language",
- defaultValue: "en-US",
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
type: {
name: "String"
}
}
};
-export const apiVersion: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const parameters: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ClusterCreateParametersExtendedMapper
+};
+
+export const accept: OperationParameter = {
+ parameterPath: "accept",
+ mapper: {
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
mapper: {
+ serializedName: "$host",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ serializedName: "subscriptionId",
required: true,
- serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const applicationName: msRest.OperationURLParameter = {
- parameterPath: "applicationName",
+
+export const resourceGroupName: OperationURLParameter = {
+ parameterPath: "resourceGroupName",
mapper: {
+ serializedName: "resourceGroupName",
required: true,
- serializedName: "applicationName",
type: {
name: "String"
}
}
};
-export const clusterName: msRest.OperationURLParameter = {
+
+export const clusterName: OperationURLParameter = {
parameterPath: "clusterName",
mapper: {
- required: true,
serializedName: "clusterName",
+ required: true,
type: {
name: "String"
}
}
};
-export const configurationName: msRest.OperationURLParameter = {
- parameterPath: "configurationName",
+
+export const apiVersion: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- required: true,
- serializedName: "configurationName",
+ defaultValue: "2021-06-01",
+ isConstant: true,
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const extensionName: msRest.OperationURLParameter = {
- parameterPath: "extensionName",
+
+export const parameters1: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ClusterPatchParametersMapper
+};
+
+export const parameters2: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ClusterResizeParametersMapper
+};
+
+export const roleName: OperationURLParameter = {
+ parameterPath: "roleName",
mapper: {
+ serializedName: "roleName",
required: true,
- serializedName: "extensionName",
type: {
name: "String"
}
}
};
-export const location: msRest.OperationURLParameter = {
- parameterPath: "location",
+
+export const parameters3: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: AutoscaleConfigurationUpdateParameterMapper
+};
+
+export const parameters4: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ClusterDiskEncryptionParametersMapper
+};
+
+export const parameters5: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: UpdateGatewaySettingsParametersMapper
+};
+
+export const operationId: OperationURLParameter = {
+ parameterPath: "operationId",
mapper: {
+ serializedName: "operationId",
required: true,
- serializedName: "location",
type: {
name: "String"
}
}
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const parameters6: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: UpdateClusterIdentityCertificateParametersMapper
+};
+
+export const parameters7: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ExecuteScriptActionParametersMapper
+};
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
mapper: {
- required: true,
serializedName: "nextLink",
+ required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
-export const operationId: msRest.OperationURLParameter = {
- parameterPath: "operationId",
+
+export const applicationName: OperationURLParameter = {
+ parameterPath: "applicationName",
mapper: {
+ serializedName: "applicationName",
required: true,
- serializedName: "operationId",
type: {
name: "String"
}
}
};
-export const resourceGroupName: msRest.OperationURLParameter = {
- parameterPath: "resourceGroupName",
+
+export const parameters8: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ApplicationMapper
+};
+
+export const location: OperationURLParameter = {
+ parameterPath: "location",
mapper: {
+ serializedName: "location",
required: true,
- serializedName: "resourceGroupName",
type: {
name: "String"
}
}
};
-export const roleName: msRest.OperationURLParameter = {
- parameterPath: "roleName",
+
+export const parameters9: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: NameAvailabilityCheckRequestParametersMapper
+};
+
+export const parameters10: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ClusterCreateRequestValidationParametersMapper
+};
+
+export const parameters11: OperationParameter = {
+ parameterPath: "parameters",
mapper: {
+ serializedName: "parameters",
+ required: true,
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ }
+};
+
+export const configurationName: OperationURLParameter = {
+ parameterPath: "configurationName",
+ mapper: {
+ serializedName: "configurationName",
required: true,
- isConstant: true,
- serializedName: "roleName",
- defaultValue: "workernode",
type: {
name: "String"
}
}
};
-export const scriptExecutionId: msRest.OperationURLParameter = {
- parameterPath: "scriptExecutionId",
+
+export const parameters12: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ClusterMonitoringRequestMapper
+};
+
+export const parameters13: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: AzureMonitorRequestMapper
+};
+
+export const parameters14: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ExtensionMapper
+};
+
+export const extensionName: OperationURLParameter = {
+ parameterPath: "extensionName",
mapper: {
+ serializedName: "extensionName",
required: true,
- serializedName: "scriptExecutionId",
type: {
name: "String"
}
}
};
-export const scriptName: msRest.OperationURLParameter = {
+
+export const scriptName: OperationURLParameter = {
parameterPath: "scriptName",
mapper: {
- required: true,
serializedName: "scriptName",
+ required: true,
type: {
name: "String"
}
}
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const scriptExecutionId: OperationURLParameter = {
+ parameterPath: "scriptExecutionId",
+ mapper: {
+ serializedName: "scriptExecutionId",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const hosts: OperationParameter = {
+ parameterPath: "hosts",
mapper: {
+ serializedName: "hosts",
+ required: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const parameters15: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: PrivateEndpointConnectionMapper
+};
+
+export const privateEndpointConnectionName: OperationURLParameter = {
+ parameterPath: "privateEndpointConnectionName",
+ mapper: {
+ serializedName: "privateEndpointConnectionName",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const privateLinkResourceName: OperationURLParameter = {
+ parameterPath: "privateLinkResourceName",
+ mapper: {
+ serializedName: "privateLinkResourceName",
required: true,
- serializedName: "subscriptionId",
type: {
name: "String"
}
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/scriptActionsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/scriptActionsMappers.ts
deleted file mode 100644
index f742197b3f1f..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/models/scriptActionsMappers.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AsyncOperationResult,
- ErrorResponse,
- Errors,
- RuntimeScriptAction,
- RuntimeScriptActionDetail,
- ScriptActionExecutionSummary,
- ScriptActionsList
-} from "../models/mappers";
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/scriptExecutionHistoryMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/scriptExecutionHistoryMappers.ts
deleted file mode 100644
index bbd80a8126fb..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/models/scriptExecutionHistoryMappers.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- ErrorResponse,
- RuntimeScriptAction,
- RuntimeScriptActionDetail,
- ScriptActionExecutionHistoryList,
- ScriptActionExecutionSummary
-} from "../models/mappers";
diff --git a/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts
deleted file mode 100644
index 039f82d06054..000000000000
--- a/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export { AsyncOperationResult, ErrorResponse, Errors, HostInfo } from "../models/mappers";
diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts
index b82e8c1713f4..a2427d4c0d49 100644
--- a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts
+++ b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts
@@ -3,26 +3,42 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/applicationsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Applications } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { HDInsightManagementClientContext } from "../hDInsightManagementClientContext";
+import { HDInsightManagementClient } from "../hDInsightManagementClient";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ Application,
+ ApplicationsListByClusterNextOptionalParams,
+ ApplicationsListByClusterOptionalParams,
+ ApplicationsListByClusterResponse,
+ ApplicationsGetOptionalParams,
+ ApplicationsGetResponse,
+ ApplicationsCreateOptionalParams,
+ ApplicationsCreateResponse,
+ ApplicationsDeleteOptionalParams,
+ ApplicationsGetAzureAsyncOperationStatusOptionalParams,
+ ApplicationsGetAzureAsyncOperationStatusResponse,
+ ApplicationsListByClusterNextResponse
+} from "../models";
-/** Class representing a Applications. */
-export class Applications {
- private readonly client: HDInsightManagementClientContext;
+///
+/** Class containing Applications operations. */
+export class ApplicationsImpl implements Applications {
+ private readonly client: HDInsightManagementClient;
/**
- * Create a Applications.
- * @param {HDInsightManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Applications class.
+ * @param client Reference to the service client
*/
- constructor(client: HDInsightManagementClientContext) {
+ constructor(client: HDInsightManagementClient) {
this.client = client;
}
@@ -30,110 +46,107 @@ export class Applications {
* Lists all of the applications for the HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listByCluster(
+ public listByCluster(
resourceGroupName: string,
clusterName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param callback The callback
- */
- listByCluster(
- resourceGroupName: string,
- clusterName: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByCluster(
- resourceGroupName: string,
- clusterName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByCluster(
+ options?: ApplicationsListByClusterOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByClusterPagingAll(
+ resourceGroupName,
+ clusterName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByClusterPagingPage(
+ resourceGroupName,
+ clusterName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listByClusterPagingPage(
resourceGroupName: string,
clusterName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
- return this.client.sendOperationRequest(
- {
+ options?: ApplicationsListByClusterOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByCluster(
+ resourceGroupName,
+ clusterName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByClusterNext(
resourceGroupName,
clusterName,
+ continuationToken,
options
- },
- listByClusterOperationSpec,
- callback
- ) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
}
- /**
- * Gets properties of the specified application.
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param applicationName The constant value for the application name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(
+ private async *listByClusterPagingAll(
resourceGroupName: string,
clusterName: string,
- applicationName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ options?: ApplicationsListByClusterOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByClusterPagingPage(
+ resourceGroupName,
+ clusterName,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
/**
+ * Lists all of the applications for the HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param applicationName The constant value for the application name.
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(
+ private _listByCluster(
resourceGroupName: string,
clusterName: string,
- applicationName: string,
- callback: msRest.ServiceCallback
- ): void;
+ options?: ApplicationsListByClusterOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, clusterName, options },
+ listByClusterOperationSpec
+ );
+ }
+
/**
+ * Gets properties of the specified application.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param applicationName The constant value for the application name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
get(
resourceGroupName: string,
clusterName: string,
applicationName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- get(
- resourceGroupName: string,
- clusterName: string,
- applicationName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: ApplicationsGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- applicationName,
- options
- },
- getOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, clusterName, applicationName, options },
+ getOperationSpec
+ );
}
/**
@@ -142,224 +155,229 @@ export class Applications {
* @param clusterName The name of the cluster.
* @param applicationName The constant value for the application name.
* @param parameters The application create request.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- create(
+ async beginCreate(
resourceGroupName: string,
clusterName: string,
applicationName: string,
- parameters: Models.Application,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginCreate(
- resourceGroupName,
- clusterName,
- applicationName,
- parameters,
- options
- ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise<
- Models.ApplicationsCreateResponse
- >;
+ parameters: Application,
+ options?: ApplicationsCreateOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ ApplicationsCreateResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, applicationName, parameters, options },
+ createOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
- * Deletes the specified application on the HDInsight cluster.
+ * Creates applications for the HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param applicationName The constant value for the application name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param parameters The application create request.
+ * @param options The options parameters.
*/
- deleteMethod(
+ async beginCreateAndWait(
resourceGroupName: string,
clusterName: string,
applicationName: string,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginDeleteMethod(
+ parameters: Application,
+ options?: ApplicationsCreateOptionalParams
+ ): Promise {
+ const poller = await this.beginCreate(
resourceGroupName,
clusterName,
applicationName,
+ parameters,
options
- ).then((lroPoller) => lroPoller.pollUntilFinished());
+ );
+ return poller.pollUntilDone();
}
/**
- * Gets the async operation status.
+ * Deletes the specified application on the HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param applicationName The constant value for the application name.
- * @param operationId The long running operation id.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- getAzureAsyncOperationStatus(
+ async beginDelete(
resourceGroupName: string,
clusterName: string,
applicationName: string,
- operationId: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ options?: ApplicationsDeleteOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, applicationName, options },
+ deleteOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
+ }
+
/**
+ * Deletes the specified application on the HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param applicationName The constant value for the application name.
- * @param operationId The long running operation id.
- * @param callback The callback
+ * @param options The options parameters.
*/
- getAzureAsyncOperationStatus(
+ async beginDeleteAndWait(
resourceGroupName: string,
clusterName: string,
applicationName: string,
- operationId: string,
- callback: msRest.ServiceCallback
- ): void;
+ options?: ApplicationsDeleteOptionalParams
+ ): Promise {
+ const poller = await this.beginDelete(
+ resourceGroupName,
+ clusterName,
+ applicationName,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
/**
+ * Gets the async operation status.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param applicationName The constant value for the application name.
* @param operationId The long running operation id.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
getAzureAsyncOperationStatus(
resourceGroupName: string,
clusterName: string,
applicationName: string,
operationId: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- getAzureAsyncOperationStatus(
- resourceGroupName: string,
- clusterName: string,
- applicationName: string,
- operationId: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- applicationName,
- operationId,
- options
- },
- getAzureAsyncOperationStatusOperationSpec,
- callback
- ) as Promise;
- }
-
- /**
- * Creates applications for the HDInsight cluster.
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param applicationName The constant value for the application name.
- * @param parameters The application create request.
- * @param [options] The optional parameters
- * @returns Promise
- */
- beginCreate(
- resourceGroupName: string,
- clusterName: string,
- applicationName: string,
- parameters: Models.Application,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- applicationName,
- parameters,
- options
- },
- beginCreateOperationSpec,
- options
+ { resourceGroupName, clusterName, applicationName, operationId, options },
+ getAzureAsyncOperationStatusOperationSpec
);
}
/**
- * Deletes the specified application on the HDInsight cluster.
+ * ListByClusterNext
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param applicationName The constant value for the application name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param nextLink The nextLink from the previous successful call to the ListByCluster method.
+ * @param options The options parameters.
*/
- beginDeleteMethod(
+ private _listByClusterNext(
resourceGroupName: string,
clusterName: string,
- applicationName: string,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- applicationName,
- options
- },
- beginDeleteMethodOperationSpec,
- options
- );
- }
-
- /**
- * Lists all of the applications for the HDInsight cluster.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByClusterNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByClusterNext(
- nextPageLink: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByClusterNext(
- nextPageLink: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByClusterNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ nextLink: string,
+ options?: ApplicationsListByClusterNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listByClusterNextOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, clusterName, nextLink, options },
+ listByClusterNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listByClusterOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listByClusterOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationListResult
@@ -368,21 +386,20 @@ const listByClusterOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
- Parameters.clusterName,
- Parameters.applicationName
+ Parameters.clusterName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Application
@@ -391,93 +408,102 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName,
- Parameters.applicationName,
- Parameters.operationId
+ Parameters.applicationName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
+ httpMethod: "PUT",
responses: {
200: {
- bodyMapper: Mappers.AsyncOperationResult
+ bodyMapper: Mappers.Application
+ },
+ 201: {
+ bodyMapper: Mappers.Application
+ },
+ 202: {
+ bodyMapper: Mappers.Application
+ },
+ 204: {
+ bodyMapper: Mappers.Application
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const beginCreateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
+ requestBody: Parameters.parameters8,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName,
Parameters.applicationName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Application,
- required: true
- }
- },
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
+ httpMethod: "DELETE",
responses: {
- 200: {
- bodyMapper: Mappers.Application
- },
+ 200: {},
+ 201: {},
+ 202: {},
+ 204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName,
Parameters.applicationName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}",
+ httpMethod: "GET",
responses: {
- 200: {},
- 202: {},
- 204: {},
+ 200: {
+ bodyMapper: Mappers.AsyncOperationResult
+ },
default: {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.clusterName,
+ Parameters.operationId,
+ Parameters.applicationName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listByClusterNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listByClusterNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [Parameters.nextPageLink],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ApplicationListResult
@@ -486,5 +512,14 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.clusterName,
+ Parameters.nextLink
+ ],
+ 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 36d179b3e2bd..f04ab4b6bd4e 100644
--- a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts
+++ b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts
@@ -3,288 +3,640 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/clustersMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Clusters } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { HDInsightManagementClientContext } from "../hDInsightManagementClientContext";
+import { HDInsightManagementClient } from "../hDInsightManagementClient";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ Cluster,
+ ClustersListByResourceGroupNextOptionalParams,
+ ClustersListByResourceGroupOptionalParams,
+ ClustersListNextOptionalParams,
+ ClustersListOptionalParams,
+ ClusterCreateParametersExtended,
+ ClustersCreateOptionalParams,
+ ClustersCreateResponse,
+ ClusterPatchParameters,
+ ClustersUpdateOptionalParams,
+ ClustersUpdateResponse,
+ ClustersDeleteOptionalParams,
+ ClustersGetOptionalParams,
+ ClustersGetResponse,
+ ClustersListByResourceGroupResponse,
+ ClusterResizeParameters,
+ RoleName,
+ ClustersResizeOptionalParams,
+ AutoscaleConfigurationUpdateParameter,
+ ClustersUpdateAutoScaleConfigurationOptionalParams,
+ ClustersListResponse,
+ ClusterDiskEncryptionParameters,
+ ClustersRotateDiskEncryptionKeyOptionalParams,
+ ClustersGetGatewaySettingsOptionalParams,
+ ClustersGetGatewaySettingsResponse,
+ UpdateGatewaySettingsParameters,
+ ClustersUpdateGatewaySettingsOptionalParams,
+ ClustersGetAzureAsyncOperationStatusOptionalParams,
+ ClustersGetAzureAsyncOperationStatusResponse,
+ UpdateClusterIdentityCertificateParameters,
+ ClustersUpdateIdentityCertificateOptionalParams,
+ ExecuteScriptActionParameters,
+ ClustersExecuteScriptActionsOptionalParams,
+ ClustersListByResourceGroupNextResponse,
+ ClustersListNextResponse
+} from "../models";
-/** Class representing a Clusters. */
-export class Clusters {
- private readonly client: HDInsightManagementClientContext;
+///
+/** Class containing Clusters operations. */
+export class ClustersImpl implements Clusters {
+ private readonly client: HDInsightManagementClient;
/**
- * Create a Clusters.
- * @param {HDInsightManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Clusters class.
+ * @param client Reference to the service client
*/
- constructor(client: HDInsightManagementClientContext) {
+ constructor(client: HDInsightManagementClient) {
this.client = client;
}
/**
- * Creates a new HDInsight cluster with the specified parameters.
+ * Lists the HDInsight clusters in a resource group.
* @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param parameters The cluster create request.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- create(
+ public listByResourceGroup(
resourceGroupName: string,
- clusterName: string,
- parameters: Models.ClusterCreateParametersExtended,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginCreate(resourceGroupName, clusterName, parameters, options).then((lroPoller) =>
- lroPoller.pollUntilFinished()
- ) as Promise;
+ options?: ClustersListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
+ }
+
+ private async *listByResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: ClustersListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByResourceGroupNext(
+ resourceGroupName,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: ClustersListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
- * Patch HDInsight cluster with the specified parameters.
+ * Lists all the HDInsight clusters under the subscription.
+ * @param options The options parameters.
+ */
+ public list(
+ options?: ClustersListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(options);
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ options?: ClustersListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listPagingAll(
+ options?: ClustersListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(options)) {
+ yield* page;
+ }
+ }
+
+ /**
+ * Creates a new HDInsight cluster with the specified parameters.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param parameters The cluster patch request.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param parameters The cluster create request.
+ * @param options The options parameters.
*/
- update(
+ async beginCreate(
resourceGroupName: string,
clusterName: string,
- parameters: Models.ClusterPatchParameters,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ parameters: ClusterCreateParametersExtended,
+ options?: ClustersCreateOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ ClustersCreateResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, parameters, options },
+ createOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
+ }
+
/**
+ * Creates a new HDInsight cluster with the specified parameters.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param parameters The cluster patch request.
- * @param callback The callback
+ * @param parameters The cluster create request.
+ * @param options The options parameters.
*/
- update(
+ async beginCreateAndWait(
resourceGroupName: string,
clusterName: string,
- parameters: Models.ClusterPatchParameters,
- callback: msRest.ServiceCallback
- ): void;
+ parameters: ClusterCreateParametersExtended,
+ options?: ClustersCreateOptionalParams
+ ): Promise {
+ const poller = await this.beginCreate(
+ resourceGroupName,
+ clusterName,
+ parameters,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
/**
+ * Patch HDInsight cluster with the specified parameters.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param parameters The cluster patch request.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
update(
resourceGroupName: string,
clusterName: string,
- parameters: Models.ClusterPatchParameters,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- update(
- resourceGroupName: string,
- clusterName: string,
- parameters: Models.ClusterPatchParameters,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ parameters: ClusterPatchParameters,
+ options?: ClustersUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- parameters,
- options
- },
- updateOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, clusterName, parameters, options },
+ updateOperationSpec
+ );
}
/**
* Deletes the specified HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- deleteMethod(
+ async beginDelete(
resourceGroupName: string,
clusterName: string,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginDeleteMethod(resourceGroupName, clusterName, options).then((lroPoller) =>
- lroPoller.pollUntilFinished()
+ options?: ClustersDeleteOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, options },
+ deleteOperationSpec
);
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
- * Gets the specified cluster.
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(
- resourceGroupName: string,
- clusterName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
+ * Deletes the specified HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(
+ async beginDeleteAndWait(
resourceGroupName: string,
clusterName: string,
- callback: msRest.ServiceCallback
- ): void;
+ options?: ClustersDeleteOptionalParams
+ ): Promise {
+ const poller = await this.beginDelete(
+ resourceGroupName,
+ clusterName,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
/**
+ * Gets the specified cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
get(
resourceGroupName: string,
clusterName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- get(
- resourceGroupName: string,
- clusterName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: ClustersGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- getOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, clusterName, options },
+ getOperationSpec
+ );
}
/**
* Lists the HDInsight clusters in a resource group.
* @param resourceGroupName The name of the resource group.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listByResourceGroup(
+ private _listByResourceGroup(
resourceGroupName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ options?: ClustersListByResourceGroupOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, options },
+ listByResourceGroupOperationSpec
+ );
+ }
+
/**
+ * Resizes the specified HDInsight cluster to the specified size.
* @param resourceGroupName The name of the resource group.
- * @param callback The callback
+ * @param clusterName The name of the cluster.
+ * @param roleName The constant value for the roleName
+ * @param parameters The parameters for the resize operation.
+ * @param options The options parameters.
*/
- listByResourceGroup(
+ async beginResize(
resourceGroupName: string,
- callback: msRest.ServiceCallback
- ): void;
+ clusterName: string,
+ roleName: RoleName,
+ parameters: ClusterResizeParameters,
+ options?: ClustersResizeOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, roleName, parameters, options },
+ resizeOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
+ }
+
/**
+ * Resizes the specified HDInsight cluster to the specified size.
* @param resourceGroupName The name of the resource group.
- * @param options The optional parameters
- * @param callback The callback
+ * @param clusterName The name of the cluster.
+ * @param roleName The constant value for the roleName
+ * @param parameters The parameters for the resize operation.
+ * @param options The options parameters.
*/
- listByResourceGroup(
+ async beginResizeAndWait(
resourceGroupName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByResourceGroup(
- resourceGroupName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listByResourceGroupOperationSpec,
- callback
- ) as Promise;
+ clusterName: string,
+ roleName: RoleName,
+ parameters: ClusterResizeParameters,
+ options?: ClustersResizeOptionalParams
+ ): Promise {
+ const poller = await this.beginResize(
+ resourceGroupName,
+ clusterName,
+ roleName,
+ parameters,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Resizes the specified HDInsight cluster to the specified size.
+ * Updates the Autoscale Configuration for HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param parameters The parameters for the resize operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param roleName The constant value for the roleName
+ * @param parameters The parameters for the update autoscale configuration operation.
+ * @param options The options parameters.
*/
- resize(
+ async beginUpdateAutoScaleConfiguration(
resourceGroupName: string,
clusterName: string,
- parameters: Models.ClusterResizeParameters,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginResize(resourceGroupName, clusterName, parameters, options).then((lroPoller) =>
- lroPoller.pollUntilFinished()
+ roleName: RoleName,
+ parameters: AutoscaleConfigurationUpdateParameter,
+ options?: ClustersUpdateAutoScaleConfigurationOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, roleName, parameters, options },
+ updateAutoScaleConfigurationOperationSpec
);
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
* Updates the Autoscale Configuration for HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
+ * @param roleName The constant value for the roleName
* @param parameters The parameters for the update autoscale configuration operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- updateAutoScaleConfiguration(
+ async beginUpdateAutoScaleConfigurationAndWait(
resourceGroupName: string,
clusterName: string,
- parameters: Models.AutoscaleConfigurationUpdateParameter,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginUpdateAutoScaleConfiguration(
+ roleName: RoleName,
+ parameters: AutoscaleConfigurationUpdateParameter,
+ options?: ClustersUpdateAutoScaleConfigurationOptionalParams
+ ): Promise {
+ const poller = await this.beginUpdateAutoScaleConfiguration(
resourceGroupName,
clusterName,
+ roleName,
parameters,
options
- ).then((lroPoller) => lroPoller.pollUntilFinished());
+ );
+ return poller.pollUntilDone();
}
/**
* Lists all the HDInsight clusters under the subscription.
- * @param [options] The optional parameters
- * @returns Promise
- */
- list(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
+ * @param options The options parameters.
*/
- list(callback: msRest.ServiceCallback): void;
+ private _list(
+ options?: ClustersListOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
+ }
+
/**
- * @param options The optional parameters
- * @param callback The callback
+ * Rotate disk encryption key of the specified HDInsight cluster.
+ * @param resourceGroupName The name of the resource group.
+ * @param clusterName The name of the cluster.
+ * @param parameters The parameters for the disk encryption operation.
+ * @param options The options parameters.
*/
- list(
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- list(
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
- return this.client.sendOperationRequest(
- {
- options
- },
- listOperationSpec,
- callback
- ) as Promise;
+ async beginRotateDiskEncryptionKey(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: ClusterDiskEncryptionParameters,
+ options?: ClustersRotateDiskEncryptionKeyOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, parameters, options },
+ rotateDiskEncryptionKeyOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
@@ -292,72 +644,102 @@ export class Clusters {
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param parameters The parameters for the disk encryption operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- rotateDiskEncryptionKey(
+ async beginRotateDiskEncryptionKeyAndWait(
resourceGroupName: string,
clusterName: string,
- parameters: Models.ClusterDiskEncryptionParameters,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginRotateDiskEncryptionKey(
+ parameters: ClusterDiskEncryptionParameters,
+ options?: ClustersRotateDiskEncryptionKeyOptionalParams
+ ): Promise {
+ const poller = await this.beginRotateDiskEncryptionKey(
resourceGroupName,
clusterName,
parameters,
options
- ).then((lroPoller) => lroPoller.pollUntilFinished());
+ );
+ return poller.pollUntilDone();
}
/**
* Gets the gateway settings for the specified cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
- */
- getGatewaySettings(
- resourceGroupName: string,
- clusterName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param callback The callback
+ * @param options The options parameters.
*/
getGatewaySettings(
resourceGroupName: string,
clusterName: string,
- callback: msRest.ServiceCallback
- ): void;
+ options?: ClustersGetGatewaySettingsOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, clusterName, options },
+ getGatewaySettingsOperationSpec
+ );
+ }
+
/**
+ * Configures the gateway settings on the specified cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param options The optional parameters
- * @param callback The callback
+ * @param parameters The cluster configurations.
+ * @param options The options parameters.
*/
- getGatewaySettings(
- resourceGroupName: string,
- clusterName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- getGatewaySettings(
+ async beginUpdateGatewaySettings(
resourceGroupName: string,
clusterName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- getGatewaySettingsOperationSpec,
- callback
- ) as Promise;
+ parameters: UpdateGatewaySettingsParameters,
+ options?: ClustersUpdateGatewaySettingsOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, parameters, options },
+ updateGatewaySettingsOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
@@ -365,21 +747,21 @@ export class Clusters {
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param parameters The cluster configurations.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- updateGatewaySettings(
+ async beginUpdateGatewaySettingsAndWait(
resourceGroupName: string,
clusterName: string,
- parameters: Models.UpdateGatewaySettingsParameters,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginUpdateGatewaySettings(
+ parameters: UpdateGatewaySettingsParameters,
+ options?: ClustersUpdateGatewaySettingsOptionalParams
+ ): Promise {
+ const poller = await this.beginUpdateGatewaySettings(
resourceGroupName,
clusterName,
parameters,
options
- ).then((lroPoller) => lroPoller.pollUntilFinished());
+ );
+ return poller.pollUntilDone();
}
/**
@@ -387,58 +769,18 @@ export class Clusters {
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param operationId The long running operation id.
- * @param [options] The optional parameters
- * @returns Promise
- */
- getAzureAsyncOperationStatus(
- resourceGroupName: string,
- clusterName: string,
- operationId: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param operationId The long running operation id.
- * @param callback The callback
- */
- getAzureAsyncOperationStatus(
- resourceGroupName: string,
- clusterName: string,
- operationId: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param operationId The long running operation id.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
getAzureAsyncOperationStatus(
resourceGroupName: string,
clusterName: string,
operationId: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- getAzureAsyncOperationStatus(
- resourceGroupName: string,
- clusterName: string,
- operationId: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: ClustersGetAzureAsyncOperationStatusOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- operationId,
- options
- },
- getAzureAsyncOperationStatusOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, clusterName, operationId, options },
+ getAzureAsyncOperationStatusOperationSpec
+ );
}
/**
@@ -446,368 +788,245 @@ export class Clusters {
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param parameters The cluster configurations.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- updateIdentityCertificate(
+ async beginUpdateIdentityCertificate(
resourceGroupName: string,
clusterName: string,
- parameters: Models.UpdateClusterIdentityCertificateParameters,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginUpdateIdentityCertificate(
- resourceGroupName,
- clusterName,
- parameters,
- options
- ).then((lroPoller) => lroPoller.pollUntilFinished());
+ parameters: UpdateClusterIdentityCertificateParameters,
+ options?: ClustersUpdateIdentityCertificateOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, parameters, options },
+ updateIdentityCertificateOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
- * Executes script actions on the specified HDInsight cluster.
+ * Updates the cluster identity certificate.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param parameters The parameters for executing script actions.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param parameters The cluster configurations.
+ * @param options The options parameters.
*/
- executeScriptActions(
+ async beginUpdateIdentityCertificateAndWait(
resourceGroupName: string,
clusterName: string,
- parameters: Models.ExecuteScriptActionParameters,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginExecuteScriptActions(
+ parameters: UpdateClusterIdentityCertificateParameters,
+ options?: ClustersUpdateIdentityCertificateOptionalParams
+ ): Promise {
+ const poller = await this.beginUpdateIdentityCertificate(
resourceGroupName,
clusterName,
parameters,
options
- ).then((lroPoller) => lroPoller.pollUntilFinished());
- }
-
- /**
- * Creates a new HDInsight cluster with the specified parameters.
- * @param resourceGroupName The name of the resource group.
- * @param clusterName The name of the cluster.
- * @param parameters The cluster create request.
- * @param [options] The optional parameters
- * @returns Promise
- */
- beginCreate(
- resourceGroupName: string,
- clusterName: string,
- parameters: Models.ClusterCreateParametersExtended,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- parameters,
- options
- },
- beginCreateOperationSpec,
- options
);
+ return poller.pollUntilDone();
}
/**
- * Deletes the specified HDInsight cluster.
+ * Executes script actions on the specified HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param parameters The parameters for executing script actions.
+ * @param options The options parameters.
*/
- beginDeleteMethod(
+ async beginExecuteScriptActions(
resourceGroupName: string,
clusterName: string,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- beginDeleteMethodOperationSpec,
- options
+ parameters: ExecuteScriptActionParameters,
+ options?: ClustersExecuteScriptActionsOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, parameters, options },
+ executeScriptActionsOperationSpec
);
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
- * Resizes the specified HDInsight cluster to the specified size.
+ * Executes script actions on the specified HDInsight cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
- * @param parameters The parameters for the resize operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param parameters The parameters for executing script actions.
+ * @param options The options parameters.
*/
- beginResize(
+ async beginExecuteScriptActionsAndWait(
resourceGroupName: string,
clusterName: string,
- parameters: Models.ClusterResizeParameters,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- parameters,
- options
- },
- beginResizeOperationSpec,
+ parameters: ExecuteScriptActionParameters,
+ options?: ClustersExecuteScriptActionsOptionalParams
+ ): Promise