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
8 changes: 4 additions & 4 deletions sdk/eventhub/arm-eventhub/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "7561be58288fad1433038db3f1ccd9794773a03e",
"commit": "eb84a8e87831b63189b700427a973eb7aa9771f1",
"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].0-rc.10 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --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/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected].0-rc.10"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@^6.0.12"
}
28 changes: 10 additions & 18 deletions sdk/eventhub/arm-eventhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for EventHubManagementClient.",
"version": "5.2.0-beta.2",
"version": "1.0.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -32,19 +32,19 @@
"mkdirp": "^2.1.2",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^3.3.0",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/arm-network": "^32.2.0",
"@azure/arm-storage": "^18.0.0",
"@types/node": "^18.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
},
"repository": {
Expand Down Expand Up @@ -79,7 +79,7 @@
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand Down Expand Up @@ -107,13 +107,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"
}
4 changes: 2 additions & 2 deletions 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/1.0.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -132,7 +132,7 @@ export class EventHubManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2022-10-01-preview";
this.apiVersion = options.apiVersion || "2024-01-01";
this.clusters = new ClustersImpl(this);
this.namespaces = new NamespacesImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
Expand Down
159 changes: 141 additions & 18 deletions sdk/eventhub/arm-eventhub/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ export interface SystemData {
lastModifiedAt?: Date;
}

/** Contains all settings for the cluster upgrade window. */
export interface UpgradePreferences {
/** Preferred day of the week in UTC time to begin an upgrade. If 'Any' is selected, upgrade will proceed at any given weekday */
startDayOfWeek?: StartDayOfWeek;
/** Preferred hour of the day in UTC time to begin an upgrade */
startHourOfDay?: number;
}

/** Common fields that are returned in the response for all Azure Resource Manager resources */
export interface Resource {
/**
Expand Down Expand Up @@ -591,6 +599,8 @@ export interface CaptureDescription {
export interface Destination {
/** Name for capture destination */
name?: string;
/** A value that indicates whether capture description is enabled. */
identity?: CaptureIdentity;
/** Resource id of the storage account to be used to create the blobs */
storageAccountResourceId?: string;
/** Blob container Name */
Expand All @@ -605,13 +615,21 @@ export interface Destination {
dataLakeFolderPath?: string;
}

/** A value that indicates whether capture description is enabled. */
export interface CaptureIdentity {
/** Type of Azure Active Directory Managed Identity. */
type?: CaptureIdentityType;
/** ARM ID of Managed User Identity. This property is required is the type is UserAssignedIdentity. If type is SystemAssigned, then the System Assigned Identity Associated with the namespace will be used. */
userAssignedIdentity?: string;
}

/** Properties to configure retention settings for the eventhub */
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 +668,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 @@ -671,21 +704,26 @@ export interface NetworkSecurityPerimeterConfiguration extends Resource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly profile?: NetworkSecurityPerimeterConfigurationPropertiesProfile;
}

/** Properties of the PrivateEndpointConnection. */
export interface PrivateEndpointConnection extends ProxyResource {
/**
* The system meta data relating to this resource.
* True if the EventHub namespace is backed by another Azure resource and not visible to end users.
* 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;
readonly isBackingResource?: boolean;
/**
* Indicates that the NSP controls related to backing association are only applicable to a specific feature in backing resource's data plane.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly applicableFeatures?: string[];
/**
* Source Resource Association name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly parentAssociationName?: string;
/**
* ARM Id of source resource
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly sourceResourceId?: string;
}

/** Description of topic resource. */
Expand Down Expand Up @@ -868,6 +906,11 @@ export interface Cluster extends TrackedResource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdAt?: string;
/**
* Provisioning state of the Cluster.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ProvisioningState;
/**
* The UTC time when the Event Hubs Cluster was last updated.
* NOTE: This property will not be serialized. It can only be populated by the server.
Expand All @@ -885,6 +928,8 @@ export interface Cluster extends TrackedResource {
readonly status?: string;
/** A value that indicates whether Scaling is Supported. */
supportsScaling?: boolean;
/** Properties of the cluster upgrade preferences. */
upgradePreferences?: UpgradePreferences;
}

/** Single Namespace item in List or Get Operation */
Expand Down Expand Up @@ -991,6 +1036,78 @@ export enum KnownCreatedByType {
*/
export type CreatedByType = string;

/** Known values of {@link ProvisioningState} that the service accepts. */
export enum KnownProvisioningState {
/** Unknown */
Unknown = "Unknown",
/** Creating */
Creating = "Creating",
/** Deleting */
Deleting = "Deleting",
/** Scaling */
Scaling = "Scaling",
/** Active */
Active = "Active",
/** Failed */
Failed = "Failed",
/** Succeeded */
Succeeded = "Succeeded",
/** Canceled */
Canceled = "Canceled"
}

/**
* Defines values for ProvisioningState. \
* {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Unknown** \
* **Creating** \
* **Deleting** \
* **Scaling** \
* **Active** \
* **Failed** \
* **Succeeded** \
* **Canceled**
*/
export type ProvisioningState = string;

/** Known values of {@link StartDayOfWeek} that the service accepts. */
export enum KnownStartDayOfWeek {
/** Sunday */
Sunday = "Sunday",
/** Monday */
Monday = "Monday",
/** Tuesday */
Tuesday = "Tuesday",
/** Wednesday */
Wednesday = "Wednesday",
/** Thursday */
Thursday = "Thursday",
/** Friday */
Friday = "Friday",
/** Saturday */
Saturday = "Saturday",
/** Any */
Any = "Any"
}

/**
* Defines values for StartDayOfWeek. \
* {@link KnownStartDayOfWeek} can be used interchangeably with StartDayOfWeek,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Sunday** \
* **Monday** \
* **Tuesday** \
* **Wednesday** \
* **Thursday** \
* **Friday** \
* **Saturday** \
* **Any**
*/
export type StartDayOfWeek = string;

/** Known values of {@link SkuName} that the service accepts. */
export enum KnownSkuName {
/** Basic */
Expand Down Expand Up @@ -1316,8 +1433,8 @@ export type KeyType = string;
export enum KnownCleanupPolicyRetentionDescription {
/** Delete */
Delete = "Delete",
/** Compaction */
Compaction = "Compaction"
/** Compact */
Compact = "Compact"
}

/**
Expand All @@ -1326,7 +1443,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 Expand Up @@ -1441,6 +1558,8 @@ export type EntityStatus =
| "Unknown";
/** Defines values for EncodingCaptureDescription. */
export type EncodingCaptureDescription = "Avro" | "AvroDeflate";
/** Defines values for CaptureIdentityType. */
export type CaptureIdentityType = "SystemAssigned" | "UserAssigned";

/** Optional parameters. */
export interface ClustersListAvailableClusterRegionOptionalParams
Expand Down Expand Up @@ -1510,6 +1629,10 @@ export interface ClustersListNamespacesOptionalParams
/** Contains response data for the listNamespaces operation. */
export type ClustersListNamespacesResponse = EHNamespaceIdListResult;

/** Optional parameters. */
export interface ClustersTriggerUpgradePostOptionalParams
extends coreClient.OperationOptions {}

/** Optional parameters. */
export interface ClustersListBySubscriptionNextOptionalParams
extends coreClient.OperationOptions {}
Expand Down
Loading