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
25 changes: 14 additions & 11 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion sdk/hdinsight/arm-hdinsight/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Release History

## 1.3.0-beta.1 (2023-07-06)
## 1.3.0-beta.2 (2023-08-21)

**Features**

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

## 1.2.1 (2023-01-10)

Expand Down
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": "5a8691151d01e935ec6595bfbe69fd777886b67f",
"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.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"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.1",
"use": "@autorest/typescript@^6.0.4"
}
17 changes: 5 additions & 12 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": "1.3.0-beta.2",
"engines": {
"node": ">=14.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 Down Expand Up @@ -48,6 +48,7 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
Expand Down Expand Up @@ -111,13 +112,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"
}
10 changes: 10 additions & 0 deletions sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,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 +1064,7 @@ export interface NameAvailabilityCheckResult {

// @public
export interface NetworkProperties {
outboundDependenciesManagedType?: OutboundDependenciesManagedType;
privateLink?: PrivateLink;
resourceProviderConnection?: ResourceProviderConnection;
}
Expand Down Expand Up @@ -1115,6 +1122,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/1.3.0-beta.2`;
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
20 changes: 20 additions & 0 deletions sdk/hdinsight/arm-hdinsight/src/models/index.ts
Original file line number Diff line number Diff line change
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 @@ -1613,6 +1615,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