Skip to content

[AutoPR @azure/arm-hybridconnectivity] [DNM] Validate typespec-azure#2607 #15679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions common/config/rush/pnpm-lock.yaml

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

107 changes: 107 additions & 0 deletions sdk/hybridconnectivity/arm-hybridconnectivity/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,112 @@
# Release History

## 2.0.0 (2025-05-13)

### Features Added

- Added operation group GenerateAwsTemplateOperations
- Added operation group InventoryOperations
- Added operation group PublicCloudConnectorsOperations
- Added operation group SolutionConfigurationsOperations
- Added operation group SolutionTypesOperations
- Added Interface AADProfileProperties
- Added Interface AwsCloudProfile
- Added Interface AwsCloudProfileUpdate
- Added Interface ExtensionResource
- Added Interface GenerateAwsTemplatePostOptionalParams
- Added Interface GenerateAwsTemplateRequest
- Added Interface GenerateAwsTemplateResponse
- Added Interface IngressProfileProperties
- Added Interface InventoryGetOptionalParams
- Added Interface InventoryListBySolutionConfigurationOptionalParams
- Added Interface InventoryProperties
- Added Interface InventoryResource
- Added Interface OperationStatusResult
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface PublicCloudConnector
- Added Interface PublicCloudConnectorProperties
- Added Interface PublicCloudConnectorPropertiesUpdate
- Added Interface PublicCloudConnectorsCreateOrUpdateOptionalParams
- Added Interface PublicCloudConnectorsDeleteOptionalParams
- Added Interface PublicCloudConnectorsGetOptionalParams
- Added Interface PublicCloudConnectorsListByResourceGroupOptionalParams
- Added Interface PublicCloudConnectorsListBySubscriptionOptionalParams
- Added Interface PublicCloudConnectorsTestPermissionsOptionalParams
- Added Interface PublicCloudConnectorsUpdateOptionalParams
- Added Interface PublicCloudConnectorUpdate
- Added Interface RelayNamespaceAccessProperties
- Added Interface RestorePollerOptions
- Added Interface ServiceConfigurationProperties
- Added Interface ServiceConfigurationPropertiesPatch
- Added Interface SolutionConfiguration
- Added Interface SolutionConfigurationProperties
- Added Interface SolutionConfigurationPropertiesUpdate
- Added Interface SolutionConfigurationsCreateOrUpdateOptionalParams
- Added Interface SolutionConfigurationsDeleteOptionalParams
- Added Interface SolutionConfigurationsGetOptionalParams
- Added Interface SolutionConfigurationsListOptionalParams
- Added Interface SolutionConfigurationsSyncNowOptionalParams
- Added Interface SolutionConfigurationsUpdateOptionalParams
- Added Interface SolutionConfigurationUpdate
- Added Interface SolutionSettings
- Added Interface SolutionTypeProperties
- Added Interface SolutionTypeResource
- Added Interface SolutionTypeSettings
- Added Interface SolutionTypeSettingsProperties
- Added Interface SolutionTypesGetOptionalParams
- Added Interface SolutionTypesListByResourceGroupOptionalParams
- Added Interface SolutionTypesListBySubscriptionOptionalParams
- Added Interface TrackedResource
- Added Interface TrackedResourceUpdate
- Added Type Alias CloudNativeType
- Added Type Alias ContinuablePage
- Added Type Alias HostType
- Added Type Alias ResourceProvisioningState
- Added Type Alias SolutionConfigurationStatus
- Interface EndpointAccessResource has a new optional parameter relay
- Interface IngressGatewayResource has a new optional parameter ingress
- Interface IngressGatewayResource has a new optional parameter relay
- Interface ServiceConfigurationResource has a new optional parameter properties
- Interface ServiceConfigurationResourcePatch has a new optional parameter properties
- Added Enum KnownCloudNativeType
- Added Enum KnownHostType
- Added Enum KnownResourceProvisioningState
- Added Enum KnownSolutionConfigurationStatus
- Added Enum KnownVersions
- Added function restorePoller

### Breaking Changes

