Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
752 changes: 377 additions & 375 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions sdk/hdinsight/arm-hdinsight/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# Release History

## 1.3.0-beta.1 (2023-07-06)
## 2.0.0-beta.1 (2023-11-24)

**Features**

- Added Type Alias ClusterKind
- Added Type Alias OutboundDependenciesManagedType
- Interface NetworkProperties has a new optional parameter outboundDependenciesManagedType
- Interface StorageAccount has a new optional parameter enableSecureChannel
- Added Enum KnownClusterKind
- Added Enum KnownOutboundDependenciesManagedType

**Breaking Changes**

- Type of parameter kind of interface ClusterDefinition is changed from string to ClusterKind

## 1.2.1 (2023-01-10)

Expand Down Expand Up @@ -37,4 +46,4 @@

## 1.1.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/azsdk/js/mgmt/quickstart ).
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).
8 changes: 4 additions & 4 deletions sdk/hdinsight/arm-hdinsight/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "26cac4f70e9ce0e1c2f77de8303b47d1faa9ad33",
"commit": "20425c42c014920cd25672bbd1d3c5190ef106fc",
"readme": "specification/hdinsight/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\hdinsight\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/typescript@6.0.5"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@^6.0.12"
}
26 changes: 10 additions & 16 deletions sdk/hdinsight/arm-hdinsight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for HDInsightManagementClient.",
"version": "1.3.0-beta.1",
"version": "2.0.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.3",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -32,17 +32,19 @@
"mkdirp": "^2.1.2",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^3.3.0",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^18.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
},
"repository": {
Expand Down Expand Up @@ -77,7 +79,7 @@
"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",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand Down Expand Up @@ -105,13 +107,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight"
}
24 changes: 23 additions & 1 deletion sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export interface ClusterDefinition {
[propertyName: string]: string;
};
configurations?: Record<string, unknown>;
kind?: string;
kind?: ClusterKind;
}

// @public
Expand Down Expand Up @@ -358,6 +358,9 @@ export interface ClusterIdentity {
};
}

// @public
export type ClusterKind = string;

