Skip to content
Closed
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
18 changes: 12 additions & 6 deletions common/config/rush/pnpm-lock.yaml

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

17 changes: 5 additions & 12 deletions sdk/eventhub/arm-eventhub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# Release History

## 5.2.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 5.2.0-beta.1 (2023-04-12)

## 6.0.0-beta.1 (2023-06-01)

**Features**

Expand Down Expand Up @@ -66,6 +56,9 @@
- Added Enum KnownResourceAssociationAccessMode
- Added Enum KnownTlsVersion
- Enum KnownPublicNetworkAccessFlag has a new value SecuredByPerimeter

**Breaking Changes**

- Interface ConsumerGroupsListByEventHubNextOptionalParams no longer has parameter skip
- Interface ConsumerGroupsListByEventHubNextOptionalParams no longer has parameter top
- Interface EventHubsListByNamespaceNextOptionalParams no longer has parameter skip
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,8 +1,8 @@
{
"commit": "7561be58288fad1433038db3f1ccd9794773a03e",
"commit": "0898ca990a6244e97126862f79a9d530606b9b95",
"readme": "specification/eventhub/resource-manager/readme.md",
"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",
"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]",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/[email protected]"
}
18 changes: 4 additions & 14 deletions sdk/eventhub/arm-eventhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for EventHubManagementClient.",
"version": "5.2.0-beta.2",
"version": "6.0.0-beta.1",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -36,7 +36,7 @@
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
Expand All @@ -47,8 +47,6 @@
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/arm-network": "^26.0.0",
"@azure/arm-storage": "^17.0.0",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
Expand Down Expand Up @@ -113,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-eventhub?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub"
}
7 changes: 2 additions & 5 deletions sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ export enum KnownApplicationGroupPolicyType {

// @public
export enum KnownCleanupPolicyRetentionDescription {
Compaction = "Compaction",
Compact = "Compact",
Delete = "Delete"
}

Expand Down Expand Up @@ -1059,7 +1059,7 @@ export interface NetworkSecurityPerimeter {
}

// @public
export interface NetworkSecurityPerimeterConfiguration extends Resource {
export interface NetworkSecurityPerimeterConfiguration extends ProxyResource {
readonly networkSecurityPerimeter?: NetworkSecurityPerimeter;
readonly profile?: NetworkSecurityPerimeterConfigurationPropertiesProfile;
provisioningIssues?: ProvisioningIssue[];
Expand Down Expand Up @@ -1365,11 +1365,8 @@ export interface SchemaGroupListResult {

// @public
export interface SchemaRegistry {
// (undocumented)
createOrUpdate(resourceGroupName: string, namespaceName: string, schemaGroupName: string, parameters: SchemaGroup, options?: SchemaRegistryCreateOrUpdateOptionalParams): Promise<SchemaRegistryCreateOrUpdateResponse>;
// (undocumented)
delete(resourceGroupName: string, namespaceName: string, schemaGroupName: string, options?: SchemaRegistryDeleteOptionalParams): Promise<void>;
// (undocumented)
get(resourceGroupName: string, namespaceName: string, schemaGroupName: string, options?: SchemaRegistryGetOptionalParams): Promise<SchemaRegistryGetResponse>;
listByNamespace(resourceGroupName: string, namespaceName: string, options?: SchemaRegistryListByNamespaceOptionalParams): PagedAsyncIterableIterator<SchemaGroup>;
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class EventHubManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-eventhub/5.2.0-beta.2`;
const packageDetails = `azsdk-js-arm-eventhub/6.0.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
42 changes: 21 additions & 21 deletions sdk/eventhub/arm-eventhub/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,9 @@ export interface Destination {
export interface RetentionDescription {
/** Enumerates the possible values for cleanup policy */
cleanupPolicy?: CleanupPolicyRetentionDescription;
/** 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 */
/** 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 */
retentionTimeInHours?: number;
/** 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 */
/** 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 */
tombstoneRetentionTimeInHours?: number;
}

Expand Down Expand Up @@ -650,8 +650,23 @@ export interface TrackedResource extends Resource {
tags?: { [propertyName: string]: string };
}

/** Properties of the PrivateEndpointConnection. */
export interface PrivateEndpointConnection extends ProxyResource {
/**
* The system meta data relating to this resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly systemData?: SystemData;
/** The Private Endpoint resource for this Connection. */
privateEndpoint?: PrivateEndpoint;
/** Details about the state of the connection. */
privateLinkServiceConnectionState?: ConnectionState;
/** Provisioning state of the Private Endpoint Connection. */
provisioningState?: EndPointProvisioningState;
}

/** Network Security Perimeter related configurations of a given namespace */
export interface NetworkSecurityPerimeterConfiguration extends Resource {
export interface NetworkSecurityPerimeterConfiguration extends ProxyResource {
/** Provisioning state of NetworkSecurityPerimeter configuration propagation */
provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState;
/** List of Provisioning Issues if any */
Expand All @@ -673,21 +688,6 @@ export interface NetworkSecurityPerimeterConfiguration extends Resource {
readonly profile?: NetworkSecurityPerimeterConfigurationPropertiesProfile;
}

/** Properties of the PrivateEndpointConnection. */
export interface PrivateEndpointConnection extends ProxyResource {
/**
* The system meta data relating to this resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly systemData?: SystemData;
/** The Private Endpoint resource for this Connection. */
privateEndpoint?: PrivateEndpoint;
/** Details about the state of the connection. */
privateLinkServiceConnectionState?: ConnectionState;
/** Provisioning state of the Private Endpoint Connection. */
provisioningState?: EndPointProvisioningState;
}

/** Description of topic resource. */
export interface NetworkRuleSet extends ProxyResource {
/**
Expand Down Expand Up @@ -1316,8 +1316,8 @@ export type KeyType = string;
export enum KnownCleanupPolicyRetentionDescription {
/** Delete */
Delete = "Delete",
/** Compaction */
Compaction = "Compaction"
/** Compact */
Compact = "Compact"
}

/**
Expand All @@ -1326,7 +1326,7 @@ export enum KnownCleanupPolicyRetentionDescription {
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Delete** \
* **Compaction**
* **Compact**
*/
export type CleanupPolicyRetentionDescription = string;

Expand Down
76 changes: 38 additions & 38 deletions sdk/eventhub/arm-eventhub/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1634,12 +1634,49 @@ export const TrackedResource: coreClient.CompositeMapper = {
}
};

export const PrivateEndpointConnection: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PrivateEndpointConnection",
modelProperties: {
...ProxyResource.type.modelProperties,
systemData: {
serializedName: "systemData",
type: {
name: "Composite",
className: "SystemData"
}
},
privateEndpoint: {
serializedName: "properties.privateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint"
}
},
privateLinkServiceConnectionState: {
serializedName: "properties.privateLinkServiceConnectionState",
type: {
name: "Composite",
className: "ConnectionState"
}
},
provisioningState: {
serializedName: "properties.provisioningState",
type: {
name: "String"
}
}
}
}
};

export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "NetworkSecurityPerimeterConfiguration",
modelProperties: {
...Resource.type.modelProperties,
...ProxyResource.type.modelProperties,
provisioningState: {
serializedName: "properties.provisioningState",
type: {
Expand Down Expand Up @@ -1684,43 +1721,6 @@ export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper =
}
};

export const PrivateEndpointConnection: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PrivateEndpointConnection",
modelProperties: {
...ProxyResource.type.modelProperties,
systemData: {
serializedName: "systemData",
type: {
name: "Composite",
className: "SystemData"
}
},
privateEndpoint: {
serializedName: "properties.privateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint"
}
},
privateLinkServiceConnectionState: {
serializedName: "properties.privateLinkServiceConnectionState",
type: {
name: "Composite",
className: "ConnectionState"
}
},
provisioningState: {
serializedName: "properties.provisioningState",
type: {
name: "String"
}
}
}
}
};

export const NetworkRuleSet: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,9 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
200: {
bodyMapper: Mappers.ArmDisasterRecovery
},
201: {},
201: {
bodyMapper: Mappers.ArmDisasterRecovery
},
default: {
bodyMapper: Mappers.ErrorResponse
}
Expand Down
3 changes: 3 additions & 0 deletions sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class SchemaRegistryImpl implements SchemaRegistry {
}

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

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

/**
* Gets the details of an EventHub schema group.
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name
* @param schemaGroupName The Schema Group name
Expand Down
Loading