Skip to content

Commit a04e4f0

Browse files
author
SDKAuto
committed
CodeGen from PR 26672 in Azure/azure-rest-api-specs
Merge adabec83cb1606aecc4fcbde19dbcaa28fbb72f4 into e237298f554742f54ab7e62c4a96080f972bcfa5
1 parent 43e51d1 commit a04e4f0

File tree

13 files changed

+394
-79
lines changed

13 files changed

+394
-79
lines changed

sdk/eventhub/arm-eventhub/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "7561be58288fad1433038db3f1ccd9794773a03e",
2+
"commit": "eb84a8e87831b63189b700427a973eb7aa9771f1",
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].0-rc.10 --generate-sample=true",
4+
"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",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
7-
"use": "@autorest/[email protected].0-rc.10"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/eventhub/arm-eventhub/package.json

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for EventHubManagementClient.",
6-
"version": "5.2.0-beta.2",
6+
"version": "1.0.0-beta.1",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.5.0",
11+
"@azure/core-lro": "^2.5.4",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
1515
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.8.0",
16+
"@azure/core-rest-pipeline": "^1.12.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [
@@ -32,19 +32,19 @@
3232
"mkdirp": "^2.1.2",
3333
"typescript": "~5.2.0",
3434
"uglify-js": "^3.4.9",
35-
"rimraf": "^3.0.0",
35+
"rimraf": "^5.0.0",
3636
"dotenv": "^16.0.0",
37+
"@azure/dev-tool": "^1.0.0",
3738
"@azure/identity": "^3.3.0",
3839
"@azure-tools/test-recorder": "^3.0.0",
3940
"@azure-tools/test-credential": "^1.0.0",
4041
"mocha": "^10.0.0",
42+
"@types/mocha": "^10.0.0",
43+
"esm": "^3.2.18",
4144
"@types/chai": "^4.2.8",
4245
"chai": "^4.2.0",
4346
"cross-env": "^7.0.2",
44-
"@azure/arm-network": "^32.2.0",
45-
"@azure/arm-storage": "^18.0.0",
4647
"@types/node": "^18.0.0",
47-
"@azure/dev-tool": "^1.0.0",
4848
"ts-node": "^10.0.0"
4949
},
5050
"repository": {
@@ -79,7 +79,7 @@
7979
"extract-api": "api-extractor run --local",
8080
"lint": "echo skipped",
8181
"audit": "echo skipped",
82-
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
82+
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8383
"build:node": "echo skipped",
8484
"build:browser": "echo skipped",
8585
"build:test": "echo skipped",
@@ -107,13 +107,5 @@
107107
]
108108
},
109109
"autoPublish": true,
110-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub",
111-
"//sampleConfiguration": {
112-
"productName": "",
113-
"productSlugs": [
114-
"azure"
115-
],
116-
"disableDocsMs": true,
117-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-eventhub?view=azure-node-preview"
118-
}
119-
}
110+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub"
111+
}

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

