Skip to content

Commit 0e53a33

Browse files
author
SDKAuto
committed
CodeGen from PR 24056 in Azure/azure-rest-api-specs
Merge e576ea62e73bff95e646da2c7b0235e5e0749ac4 into b9ce503202d918a37d8a537fbd2a785e3850f836
1 parent 3bacee1 commit 0e53a33

File tree

13 files changed

+140
-109
lines changed

13 files changed

+140
-109
lines changed

common/config/rush/pnpm-lock.yaml

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

sdk/eventhub/arm-eventhub/CHANGELOG.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
# Release History
2-
3-
## 5.2.0-beta.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 5.2.0-beta.1 (2023-04-12)
2+
3+
## 6.0.0-beta.1 (2023-06-01)
144

155
**Features**
166

@@ -66,6 +56,9 @@
6656
- Added Enum KnownResourceAssociationAccessMode
6757
- Added Enum KnownTlsVersion
6858
- Enum KnownPublicNetworkAccessFlag has a new value SecuredByPerimeter
59+
60+
**Breaking Changes**
61+
6962
- Interface ConsumerGroupsListByEventHubNextOptionalParams no longer has parameter skip
7063
- Interface ConsumerGroupsListByEventHubNextOptionalParams no longer has parameter top
7164
- Interface EventHubsListByNamespaceNextOptionalParams no longer has parameter skip

sdk/eventhub/arm-eventhub/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "7561be58288fad1433038db3f1ccd9794773a03e",
2+
"commit": "0898ca990a6244e97126862f79a9d530606b9b95",
33
"readme": "specification/eventhub/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\\eventhub\\resource-manager\\readme.md --use=@autorest/[email protected] --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/eventhub/resource-manager/readme.md --use=@autorest/[email protected]",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
77
"use": "@autorest/[email protected]"
88
}

