Skip to content

Commit

Permalink
eventhub-track2-2021-06-preview (#18088)
Browse files Browse the repository at this point in the history
* eventhub-track2-2021-06-preview

* eventhub-track2-2021-06-preview

* eventhub-track2-2021-06-preview

* update package.json
  • Loading branch information
colawwj authored Oct 8, 2021
1 parent d755dba commit 966cd8d
Show file tree
Hide file tree
Showing 39 changed files with 6,252 additions and 2,611 deletions.
97 changes: 84 additions & 13 deletions common/config/rush/pnpm-lock.yaml

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

60 changes: 48 additions & 12 deletions sdk/eventhub/arm-eventhub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,51 @@
# Release History

## 30.0.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 30.0.0-beta.2 (2021-10-08)

**Features**

- Added operation Clusters.listBySubscription
- Added Interface ClustersListBySubscriptionNextOptionalParams
- Added Interface ClustersListBySubscriptionOptionalParams
- Added Interface SystemData
- Added Interface UserAssignedIdentity
- Added Interface UserAssignedIdentityProperties
- Added Type Alias ClustersListBySubscriptionNextResponse
- Added Type Alias ClustersListBySubscriptionResponse
- Added Type Alias CreatedByType
- Added Type Alias ManagedServiceIdentityType
- Added Type Alias PublicNetworkAccessFlag
- Interface Encryption has a new optional parameter requireInfrastructureEncryption
- Interface Identity has a new optional parameter userAssignedIdentities
- Interface KeyVaultProperties has a new optional parameter identity
- Type Alias ArmDisasterRecovery has a new parameter systemData
- Type Alias AuthorizationRule has a new parameter systemData
- Type Alias Cluster has a new parameter systemData
- Type Alias ConsumerGroup has a new parameter systemData
- Type Alias EHNamespace has a new parameter systemData
- Type Alias EHNamespace has a new parameter privateEndpointConnections
- Type Alias EHNamespace has a new parameter disableLocalAuth
- Type Alias Eventhub has a new parameter systemData
- Type Alias NetworkRuleSet has a new parameter systemData
- Type Alias NetworkRuleSet has a new parameter publicNetworkAccess
- Type Alias PrivateEndpointConnection has a new parameter systemData
- Added Enum KnownCreatedByType
- Added Enum KnownPublicNetworkAccessFlag
- Enum KnownSkuName has a new value Premium
- Enum KnownSkuTier has a new value Premium

**Breaking Changes**

- Removed operation group Regions
- Removed operation Namespaces.createOrUpdateIpFilterRule
- Removed operation Namespaces.createOrUpdateVirtualNetworkRule
- Removed operation Namespaces.deleteIpFilterRule
- Removed operation Namespaces.deleteVirtualNetworkRule
- Removed operation Namespaces.getIpFilterRule
- Removed operation Namespaces.getVirtualNetworkRule
- Removed operation Namespaces.listIPFilterRules
- Removed operation Namespaces.listVirtualNetworkRules
- Class EventHubManagementClient no longer has parameter regions
- Removed Enum KnownIPAction

## 30.0.0-beta.1 (2021-09-07)

This is the first preview for the new version of the `@azure/arm-eventhub` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
Expand Down
5 changes: 3 additions & 2 deletions sdk/eventhub/arm-eventhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ npm install @azure/arm-eventhub
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].

#### Using an Azure Active Directory Credential
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).

You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:

```bash
npm install @azure/identity
Expand All @@ -45,6 +45,7 @@ You will also need to **register a new AAD application and grant access to Azure
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 { DefaultAzureCredential } = require("@azure/identity");
Expand Down
6 changes: 3 additions & 3 deletions sdk/eventhub/arm-eventhub/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "5d09c12c024fa7efbaca6a95b9741a46a886fe6f",
"commit": "5cf3e4a0c30ad5167088ac839453578b2e8e9afc",
"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 --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/eventhub/resource-manager/readme.md --use=@autorest/[email protected].12",
"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].13",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].12"
"use": "@autorest/[email protected].13"
}
2 changes: 1 addition & 1 deletion sdk/eventhub/arm-eventhub/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"dtsRollup": {
Expand Down
Loading

0 comments on commit 966cd8d

Please sign in to comment.