Skip to content

Commit e5e3d8d

Browse files
[EventHub] New api version 2025-05-preview version (#54172)
Co-authored-by: Arthur Ma <[email protected]>
1 parent 7c76770 commit e5e3d8d

File tree

141 files changed

+6732
-3149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+6732
-3149
lines changed

sdk/eventhub/Azure.ResourceManager.EventHubs/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Release History
22

3-
## 1.3.0-beta.1 (Unreleased)
3+
## 1.3.0-beta.1 (2025-11-27)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- Updated api version to '2025-05-01-preview'.
128

139
## 1.2.1 (2025-09-23)
1410

sdk/eventhub/Azure.ResourceManager.EventHubs/api/Azure.ResourceManager.EventHubs.net8.0.cs

Lines changed: 143 additions & 11 deletions
Large diffs are not rendered by default.

sdk/eventhub/Azure.ResourceManager.EventHubs/api/Azure.ResourceManager.EventHubs.netstandard2.0.cs

Lines changed: 143 additions & 11 deletions
Large diffs are not rendered by default.

sdk/eventhub/Azure.ResourceManager.EventHubs/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/eventhub/Azure.ResourceManager.EventHubs",
5-
"Tag": "net/eventhub/Azure.ResourceManager.EventHubs_051d9da9a8"
5+
"Tag": "net/eventhub/Azure.ResourceManager.EventHubs_2672136bd5"
66
}

sdk/eventhub/Azure.ResourceManager.EventHubs/src/Custom/ArmEventHubsModelFactory.cs

Lines changed: 237 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.ComponentModel;
8+
using System.Threading;
9+
using System.Threading.Tasks;
10+
using Azure.Core;
11+
using Azure.ResourceManager.Resources;
12+
13+
namespace Azure.ResourceManager.EventHubs
14+
{
15+
/// <summary>
16+
/// A Class representing an EventHubsNamespace along with the instance operations that can be performed on it.
17+
/// If you have a <see cref="ResourceIdentifier"/> you can construct an <see cref="EventHubsNamespaceResource"/>
18+
/// from an instance of <see cref="ArmClient"/> using the GetEventHubsNamespaceResource method.
19+
/// Otherwise you can get one from its parent resource <see cref="ResourceGroupResource"/> using the GetEventHubsNamespace method.
20+
/// </summary>
21+
public partial class EventHubsNamespaceResource : ArmResource
22+
{
23+
/// <summary>
24+
/// Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
25+
/// <list type="bullet">
26+
/// <item>
27+
/// <term>Request Path</term>
28+
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}</description>
29+
/// </item>
30+
/// <item>
31+
/// <term>Operation Id</term>
32+
/// <description>Namespaces_Update</description>
33+
/// </item>
34+
/// <item>
35+
/// <term>Resource</term>
36+
/// <description><see cref="EventHubsNamespaceResource"/></description>
37+
/// </item>
38+
/// </list>
39+
/// </summary>
40+
/// <param name="data"> Parameters for updating a namespace resource. </param>
41+
/// <param name="cancellationToken"> The cancellation token to use. </param>
42+
/// <exception cref="ArgumentNullException"> <paramref name="data"/> is null. </exception>
43+
[EditorBrowsable(EditorBrowsableState.Never)]
44+
public virtual async Task<Response<EventHubsNamespaceResource>> UpdateAsync(EventHubsNamespaceData data, CancellationToken cancellationToken = default)
45+
{
46+
var lro = await UpdateAsync(WaitUntil.Completed, data, cancellationToken).ConfigureAwait(false);
47+
return Response.FromValue(lro.Value, lro.GetRawResponse());
48+
}
49+
50+
/// <summary>
51+
/// Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
52+
/// <list type="bullet">
53+
/// <item>
54+
/// <term>Request Path</term>
55+
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}</description>
56+
/// </item>
57+
/// <item>
58+
/// <term>Operation Id</term>
59+
/// <description>Namespaces_Update</description>
60+
/// </item>
61+
/// <item>
62+
/// <term>Default Api Version</term>
63+
/// <description>2024-01-01</description>
64+
/// </item>
65+
/// <item>
66+
/// <term>Resource</term>
67+
/// <description><see cref="EventHubsNamespaceResource"/></description>
68+
/// </item>
69+
/// </list>
70+
/// </summary>
71+
/// <param name="data"> Parameters for updating a namespace resource. </param>
72+
/// <param name="cancellationToken"> The cancellation token to use. </param>
73+
/// <exception cref="ArgumentNullException"> <paramref name="data"/> is null. </exception>
74+
[EditorBrowsable(EditorBrowsableState.Never)]
75+
public virtual Response<EventHubsNamespaceResource> Update(EventHubsNamespaceData data, CancellationToken cancellationToken = default)
76+
{
77+
var lro = Update(WaitUntil.Completed, data, cancellationToken);
78+
return Response.FromValue(lro.Value, lro.GetRawResponse());
79+
}
80+
}
81+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using Azure.Core;
7+
8+
namespace Azure.ResourceManager.EventHubs.Models
9+
{
10+
[CodeGenModel(Usage = new[] { "Input" })]
11+
public partial class EventHubsProvisioningIssue
12+
{ }
13+
}

0 commit comments

Comments
 (0)