sdk/eventhub/arm-eventhub/package.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for EventHubManagementClient.",
6-
"version": "5.2.0-beta.2",
6+
"version": "6.0.0-beta.1",
77
"engines": {
88
"node": ">=14.0.0"
99
},
@@ -36,7 +36,7 @@
3636
"mkdirp": "^2.1.2",
3737
"rollup": "^2.66.1",
3838
"rollup-plugin-sourcemaps": "^0.6.3",
39-
"typescript": "~5.0.0",
39+
"typescript": "~4.8.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
4242
"dotenv": "^16.0.0",
@@ -47,8 +47,6 @@
4747
"@types/chai": "^4.2.8",
4848
"chai": "^4.2.0",
4949
"cross-env": "^7.0.2",
50-
"@azure/arm-network": "^26.0.0",
51-
"@azure/arm-storage": "^17.0.0",
5250
"@types/node": "^14.0.0",
5351
"@azure/dev-tool": "^1.0.0"
5452
},
@@ -113,13 +111,5 @@
113111
]
114112
},
115113
"autoPublish": true,
116-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub",
117-
"//sampleConfiguration": {
118-
"productName": "",
119-
"productSlugs": [
120-
"azure"
121-
],
122-
"disableDocsMs": true,
123-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-eventhub?view=azure-node-preview"
124-
}
125-
}
114+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub"
115+
}

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ export enum KnownApplicationGroupPolicyType {
735735

736736
// @public
737737
export enum KnownCleanupPolicyRetentionDescription {
738-
Compaction = "Compaction",
738+
Compact = "Compact",
739739
Delete = "Delete"
740740
}
741741

@@ -1059,7 +1059,7 @@ export interface NetworkSecurityPerimeter {
10591059
}
10601060

10611061
// @public
1062-
export interface NetworkSecurityPerimeterConfiguration extends Resource {
1062+
export interface NetworkSecurityPerimeterConfiguration extends ProxyResource {
10631063
readonly networkSecurityPerimeter?: NetworkSecurityPerimeter;
10641064
readonly profile?: NetworkSecurityPerimeterConfigurationPropertiesProfile;
10651065
provisioningIssues?: ProvisioningIssue[];
@@ -1365,11 +1365,8 @@ export interface SchemaGroupListResult {
13651365

13661366
// @public
13671367
export interface SchemaRegistry {
1368-
// (undocumented)
13691368
createOrUpdate(resourceGroupName: string, namespaceName: string, schemaGroupName: string, parameters: SchemaGroup, options?: SchemaRegistryCreateOrUpdateOptionalParams): Promise<SchemaRegistryCreateOrUpdateResponse>;
1370-
// (undocumented)
13711369
delete(resourceGroupName: string, namespaceName: string, schemaGroupName: string, options?: SchemaRegistryDeleteOptionalParams): Promise<void>;
1372-
// (undocumented)
13731370
get(resourceGroupName: string, namespaceName: string, schemaGroupName: string, options?: SchemaRegistryGetOptionalParams): Promise<SchemaRegistryGetResponse>;
13741371
listByNamespace(resourceGroupName: string, namespaceName: string, options?: SchemaRegistryListByNamespaceOptionalParams): PagedAsyncIterableIterator<SchemaGroup>;
13751372
}

sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class EventHubManagementClient extends coreClient.ServiceClient {
7979
credential: credentials
8080
};
8181

82-
const packageDetails = `azsdk-js-arm-eventhub/5.2.0-beta.2`;
82+
const packageDetails = `azsdk-js-arm-eventhub/6.0.0-beta.1`;
8383
const userAgentPrefix =
8484
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
8585
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,9 @@ export interface Destination {
609609
export interface RetentionDescription {
610610
/** Enumerates the possible values for cleanup policy */
611611
cleanupPolicy?: CleanupPolicyRetentionDescription;
612-
/** Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compaction the returned value of this property is Long.MaxValue */
612+
/** Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compact the returned value of this property is Long.MaxValue */
613613
retentionTimeInHours?: number;
614-
/** Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compaction. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub */
614+
/** Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub */
615615
tombstoneRetentionTimeInHours?: number;
616616
}
617617

@@ -650,8 +650,23 @@ export interface TrackedResource extends Resource {
650650
tags?: { [propertyName: string]: string };
651651
}
652652

653+
/** Properties of the PrivateEndpointConnection. */
654+
export interface PrivateEndpointConnection extends ProxyResource {
655+
/**
656+
* The system meta data relating to this resource.
657+
* NOTE: This property will not be serialized. It can only be populated by the server.
658+
*/
659+
readonly systemData?: SystemData;
660+
/** The Private Endpoint resource for this Connection. */
661+
privateEndpoint?: PrivateEndpoint;
662+
/** Details about the state of the connection. */
663+
privateLinkServiceConnectionState?: ConnectionState;
664+
/** Provisioning state of the Private Endpoint Connection. */
665+
provisioningState?: EndPointProvisioningState;
666+
}
667+
653668
/** Network Security Perimeter related configurations of a given namespace */
654-
export interface NetworkSecurityPerimeterConfiguration extends Resource {
669+
export interface NetworkSecurityPerimeterConfiguration extends ProxyResource {
655670
/** Provisioning state of NetworkSecurityPerimeter configuration propagation */
656671
provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState;
657672
/** List of Provisioning Issues if any */
@@ -673,21 +688,6 @@ export interface NetworkSecurityPerimeterConfiguration extends Resource {
673688
readonly profile?: NetworkSecurityPerimeterConfigurationPropertiesProfile;
674689
}
675690

676-
/** Properties of the PrivateEndpointConnection. */
677-
export interface PrivateEndpointConnection extends ProxyResource {
678-
/**
679-
* The system meta data relating to this resource.
680-
* NOTE: This property will not be serialized. It can only be populated by the server.
681-
*/
682-
readonly systemData?: SystemData;
683-
/** The Private Endpoint resource for this Connection. */
684-
privateEndpoint?: PrivateEndpoint;
685-
/** Details about the state of the connection. */
686-
privateLinkServiceConnectionState?: ConnectionState;
687-
/** Provisioning state of the Private Endpoint Connection. */
688-
provisioningState?: EndPointProvisioningState;
689-
}
690-
691691
/** Description of topic resource. */
692692
export interface NetworkRuleSet extends ProxyResource {
693693
/**
@@ -1316,8 +1316,8 @@ export type KeyType = string;
13161316
export enum KnownCleanupPolicyRetentionDescription {
13171317
/** Delete */
13181318
Delete = "Delete",
1319-
/** Compaction */
1320-
Compaction = "Compaction"
1319+
/** Compact */
1320+
Compact = "Compact"
13211321
}
13221322

13231323
/**
@@ -1326,7 +1326,7 @@ export enum KnownCleanupPolicyRetentionDescription {
13261326
* this enum contains the known values that the service supports.
13271327
* ### Known values supported by the service
13281328
* **Delete** \
1329-
* **Compaction**
1329+
* **Compact**
13301330
*/
13311331
export type CleanupPolicyRetentionDescription = string;
13321332

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

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,12 +1634,49 @@ export const TrackedResource: coreClient.CompositeMapper = {
16341634
}
16351635
};
16361636

1637+
export const PrivateEndpointConnection: coreClient.CompositeMapper = {
1638+
type: {
1639+
name: "Composite",
1640+
className: "PrivateEndpointConnection",
1641+
modelProperties: {
1642+
...ProxyResource.type.modelProperties,
1643+
systemData: {
1644+
serializedName: "systemData",
1645+
type: {
1646+
name: "Composite",
1647+
className: "SystemData"
1648+
}
1649+
},
1650+
privateEndpoint: {
1651+
serializedName: "properties.privateEndpoint",
1652+
type: {
1653+
name: "Composite",
1654+
className: "PrivateEndpoint"
1655+
}
1656+
},
1657+
privateLinkServiceConnectionState: {
1658+
serializedName: "properties.privateLinkServiceConnectionState",
1659+
type: {
1660+
name: "Composite",
1661+
className: "ConnectionState"
1662+
}
1663+
},
1664+
provisioningState: {
1665+
serializedName: "properties.provisioningState",
1666+
type: {
1667+
name: "String"
1668+
}
1669+
}
1670+
}
1671+
}
1672+
};
1673+
16371674
export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = {
16381675
type: {
16391676
name: "Composite",
16401677
className: "NetworkSecurityPerimeterConfiguration",
16411678
modelProperties: {
1642-
...Resource.type.modelProperties,
1679+
...ProxyResource.type.modelProperties,
16431680
provisioningState: {
16441681
serializedName: "properties.provisioningState",
16451682
type: {
@@ -1684,43 +1721,6 @@ export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper =
16841721
}
16851722
};
16861723

1687-
export const PrivateEndpointConnection: coreClient.CompositeMapper = {
1688-
type: {
1689-
name: "Composite",
1690-
className: "PrivateEndpointConnection",
1691-
modelProperties: {
1692-
...ProxyResource.type.modelProperties,
1693-
systemData: {
1694-
serializedName: "systemData",
1695-
type: {
1696-
name: "Composite",
1697-
className: "SystemData"
1698-
}
1699-
},
1700-
privateEndpoint: {
1701-
serializedName: "properties.privateEndpoint",
1702-
type: {
1703-
name: "Composite",
1704-
className: "PrivateEndpoint"
1705-
}
1706-
},
1707-
privateLinkServiceConnectionState: {
1708-
serializedName: "properties.privateLinkServiceConnectionState",
1709-
type: {
1710-
name: "Composite",
1711-
className: "ConnectionState"
1712-
}
1713-
},
1714-
provisioningState: {
1715-
serializedName: "properties.provisioningState",
1716-
type: {
1717-
name: "String"
1718-
}
1719-
}
1720-
}
1721-
}
1722-
};
1723-
17241724
export const NetworkRuleSet: coreClient.CompositeMapper = {
17251725
type: {
17261726
name: "Composite",

sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,9 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
597597
200: {
598598
bodyMapper: Mappers.ArmDisasterRecovery
599599
},
600-
201: {},
600+
201: {
601+
bodyMapper: Mappers.ArmDisasterRecovery
602+
},
601603
default: {
602604
bodyMapper: Mappers.ErrorResponse
603605
}

sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export class SchemaRegistryImpl implements SchemaRegistry {
141141
}
142142

143143
/**
144+
* Creates or Updates an EventHub schema group.
144145
* @param resourceGroupName Name of the resource group within the azure subscription.
145146
* @param namespaceName The Namespace name
146147
* @param schemaGroupName The Schema Group name
@@ -167,6 +168,7 @@ export class SchemaRegistryImpl implements SchemaRegistry {
167168
}
168169

169170
/**
171+
* Deletes an EventHub schema group.
170172
* @param resourceGroupName Name of the resource group within the azure subscription.
171173
* @param namespaceName The Namespace name
172174
* @param schemaGroupName The Schema Group name
@@ -185,6 +187,7 @@ export class SchemaRegistryImpl implements SchemaRegistry {
185187
}
186188

187189
/**
190+
* Gets the details of an EventHub schema group.
188191
* @param resourceGroupName Name of the resource group within the azure subscription.
189192
* @param namespaceName The Namespace name
190193
* @param schemaGroupName The Schema Group name

0 commit comments

Comments
 (0)