- Class HybridConnectivityManagementAPI has a new signature
- Interface EndpointAccessResource no longer has parameter accessKey
- Interface EndpointAccessResource no longer has parameter expiresOn
- Interface EndpointAccessResource no longer has parameter hybridConnectionName
- Interface EndpointAccessResource no longer has parameter namespaceName
- Interface EndpointAccessResource no longer has parameter namespaceNameSuffix
- Interface EndpointAccessResource no longer has parameter serviceConfigurationToken
- Interface HybridConnectivityManagementAPIOptionalParams no longer has parameter $host
- Interface HybridConnectivityManagementAPIOptionalParams no longer has parameter endpoint
- Interface IngressGatewayResource no longer has parameter accessKey
- Interface IngressGatewayResource no longer has parameter expiresOn
- Interface IngressGatewayResource no longer has parameter hostname
- Interface IngressGatewayResource no longer has parameter hybridConnectionName
- Interface IngressGatewayResource no longer has parameter namespaceName
- Interface IngressGatewayResource no longer has parameter namespaceNameSuffix
- Interface IngressGatewayResource no longer has parameter serverId
- Interface IngressGatewayResource no longer has parameter serviceConfigurationToken
- Interface IngressGatewayResource no longer has parameter tenantId
- Interface ServiceConfigurationResource no longer has parameter port
- Interface ServiceConfigurationResource no longer has parameter provisioningState
- Interface ServiceConfigurationResource no longer has parameter resourceId
- Interface ServiceConfigurationResource no longer has parameter serviceName
- Interface ServiceConfigurationResourcePatch no longer has parameter port
- Type of parameter info of interface ErrorAdditionalInfo is changed from Record<string, unknown> to Record<string, any>
- Class HybridConnectivityManagementAPI no longer has parameter $host
- Class HybridConnectivityManagementAPI no longer has parameter apiVersion
- Removed function getContinuationToken


## 2.0.0-beta.1 (2025-03-25)

### Features Added
Expand Down
13 changes: 6 additions & 7 deletions sdk/hybridconnectivity/arm-hybridconnectivity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,24 @@ For more information about how to create an Azure AD Application check out [this
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.

```ts snippet:ReadmeSampleCreateClient_Node
import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
import { HybridConnectivityClient } from "@azure/arm-hybridconnectivity";
import { DefaultAzureCredential } from "@azure/identity";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new HybridConnectivityManagementAPI(new DefaultAzureCredential(), subscriptionId);
const client = new HybridConnectivityClient(new DefaultAzureCredential(), subscriptionId);
```

For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.

```ts snippet:ReadmeSampleCreateClient_Browser
import { InteractiveBrowserCredential } from "@azure/identity";
import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
import { HybridConnectivityClient } from "@azure/arm-hybridconnectivity";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
const client = new HybridConnectivityManagementAPI(credential, subscriptionId);
clientId: "<YOUR_CLIENT_ID>"
});
const client = new HybridConnectivityClient(credential, subscriptionId);
```


Expand Down
6 changes: 0 additions & 6 deletions sdk/hybridconnectivity/arm-hybridconnectivity/assets.json

This file was deleted.

34 changes: 21 additions & 13 deletions sdk/hybridconnectivity/arm-hybridconnectivity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/arm-hybridconnectivity",
"version": "2.0.0-beta.1",
"version": "2.0.0",
"description": "A generated SDK for HybridConnectivityClient.",
"engines": {
"node": ">=18.0.0"
Expand Down Expand Up @@ -71,9 +71,9 @@
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.9.0",
"@azure/core-lro": "^3.1.0",
"@azure/core-rest-pipeline": "^1.19.1",
"@azure/core-util": "^1.11.0",
"@azure/logger": "^1.1.4",
"@azure/core-rest-pipeline": "^1.20.0",
"@azure/core-util": "^1.12.0",
"@azure/logger": "^1.2.0",
"tslib": "^2.8.1"
},
"devDependencies": {
Expand All @@ -82,33 +82,41 @@
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@azure/identity": "^4.8.0",
"@azure/identity": "^4.9.1",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.9",
"@vitest/coverage-istanbul": "^3.0.9",
"dotenv": "^16.0.0",
"eslint": "^9.9.0",
"playwright": "^1.51.1",
"typescript": "~5.7.2",
"playwright": "^1.52.0",
"typescript": "~5.8.2",
"vitest": "^3.0.9"
},
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f",
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "dev-tool samples run samples-dev",
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
"generate:client": "echo skipped",
"lint": "echo skipped",
"lint:fix": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"lint": "eslint package.json api-extractor.json src test",
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"test": "npm run test:node && npm run test:browser",
"test:browser": "dev-tool run build-test && dev-tool run test:vitest --browser",
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
"test:browser": "echo skipped",
"test:node": "dev-tool run test:vitest",
"test:node:esm": "dev-tool run test:vitest --esm",
"update-snippets": "dev-tool run update-snippets"
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "dev-tool run update-snippets",
"test:node:esm": "dev-tool run test:vitest --esm"
},
"//sampleConfiguration": {
"productName": "@azure/arm-hybridconnectivity",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface GenerateAwsTemplatePostOptionalParams extends OperationOptions
}