Lines changed: 2 additions & 2 deletions
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/1.0.0-beta.1`;
8383
const userAgentPrefix =
8484
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
8585
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -132,7 +132,7 @@ export class EventHubManagementClient extends coreClient.ServiceClient {
132132

133133
// Assigning values to Constant parameters
134134
this.$host = options.$host || "https://management.azure.com";
135-
this.apiVersion = options.apiVersion || "2022-10-01-preview";
135+
this.apiVersion = options.apiVersion || "2024-01-01";
136136
this.clusters = new ClustersImpl(this);
137137
this.namespaces = new NamespacesImpl(this);
138138
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);

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

Lines changed: 141 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ export interface SystemData {
105105
lastModifiedAt?: Date;
106106
}
107107

108+
/** Contains all settings for the cluster upgrade window. */
109+
export interface UpgradePreferences {
110+
/** Preferred day of the week in UTC time to begin an upgrade. If 'Any' is selected, upgrade will proceed at any given weekday */
111+
startDayOfWeek?: StartDayOfWeek;
112+
/** Preferred hour of the day in UTC time to begin an upgrade */
113+
startHourOfDay?: number;
114+
}
115+
108116
/** Common fields that are returned in the response for all Azure Resource Manager resources */
109117
export interface Resource {
110118
/**
@@ -591,6 +599,8 @@ export interface CaptureDescription {
591599
export interface Destination {
592600
/** Name for capture destination */
593601
name?: string;
602+
/** A value that indicates whether capture description is enabled. */
603+
identity?: CaptureIdentity;
594604
/** Resource id of the storage account to be used to create the blobs */
595605
storageAccountResourceId?: string;
596606
/** Blob container Name */
@@ -605,13 +615,21 @@ export interface Destination {
605615
dataLakeFolderPath?: string;
606616
}
607617

618+
/** A value that indicates whether capture description is enabled. */
619+
export interface CaptureIdentity {
620+
/** Type of Azure Active Directory Managed Identity. */
621+
type?: CaptureIdentityType;
622+
/** 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. */
623+
userAssignedIdentity?: string;
624+
}
625+
608626
/** Properties to configure retention settings for the eventhub */
609627
export interface RetentionDescription {
610628
/** Enumerates the possible values for cleanup policy */
611629
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 */
630+
/** 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 */
613631
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 */
632+
/** 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 */
615633
tombstoneRetentionTimeInHours?: number;
616634
}
617635

@@ -650,8 +668,23 @@ export interface TrackedResource extends Resource {
650668
tags?: { [propertyName: string]: string };
651669
}
652670

671+
/** Properties of the PrivateEndpointConnection. */
672+
export interface PrivateEndpointConnection extends ProxyResource {
673+
/**
674+
* The system meta data relating to this resource.
675+
* NOTE: This property will not be serialized. It can only be populated by the server.
676+
*/
677+
readonly systemData?: SystemData;
678+
/** The Private Endpoint resource for this Connection. */
679+
privateEndpoint?: PrivateEndpoint;
680+
/** Details about the state of the connection. */
681+
privateLinkServiceConnectionState?: ConnectionState;
682+
/** Provisioning state of the Private Endpoint Connection. */
683+
provisioningState?: EndPointProvisioningState;
684+
}
685+
653686
/** Network Security Perimeter related configurations of a given namespace */
654-
export interface NetworkSecurityPerimeterConfiguration extends Resource {
687+
export interface NetworkSecurityPerimeterConfiguration extends ProxyResource {
655688
/** Provisioning state of NetworkSecurityPerimeter configuration propagation */
656689
provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState;
657690
/** List of Provisioning Issues if any */
@@ -671,21 +704,26 @@ export interface NetworkSecurityPerimeterConfiguration extends Resource {
671704
* NOTE: This property will not be serialized. It can only be populated by the server.
672705
*/
673706
readonly profile?: NetworkSecurityPerimeterConfigurationPropertiesProfile;
674-
}
675-
676-
/** Properties of the PrivateEndpointConnection. */
677-
export interface PrivateEndpointConnection extends ProxyResource {
678707
/**
679-
* The system meta data relating to this resource.
708+
* True if the EventHub namespace is backed by another Azure resource and not visible to end users.
680709
* NOTE: This property will not be serialized. It can only be populated by the server.
681710
*/
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;
711+
readonly isBackingResource?: boolean;
712+
/**
713+
* Indicates that the NSP controls related to backing association are only applicable to a specific feature in backing resource's data plane.
714+
* NOTE: This property will not be serialized. It can only be populated by the server.
715+
*/
716+
readonly applicableFeatures?: string[];
717+
/**
718+
* Source Resource Association name
719+
* NOTE: This property will not be serialized. It can only be populated by the server.
720+
*/
721+
readonly parentAssociationName?: string;
722+
/**
723+
* ARM Id of source resource
724+
* NOTE: This property will not be serialized. It can only be populated by the server.
725+
*/
726+
readonly sourceResourceId?: string;
689727
}
690728

691729
/** Description of topic resource. */
@@ -868,6 +906,11 @@ export interface Cluster extends TrackedResource {
868906
* NOTE: This property will not be serialized. It can only be populated by the server.
869907
*/
870908
readonly createdAt?: string;
909+
/**
910+
* Provisioning state of the Cluster.
911+
* NOTE: This property will not be serialized. It can only be populated by the server.
912+
*/
913+
readonly provisioningState?: ProvisioningState;
871914
/**
872915
* The UTC time when the Event Hubs Cluster was last updated.
873916
* NOTE: This property will not be serialized. It can only be populated by the server.
@@ -885,6 +928,8 @@ export interface Cluster extends TrackedResource {
885928
readonly status?: string;
886929
/** A value that indicates whether Scaling is Supported. */
887930
supportsScaling?: boolean;
931+
/** Properties of the cluster upgrade preferences. */
932+
upgradePreferences?: UpgradePreferences;
888933
}
889934

890935
/** Single Namespace item in List or Get Operation */
@@ -991,6 +1036,78 @@ export enum KnownCreatedByType {
9911036
*/
9921037
export type CreatedByType = string;
9931038

1039+
/** Known values of {@link ProvisioningState} that the service accepts. */
1040+
export enum KnownProvisioningState {
1041+
/** Unknown */
1042+
Unknown = "Unknown",
1043+
/** Creating */
1044+
Creating = "Creating",
1045+
/** Deleting */
1046+
Deleting = "Deleting",
1047+
/** Scaling */
1048+
Scaling = "Scaling",
1049+
/** Active */
1050+
Active = "Active",
1051+
/** Failed */
1052+
Failed = "Failed",
1053+
/** Succeeded */
1054+
Succeeded = "Succeeded",
1055+
/** Canceled */
1056+
Canceled = "Canceled"
1057+
}
1058+
1059+
/**
1060+
* Defines values for ProvisioningState. \
1061+
* {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
1062+
* this enum contains the known values that the service supports.
1063+
* ### Known values supported by the service
1064+
* **Unknown** \
1065+
* **Creating** \
1066+
* **Deleting** \
1067+
* **Scaling** \
1068+
* **Active** \
1069+
* **Failed** \
1070+
* **Succeeded** \
1071+
* **Canceled**
1072+
*/
1073+
export type ProvisioningState = string;
1074+
1075+
/** Known values of {@link StartDayOfWeek} that the service accepts. */
1076+
export enum KnownStartDayOfWeek {
1077+
/** Sunday */
1078+
Sunday = "Sunday",
1079+
/** Monday */
1080+
Monday = "Monday",
1081+
/** Tuesday */
1082+
Tuesday = "Tuesday",
1083+
/** Wednesday */
1084+
Wednesday = "Wednesday",
1085+
/** Thursday */
1086+
Thursday = "Thursday",
1087+
/** Friday */
1088+
Friday = "Friday",
1089+
/** Saturday */
1090+
Saturday = "Saturday",
1091+
/** Any */
1092+
Any = "Any"
1093+
}
1094+
1095+
/**
1096+
* Defines values for StartDayOfWeek. \
1097+
* {@link KnownStartDayOfWeek} can be used interchangeably with StartDayOfWeek,
1098+
* this enum contains the known values that the service supports.
1099+
* ### Known values supported by the service
1100+
* **Sunday** \
1101+
* **Monday** \
1102+
* **Tuesday** \
1103+
* **Wednesday** \
1104+
* **Thursday** \
1105+
* **Friday** \
1106+
* **Saturday** \
1107+
* **Any**
1108+
*/
1109+
export type StartDayOfWeek = string;
1110+
9941111
/** Known values of {@link SkuName} that the service accepts. */
9951112
export enum KnownSkuName {
9961113
/** Basic */
@@ -1316,8 +1433,8 @@ export type KeyType = string;
13161433
export enum KnownCleanupPolicyRetentionDescription {
13171434
/** Delete */
13181435
Delete = "Delete",
1319-
/** Compaction */
1320-
Compaction = "Compaction"
1436+
/** Compact */
1437+
Compact = "Compact"
13211438
}
13221439

13231440
/**
@@ -1326,7 +1443,7 @@ export enum KnownCleanupPolicyRetentionDescription {
13261443
* this enum contains the known values that the service supports.
13271444
* ### Known values supported by the service
13281445
* **Delete** \
1329-
* **Compaction**
1446+
* **Compact**
13301447
*/
13311448
export type CleanupPolicyRetentionDescription = string;
13321449

@@ -1441,6 +1558,8 @@ export type EntityStatus =
14411558
| "Unknown";
14421559
/** Defines values for EncodingCaptureDescription. */
14431560
export type EncodingCaptureDescription = "Avro" | "AvroDeflate";
1561+
/** Defines values for CaptureIdentityType. */
1562+
export type CaptureIdentityType = "SystemAssigned" | "UserAssigned";
14441563

14451564
/** Optional parameters. */
14461565
export interface ClustersListAvailableClusterRegionOptionalParams
@@ -1510,6 +1629,10 @@ export interface ClustersListNamespacesOptionalParams
15101629
/** Contains response data for the listNamespaces operation. */
15111630
export type ClustersListNamespacesResponse = EHNamespaceIdListResult;
15121631

1632+
/** Optional parameters. */
1633+
export interface ClustersTriggerUpgradePostOptionalParams
1634+
extends coreClient.OperationOptions {}
1635+
15131636
/** Optional parameters. */
15141637
export interface ClustersListBySubscriptionNextOptionalParams
15151638
extends coreClient.OperationOptions {}

0 commit comments

Comments
 (0)