Skip to content

Commit

Permalink
CodeGen from PR 17480 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 70339fa78d4a621f8f99a7efd1bbd56ca49178ce into 2c66a689c610dbef623d6c4e4c4e913446d5ac68
  • Loading branch information
SDKAuto committed Mar 11, 2022
1 parent 4eec65d commit 321e521
Show file tree
Hide file tree
Showing 42 changed files with 3,227 additions and 6,760 deletions.
32 changes: 24 additions & 8 deletions common/config/rush/pnpm-lock.yaml

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

103 changes: 95 additions & 8 deletions sdk/eventhub/arm-eventhub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,102 @@
# Release History

## 6.0.0 (2022-03-11)

**Features**

## 5.0.1 (Unreleased)
- Added operation group HybridConnections
- Added operation group WCFRelays
- Added Interface CheckNameAvailability
- Added Interface HybridConnectionListResult
- Added Interface HybridConnectionsCreateOrUpdateAuthorizationRuleOptionalParams
- Added Interface HybridConnectionsCreateOrUpdateOptionalParams
- Added Interface HybridConnectionsDeleteAuthorizationRuleOptionalParams
- Added Interface HybridConnectionsDeleteOptionalParams
- Added Interface HybridConnectionsGetAuthorizationRuleOptionalParams
- Added Interface HybridConnectionsGetOptionalParams
- Added Interface HybridConnectionsListAuthorizationRulesNextOptionalParams
- Added Interface HybridConnectionsListAuthorizationRulesOptionalParams
- Added Interface HybridConnectionsListByNamespaceNextOptionalParams
- Added Interface HybridConnectionsListByNamespaceOptionalParams
- Added Interface HybridConnectionsListKeysOptionalParams
- Added Interface HybridConnectionsRegenerateKeysOptionalParams
- Added Interface RelayAPIOptionalParams
- Added Interface RelayNamespaceListResult
- Added Interface WCFRelaysCreateOrUpdateAuthorizationRuleOptionalParams
- Added Interface WCFRelaysCreateOrUpdateOptionalParams
- Added Interface WCFRelaysDeleteAuthorizationRuleOptionalParams
- Added Interface WCFRelaysDeleteOptionalParams
- Added Interface WCFRelaysGetAuthorizationRuleOptionalParams
- Added Interface WCFRelaysGetOptionalParams
- Added Interface WCFRelaysListAuthorizationRulesNextOptionalParams
- Added Interface WCFRelaysListAuthorizationRulesOptionalParams
- Added Interface WCFRelaysListByNamespaceNextOptionalParams
- Added Interface WCFRelaysListByNamespaceOptionalParams
- Added Interface WCFRelaysListKeysOptionalParams
- Added Interface WcfRelaysListResult
- Added Interface WCFRelaysRegenerateKeysOptionalParams
- Added Class RelayAPI
- Added Type Alias HybridConnection
- Added Type Alias HybridConnectionsCreateOrUpdateAuthorizationRuleResponse
- Added Type Alias HybridConnectionsCreateOrUpdateResponse
- Added Type Alias HybridConnectionsGetAuthorizationRuleResponse
- Added Type Alias HybridConnectionsGetResponse
- Added Type Alias HybridConnectionsListAuthorizationRulesNextResponse
- Added Type Alias HybridConnectionsListAuthorizationRulesResponse
- Added Type Alias HybridConnectionsListByNamespaceNextResponse
- Added Type Alias HybridConnectionsListByNamespaceResponse
- Added Type Alias HybridConnectionsListKeysResponse
- Added Type Alias HybridConnectionsRegenerateKeysResponse
- Added Type Alias RelayNamespace
- Added Type Alias Relaytype
- Added Type Alias RelayUpdateParameters
- Added Type Alias ResourceNamespacePatch
- Added Type Alias WcfRelay
- Added Type Alias WCFRelaysCreateOrUpdateAuthorizationRuleResponse
- Added Type Alias WCFRelaysCreateOrUpdateResponse
- Added Type Alias WCFRelaysGetAuthorizationRuleResponse
- Added Type Alias WCFRelaysGetResponse
- Added Type Alias WCFRelaysListAuthorizationRulesNextResponse
- Added Type Alias WCFRelaysListAuthorizationRulesResponse
- Added Type Alias WCFRelaysListByNamespaceNextResponse
- Added Type Alias WCFRelaysListByNamespaceResponse
- Added Type Alias WCFRelaysListKeysResponse
- Added Type Alias WCFRelaysRegenerateKeysResponse
- Add parameters of Resource to TypeAlias NetworkRuleSet
- Added Enum KnownUnavailableReason

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
**Breaking Changes**