// @public
export interface ClusterListPersistedScriptActionsResult {
readonly nextLink?: string;
Expand Down Expand Up @@ -839,6 +842,15 @@ export enum KnownAsyncOperationState {
Succeeded = "Succeeded"
}

// @public
export enum KnownClusterKind {
Hadoop = "HADOOP",
Hbase = "HBASE",
Interactivehive = "INTERACTIVEHIVE",
Kafka = "KAFKA",
Spark = "SPARK"
}

// @public
export enum KnownCreatedByType {
Application = "Application",
Expand Down Expand Up @@ -893,6 +905,12 @@ export enum KnownOSType {
Windows = "Windows"
}

// @public
export enum KnownOutboundDependenciesManagedType {
External = "External",
Managed = "Managed"
}

// @public
export enum KnownPrivateEndpointConnectionProvisioningState {
Canceled = "Canceled",
Expand Down Expand Up @@ -1058,6 +1076,7 @@ export interface NameAvailabilityCheckResult {

// @public
export interface NetworkProperties {
outboundDependenciesManagedType?: OutboundDependenciesManagedType;
privateLink?: PrivateLink;
resourceProviderConnection?: ResourceProviderConnection;
}
Expand Down Expand Up @@ -1115,6 +1134,9 @@ export interface OsProfile {
// @public
export type OSType = string;

// @public
export type OutboundDependenciesManagedType = string;

// @public
export interface PrivateEndpoint {
id?: string;
Expand Down
4 changes: 2 additions & 2 deletions sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class HDInsightManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-hdinsight/1.3.0-beta.1`;
const packageDetails = `azsdk-js-arm-hdinsight/2.0.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -128,7 +128,7 @@ export class HDInsightManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2023-04-15-preview";
this.apiVersion = options.apiVersion || "2023-08-15-preview";
this.applications = new ApplicationsImpl(this);
this.clusters = new ClustersImpl(this);
this.configurations = new ConfigurationsImpl(this);
Expand Down
49 changes: 48 additions & 1 deletion sdk/hdinsight/arm-hdinsight/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export interface ClusterDefinition {
/** The link to the blueprint. */
blueprint?: string;
/** The type of cluster. */
kind?: string;
kind?: ClusterKind;
/** The versions of different services in the cluster. */
componentVersion?: { [propertyName: string]: string };
/** The cluster configurations. */
Expand Down Expand Up @@ -526,6 +526,8 @@ export interface EncryptionInTransitProperties {

/** The network properties. */
export interface NetworkProperties {
/** A value to describe how the outbound dependencies of a HDInsight cluster are managed. 'Managed' means that the outbound dependencies are managed by the HDInsight service. 'External' means that the outbound dependencies are managed by a customer specific solution. */
outboundDependenciesManagedType?: OutboundDependenciesManagedType;
/** The direction for the resource provider connection. */
resourceProviderConnection?: ResourceProviderConnection;
/** Indicates whether or not private link is enabled. */
Expand Down Expand Up @@ -1577,6 +1579,33 @@ export enum KnownTier {
*/
export type Tier = string;

/** Known values of {@link ClusterKind} that the service accepts. */
export enum KnownClusterKind {
/** Hadoop */
Hadoop = "HADOOP",
/** Hbase */
Hbase = "HBASE",
/** Kafka */
Kafka = "KAFKA",
/** Interactivehive */
Interactivehive = "INTERACTIVEHIVE",
/** Spark */
Spark = "SPARK"
}

/**
* Defines values for ClusterKind. \
* {@link KnownClusterKind} can be used interchangeably with ClusterKind,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **HADOOP** \
* **HBASE** \
* **KAFKA** \
* **INTERACTIVEHIVE** \
* **SPARK**
*/
export type ClusterKind = string;

/** Known values of {@link DirectoryType} that the service accepts. */
export enum KnownDirectoryType {
/** ActiveDirectory */
Expand Down Expand Up @@ -1613,6 +1642,24 @@ export enum KnownJsonWebKeyEncryptionAlgorithm {
*/
export type JsonWebKeyEncryptionAlgorithm = string;

/** Known values of {@link OutboundDependenciesManagedType} that the service accepts. */
export enum KnownOutboundDependenciesManagedType {
/** Managed */
Managed = "Managed",
/** External */
External = "External"
}

/**
* Defines values for OutboundDependenciesManagedType. \
* {@link KnownOutboundDependenciesManagedType} can be used interchangeably with OutboundDependenciesManagedType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Managed** \
* **External**
*/
export type OutboundDependenciesManagedType = string;

/** Known values of {@link ResourceProviderConnection} that the service accepts. */
export enum KnownResourceProviderConnection {
/** Inbound */
Expand Down
6 changes: 6 additions & 0 deletions sdk/hdinsight/arm-hdinsight/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,12 @@ export const NetworkProperties: coreClient.CompositeMapper = {
name: "Composite",
className: "NetworkProperties",
modelProperties: {
outboundDependenciesManagedType: {
serializedName: "outboundDependenciesManagedType",
type: {
name: "String"
}
},
resourceProviderConnection: {
serializedName: "resourceProviderConnection",
type: {
Expand Down
2 changes: 1 addition & 1 deletion sdk/hdinsight/arm-hdinsight/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const clusterName: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-04-15-preview",
defaultValue: "2023-08-15-preview",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
43 changes: 43 additions & 0 deletions sdk/hdinsight/arm-hdinsight/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* 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 {
Recorder,
RecorderStartOptions,
env
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

const replaceableVariables: Record<string, string> = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function(this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

afterEach(async function() {
await recorder.stop();
});

it("sample test", async function() {
console.log("Hi, I'm a test!");
});
});
10 changes: 2 additions & 8 deletions sdk/hdinsight/arm-hdinsight/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-hdinsight": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down