Skip to content

Commit 2ffc5a3

Browse files
author
SDKAuto
committed
CodeGen from PR 25135 in Azure/azure-rest-api-specs
Merge b36f75338bb933cbf23cc1daedc222f0d50855ca into 7f70e351393addbc31d790a908c994c7c8644d9c
1 parent 9b667e5 commit 2ffc5a3

File tree

11 files changed

+111
-39
lines changed

11 files changed

+111
-39
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 14 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/hdinsight/arm-hdinsight/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Release History
22

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

55
**Features**
66

7+
- Added Type Alias OutboundDependenciesManagedType
8+
- Interface NetworkProperties has a new optional parameter outboundDependenciesManagedType
79
- Interface StorageAccount has a new optional parameter enableSecureChannel
10+
- Added Enum KnownOutboundDependenciesManagedType
811

912
## 1.2.1 (2023-01-10)
1013

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "26cac4f70e9ce0e1c2f77de8303b47d1faa9ad33",
2+
"commit": "5a8691151d01e935ec6595bfbe69fd777886b67f",
33
"readme": "specification/hdinsight/resource-manager/readme.md",
4-
"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",
4+
"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",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
7-
"use": "@autorest/typescript@6.0.5"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
7+
"use": "@autorest/typescript@^6.0.4"
88
}

sdk/hdinsight/arm-hdinsight/package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for HDInsightManagementClient.",
6-
"version": "1.3.0-beta.1",
6+
"version": "1.3.0-beta.2",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.5.3",
11+
"@azure/core-lro": "^2.5.4",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
1515
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.8.0",
16+
"@azure/core-rest-pipeline": "^1.12.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [
@@ -48,6 +48,7 @@
4848
"chai": "^4.2.0",
4949
"cross-env": "^7.0.2",
5050
"@types/node": "^14.0.0",
51+
"ts-node": "^10.0.0",
5152
"@azure/dev-tool": "^1.0.0"
5253
},
5354
"repository": {
@@ -111,13 +112,5 @@
111112
]
112113
},
113114
"autoPublish": true,
114-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight",
115-
"//sampleConfiguration": {
116-
"productName": "",
117-
"productSlugs": [
118-
"azure"
119-
],
120-
"disableDocsMs": true,
121-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight?view=azure-node-preview"
122-
}
115+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight"
123116
}

sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,12 @@ export enum KnownOSType {
893893
Windows = "Windows"
894894
}
895895