- Removed operation group Clusters
- Removed operation group Configuration
- Removed operation group ConsumerGroups
- Removed operation group DisasterRecoveryConfigs
- Removed operation group EventHubs
- Removed operation group SchemaRegistry
- Removed operation Namespaces.listNetworkRuleSet
- Operation Namespaces.beginCreateOrUpdate has a new signature
- Operation Namespaces.beginCreateOrUpdateAndWait has a new signature
- Operation Namespaces.checkNameAvailability has a new signature
- Operation Namespaces.update has a new signature
- Deleted Class EventHubManagementClient
- Interface AccessKeys no longer has parameter aliasPrimaryConnectionString
- Interface AccessKeys no longer has parameter aliasSecondaryConnectionString
- Interface Sku no longer has parameter capacity
- Delete parameters of ProxyResource in TypeAlias NetworkRuleSet
- Type Alias NetworkRuleSet no longer has parameter trustedServiceAccessEnabled
- Type Alias NetworkRuleSet no longer has parameter virtualNetworkRules
- Type Alias NetworkRuleSet no longer has parameter publicNetworkAccess
- Parameter location of Type Alias TrackedResource is now required
- Removed Enum KnownClusterSkuName
- Removed Enum KnownPublicNetworkAccessFlag
- Removed Enum KnownSchemaCompatibility
- Removed Enum KnownSchemaType
- Enum KnownSkuName no longer has value Basic
- Enum KnownSkuName no longer has value Premium
- Enum KnownSkuTier no longer has value Basic
- Enum KnownSkuTier no longer has value Premium


## 5.0.0 (2021-12-09)

The package of @azure/arm-eventhub is using our next generation design principles since version 5.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/arm-eventhub/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 12 additions & 12 deletions sdk/eventhub/arm-eventhub/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Azure EventHubManagement client library for JavaScript
# Azure Service client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure EventHubManagement client.
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client.

Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and VirtualNetworkRules resources.
Use these API to manage Azure Relay resources through Azure Resource Manager.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-eventhub) |
Expand All @@ -22,16 +22,16 @@ Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and Virt

### Install the `@azure/arm-eventhub` package

Install the Azure EventHubManagement client library for JavaScript with `npm`:
Install the Azure Service client library for JavaScript with `npm`:

```bash
npm install @azure/arm-eventhub
```

### Create and authenticate a `EventHubManagementClient`
### Create and authenticate a `RelayAPI`

To create a client object to access the Azure EventHubManagement API, you will need the `endpoint` of your Azure EventHubManagement resource and a `credential`. The Azure EventHubManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure EventHubManagement resource in the [Azure Portal][azure_portal].
To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].

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).

Expand All @@ -41,16 +41,16 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure EventHubManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
You will also need to **register a new AAD application and grant access to Azure Service** 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 { EventHubManagementClient } = require("@azure/arm-eventhub");
const { RelayAPI } = require("@azure/arm-eventhub");
const { DefaultAzureCredential } = require("@azure/identity");
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new EventHubManagementClient(new DefaultAzureCredential(), subscriptionId);
const client = new RelayAPI(new DefaultAzureCredential(), subscriptionId);
```


Expand All @@ -59,9 +59,9 @@ To use this client library in the browser, first you need to use a bundler. For

## Key concepts

### EventHubManagementClient
### RelayAPI

`EventHubManagementClient` is the primary interface for developers using the Azure EventHubManagement client library. Explore the methods on this client object to understand the different features of the Azure EventHubManagement service that you can access.
`RelayAPI` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access.

## Troubleshooting

Expand Down
9 changes: 5 additions & 4 deletions sdk/eventhub/arm-eventhub/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "d710fb7f40338ca6ef00e0a9680be0a3d4cf5059",
"readme": "specification/eventhub/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/eventhub/resource-manager/readme.md --use=@autorest/[email protected].20211130.1",
"commit": "e70fc8cbae0ae7863daba221fd39699f4c65c921",
"readme": "specification/relay/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/relay/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected]"
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/[email protected]"
}
25 changes: 19 additions & 6 deletions sdk/eventhub/arm-eventhub/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$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" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-eventhub.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
14 changes: 6 additions & 8 deletions sdk/eventhub/arm-eventhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@azure/arm-eventhub",
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for EventHubManagementClient.",
"version": "5.0.1",
"description": "A generated SDK for RelayAPI.",
"version": "6.0.0",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -29,22 +29,20 @@
"types": "./types/arm-eventhub.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@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": "^2.0.0",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"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",
"@azure/arm-network": "^26.0.0",
"@azure/arm-storage": "^17.0.0"
"cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub",
"repository": {
Expand Down Expand Up @@ -101,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
Loading

0 comments on commit 321e521

Please sign in to comment.