// @public
export function post(context: HybridConnectivityManagementAPIContext, generateAwsTemplateRequest: GenerateAwsTemplateRequest, options?: GenerateAwsTemplatePostOptionalParams): Promise<Record<string, any>>;
export function post(context: HybridConnectivityManagementAPIContext, generateAwsTemplateRequest: GenerateAwsTemplateRequest, options?: GenerateAwsTemplatePostOptionalParams): Promise<GenerateAwsTemplateResponse>;

// (No @packageDocumentation comment for this package)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export interface GenerateAwsTemplateRequest {
solutionTypes?: SolutionTypeSettings[];
}

// @public
export interface GenerateAwsTemplateResponse {
}

// @public
export type HostType = string;

Expand Down Expand Up @@ -351,7 +355,8 @@ export interface SolutionConfigurationUpdate extends ProxyResource {
}

// @public
export interface SolutionSettings extends Record<string, string> {
export interface SolutionSettings {
additionalProperties?: Record<string, string>;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export interface ExtensionResource extends Resource {

// @public
export interface GenerateAwsTemplateOperations {
post: (generateAwsTemplateRequest: GenerateAwsTemplateRequest, options?: GenerateAwsTemplatePostOptionalParams) => Promise<Record<string, any>>;
post: (generateAwsTemplateRequest: GenerateAwsTemplateRequest, options?: GenerateAwsTemplatePostOptionalParams) => Promise<GenerateAwsTemplateResponse>;
}

// @public
Expand All @@ -149,6 +149,10 @@ export interface GenerateAwsTemplateRequest {
solutionTypes?: SolutionTypeSettings[];
}

// @public
export interface GenerateAwsTemplateResponse {
}

// @public
export type HostType = string;

Expand Down Expand Up @@ -591,7 +595,8 @@ export interface SolutionConfigurationUpdate extends ProxyResource {
}

// @public
export interface SolutionSettings extends Record<string, string> {
export interface SolutionSettings {
additionalProperties?: Record<string, string>;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { EndpointResource, HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
import { DefaultAzureCredential } from "@azure/identity";

/**
Expand All @@ -14,13 +14,9 @@ async function hybridConnectivityEndpointsPutCustom(): Promise<void> {
const credential = new DefaultAzureCredential();
const subscriptionId = "00000000-0000-0000-0000-00000000000";
const client = new HybridConnectivityManagementAPI(credential, subscriptionId);
const endpointResource: EndpointResource = {
properties: { type: "default" },
};
const result = await client.endpoints.createOrUpdate(
"subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
"custom",
endpointResource,
);
console.log(result);
}
Expand All @@ -35,13 +31,9 @@ async function hybridConnectivityEndpointsPutDefault(): Promise<void> {
const credential = new DefaultAzureCredential();
const subscriptionId = "00000000-0000-0000-0000-00000000000";
const client = new HybridConnectivityManagementAPI(credential, subscriptionId);
const endpointResource: EndpointResource = {
properties: { type: "default" },
};
const result = await client.endpoints.createOrUpdate(
"subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
"default",
endpointResource,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function hybridConnectivityEndpointsPostListCredentials(): Promise<void> {
const result = await client.endpoints.listCredentials(
"subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
"default",
{ listCredentialsRequest: { serviceName: "SSH" }, expiresin: 10800 },
{ ListCredentialsRequest: { serviceName: "SSH" }, expiresin: 10800 },
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import {
HybridConnectivityManagementAPI,
ManagedProxyRequest,
} from "@azure/arm-hybridconnectivity";
import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
import { DefaultAzureCredential } from "@azure/identity";

/**
Expand All @@ -17,15 +14,9 @@ async function hybridConnectivityEndpointsPostListManagedProxyDetails(): Promise
const credential = new DefaultAzureCredential();
const subscriptionId = "00000000-0000-0000-0000-00000000000";
const client = new HybridConnectivityManagementAPI(credential, subscriptionId);
const managedProxyRequest: ManagedProxyRequest = {
hostname: "r.proxy.arc.com",
service: "127.0.0.1:65035",
serviceName: "WAC",
};
const result = await client.endpoints.listManagedProxyDetails(
"subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/arcGroup/providers/Microsoft.Compute/virtualMachines/vm00006",
"default",
managedProxyRequest,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { EndpointResource, HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
import { DefaultAzureCredential } from "@azure/identity";

/**
Expand All @@ -14,13 +14,9 @@ async function hybridConnectivityEndpointsPatchDefault(): Promise<void> {
const credential = new DefaultAzureCredential();
const subscriptionId = "00000000-0000-0000-0000-00000000000";
const client = new HybridConnectivityManagementAPI(credential, subscriptionId);
const endpointResource: EndpointResource = {
properties: { type: "default" },
};
const result = await client.endpoints.update(
"subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
"default",
endpointResource,
);
console.log(result);
}
Expand Down
Loading