896+
// @public
897+
export enum KnownOutboundDependenciesManagedType {
898+
External = "External",
899+
Managed = "Managed"
900+
}
901+
896902
// @public
897903
export enum KnownPrivateEndpointConnectionProvisioningState {
898904
Canceled = "Canceled",
@@ -1058,6 +1064,7 @@ export interface NameAvailabilityCheckResult {
10581064

10591065
// @public
10601066
export interface NetworkProperties {
1067+
outboundDependenciesManagedType?: OutboundDependenciesManagedType;
10611068
privateLink?: PrivateLink;
10621069
resourceProviderConnection?: ResourceProviderConnection;
10631070
}
@@ -1115,6 +1122,9 @@ export interface OsProfile {
11151122
// @public
11161123
export type OSType = string;
11171124

1125+
// @public
1126+
export type OutboundDependenciesManagedType = string;
1127+
11181128
// @public
11191129
export interface PrivateEndpoint {
11201130
id?: string;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class HDInsightManagementClient extends coreClient.ServiceClient {
7575
credential: credentials
7676
};
7777

78-
const packageDetails = `azsdk-js-arm-hdinsight/1.3.0-beta.1`;
78+
const packageDetails = `azsdk-js-arm-hdinsight/1.3.0-beta.2`;
7979
const userAgentPrefix =
8080
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
8181
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -128,7 +128,7 @@ export class HDInsightManagementClient extends coreClient.ServiceClient {
128128

129129
// Assigning values to Constant parameters
130130
this.$host = options.$host || "https://management.azure.com";
131-
this.apiVersion = options.apiVersion || "2023-04-15-preview";
131+
this.apiVersion = options.apiVersion || "2023-08-15-preview";
132132
this.applications = new ApplicationsImpl(this);
133133
this.clusters = new ClustersImpl(this);
134134
this.configurations = new ConfigurationsImpl(this);

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,8 @@ export interface EncryptionInTransitProperties {
526526

527527
/** The network properties. */
528528
export interface NetworkProperties {
529+
/** 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. */
530+
outboundDependenciesManagedType?: OutboundDependenciesManagedType;
529531
/** The direction for the resource provider connection. */
530532
resourceProviderConnection?: ResourceProviderConnection;
531533
/** Indicates whether or not private link is enabled. */
@@ -1613,6 +1615,24 @@ export enum KnownJsonWebKeyEncryptionAlgorithm {
16131615
*/
16141616
export type JsonWebKeyEncryptionAlgorithm = string;
16151617

1618+
/** Known values of {@link OutboundDependenciesManagedType} that the service accepts. */
1619+
export enum KnownOutboundDependenciesManagedType {
1620+
/** Managed */
1621+
Managed = "Managed",
1622+
/** External */
1623+
External = "External"
1624+
}
1625+
1626+
/**
1627+
* Defines values for OutboundDependenciesManagedType. \
1628+
* {@link KnownOutboundDependenciesManagedType} can be used interchangeably with OutboundDependenciesManagedType,
1629+
* this enum contains the known values that the service supports.
1630+
* ### Known values supported by the service
1631+
* **Managed** \
1632+
* **External**
1633+
*/
1634+
export type OutboundDependenciesManagedType = string;
1635+
16161636
/** Known values of {@link ResourceProviderConnection} that the service accepts. */
16171637
export enum KnownResourceProviderConnection {
16181638
/** Inbound */

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,6 +1447,12 @@ export const NetworkProperties: coreClient.CompositeMapper = {
14471447
name: "Composite",
14481448
className: "NetworkProperties",
14491449
modelProperties: {
1450+
outboundDependenciesManagedType: {
1451+
serializedName: "outboundDependenciesManagedType",
1452+
type: {
1453+
name: "String"
1454+
}
1455+
},
14501456
resourceProviderConnection: {
14511457
serializedName: "resourceProviderConnection",
14521458
type: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const clusterName: OperationURLParameter = {
8989
export const apiVersion: OperationQueryParameter = {
9090
parameterPath: "apiVersion",
9191
mapper: {
92-
defaultValue: "2023-04-15-preview",
92+
defaultValue: "2023-08-15-preview",
9393
isConstant: true,
9494
serializedName: "api-version",
9595
type: {
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
import {
10+
Recorder,
11+
RecorderStartOptions,
12+
env
13+
} from "@azure-tools/test-recorder";
14+
import { assert } from "chai";
15+
import { Context } from "mocha";
16+
17+
const replaceableVariables: Record<string, string> = {
18+
AZURE_CLIENT_ID: "azure_client_id",
19+
AZURE_CLIENT_SECRET: "azure_client_secret",
20+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
21+
SUBSCRIPTION_ID: "azure_subscription_id"
22+
};
23+
24+
const recorderOptions: RecorderStartOptions = {
25+
envSetupForPlayback: replaceableVariables
26+
};
27+
28+
describe("My test", () => {
29+
let recorder: Recorder;
30+
31+
beforeEach(async function(this: Context) {
32+
recorder = new Recorder(this.currentTest);
33+
await recorder.start(recorderOptions);
34+
});
35+
36+
afterEach(async function() {
37+
await recorder.stop();
38+
});
39+
40+
it("sample test", async function() {
41+
console.log("Hi, I'm a test!");
42+
});
43+
});

0 commit comments

Comments
 (0)