-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Event Hubs] Add 2026-07-01-preview API version #44750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mashrafsiddiquee
wants to merge
6
commits into
Azure:main
Choose a base branch
from
mashrafsiddiquee:eventhub-2026-07-preview
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
521cd6c
Add Event Hubs 2026-07-01-preview API
asiddiqiuee 6a0b4c4
Fix Event Hubs preview validation
asiddiqiuee 5a2f706
Scope Avocado legacy API suppressions
asiddiqiuee db3d4fb
Regenerate Event Hubs Swagger
asiddiqiuee cb1352a
Address Event Hubs ARM review feedback
asiddiqiuee 6036a83
Restore stable Event Hubs default tag
asiddiqiuee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
229 changes: 229 additions & 0 deletions
229
specification/eventhub/resource-manager/Microsoft.EventHub/Eventhub/FabricShortcut.tsp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,229 @@ | ||
| import "@azure-tools/typespec-azure-core"; | ||
| import "@azure-tools/typespec-azure-resource-manager"; | ||
| import "@typespec/rest"; | ||
| import "@typespec/versioning"; | ||
| import "./models.tsp"; | ||
| import "./Eventhub.tsp"; | ||
|
|
||
| using TypeSpec.Rest; | ||
| using Azure.ResourceManager; | ||
| using Azure.Core; | ||
| using TypeSpec.Http; | ||
| using TypeSpec.Versioning; | ||
|
|
||
| namespace Microsoft.EventHub; | ||
|
|
||
| /** | ||
| * A Microsoft Fabric shortcut attached to an Event Hub. | ||
| */ | ||
| @added(Versions.v2026_07_01_preview) | ||
| @parentResource(Eventhub) | ||
| model FabricShortcut | ||
| is Azure.ResourceManager.ProxyResource<FabricShortcutProperties> { | ||
| ...ResourceNameParameter< | ||
| Resource = FabricShortcut, | ||
| KeyName = "fabricShortcutName", | ||
| SegmentName = "fabricShortcuts", | ||
| NamePattern = "^.+$" | ||
| >; | ||
|
|
||
| /** | ||
| * The geo-location where the resource lives. | ||
| */ | ||
| #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "The backend resource model returns location as a read-only top-level ARM envelope property, not as a Fabric shortcut property." | ||
| @visibility(Lifecycle.Read) | ||
| location?: string; | ||
| } | ||
|
|
||
| /** | ||
| * Properties of a Microsoft Fabric shortcut. | ||
| */ | ||
| #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "The synchronous backend contract does not define or return provisioningState; shortcut lifecycle is reported through the read-only shortcutStatus property." | ||
| @added(Versions.v2026_07_01_preview) | ||
| model FabricShortcutProperties { | ||
| /** | ||
| * Microsoft Fabric workspace and artifact configuration. | ||
| */ | ||
| configuration: FabricShortcutConfiguration; | ||
|
|
||
| /** | ||
| * The type of the shortcut. | ||
| */ | ||
| shortcutType?: FabricShortcutType; | ||
|
|
||
| /** | ||
| * The current shortcut status. Only Pending can be supplied on create or update. | ||
| */ | ||
| shortcutStatus?: FabricShortcutStatus; | ||
|
|
||
| /** | ||
| * A description of the current shortcut status. | ||
| */ | ||
| @visibility(Lifecycle.Read) | ||
| statusDescription?: string; | ||
|
|
||
| /** | ||
| * The UTC time when the shortcut was created. | ||
| */ | ||
| @visibility(Lifecycle.Read) | ||
| createdAt?: utcDateTime; | ||
|
|
||
| /** | ||
| * The UTC time when the shortcut was last modified. | ||
| */ | ||
| @visibility(Lifecycle.Read) | ||
| modifiedAt?: utcDateTime; | ||
| } | ||
|
|
||
| /** | ||
| * Microsoft Fabric workspace and artifact configuration. | ||
| */ | ||
| @added(Versions.v2026_07_01_preview) | ||
| model FabricShortcutConfiguration { | ||
| /** | ||
| * The Microsoft Fabric tenant ID. | ||
| */ | ||
| tenantId: uuid; | ||
|
|
||
| /** | ||
| * The Microsoft Fabric workspace ID. | ||
| */ | ||
| workspaceId: uuid; | ||
|
|
||
| /** | ||
| * The Microsoft Fabric artifact ID. | ||
| */ | ||
| artifactId: uuid; | ||
|
|
||
| /** | ||
| * The Microsoft Fabric premium capacity ID. | ||
| */ | ||
| premiumCapacityId?: string; | ||
|
|
||
| /** | ||
| * The resource ID of the Log Analytics workspace. | ||
| */ | ||
| logAnalyticsResourceId?: armResourceIdentifier<[ | ||
| { | ||
| type: "Microsoft.OperationalInsights/workspaces"; | ||
| } | ||
| ]>; | ||
|
|
||
| /** | ||
| * The Microsoft Fabric workspace name. | ||
| */ | ||
| workspaceName?: string; | ||
|
|
||
| /** | ||
| * The Microsoft Fabric artifact name. | ||
| */ | ||
| artifactName?: string; | ||
| } | ||
|
|
||
| /** | ||
| * The type of Microsoft Fabric shortcut. | ||
| */ | ||
| #suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "The service validates the value against this fixed set and rejects unknown values." | ||
| @added(Versions.v2026_07_01_preview) | ||
| union FabricShortcutType { | ||
|
sandipsh marked this conversation as resolved.
|
||
| /** | ||
| * An entity shortcut. | ||
| */ | ||
| Entity: "Entity", | ||
|
|
||
| /** | ||
| * A network shortcut. | ||
| */ | ||
| Network: "Network", | ||
| } | ||
|
|
||
| /** | ||
| * The status of a Microsoft Fabric shortcut. | ||
| */ | ||
| #suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "The service validates the value against this fixed set and rejects unknown values." | ||
| @added(Versions.v2026_07_01_preview) | ||
| union FabricShortcutStatus { | ||
| /** | ||
| * The shortcut is awaiting approval. | ||
| */ | ||
| Pending: "Pending", | ||
|
|
||
| /** | ||
| * The shortcut is approved. | ||
| */ | ||
| Approved: "Approved", | ||
|
|
||
| /** | ||
| * The shortcut is rejected. | ||
| */ | ||
| Rejected: "Rejected", | ||
| } | ||
|
|
||
| @added(Versions.v2026_07_01_preview) | ||
| @armResourceOperations | ||
| interface FabricShortcuts { | ||
| /** | ||
| * Gets a Microsoft Fabric shortcut. | ||
| */ | ||
| get is ArmResourceRead<FabricShortcut, Error = ErrorResponse>; | ||
|
|
||
| /** | ||
| * Creates or updates a Microsoft Fabric shortcut. | ||
| */ | ||
| #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "The service returns 200 for both create and update." | ||
|
sandipsh marked this conversation as resolved.
sandipsh marked this conversation as resolved.
|
||
| createOrUpdate is ArmResourceCreateOrReplaceSync< | ||
|
sandipsh marked this conversation as resolved.
|
||
| FabricShortcut, | ||
| Response = ArmResourceUpdatedResponse<FabricShortcut>, | ||
| Error = ErrorResponse | ||
| >; | ||
|
|
||
| /** | ||
| * Lists Microsoft Fabric shortcuts for an Event Hub. | ||
| */ | ||
| listByEventHub is ArmResourceListByParent< | ||
| FabricShortcut, | ||
| Error = ErrorResponse | ||
| >; | ||
|
|
||
| /** | ||
| * Deletes a Microsoft Fabric shortcut. | ||
| */ | ||
| #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "The service returns 200 when the shortcut is deleted." | ||
| delete is ArmResourceDeleteSync< | ||
|
sandipsh marked this conversation as resolved.
|
||
| FabricShortcut, | ||
| Response = ArmDeletedResponse, | ||
| Error = ErrorResponse | ||
| >; | ||
|
|
||
| /** | ||
| * Approves a Microsoft Fabric shortcut. | ||
| */ | ||
| @action("approve") | ||
| approve is ArmResourceActionSync< | ||
| FabricShortcut, | ||
| void, | ||
| ArmResponse<FabricShortcut>, | ||
| Error = ErrorResponse | ||
| >; | ||
|
|
||
| /** | ||
| * Rejects a Microsoft Fabric shortcut. | ||
| */ | ||
| @action("reject") | ||
| reject is ArmResourceActionSync< | ||
| FabricShortcut, | ||
| void, | ||
| ArmResponse<FabricShortcut>, | ||
| Error = ErrorResponse | ||
| >; | ||
| } | ||
|
|
||
| @@doc(FabricShortcut.name, "The Microsoft Fabric shortcut name."); | ||
| @@doc( | ||
| FabricShortcut.properties, | ||
| "Properties of the Microsoft Fabric shortcut." | ||
| ); | ||
| @@doc( | ||
| FabricShortcuts.createOrUpdate::parameters.resource, | ||
| "The Microsoft Fabric shortcut." | ||
| ); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.